/* =====================================================
   NIRAKARA YOGA SHALA — Design System Layer
   theme.css

   Loaded after styles.css + responsive.css. Refines the
   visual system (layout width, spacing rhythm, type scale,
   header, footer, cards, buttons) without touching markup
   hooks used by page scripts.

   Specificity notes: page styles are scoped as
   `.scope-<page> .x`. Rules here use `body[class*="scope-"]`,
   `body.scope-index` or element IDs (#navbar, #siteFooter)
   so they win cleanly without !important.
   ===================================================== */

/* ===== TOKENS ===== */
:root,
body[class*="scope-"] {
    --container: 1200px;
    --container-wide: 1280px;
    --gutter: 20px;
    --section-y: clamp(56px, 7vw, 96px);

    --nav-row: 72px;
    --topbar-h: 40px;
    /* Total fixed header height — heroes offset by this */
    --nav-height: calc(var(--nav-row) + var(--topbar-h));

    --text-light: #5b6f95;
    --text-muted: #7484a6;
    --surface: #ffffff;
    --surface-alt: #f6f8fd;
    --line: #e3e9f5;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(10, 31, 92, 0.06), 0 2px 8px rgba(10, 31, 92, 0.04);
    --shadow: 0 6px 24px rgba(10, 31, 92, 0.08);
    --shadow-lg: 0 18px 48px rgba(10, 31, 92, 0.14);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
    :root,
    body[class*="scope-"] {
        --gutter: 32px;
    }
}

@media (max-width: 1180px) {
    :root,
    body[class*="scope-"] {
        --topbar-h: 0px;
        --nav-row: 68px;
    }
}

/* ===== BASE ===== */
body[class*="scope-"] {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--blue-pale);
    color: var(--blue-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

/* ===== CONTAINER ===== */
body[class*="scope-"] .container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
}

body.scope-events .events-grid,
body.scope-testimonials .stats-grid,
body.scope-testimonials .testimonials-grid,
body.scope-gallery .tabs-container {
    max-width: calc(var(--container) + 40px);
}

/* ===== CUSTOM CURSOR — subtle, mouse devices only ===== */
.cursor-dot {
    width: 6px;
    height: 6px;
    opacity: 0.85;
}

.cursor-ring {
    border-width: 1.5px;
    border-color: rgba(37, 99, 235, 0.35);
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* =====================================================
   HEADER
   ===================================================== */
#navbar {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 6px 24px rgba(10, 31, 92, 0.08);
}

/* --- Top info bar --- */
#navbar .site-topbar {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    height: var(--topbar-h);
    overflow: hidden;
    transition: height 0.3s var(--ease), opacity 0.3s ease;
}

#navbar.scrolled .site-topbar {
    height: 0;
    opacity: 0;
}

#navbar .site-topbar-inner {
    width: min(var(--container-wide), calc(100% - (var(--gutter) * 2)));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#navbar .site-topbar-info {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

#navbar .site-topbar-info a,
#navbar .site-topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

#navbar .site-topbar-info a:hover {
    color: #fff;
}

#navbar .site-topbar-info i {
    color: var(--gold-light);
    font-size: 12px;
}

#navbar .site-topbar-socials {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

#navbar .site-topbar-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

#navbar .site-topbar-socials a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
    #navbar .site-topbar {
        display: none;
    }
}

/* --- Main row --- */
#navbar .nav-inner {
    width: min(var(--container-wide), calc(100% - (var(--gutter) * 2)));
    height: var(--nav-row);
    gap: 24px;
}

#navbar .nav-logo {
    gap: 12px;
}

#navbar .nav-logo-mark {
    width: 46px;
    height: 46px;
}

#navbar .nav-logo-text .brand {
    font-size: 18px;
    letter-spacing: 2.5px;
}

#navbar .nav-logo-text .tagline {
    font-size: 10.5px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 600;
    margin-top: 4px;
}

#navbar .nav-links {
    gap: 2px;
}

#navbar .nav-links > li > a {
    position: relative;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    color: var(--text-mid);
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
}

#navbar .nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-bright);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease);
}

#navbar .nav-links > li > a:hover,
#navbar .nav-links > li.has-dropdown:hover > a {
    color: var(--blue-deep);
    background: transparent;
}

