/* ============================================================
   PRAMUKH DENTAL — PROFESSIONAL DESIGN SYSTEM v3
   12 / 8 / 4 Column Responsive Grid Framework
   8px Spacing Scale · Stripe / Linear / Vercel Quality Bar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Hind+Vadodara:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {

    /* ── Color Palette (unchanged) ────────────────── */
    --primary:       #2563EB; /* Clinical Royal Blue */
    --primary-light: #EFF6FF;
    --primary-dark:  #1E40AF;
    --accent:        #06B6D4; /* Clean Cyan */
    --accent-glow:   rgba(6, 182, 212, 0.4);
    --surface:       #F8FAFC; /* Slate 50 */
    --surface-hover: #F1F5F9;
    --text-main:     #0F172A; /* Slate 900 */
    --text-muted:    #475569; /* Slate 600 */

    /* ── 8px Spacing Scale ────────────────────────── */
    --space-1:  0.25rem;  /*  4px */
    --space-2:  0.5rem;   /*  8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

    /* ── Grid System ──────────────────────────────── */
    --grid-gutter-desktop: 1.5rem;   /* 24px */
    --grid-gutter-tablet:  1.25rem;  /* 20px */
    --grid-gutter-mobile:  1rem;     /* 16px */

    /* ── Fluid Typography Scale (Perfect Fourth) ──── */
    --text-xs:   clamp(0.75rem,  0.71rem + 0.18vw, 0.875rem);
    --text-sm:   clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
    --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
    --text-lg:   clamp(1.125rem, 1.05rem + 0.38vw, 1.375rem);
    --text-xl:   clamp(1.25rem,  1.15rem + 0.5vw,  1.5rem);
    --text-2xl:  clamp(1.5rem,   1.35rem + 0.75vw, 2rem);
    --text-3xl:  clamp(1.875rem, 1.6rem  + 1.38vw, 2.5rem);
    --text-4xl:  clamp(2.25rem,  1.85rem + 2vw,    3.5rem);
    --text-5xl:  clamp(3rem,     2.4rem  + 3vw,    4.5rem);

    /* ── Navigation ───────────────────────────────── */
    --nav-height: 4rem; /* 64px – used for scroll-offset */
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #FFFFFF;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p { line-height: 1.65; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ============================================================
   ██████╗ ██████╗ ██╗██████╗     ███████╗██╗   ██╗███████╗
   ██╔════╝ ██╔══██╗██║██╔══██╗    ██╔════╝╚██╗ ██╔╝██╔════╝
   ██║  ███╗██████╔╝██║██║  ██║    ███████╗ ╚████╔╝ ███████╗
   ██║   ██║██╔══██╗██║██║  ██║    ╚════██║  ╚██╔╝  ╚════██║
   ╚██████╔╝██║  ██║██║██████╔╝    ███████║   ██║   ███████║
    ╚═════╝ ╚═╝  ╚═╝╚═╝╚═════╝     ╚══════╝   ╚═╝   ╚══════╝

   Professional 12 / 8 / 4 Column Layout Framework
   Breakpoints: xs 0–479 | sm 480–767 | md 768–1023 | lg 1024–1439 | xl 1440+
   ============================================================ */


/* ── 1. CONTAINER SYSTEM ───────────────────────────────────── */

/*
 * .container-elite  →  max 1280px  (standard content width)
 * .container-xl     →  max 1440px  (ultra-wide / hero sections)
 * .container-md     →  max 1024px  (readable text areas)
 *
 * Outer padding: 16px mobile → 64px desktop (fluid via clamp)
 * Content never touches viewport edges
 */

.container-elite {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 4rem);
}

.container-xl {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 5rem);
}

.container-md {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
}


/* ── 2. SECTION SPACING SYSTEM ─────────────────────────────── */

/*
 * Desktop:  80–128px  |  Tablet: 64–96px  |  Mobile: 48–72px
 * Uses clamp() for smooth cross-viewport interpolation.
 * All spacing values are multiples of the 8px base unit.
 */

.section-padding,
.section-lg {
    padding-block: clamp(2rem, 4vw, 4rem);    /* 32 → 64px */
}

