/* ============================================================
   DENTAVERSE — UNIVERSAL THEME v5.0
   Universal Brand Identity System (Blue/Cyan/Sapphire)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── Design Tokens ────────────────────────────────────── */
:root {
    /* ── Primary Brand Palette (Logo-Exact) ── */
    --brand-dark: #0A2558;
    /* Deep Navy — Text & Depth */
    --brand-mid: #0066CC;
    /* Corporate Blue — Accents & Links */
    --brand-cyan: #00CCFF;
    /* Electric Cyan — Buttons & Highlights */

    /* ── Glows & Transparencies ── */
    --brand-cyan-glow: rgba(0, 204, 255, 0.22);
    --brand-mid-glow: rgba(0, 102, 204, 0.15);

    /* ── Surface Logic ── */
    --bg: #FFFFFF;
    --bg-soft: #F0F6FF;
    /* Pale Blue Tint */
    --bg-deep: #E0EAF8;
    /* Muted Surface */
    --white: #FFFFFF;

    /* ── Typography & UI ── */
    --text: #333333;
    --muted: #5E6E85;
    --border: #D8E8F8;

    /* ── Glassmorphism ── */
    --glass: rgba(255, 255, 255, 0.88);
    --glass-light: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 102, 204, 0.12);
    --glass-border-blue: rgba(0, 102, 204, 0.18);

    /* ── Elevation ── */
    --shadow-sm: 0 4px 12px rgba(10, 37, 88, 0.04);
    --shadow-md: 0 12px 32px rgba(10, 37, 88, 0.08);
    --shadow-lg: 0 24px 64px rgba(10, 37, 88, 0.12);
    --shadow-cyan: 0 8px 24px rgba(0, 204, 255, 0.25);
    --shadow-blue: 0 10px 26px rgba(0, 102, 204, 0.28);
    --shadow-xl: 0 20px 46px rgba(10, 37, 88, 0.2);

    /* ── Animation & Radii ── */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
}

/* ── Global Reset ───────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
}

body.ready {
    opacity: 1;
    transition: opacity 0.6s var(--ease);
    animation: pageIn 0.6s var(--ease) both;
}

body.fade-out {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.25;
}

p {
    color: var(--muted);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── Unified Components ──────────────────────────────────── */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on all buttons */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.55s var(--ease);
}
.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-mid), var(--brand-cyan));
    color: var(--white);
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.38);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--brand-dark);
}

.btn-outline:hover {
    border-color: var(--brand-mid);
    color: white;
    background: var(--brand-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-soft);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-loader {
    text-align: center;
}

.dv-loader-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    animation: dvPulse 3s infinite ease-in-out;
}

.dv-loader-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--brand-dark);
}

.dv-loader-brand em {
    font-style: italic;
    color: var(--brand-cyan);
}

@keyframes dvPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ── Universal Header ────────────────────────────────────── */
.dv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10000;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease);
    animation: navSlideDown 0.5s var(--ease) both;
    pointer-events: auto;
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.dv-header.scrolled {
    height: 64px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.dv-nav {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1rem;
}

.dv-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.dv-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--brand-mid-glow);
}

.dv-logo em {
    color: var(--brand-cyan);
    font-style: italic;
}

.dv-nav-links {
    display: flex;
    gap: 2rem;
    justify-self: center;
}

.dv-nav-links a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.25s var(--ease);
    position: relative;
    padding-bottom: 2px;
}

/* Animated underline on nav links */
.dv-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-mid), var(--brand-cyan));
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

.dv-nav-links a:hover::after,
.dv-nav-links a.active::after {
    width: 100%;
}

.dv-nav-links a:hover,
.dv-nav-links a.active {
    color: var(--brand-cyan);
}

.dv-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2002;
    justify-self: end;
    pointer-events: auto;
}

.dv-nav-right > * {
    pointer-events: auto;
}

.dv-btn-book {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-mid));
    color: var(--white);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-cyan);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.dv-btn-book::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease);
}
.dv-btn-book:hover::after { transform: translateX(100%); }