#navbar .nav-links > li > a.active {
    color: var(--blue-bright);
    background: transparent;
    font-weight: 600;
}

#navbar .nav-links > li > a:hover::after,
#navbar .nav-links > li > a.active::after {
    transform: scaleX(1);
}

#navbar .nav-links > li > a .chevron {
    width: 7px;
    height: 7px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    margin-left: 2px;
}

/* --- Mega dropdown --- */
#navbar .dropdown-mega {
    top: calc(100% + 10px);
    width: 640px;
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

#navbar .dropdown-header {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    border-bottom-color: var(--line);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

#navbar .dropdown-grid {
    gap: 4px;
}

#navbar .dropdown-item {
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
}

#navbar .dropdown-item:hover {
    background: var(--surface-alt);
    border-color: transparent;
    transform: none;
}

#navbar .dropdown-item-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: var(--blue-bright);
    background: var(--blue-ultra);
    border: none;
}

#navbar .dropdown-item:hover .dropdown-item-icon {
    color: #fff;
    background: var(--blue-bright);
    transform: none;
}

#navbar .dropdown-item-text strong {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

#navbar .dropdown-item-text span {
    font-size: 13px;
    color: var(--text-muted);
}

#navbar .dropdown-footer {
    border-top-color: var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

#navbar .dropdown-footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

#navbar .dropdown-footer-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 600;
}

/* --- CTA + hamburger --- */
#navbar .nav-cta-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

#navbar .nav-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--blue-deep);
    box-shadow: 0 4px 14px rgba(10, 31, 92, 0.18);
}

#navbar .nav-cta:hover {
    background: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

#navbar .nav-hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    gap: 4px;
}

#navbar .nav-hamburger span {
    width: 20px;
}

#navbar .nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#navbar .nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Nine links need more room than 1024px offers — switch earlier */
@media (max-width: 1180px) {
    #navbar .nav-links {
        display: none;
    }

    #navbar .nav-hamburger {
        display: flex;
    }

    body[class*="scope-"] #mobileOverlay {
        display: block;
    }
}

/* --- Mobile drawer --- */
/* The overlay stays transparent to taps until the drawer is open */
#mobileOverlay {
    pointer-events: none;
}

#mobileMenu.open + #mobileOverlay {
    pointer-events: auto;
}

#mobileMenu {
    width: min(380px, 88vw);
    box-shadow: -24px 0 60px rgba(10, 31, 92, 0.18);
}

#mobileMenu .mobile-menu-header {
    padding: 16px 20px;
    border-bottom-color: var(--line);
}

#mobileMenu .mobile-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 16px;
}

#mobileMenu .mobile-menu-body {
    padding: 10px 12px;
}

#mobileMenu .mob-nav-link,
#mobileMenu .mob-nav-link-plain {
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--text-dark);
}

#mobileMenu .mob-nav-link:hover,
#mobileMenu .mob-nav-link-plain:hover,
#mobileMenu .mob-nav-link.open {
    background: var(--surface-alt);
    color: var(--blue-bright);
}

#mobileMenu .mob-dropdown {
    background: transparent;
    border: none;
    margin: 2px 0 6px;
}

#mobileMenu .mob-dropdown-label {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    padding: 10px 14px 6px;
}

#mobileMenu .mob-dropdown-item {
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
}

#mobileMenu .mob-dropdown-item:hover {
    background: var(--surface-alt);
}

#mobileMenu .mob-dropdown-item .mob-item-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border: none;
    background: var(--blue-ultra);
    color: var(--blue-bright);
}

#mobileMenu .mob-dropdown-item .mob-item-text strong {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0;
}

#mobileMenu .mob-dropdown-item .mob-item-text span {
    font-size: 12.5px;
    color: var(--text-muted);
}

#mobileMenu .mob-dropdown-footer {
    border-top: none;
    padding: 8px 14px 4px;
}

#mobileMenu .mob-dropdown-footer a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

#mobileMenu .mobile-menu-footer {
    padding: 16px 20px 20px;
    border-top-color: var(--line);
    background: var(--surface-alt);
}

#mobileMenu .mobile-cta-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 999px;
    padding: 14px;
    background: var(--blue-deep);
    box-shadow: none;
}

#mobileMenu .mobile-cta-btn:hover {
    background: var(--blue-bright);
}