.section-xl {
    padding-block: clamp(2.5rem, 5vw, 5rem);  /* 40 → 80px */
}

.section-md {
    padding-block: clamp(1.5rem, 3vw, 3rem);  /* 24 → 48px */
}

.section-sm {
    padding-block: clamp(1rem, 2vw, 2rem);    /* 16 → 32px */
}


/* ── 3. COLUMN GRID SYSTEM ─────────────────────────────────── */

/*
 * 12-col desktop  ·  8-col tablet  ·  4-col mobile
 * Gutters:  24px desktop  ·  20px tablet  ·  16px mobile
 */

.grid-system {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gutter-mobile);
}

@media (min-width: 768px) {
    .grid-system {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--grid-gutter-tablet);
    }
}

@media (min-width: 1024px) {
    .grid-system {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--grid-gutter-desktop);
    }
}


/* ── 4. LAYOUT PRIMITIVES ──────────────────────────────────── */

/*
 * High-level patterns used across every page & section.
 * All stack to single-column on mobile automatically.
 */

/* 2-column (sidebar / hero splits, 3/9 · 5/7 · etc.) */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .grid-2col {
        gap: var(--space-12);
    }
}

/* 3-column (service cards, testimonials, features) */
.grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* 4-column (stats, quick-links, icon grids) */
.grid-4col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4col {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}


/* ── 5. SECTION INTRO PATTERN ──────────────────────────────── */

/*
 * Standard centered heading + sub-copy block used to open sections.
 * Max-width constrains line length to ~65ch for readability.
 * Margin-bottom creates intentional breathing room before content.
 */

.section-intro {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-8);     /* 32px */
}

@media (min-width: 1024px) {
    .section-intro {
        margin-bottom: var(--space-10); /* 40px */
    }
}


/* ── 6. CONTENT WIDTH CONSTRAINTS ─────────────────────────── */

/* Optimal reading width (~65–80 characters) */
.prose-container { max-width: 68ch; }

/* Forms: constrained to comfortable fill width */
.form-container  { max-width: 600px; }

/* Narrow centered utility */
.content-narrow  { max-width: 720px; margin-inline: auto; }


/* ── 7. TYPOGRAPHY HIERARCHY ───────────────────────────────── */

/*
 * Fluid, mathematically consistent type scale.
 * Uses clamp() — no breakpoint hacks needed.
 * H1 hero: ~56–72px  H2 section: ~36–48px  H3: ~24–32px
 */

