/**
 * Dr. Psych Theme Stylesheet
 * Complete Design System based on Design Documentation
 *
 * @package Dr_Psych_Theme
 */

/* ==========================================
   ROOT & COLOR VARIABLES
   ========================================== */
:root {
    /* Primary Colors */
    --color-primary: #436278;
    --color-secondary: #376944;
    --color-tertiary: #755750;
    
    /* Surface Colors */
    --color-surface: #FAF9F6;
    --color-surface-container-low: #F4F3F0;
    --color-surface-container: #EFEEEB;
    --color-surface-container-high: #E9E8E5;
    --color-surface-container-highest: #E3E2DF;
    
    /* Text Colors */
    --color-on-surface: #1B1C1A;
    --color-on-surface-variant: #42474C;
    
    /* Container Colors */
    --color-primary-container: #A8C8E1;
    --color-primary-fixed-dim: #ABCBE4;
    --color-secondary-container: #B9F0C1;
    --color-tertiary-container: #E2BBB2;
    
    /* Status Colors */
    --color-error: #BA1A1A;
    --color-error-container: #FFDAD6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.75rem;
    --radius-full: 0.75rem;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    
    /* Font Families */
    --font-serif: 'Noto Serif', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-label: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(67, 98, 120, 0.04);
    --shadow-md: 0 4px 8px rgba(67, 98, 120, 0.08);
    --shadow-lg: 0 8px 24px rgba(67, 98, 120, 0.12);
    --shadow-xl: 0 12px 40px rgba(67, 98, 120, 0.16);

    /* UI Overhaul additions */
    --radius-pill: 3rem;
    --shadow-float: 0 8px 32px rgba(67,98,120,.18);
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 95%; /* 5% smaller than default 100% */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

body.light {
    color-scheme: light;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-on-surface);
}

h1 {
    font-size: var(--font-size-6xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-on-surface);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* ==========================================
   BUTTONS
   ========================================== */
button, .button {
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
}

.button-primary {
    background-color: var(--color-primary-container);
    color: var(--color-on-surface);
}

.button-primary:hover {
    background-color: var(--color-primary-fixed-dim);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.button-secondary:hover {
    background-color: var(--color-secondary-container);
}

.button-tertiary {
    background-color: var(--color-tertiary-container);
    color: var(--color-on-surface);
}

.button-tertiary:hover {
    opacity: 0.9;
}

/* ==========================================
   FORMS
   ========================================== */
input, textarea, select {
    font-family: var(--font-body);
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-bottom: 2px solid var(--color-surface-container-high);
    background-color: var(--color-surface-container-high);
    color: var(--color-on-surface);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    box-shadow: 0 2px 0 var(--color-primary);
}

input::placeholder, textarea::placeholder {
    color: var(--color-on-surface-variant);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-on-surface);
    font-size: var(--font-size-sm);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background-color: var(--color-surface-container-lowest, white);
    border-radius: var(--radius-full);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-compact {
    padding: var(--spacing-lg);
}

/* ==========================================
   LAYOUT HELPERS
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-compact {
    padding: var(--spacing-2xl) 0;
}

/* ==========================================
   GRID SYSTEM
   ========================================== */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
    font-family: var(--font-body);
}

nav a {
    color: var(--color-on-surface-variant);
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: var(--spacing-xs);
}

nav a:hover,
nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-container-low) 100%);
    padding: var(--spacing-3xl) var(--spacing-lg);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: var(--font-size-7xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-on-surface-variant);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial {
    padding: var(--spacing-xl);
    border-left: 4px solid var(--color-secondary);
    background-color: var(--color-surface-container-low);
    border-radius: var(--radius-lg);
}

.testimonial-text {
    font-size: var(--font-size-xl);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--color-on-surface);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-secondary);
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mt-3xl { margin-top: var(--spacing-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    h1 { font-size: var(--font-size-5xl); }
    h2 { font-size: var(--font-size-4xl); }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    button, .button {
        width: 100%;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-surface: #121212;
        --color-on-surface: #FFFBFE;
    }
    
    body {
        background-color: var(--color-surface);
        color: var(--color-on-surface);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    body {
        background-color: white;
        color: black;
    }

    nav,
    .dr-psych-booking-modal {
        display: none;
    }
}

/* ==========================================
   UI OVERHAUL — NEW COMPONENTS
   ========================================== */

/* Pill CTA Buttons */
.dr-psych-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .875rem 2rem; border-radius: var(--radius-pill);
    background: #436278; color: #fff !important;
    font-weight: 600; font-size: .9375rem; border: none; cursor: pointer;
    transition: all .25s ease; font-family: inherit; text-decoration: none;
    line-height: 1.2;
}
.dr-psych-btn-primary:hover {
    background: #304A5A; transform: translateY(-2px);
    box-shadow: var(--shadow-md); color: #fff !important;
}
.dr-psych-btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .875rem 2rem; border-radius: var(--radius-pill);
    background: transparent; color: #436278 !important;
    border: 2px solid #436278; font-weight: 600; font-size: .9375rem;
    cursor: pointer; transition: all .25s ease; font-family: inherit; text-decoration: none;
    line-height: 1.2;
}
.dr-psych-btn-outline:hover { background: #436278; color: #fff !important; }

/* Hero Badge */
.dr-psych-hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #e8f3ee; color: #376944;
    padding: .375rem 1rem; border-radius: var(--radius-pill);
    font-size: .8125rem; font-weight: 600; margin-bottom: 1.5rem;
}
.dr-psych-hero-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: #376944; flex-shrink: 0;
}