#mobileMenu .mobile-contact-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
}

#mobileMenu .mobile-contact-btn .fa-whatsapp {
    color: #25d366;
    font-size: 16px;
}

/* =====================================================
   FLOATING ACTIONS
   ===================================================== */
.call-float,
.whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 24px;
    animation: none;
    box-shadow: 0 8px 24px rgba(10, 31, 92, 0.22);
}

.call-float {
    left: 24px;
    background: var(--blue-deep);
}

.whatsapp-float {
    right: 24px;
    background: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.call-float svg,
.whatsapp-float svg {
    width: 24px;
    height: 24px;
}

.call-float:hover,
.whatsapp-float:hover {
    transform: translateY(-3px) !important;
}

@media (max-width: 640px) {
    .call-float,
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
    }

    .call-float { left: 16px; }
    .whatsapp-float { right: 16px; }
}

/* =====================================================
   SECTION HEADINGS & TYPE SCALE
   ===================================================== */
body[class*="scope-"] .section-header {
    max-width: 720px;
    margin: 0 auto 52px;
}

body[class*="scope-"] .section-eyebrow {
    font-size: 12.5px;
    letter-spacing: 3.5px;
    font-weight: 600;
    gap: 12px;
}

body[class*="scope-"] .section-eyebrow::before,
body[class*="scope-"] .section-eyebrow::after {
    width: 28px;
}

body[class*="scope-"] .section-title {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

body[class*="scope-"] .section-divider {
    width: 44px;
    height: 3px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

body[class*="scope-"] .section-desc {
    font-size: 17px;
    line-height: 1.75;
    max-width: 600px;
    color: var(--text-light);
}

body[class*="scope-"] .service-band-heading {
    margin-bottom: 48px;
}

body[class*="scope-"] .service-band-heading h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

/* =====================================================
   SECTION RHYTHM — one consistent vertical spacing
   ===================================================== */
body.scope-index #about,
body.scope-index #classes,
body.scope-index #benefits,
body.scope-index #gallery,
body.scope-index #testimonials,
body.scope-index #contact,
body.scope-index .surya-section,
body[class*="scope-"] .service-detail-band,
body[class*="scope-"] .service-faq,
body[class*="scope-"] .faq-section,
body[class*="scope-"] .teachers-section,
body[class*="scope-"] .schedule-section,
body[class*="scope-"] .cta-section,
body[class*="scope-"] .course-section,
body[class*="scope-"] .curriculum-section,
body[class*="scope-"] .workshop-section,
body[class*="scope-"] .why-join,
body[class*="scope-"] .wellness-benefits,
body[class*="scope-"] .ttc-testimonials,
body[class*="scope-"] .testimonials-main,
body[class*="scope-"] .story-section,
body[class*="scope-"] .mission-section,
body[class*="scope-"] .philosophy-section,
body[class*="scope-"] .skills-showcase,
body[class*="scope-"] .mediums-showcase,
body[class*="scope-"] .benefits-section,
body[class*="scope-"] .art-benefits,
body[class*="scope-"] .related-section,
body[class*="scope-"] .openings,
body[class*="scope-"] .consult-section,
body[class*="scope-"] .contact-page-section,
body[class*="scope-"] .gallery-main,
body[class*="scope-"] .events-main,
body[class*="scope-"] .blog-grid-section,
body[class*="scope-"] .suryan-interactive,
body[class*="scope-"] .suryan-grid-section,
body[class*="scope-"] .suryan-philosophy,
body[class*="scope-"] .suryan-guidelines {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

/* --- Home page: compact rhythm (~48px each side of a section boundary) --- */
body.scope-index {
    --section-y: clamp(28px, 3.4vw, 48px);
}

/* The wave under the hero already provides breathing room */
body.scope-index #about {
    padding-top: 12px;
}

/* No stray margins at the end of a section adding to the gap */
body.scope-index #about .container > :last-child,
body.scope-index #classes .container > :last-child,
body.scope-index #benefits .container > :last-child,
body.scope-index #gallery .container > :last-child,
body.scope-index .surya-section .container > :last-child,
body.scope-index #testimonials .container > :last-child,
body.scope-index #contact .container > :last-child {
    margin-bottom: 0;
}

/* Heading → content spacing, tightened to match */
body.scope-index .section-header {
    margin-bottom: clamp(28px, 3vw, 40px);
}

body.scope-index .surya-header-custom {
    margin-bottom: clamp(24px, 2.6vw, 32px);
}

body.scope-index .section-mini-title {
    margin-bottom: 20px;
}

body.scope-index #gallery .reveal[style*="margin-top"],
body.scope-index #testimonials .reveal[style*="margin-top"] {
    margin-top: 32px !important;
}