.dv-btn-book:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 204, 255, 0.35);
}

.dv-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(0, 204, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 99999;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 204, 255, 0.3);
}

.dv-hamburger:hover {
    background: rgba(0, 204, 255, 0.1);
    border-color: rgba(0, 102, 204, 0.4);
}

.dv-hamburger:active {
    background: rgba(0, 204, 255, 0.2);
    border-radius: 8px;
    transform: scale(0.95);
}

.dv-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.25s;
    transform-origin: center;
    pointer-events: none;
    display: block;
}

/* Hamburger → X morph */
.dv-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dv-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dv-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dv-mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s var(--ease), opacity 0.32s var(--ease);
    border-bottom: 1px solid var(--border);
    z-index: 1999;
    box-shadow: 0 16px 40px rgba(10,37,88,0.10);
}

.dv-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Stagger each mobile menu link */
.dv-mobile-menu a {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s;
}
.dv-mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
}
.dv-mobile-menu.open a:nth-child(1) { transition-delay: 0.04s; }
.dv-mobile-menu.open a:nth-child(2) { transition-delay: 0.08s; }
.dv-mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.dv-mobile-menu.open a:nth-child(4) { transition-delay: 0.16s; }
.dv-mobile-menu.open a:nth-child(5) { transition-delay: 0.20s; }
.dv-mobile-menu.open a:nth-child(6) { transition-delay: 0.24s; }

@media (max-width: 991px) {
    .dv-nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .dv-nav-links {
        display: none;
    }

    .dv-hamburger {
        display: flex;
    }
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--brand-dark);
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.75;
}

.section-header {
    text-align: center;
}

.divider-gold {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-mid), var(--brand-cyan));
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* Page hero (inner pages) */
.page-hero {
    padding: calc(var(--nav-h, 64px) + 3rem) 0 3rem;
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 204, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero>* {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.12;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--brand-cyan);
}

.page-hero p {
    max-width: 540px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ── Glassmorphism cards ──────────────────────────────── */
.glass-card {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.glass-card-gold {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-blue);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 102, 204, 0.05);
}

/* ── Reveal animations (scroll-triggered) ────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Reverse exit — subtle fade when scrolling back up */
.reveal.exit {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

/* Stagger helpers — add these to siblings for cascade effect */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Card / element shimmer on hover */
.glass-card,
.glass-card-gold {
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.glass-card::before,
.glass-card-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.6s var(--ease);
    pointer-events: none;
    z-index: 1;
}
.glass-card:hover::before,
.glass-card-gold:hover::before { left: 150%; }
.glass-card:hover,
.glass-card-gold:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
    box-shadow: var(--shadow-lg);
}

/* ── Universal 3D Float Animation ────────────────────── */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-6px) rotateX(1.5deg); }
}
@keyframes shimmerPulse {
    0% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.6; transform: scale(1.05); }
    100% { opacity: 0.3; transform: scale(0.95); }
}

/* ── Blog Hero Fix ── */
.blog-hero {
    padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
    text-align: center;
    background: var(--bg-soft);
}

/* ── Cookie Consent (Bottom Popup) ── */
.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100vw - 32px));
    background: rgba(10, 37, 88, 0.98);
    color: #fff;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    z-index: 10000;
    display: grid;
    gap: 14px;
    transform: translateY(22px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
    box-shadow: 0 14px 38px rgba(6, 20, 46, 0.45);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent.fade-out {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.cookie-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
}

.cookie-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cb-deny {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
}

.cb-deny:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.cb-manage {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.22);
}

.cb-manage:hover {
    background: rgba(255,255,255,0.16);
}

.cb-accept {
    background: #0066CC;
    color: white;
}

.cb-accept:hover {
    background: #00CCFF;
    color: #0A2558;
}

@media (max-width: 768px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 16px 14px;
    }
    .cookie-text { font-size: 12px; }
    .cookie-btns { justify-content: stretch; }
    .cookie-btn { flex: 1; min-height: 40px; }
}