/* Hero Stats Row */
.dr-psych-hero-stats {
    display: flex; gap: 2.5rem; padding-top: 2rem;
    border-top: 1px solid #E9E8E5; margin-top: .5rem;
    flex-wrap: wrap;
}
.dr-psych-stat-num {
    font-family: 'Noto Serif', serif; font-size: 1.75rem;
    font-weight: 700; color: #436278; line-height: 1;
}
.dr-psych-stat-lbl { font-size: .8125rem; color: #42474C; margin-top: .25rem; }

/* Hero Floating Card */
.dr-psych-float-card {
    position: absolute; bottom: 2.5rem; left: -2.5rem;
    background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-float); min-width: 230px; z-index: 5;
}
.dr-psych-float-card-row { display: flex; align-items: center; gap: .875rem; margin-bottom: .875rem; }
.dr-psych-float-icon {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #e8f3ee;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dr-psych-float-label { font-size: .75rem; color: #42474C; font-weight: 500; }
.dr-psych-float-value { font-size: .9375rem; font-weight: 700; color: #1B1C1A; }
.dr-psych-slot-pill {
    display: inline-flex; align-items: center; gap: .375rem;
    background: #e8f3ee; color: #376944;
    padding: .3rem .875rem; border-radius: var(--radius-pill);
    font-size: .8125rem; font-weight: 600;
}
.dr-psych-slot-pill::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* Trust Strip */
.dr-psych-trust-strip {
    padding: 2.25rem 0; border-top: 1px solid #E9E8E5;
    border-bottom: 1px solid #E9E8E5; background: #fff;
}
.dr-psych-trust-items {
    display: flex; justify-content: center; align-items: center;
    gap: 3rem; flex-wrap: wrap;
    max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
}
.dr-psych-trust-item {
    display: flex; align-items: center; gap: .625rem;
    color: #42474C; font-size: .9375rem; font-weight: 500;
}

/* Service Card Left Accent */
.dr-psych-svc-card { position: relative; overflow: hidden; transition: all .3s ease; }
.dr-psych-svc-card::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: #376944; transform: scaleY(0); transform-origin: bottom;
    transition: transform .3s ease;
}
.dr-psych-svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.dr-psych-svc-card:hover::after { transform: scaleY(1); }

/* How It Works Section */
.dr-psych-how-section { padding: 5rem 0; background: #FAF9F6; }
.dr-psych-how-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem; position: relative; margin-top: 3.5rem;
}
.dr-psych-how-line {
    position: absolute; top: 2.5rem;
    left: calc(16.67% + 1.25rem); right: calc(16.67% + 1.25rem);
    height: 2px; background: #E9E8E5; z-index: 0;
}
.dr-psych-how-step { text-align: center; position: relative; z-index: 1; }
.dr-psych-step-num {
    width: 5rem; height: 5rem; border-radius: 50%;
    background: #436278; color: #fff;
    font-family: 'Noto Serif', serif; font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(67,98,120,.28);
}
.dr-psych-how-step h3 { font-size: 1.125rem; font-weight: 700; color: #1B1C1A; margin-bottom: .625rem; }
.dr-psych-how-step p { font-size: .875rem; color: #42474C; line-height: 1.75; font-weight: 300; max-width: 18rem; margin: 0 auto; }

/* Testimonial Star Ratings */
.dr-psych-stars { color: #F59E0B; font-size: .9375rem; letter-spacing: .06em; margin-bottom: 1rem; }

/* Booking Modal — 3-Step Progress */
.dr-psych-progress {
    padding: 1.75rem 2rem 0; display: flex; align-items: flex-start;
}
.dr-psych-prog-step {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: .5rem; position: relative;
}
.dr-psych-prog-num {
    width: 2.125rem; height: 2.125rem; border-radius: 50%;
    background: #E9E8E5; color: #42474C;
    font-size: .8125rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s; position: relative; z-index: 1;
}
.dr-psych-prog-step.active .dr-psych-prog-num,
.dr-psych-prog-step.done .dr-psych-prog-num { background: #436278; color: #fff; }
.dr-psych-prog-lbl {
    font-size: .6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: #42474C;
}
.dr-psych-prog-step.active .dr-psych-prog-lbl { color: #436278; }
.dr-psych-prog-line {
    flex: 1; height: 2px; background: #E9E8E5;
    margin: .9rem -.5rem 0; transition: background .3s;
}
.dr-psych-prog-line.done { background: #436278; }
.dr-psych-step-panel { display: none; }
.dr-psych-step-panel.active { display: block; }
.dr-psych-modal-footer {
    padding: 1.25rem 2rem 2rem; border-top: 1px solid #E9E8E5;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.dr-psych-hint { font-size: .8125rem; color: #42474C; }

/* Payment Option Cards */
.dr-psych-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.dr-psych-pay-opt {
    border: 2px solid #E9E8E5; border-radius: 1rem; padding: 1.25rem;
    cursor: pointer; transition: all .2s; text-align: center;
}
.dr-psych-pay-opt:hover,
.dr-psych-pay-opt.selected { border-color: #436278; background: rgba(67,98,120,.04); }

/* Amount Display */
.dr-psych-amount-box {
    background: #FAF9F6; border: 1px solid #E9E8E5; border-radius: .5rem;
    padding: 1rem 1.25rem; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 1.25rem;
}
.dr-psych-amount-val {
    font-size: 1.375rem; font-weight: 700; color: #436278;
    font-family: 'Noto Serif', serif;
}

/* Nav phone link */
.dr-psych-nav-phone {
    font-size: .875rem; color: #42474C; font-weight: 500;
    white-space: nowrap; text-decoration: none; transition: color .2s;
}
.dr-psych-nav-phone:hover { color: #436278; }

/* Responsive overrides */
@media (max-width: 768px) {
    .dr-psych-float-card { display: none; }
    .dr-psych-how-steps { grid-template-columns: 1fr; gap: 2rem; }
    .dr-psych-how-line { display: none; }
    .dr-psych-hero-stats { gap: 1.5rem; }
    .dr-psych-trust-items { gap: 1.5rem; }
    .dr-psych-pay-options { grid-template-columns: 1fr; }
}

/* ── Responsive fixes: tablet & mobile ───────────────────── */

/* Nav: reduce height on mobile */
@media (max-width: 768px) {
    #main-navigation { min-height: 64px !important; }
    .dr-psych-nav-inner { min-height: 64px !important; padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
}

/* Profile bar: stack to column on mobile */
@media (max-width: 768px) {
    .dr-psych-profile-row { flex-direction: column !important; align-items: flex-start !important; gap: 0.5rem !important; }
    .dr-psych-profile-name-group { flex-wrap: wrap !important; gap: 0.5rem !important; }
    .dr-psych-profile-creds { gap: 0.75rem !important; flex-wrap: wrap !important; }
}

/* Hero grid: single column on mobile */
@media (max-width: 768px) {
    .dr-psych-hero-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .dr-psych-hero-text { order: 1 !important; }
    .dr-psych-hero-img-col { order: 2 !important; padding-left: 0 !important; align-self: stretch !important; }
    .dr-psych-hero-img-wrap { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; }
}

/* Hero H1: scale down inline font-size on mobile */
@media (max-width: 768px) {
    .dr-psych-hero-text h1 { font-size: 2.25rem !important; }
}
@media (max-width: 480px) {
    .dr-psych-hero-text h1 { font-size: 1.875rem !important; }
}

/* Education: switch from horizontal scroll to vertical grid on mobile */
@media (max-width: 640px) {
    .dr-psych-video-scroll {
        display: grid !important;
        grid-template-columns: 1fr;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
    }
    .dr-psych-video-item {
        min-width: unset !important;
        flex-shrink: unset !important;
        width: 100%;
    }
}

/* Trust strip: center items on mobile */
@media (max-width: 640px) {
    .dr-psych-trust-flex { justify-content: center !important; }
}

/* ── Global overflow guard (prevents horizontal scroll) ───
   Use overflow-x: clip (not hidden) so html/body do NOT become a scroll
   container — otherwise position: sticky on the nav header stops working. */
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; height: auto; }

/* ── 480px — small phones ─────────────────────────────── */
@media (max-width: 480px) {
    /* Hero stats: stack vertically */
    .dr-psych-hero-stats { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }

    /* Trust strip items: wrap tightly */
    .dr-psych-trust-items { gap: 1rem !important; }
    .dr-psych-trust-flex  { gap: 1rem !important; flex-wrap: wrap !important; justify-content: center !important; }

    /* How-it-works steps */
    .dr-psych-how-steps { gap: 1.5rem !important; }

    /* Services carousel: 1-up on very small screens */
    .svc-card { flex: 0 0 92% !important; }

    /* Articles carousel: 1-up */
    .art-card { flex: 0 0 92% !important; }

    /* Section padding reduction */
    .svc-section, .art-section { padding: 3rem 0 !important; }
}

/* ── Booking modal: mobile overrides ──────────────────── */
@media (max-width: 640px) {
    #dr-psych-booking-modal > div {
        max-width: 95vw !important;
        padding: 1.25rem !important;
        max-height: 88vh !important;
    }
    #client_country_code { width: 110px !important; }
    .booking-modal-gender-email-grid { grid-template-columns: 1fr !important; }
    .booking-modal-payment-grid { grid-template-columns: 1fr !important; }
}

/* ── Blog carousel: mobile grid ──────────────────────── */
@media (max-width: 768px) {
    .blog-slide { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
}
@media (max-width: 480px) {
    .blog-slide { grid-template-columns: 1fr !important; }
    .blog-track  { overflow: hidden; }
}