body.scope-index .wave-divider svg {
    height: 48px;
}

/* Soft alternating surfaces on the home page */
body.scope-index #classes,
body.scope-index #testimonials {
    background: var(--surface-alt);
}

/* =====================================================
   HERO — HOME
   ===================================================== */
body.scope-index #home {
    min-height: clamp(600px, 92vh, 880px);
    background: var(--blue-deep);
}

/* Show the banner photography properly, under a legible gradient */
body.scope-index .hero-img-overlay,
body.scope-index .hero-img-overlay.hero-slide {
    width: 100%;
    left: 0;
    right: 0;
    -webkit-mask-image: none;
    mask-image: none;
    background-position: center;
}

body.scope-index .hero-img-overlay.active,
body.scope-index .hero-img-overlay.hero-slide.active {
    opacity: 1;
}

body.scope-index .hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 23, 66, 0.94) 0%, rgba(10, 31, 92, 0.82) 45%, rgba(10, 31, 92, 0.55) 100%),
        linear-gradient(0deg, rgba(8, 23, 66, 0.55) 0%, rgba(8, 23, 66, 0) 40%);
    pointer-events: none;
}

body.scope-index .hero-geo,
body.scope-index .hero-grid {
    z-index: 1;
    opacity: 0.5;
}

body.scope-index #home > svg {
    z-index: 1;
    opacity: 0.12;
}

body.scope-index .hero-content {
    z-index: 2;
    max-width: none;
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
}

body.scope-index .hero-badge {
    padding: 7px 16px;
    margin-bottom: 24px;
}

body.scope-index .hero-badge p {
    font-size: 12.5px;
    letter-spacing: 2px;
    font-weight: 500;
}

body.scope-index .hero-title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

body.scope-index .hero-subtitle {
    font-size: clamp(18px, 1.6vw, 21px);
    color: var(--gold-light);
    margin-bottom: 14px;
}

body.scope-index .hero-desc {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin-bottom: 34px;
}

body.scope-index .hero-stat {
    padding: 22px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

body.scope-index .hero-stat .num {
    font-size: 36px;
}

body.scope-index .hero-stat .label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.62);
}

body.scope-index .hero-trust {
    border-radius: var(--radius);
    padding: 18px 20px;
}

body.scope-index .hero-trust-icon {
    font-size: 28px;
}

body.scope-index .hero-trust-text strong {
    font-size: 15px;
}

body.scope-index .hero-trust-text span {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.65);
}

body.scope-index .hero-scroll {
    bottom: 24px;
}

body.scope-index .hero-scroll span {
    font-size: 11px;
}

body.scope-index .hero-scroll .arrow {
    width: 18px;
    height: 18px;
}