.reveal-left {
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: transform, opacity;
}

.reveal-left.active {
    opacity: 1;
    transform: none;
}
.reveal-left.exit {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal-right {
    opacity: 0;
    transform: translateX(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: transform, opacity;
}

.reveal-right.active {
    opacity: 1;
    transform: none;
}
.reveal-right.exit {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: transform, opacity;
}

.reveal-scale.active {
    opacity: 1;
    transform: none;
}
.reveal-scale.exit {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

/* ── Reduced Motion Preference ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Universal Footer ─────────────────────────────────── */
.dv-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4.5rem 0 2rem;
}

.dv-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media(min-width:561px) {
    .dv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media(min-width:1001px) {
    .dv-footer-grid {
        grid-template-columns: 2.2fr 1fr 1fr 1fr;
    }
}

.dv-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dv-footer-logo em {
    font-style: italic;
    color: var(--brand-cyan);
}

.dv-footer-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.dv-footer-about p {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.42);
    max-width: 270px;
    margin-bottom: 1.5rem;
}

.dv-footer-social {
    display: flex;
    gap: 0.6rem;
}

.dv-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.dv-footer-social a:hover {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: white;
}

.dv-footer-col h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 1.2rem;
}

.dv-footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.65rem;
    transition: color 0.22s;
}

.dv-footer-col a:hover {
    color: var(--brand-cyan);
}

.dv-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.dv-footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
}

@media(min-width:561px) {
    .dv-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}



/* ── Text utilities ───────────────────────────────────── */
.text-gold {
    color: var(--brand-cyan);
}

.text-muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand-mid), var(--brand-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Legacy: page-main offset ────────────────────────── */
.page-main {
    padding-top: 0;
}

/* ── Misc ─────────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
    display: none !important;
}

.bottom-nav {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   MOBILE-FIRST — prevents horizontal scroll on all pages
   ══════════════════════════════════════════════════════ */

html, body { max-width: 100%; }
body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
* { min-width: 0; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 48px);
    width: 100%;
}

/* ── Touch targets ── */
button, a { -webkit-tap-highlight-color: transparent; }

/* ── Loader bar ── */
.dv-loader-bar {
    width: 160px; height: 2px;
    background: var(--bg-deep); border-radius: 2px;
    margin: 1.2rem auto 0; overflow: hidden;
}
.dv-loader-bar::after {
    content: ''; display: block; height: 100%; width: 40%;
    background: linear-gradient(90deg, var(--brand-mid), var(--brand-cyan));
    border-radius: 2px; animation: loaderSweep 2.5s ease-in-out infinite;
}
@keyframes loaderSweep { 0% { transform: translateX(-150%); } 100% { transform: translateX(400%); } }