.heading-hero {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw + 0.75rem, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.heading-section {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.heading-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.heading-card {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.125rem, 0.5vw + 0.875rem, 1.375rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}


/* ── 8. MOBILE BOTTOM BAR OFFSET ───────────────────────────── */

/* Prevents content from hiding behind the fixed mobile CTA bar */
@media (max-width: 1023px) {
    main {
        padding-bottom: 5rem;
    }
}


/* ── 9. SCROLL ANCHORING & VIEWPORT HEROES ──────────────────── */

/*
 * scroll-padding-top: offsets anchor jumps so the target heading
 * lands below the fixed nav (not hidden behind it).
 * scroll-margin-top: same offset for scrollIntoView() calls.
 *
 * .hero-fill: applied to the first <section> on every content page.
 * Uses dvh (dynamic viewport height) — on desktop this equals
 * window.innerHeight which already excludes OS taskbar + browser
 * chrome, giving the true usable space.
 */

html {
    scroll-padding-top: var(--nav-height);
}

section {
    scroll-margin-top: var(--nav-height);
}

.hero-fill {
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* dvh-aware padding: compresses automatically on short viewports */
    padding-block: clamp(1rem, 4dvh, 4rem) !important;
}

/* Hero image: decouple from fixed aspect-ratio so it never
   forces the hero taller than the viewport. Height is clamped
   between a readable minimum and a maximum that fits any screen. */
.hero-fill .img-mask {
    aspect-ratio: auto !important;
    height: clamp(240px, calc(80dvh - var(--nav-height)), 560px);
}


/* ── 10. HEIGHT-RESPONSIVE BREAKPOINTS ──────────────────────── */

/*
 * Desktop viewport height configurations (innerHeight reference):
 *   1080p FHD + taskbar + Chrome:  ~950px  ← standard target
 *    900p + taskbar + Chrome:       ~770px  ← common laptop
 *    768p + taskbar + Chrome:       ~600px  ← older / 13" laptop
 *   Split-screen / small windows:  <580px  ← edge case
 *
 * Strategy: reduce hero padding → tighten content gaps →
 * scale down h1 → hide supplementary stats if still too tall.
 * Section padding also compresses so every section gains room.
 */

/* ── Tier 1: 900p & laptop displays (innerHeight ≤ 780px) ─── */
/* Only the hero compresses on short viewports — below-fold
   sections keep the design-system padding for consistent rhythm. */
@media (max-height: 780px) {

    /* Tighten hero content gaps (Tailwind space-y-8 = 2rem gap) */
    .hero-fill .space-y-8 > * + * { margin-top: 1.25rem !important; }
    .hero-fill .space-y-6 > * + * { margin-top: 1rem    !important; }

    /* Reduce hero stats bar top padding */
    .hero-fill .pt-10 { padding-top: 1.5rem !important; }
    .hero-fill .pt-4  { padding-top: 0.75rem !important; }

    /* Scale hero h1 down — must beat Tailwind CDN utility classes */
    .hero-fill h1 {
        font-size: clamp(1.875rem, 3.5vw + 0.5rem, 3.25rem) !important;
        line-height: 1.1 !important;
    }
}

/* ── Tier 2: 768p & tight laptop (innerHeight ≤ 650px) ────── */
@media (max-height: 650px) {

    /* Further tighten hero gaps */
    .hero-fill .space-y-8 > * + * { margin-top: 0.875rem !important; }
    .hero-fill .pt-10 { padding-top: 1rem !important; }

    .hero-fill h1 {
        font-size: clamp(1.625rem, 3vw + 0.25rem, 2.75rem) !important;
    }

    /* Collapse the social-proof stats row — it's supplementary */
    .hero-fill .border-t.pt-10,
    .hero-fill .border-t.pt-4 { display: none !important; }

    .hero-fill .img-mask {
        height: clamp(180px, calc(70dvh - var(--nav-height)), 400px);
    }
}

/* ── Tier 3: Split-screen / very small windows (≤ 520px) ──── */
@media (max-height: 520px) {
    .hero-fill {
        padding-block: 0.5rem !important;
        min-height: auto;    /* let content breathe — don't force fill */
    }

    .hero-fill h1 {
        font-size: clamp(1.375rem, 2.5vw + 0.25rem, 2.25rem) !important;
    }

    /* On very tiny height, stack hero to single-column on desktop too */
    .hero-fill .img-mask { display: none; }
}

/* ── Tall viewport cap: 1080p and above (innerHeight ≥ 850px) ─ */
/*
 * On large monitors the hero would otherwise float in the middle
 * of an 888px+ section with too much dead space above and below.
 * Cap min-height to keep content anchored and well-proportioned.
 * Generous padding fills the remaining space with breathing room.
 */
@media (min-height: 850px) {
    .hero-fill {
        min-height: min(calc(100dvh - var(--nav-height)), 820px);
        padding-block: clamp(3rem, 6dvh, 5rem) !important;
    }
}


/* ============================================================
   NAVIGATION SYSTEM
   ============================================================ */

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

a.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
}

a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

a.nav-link:hover      { color: var(--text-main); }
a.nav-link:hover::after,
a.nav-link.active::after { width: 100%; }
a.nav-link.active     { color: var(--primary); font-weight: 700; }


/* ============================================================
   BUTTON SYSTEM
   Minimum 44px height — WCAG touch-target compliant
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.2);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover::after { left: 100%; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 44px;
    background-color: #FFFFFF;
    color: var(--text-main) !important;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid #E2E8F0;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

/* WhatsApp brand-green CTA — overrides any utility colours on the same anchor.
   Uses the true logo green (#25D366) with dark green text rather than white,
   because white-on-#25D366 measures ~2:1 contrast (fails WCAG AA); dark-green
   text on the same background measures ~5.7:1. */
.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #064420 !important;
}
.btn-whatsapp:hover {
    background-color: #1DA851 !important;
    border-color: #1DA851 !important;
    color: #FFFFFF !important;
}
.btn-whatsapp i { color: #064420 !important; }
.btn-whatsapp:hover i { color: #FFFFFF !important; }


/* ============================================================
   CARD SYSTEM
   Consistent padding: 24px desktop · 20px tablet · 16px mobile
   ============================================================ */

.clinical-card {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    position: relative;
    z-index: 1;
}

.clinical-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.clinical-card:hover {
    border-color: #E2E8F0;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.clinical-card:hover::before { opacity: 1; }


/* ============================================================
   TREATMENT CARD HOVER EFFECTS
   ============================================================ */

.treatment-item {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.treatment-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-item:hover img { transform: scale(1.08); }


/* ============================================================
   ICON BOXES
   ============================================================ */

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.icon-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.clinical-card:hover .icon-box {
    color: white;
    transform: scale(1.05) rotate(-5deg);
}

.clinical-card:hover .icon-box::after { opacity: 1; }

.icon-box i { position: relative; z-index: 2; }


/* ============================================================
   IMAGE MASKS & REVEALS
   ============================================================ */

.img-mask {
    border-radius: 32px;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.img-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.img-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-mask:hover img { transform: scale(1.05); }


/* ============================================================
   ANIMATIONS & REVEALS
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

@keyframes softPulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
    70%  { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.animate-pulse-glow { animation: softPulse 2s infinite; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-track {
    animation: marqueeScroll 60s linear infinite;
}

#reviewsMarquee:hover .marquee-track,
#reviewsMarquee:focus-within .marquee-track {
    animation-play-state: paused;
}


/* ============================================================
   REDUCED MOTION
   Respect users who ask the OS to minimise animation.
   Content must never stay hidden — force everything visible.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Scroll-reveal targets: always visible, never offset */
    .reveal,
    .clinical-card,
    .treatment-item,
    .img-mask,
    .stagger-1,
    .stagger-2,
    .stagger-3 {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============================================================
   ACCESSIBILITY
   WCAG AA compliant focus indicators & touch targets
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light) !important;
}


/* ============================================================
   GUJARATI (HIND VADODARA) TYPOGRAPHY CALIBRATION
   Gujarati script requires wider line-height and no tracking
   ============================================================ */

body.lang-gu,
body.lang-gu *:not(i):not([class*="fa-"]):not(svg):not(path) {
    font-family: 'Hind Vadodara', sans-serif !important;
}

body.lang-gu h1,
body.lang-gu h2,
body.lang-gu h3,
body.lang-gu h4,
body.lang-gu h5,
body.lang-gu h6,
body.lang-gu .font-display {
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

body.lang-gu p {
    line-height: 1.8 !important;
    font-size: 1.05em !important;
}

body.lang-gu .text-sm {
    font-size: 0.95rem !important;
}

/* ============================================================
   Gallery lightbox
   ============================================================ */
.lb-zoom {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 0.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.lb-item:hover .lb-zoom,
.lb-item:focus-visible .lb-zoom { opacity: 1; transform: translateY(0); }
.lb-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.ba-expand {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 5;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}
.ba-expand:hover, .ba-expand:focus-visible { background: #fff; }
.ba-expand:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1rem);
}
.lb-overlay.is-open { display: flex; animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
    position: relative;
    margin: 0;
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    background: #0b0f17;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}
.lb-overlay.lb-swapping .lb-img { opacity: 0; }
.lb-caption {
    margin-top: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}
.lb-counter { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; letter-spacing: 0.05em; }
.lb-btn {
    position: absolute;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 640px) {
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
    .lb-close { top: 0.5rem; right: 0.5rem; }
    .lb-img { max-height: 72vh; }
}

/* ============================================================
   Hero one-time entrance (JS-gated; no-JS = fully visible)
   ============================================================ */
.js .hero-fill .hero-reveal { opacity: 0; transform: translateY(18px); }
.js .hero-fill .hero-img-reveal { opacity: 0; transform: scale(1.04); }
.hero-fill.hero-in .hero-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-fill.hero-in .hero-img-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    .lb-overlay.is-open { animation: none; }
    .lb-img, .lb-zoom { transition: none; }
    .js .hero-fill .hero-reveal,
    .js .hero-fill .hero-img-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