@media (min-width: 1025px) {
    body.scope-index .hero-content {
        padding: calc(var(--nav-height) + 40px) 0 96px;
        gap: 64px;
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* =====================================================
   HERO — INNER PAGES (compact, consistent)
   ===================================================== */
body[class*="scope-"] .services-page-hero,
body[class*="scope-"] .about-hero,
body[class*="scope-"] .gallery-hero,
body[class*="scope-"] .events-hero,
body[class*="scope-"] .testimonials-hero,
body[class*="scope-"] .suryan-hero {
    min-height: 0;
    padding: calc(var(--nav-height) + clamp(48px, 6vw, 72px)) 0 clamp(56px, 6vw, 80px);
}

body[class*="scope-"] .blog-hero,
body[class*="scope-"] .career-hero,
body[class*="scope-"] .contact-hero {
    min-height: clamp(400px, 56vh, 560px);
    padding-top: calc(var(--nav-height) + clamp(48px, 6vw, 72px));
    padding-bottom: clamp(56px, 6vw, 80px);
}

body.scope-blog-details .blog-hero {
    min-height: 0;
    padding: calc(var(--nav-height) + 48px) 0 48px;
}

body.scope-course-details .course-hero {
    min-height: clamp(520px, 74vh, 760px);
    padding-top: calc(var(--nav-height) + 56px);
}

body[class*="scope-"] .services-page-hero h1,
body[class*="scope-"] .gallery-hero h1,
body[class*="scope-"] .events-hero h1,
body[class*="scope-"] .testimonials-hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.4px;
}

body[class*="scope-"] .about-hero h1 {
    font-size: clamp(32px, 4.2vw, 52px);
}

body[class*="scope-"] .services-page-hero > .container > p,
body[class*="scope-"] .services-page-hero p,
body[class*="scope-"] .about-hero p,
body[class*="scope-"] .gallery-hero p,
body[class*="scope-"] .events-hero p,
body[class*="scope-"] .testimonials-hero p {
    font-size: 17.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

/* =====================================================
   BUTTONS — one family, pill shaped
   ===================================================== */
body[class*="scope-"] .btn-primary,
body[class*="scope-"] .btn-secondary-light,
body[class*="scope-"] .btn-blue,
body[class*="scope-"] .form-submit {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    border-radius: 999px;
}

body[class*="scope-"] .btn-primary {
    padding: 14px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body[class*="scope-"] .btn-primary:hover {
    transform: translateY(-2px);
}

body[class*="scope-"] .btn-secondary-light {
    padding: 13px 28px;
    border-width: 1.5px;
}

body[class*="scope-"] .btn-secondary-light:hover {
    transform: translateY(-2px);
}

body[class*="scope-"] .btn-blue {
    padding: 13px 28px;
    background: var(--blue-deep);
    box-shadow: 0 6px 18px rgba(10, 31, 92, 0.18);
}

body[class*="scope-"] .btn-blue:hover {
    background: var(--blue-bright);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

body[class*="scope-"] .service-label {
    width: fit-content;
}

body[class*="scope-"] .btn-primary.sm {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    letter-spacing: 0.2px;
}

/* =====================================================
   CARDS — unified radius, borders and elevation
   ===================================================== */
body[class*="scope-"] .service-detail-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body[class*="scope-"] .service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

body[class*="scope-"] .service-detail-card img {
    height: 210px;
}

body[class*="scope-"] .service-detail-card > div {
    padding: 24px 24px 28px;
}

body[class*="scope-"] .service-detail-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 10px 0 10px;
}

body[class*="scope-"] .service-detail-card p {
    font-size: 15.5px;
    line-height: 1.7;
}

body[class*="scope-"] .service-image-grid {
    gap: 24px;
}

body[class*="scope-"] .faq-list details {
    border-radius: var(--radius);
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

body[class*="scope-"] .faq-list details[open] {
    box-shadow: var(--shadow);
}

/* --- Home: courses --- */
body.scope-index .courses-grid {
    gap: 24px;
}

body.scope-index .course-card {
    border-radius: var(--radius-lg);
    height: 320px;
    box-shadow: var(--shadow);
}

body.scope-index .course-card:hover {
    box-shadow: var(--shadow-lg);
}

/* --- Home: about --- */
body.scope-index .about-img-main {
    border-radius: var(--radius-lg);
    height: 500px;
    box-shadow: var(--shadow-lg);
}

body.scope-index .about-img-wrap::before {
    border-radius: calc(var(--radius-lg) + 4px);
    border-color: rgba(201, 148, 58, 0.35);
}

@media (min-width: 1025px) {
    body.scope-index .about-grid {
        gap: 72px;
    }
}

/* --- Home: benefits & gallery --- */
body.scope-index .benefits-image-grid {
    margin-top: 0;
    gap: 20px;
}

body.scope-index .benefit-tile {
    border-radius: var(--radius-lg);
}

body.scope-index .gallery-grid {
    gap: 14px;
}

body.scope-index .gallery-item {
    border-radius: var(--radius);
}

/* --- Testimonials --- */
body[class*="scope-"] .testimonial-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body[class*="scope-"] .testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

body.scope-index .testimonial-card {
    padding: 36px 32px;
}

body[class*="scope-"] .testimonial-text {
    font-size: 16px;
    line-height: 1.75;
}

/* --- Home: contact --- */
@media (min-width: 1025px) {
    body.scope-index .contact-wrap {
        gap: 64px;
    }
}

body.scope-index .contact-info h3 {
    font-size: clamp(26px, 2.6vw, 32px);
}

body.scope-index .contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow);
}

/* --- Forms --- */
body[class*="scope-"] .form-group input,
body[class*="scope-"] .form-group select,
body[class*="scope-"] .form-group textarea {
    border-radius: var(--radius-sm);
    border: 1px solid #d5deef;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body[class*="scope-"] .form-group input:focus,
body[class*="scope-"] .form-group select:focus,
body[class*="scope-"] .form-group textarea:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

body[class*="scope-"] .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.2px;
}

body[class*="scope-"] .form-submit {
    background: var(--blue-deep);
    padding: 15px 28px;
    box-shadow: 0 8px 20px rgba(10, 31, 92, 0.18);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

body[class*="scope-"] .form-submit:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
}

/* =====================================================
   FOOTER
   ===================================================== */
#siteFooter {
    background: var(--footer-bg);
    border-top: none;
    padding: clamp(48px, 6vw, 72px) 0 28px;
    color: rgba(255, 255, 255, 0.68);
}

/* The CTA card now marks the top edge, so the accent line is not needed */
#siteFooter::before {
    display: none;
}