/* ── Section eyebrow ── */
.section-eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-mid); margin-bottom: 1rem;
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
    :root { --nav-h: 60px; }

    /* Header - Fixed with proper spacing */
    .dv-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
    }

    /* Add padding to body to prevent overlap */
    body:not(.no-header-padding) {
        padding-top: var(--nav-h);
    }

    .dv-mobile-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Typography */
    .section-title  { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    h1, h2, h3, h4, h5, p, a, span, li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Buttons */
    .btn { width: 100%; padding: 1rem 1.2rem; font-size: 0.9rem; min-height: 52px; justify-content: center; }
    .dv-btn-book { padding: 0.55rem 1rem; font-size: 0.75rem; }
    .dv-nav-right { gap: 0.5rem; }
    .dv-nav-right .dv-btn-book { display: none; }

    /* Logo */
    .dv-logo { font-size: 1rem; gap: 8px; }
    .dv-logo-img { width: 30px; height: 30px; }

    /* Mobile menu */
    .dv-mobile-menu { padding: 0.75rem 1.25rem 1.25rem; gap: 0; }
    .dv-mobile-menu a {
        font-size: 1rem; font-weight: 600;
        padding: 0.85rem 0; border-bottom: 1px solid var(--bg-deep);
        display: flex; align-items: center; min-height: 48px;
        /* keep animation-compatible props */
        color: var(--brand-dark);
    }
    .dv-mobile-menu a:last-child { border-bottom: none; }
    .dv-mobile-cta {
        background: linear-gradient(135deg, var(--brand-mid), var(--brand-cyan)) !important;
        color: white !important; border-radius: 12px !important;
        padding: 0.9rem 1rem !important; margin-top: 0.75rem;
        justify-content: center; border-bottom: none !important;
    }

    /* Sections */
    section:not([class*="hero"]) { padding: 3.5rem 0 !important; }
    .sec    { padding: 3.5rem 0 !important; }

    /* All multi-col grids → single column */
    .grid-2, .mv-grid, .steps-wrapper, .science-grid, .story-grid,
    .features-grid, .pricing-grid, #panel-monthly, #panel-annual,
    .values-grid, .why-grid, .about-strip-grid, .faq-grid,
    .blog-grid, .featured-card, .segments-grid, .dv-footer-grid,
    .cg { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

    /* Team — 2 cols on mobile */
    .team-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }

    /* Hero */
    .hero-container { flex-direction: column !important; text-align: center; gap: 2rem !important; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-vr-visual { max-width: 260px !important; margin: 0 auto; }
    .hero-vr-visual img { width: 100% !important; margin-right: 0 !important; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-float-card { display: none !important; }

    /* Testimonials */
    .testi-panel.active { flex-direction: column; }
    .testi-card { max-width: 100% !important; min-width: 0 !important; width: 100% !important; }

    /* CTA button groups */
    .cta-btns, .about-cta-btns, .final-cta-btns, .urgency-btns,
    .hero-stats { flex-direction: column; align-items: stretch; }

    /* Hero stats */
    .hero-stats { flex-direction: column; border-radius: 16px; }
    .hero-stat { border-right: none !important; border-bottom: 1px solid var(--bg-deep); }
    .hero-stat:last-child { border-bottom: none; }

    /* Footer - Better mobile layout */
    .dv-footer {
        padding: 3rem 1rem 2rem;
        background: #060f22;
    }

    .dv-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .dv-footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dv-footer-logo {
        justify-content: center;
        font-size: 1.3rem;
    }

    .dv-footer-about p {
        text-align: center;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.6);
    }

    .dv-footer-social {
        justify-content: center;
    }

    .dv-footer-col {
        text-align: center;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dv-footer-col:first-of-type {
        border-top: none;
    }

    .dv-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Trust / proof */
    .trust-row { gap: 0.6rem; }
    .trust-badge { font-size: 0.72rem; padding: 6px 10px; }
    .proof-bar-inner { gap: 1rem; }

    /* Pricing */
    .price-card.featured, .pc.featured { transform: none !important; }
    .plan-tabs { gap: 0.4rem; }
    .plan-tab { padding: 0.5rem 0.9rem; font-size: 0.7rem; }

    /* Timeline */
    .timeline::before { left: 20px !important; transform: none !important; }
    .tl-item { grid-template-columns: 50px 1fr !important; }
    .tl-empty { display: none !important; }

    /* News form */
    .news-form { flex-direction: column; }
    .news-input { width: 100%; min-width: 0; }

    /* Footer */
    .dv-footer { padding-top: 3rem; }
    .dv-footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Final CTA box */
    .final-cta-box { padding: 3rem 1.5rem !important; border-radius: 20px !important; }
    .phi-banner { padding: 3rem 1.5rem !important; margin: 1rem 0 3rem !important; }
}

/* ── Tablet (768–991px) ── */
@media (min-width: 768px) and (max-width: 991px) {
    :root { --nav-h: 64px; }
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .team-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .dv-footer-grid { grid-template-columns: 1fr 1fr !important; }
    #panel-monthly { grid-template-columns: repeat(2, 1fr) !important; }
    .price-card.featured, .pc.featured { transform: none !important; }
}