/* =====================================================
   PRE-FOOTER CTA — standalone section that straddles
   the content / footer boundary
   ===================================================== */
:root {
    --footer-bg: #081742;
}

body[class*="scope-"] .footer-cta-section {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 3vw, 40px) 0 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 50%, var(--footer-bg) 50%, var(--footer-bg) 100%);
}

.footer-cta-section .footer-cta {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
    padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 184, 75, 0.25) 0%, transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.25) 0%, transparent 45%),
        linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-mid) 45%, var(--blue-bright) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(10, 31, 92, 0.28);
    overflow: hidden;
    isolation: isolate;
}

/* Faint concentric rings for depth */
.footer-cta-section .footer-cta::after {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    width: 320px;
    height: 320px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025), 0 0 0 80px rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
}

.footer-cta-section .footer-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-cta-section .footer-cta-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-cta-section .footer-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
    text-wrap: balance;
}

.footer-cta-section .footer-cta p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
}

.footer-cta-section .footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-cta-section .footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.footer-cta-section .footer-cta-btn.primary {
    background: #fff;
    color: var(--blue-deep);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.footer-cta-section .footer-cta-btn.primary:hover {
    transform: translateY(-2px);
    background: var(--blue-ultra);
}

.footer-cta-section .footer-cta-btn.ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.footer-cta-section .footer-cta-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- Columns --- */
#siteFooter .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
    gap: 48px;
    margin-bottom: 44px;
}

#siteFooter .footer-brand-mark {
    width: 84px;
    height: 84px;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

#siteFooter .footer-brand p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    max-width: 320px;
    margin-bottom: 20px;
}

#siteFooter .footer-social-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

#siteFooter .footer-social-icon:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    box-shadow: none;
}

#siteFooter .footer-col h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

#siteFooter .footer-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-light);
}

#siteFooter .footer-col ul li {
    margin-bottom: 11px;
}

#siteFooter .footer-col ul li a,
#siteFooter .footer-contact-item {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.55;
    transition: color 0.2s, transform 0.2s;
}

#siteFooter .footer-col:not(.footer-contact) ul li a:hover {
    color: #fff;
    transform: translateX(3px);
}

#siteFooter .footer-contact ul li a,
#siteFooter .footer-contact-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    word-break: break-word;
}

#siteFooter .footer-contact ul li a:hover {
    color: #fff;
}

#siteFooter .footer-contact i {
    width: 16px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--gold-light);
    text-align: center;
    flex-shrink: 0;
}

/* --- Bottom bar --- */
#siteFooter .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

#siteFooter .footer-bottom-right {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

#siteFooter .footer-top-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, transform 0.2s;
}

#siteFooter .footer-top-link:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
}

/* =====================================================
   FOOTER — TABLET (641px – 1024px)
   Brand row on top, three link/contact columns below
   ===================================================== */
@media (max-width: 1024px) {
    /* Room for the floating call / WhatsApp buttons below the bottom bar */
    #siteFooter {
        padding-bottom: 96px;
    }

    #siteFooter .footer-grid {
        grid-template-columns: 1fr 1fr 1.25fr;
        gap: 40px 32px;
        margin-bottom: 36px;
    }

    #siteFooter .footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #siteFooter .footer-brand-mark {
        width: 72px;
        height: 72px;
        margin: 0;
    }

    #siteFooter .footer-brand p {
        max-width: 440px;
        margin: 0;
    }

    #siteFooter .footer-socials {
        margin: 0;
        justify-content: flex-end;
        max-width: 180px;
    }

    #siteFooter .footer-bottom {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 24px 0 0;
    }

    .footer-cta-section .footer-cta {
        grid-template-columns: auto 1fr;
    }

    .footer-cta-section .footer-cta-actions {
        grid-column: 1 / -1;
    }
}

/* Contact details as a card with icon chips — tablets and phones */
@media (max-width: 820px) {
    /* --- Contact: card with icon chips, shown before the link lists --- */
    #siteFooter .footer-contact {
        grid-column: 1 / -1;
    }

    #siteFooter .footer-contact ul {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        padding: 4px 16px;
    }

    #siteFooter .footer-contact ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    #siteFooter .footer-contact ul li:last-child {
        border-bottom: none;
    }

    #siteFooter .footer-contact ul li a,
    #siteFooter .footer-contact-item {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 13px 0;
        font-size: 14.5px;
        color: rgba(255, 255, 255, 0.8);
    }

    #siteFooter .footer-contact i {
        width: 34px;
        height: 34px;
        margin: 0;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        background: rgba(232, 184, 75, 0.12);
    }

}

/* Mid tablets: brand text drops under the logo so it never gets squeezed */
@media (max-width: 820px) {
    #siteFooter .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #siteFooter .footer-brand {
        grid-template-columns: auto 1fr;
    }

    #siteFooter .footer-socials {
        grid-column: 1 / -1;
        justify-content: flex-start;
        max-width: none;
    }

    #siteFooter .footer-contact {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   FOOTER — PHONE (≤ 640px)
   Centred brand → contact card → two compact link
   columns → centred bottom bar
   ===================================================== */
@media (max-width: 640px) {
    #siteFooter {
        padding-top: 44px;
        padding-bottom: 92px;
    }

    #siteFooter .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        margin-bottom: 28px;
        text-align: left;
    }

    /* --- Brand: centred --- */
    #siteFooter .footer-brand {
        order: 1;
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-bottom: 28px;
    }

    #siteFooter .footer-brand-mark {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    #siteFooter .footer-brand p {
        font-size: 14.5px;
        line-height: 1.7;
        max-width: 34ch;
    }

    #siteFooter .footer-socials {
        grid-column: auto;
        justify-content: center;
        gap: 10px;
    }

    #siteFooter .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    #siteFooter .footer-contact {
        order: 2;
    }

    /* --- Link lists: two tidy columns --- */
    #siteFooter .footer-col:not(.footer-contact) {
        order: 3;
    }

    #siteFooter .footer-col h5 {
        font-size: 12px;
        letter-spacing: 1.8px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    #siteFooter .footer-col ul li {
        margin-bottom: 4px;
    }

    #siteFooter .footer-col:not(.footer-contact) ul li a {
        display: block;
        padding: 6px 0;
        font-size: 14.5px;
        line-height: 1.4;
    }

    #siteFooter .footer-col:not(.footer-contact) ul li a:hover {
        transform: none;
    }

    /* --- Bottom bar: centred --- */
    #siteFooter .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 22px 0 0;
        font-size: 13px;
    }

    #siteFooter .footer-bottom-right {
        flex-direction: column;
        gap: 14px;
    }

    #siteFooter .footer-top-link {
        order: -1;
        width: 40px;
        height: 40px;
    }

    /* --- CTA card --- */
    .footer-cta-section .footer-cta {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-cta-section .footer-cta-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .footer-cta-section .footer-cta-actions,
    .footer-cta-section .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    #siteFooter .footer-grid {
        gap: 28px 14px;
    }

    #siteFooter .footer-col:not(.footer-contact) ul li a {
        font-size: 14px;
    }

    .footer-cta-section .footer-cta-btn {
        padding: 12px 18px;
        font-size: 14.5px;
    }
}

/* =====================================================
   MOTION PREFERENCES
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
