/* ==========================================
   SM MATHEMATICS ACADEMY
   MOBILE-FIRST EDITORIAL STYLESHEET
========================================== */

:root {
    --navy: #102D68;
    --dark-navy: #091F4C;
    --red: #D7192D;
    --red-hover: #B81225;
    --yellow: #FFD52E;
    --bg: #F5F6F8;
    --white: #FFFFFF;
    --text: #202B3C;
    --body-text: #4B586E;
    --muted: #68758B;
    --border: #E1E5EC;
}

/* ==========================================
   BASE & ACCESSIBILITY (MOBILE FIRST: 320px+)
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 15.5px;
    line-height: 1.72;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
}

.row > * {
    min-width: 0;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-navy);
}

p {
    font-size: 15.5px;
    line-height: 1.75;
}

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
}

.skip-link:focus {
    left: 12px;
}

/* ==========================================
   PRELOADER
========================================== */

body.is-preloading {
    overflow: hidden;
    touch-action: none;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.preloader-logo {
    margin-bottom: 20px;
    animation: preloaderFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.preloader-logo img {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
}

.preloader-equation {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 5vw, 25px);
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
}

.preloader-equation .peq-var {
    font-style: italic;
}

.preloader-equation .peq-int {
    font-size: 1.25em;
    color: var(--navy);
}

.preloader-equation .peq-op {
    color: var(--red);
    font-weight: 600;
    padding: 0 2px;
}

.preloader-equation .peq-diff {
    color: var(--muted);
}

.preloader-equation sup {
    font-size: 0.62em;
    color: var(--red);
}

.peq-part {
    opacity: 0;
    transform: translateX(-4px);
    animation: preloaderWrite 0.32s ease forwards;
}

.peq-1 { animation-delay: 0.14s; }
.peq-2 { animation-delay: 0.22s; }
.peq-3 { animation-delay: 0.30s; }
.peq-4 { animation-delay: 0.38s; }
.peq-5 { animation-delay: 0.46s; }
.peq-6 { animation-delay: 0.54s; }

.preloader-track {
    position: relative;
    width: 180px;
    height: 2px;
    background: rgba(16, 45, 104, 0.14);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    background: var(--red);
    border-radius: 2px;
    animation: preloaderSlide 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preloader-label {
    margin: 0;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: preloaderFadeUp 0.45s ease 0.2s both;
}

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

@keyframes preloaderWrite {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes preloaderSlide {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(260%);
    }
}

.section-padding {
    padding: 36px 0;
}

.section-eyebrow {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-eyebrow::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 9px;
    background: var(--yellow);
}

.section-eyebrow-light {
    color: #C9D5EA;
}

.section-title {
    margin: 0 0 14px;
    color: var(--dark-navy);
    font-size: clamp(27px, 7vw, 42px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.7px;
}

.section-title span {
    color: var(--red);
}

.section-lead {
    color: var(--text);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 14px;
}

.section-body {
    color: var(--body-text);
    font-size: 15.5px;
    line-height: 1.76;
}

/* ==========================================
   BUTTONS
========================================== */

.btn-brand-navy,
.btn-brand-outline,
.btn-brand-red,
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 13px 22px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-brand-navy {
    background: var(--navy);
    border: 1.5px solid var(--navy);
    color: var(--white);
}

.btn-brand-navy:hover {
    background: var(--dark-navy);
    border-color: var(--dark-navy);
    color: var(--white);
}

.btn-brand-outline {
    background: var(--white);
    border: 1.5px solid var(--navy);
    color: var(--navy);
}

.btn-brand-outline:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.btn-brand-red {
    background: var(--red);
    border: 1.5px solid var(--red);
    color: var(--white);
}

.btn-brand-red:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
}

.btn-nav-cta {
    padding: 11px 20px;
    font-size: 14.5px;
    background: var(--red);
    border: 1.5px solid var(--red);
    color: var(--white);
}

.btn-nav-cta:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
}

/* Full-width CTAs on narrow phones */
.about-section .btn-brand-navy,
.supporting-benefit .btn-brand-outline,
.approach-section .btn-brand-red,
.vedic-section .btn-brand-navy,
.cta-strip-btn {
    width: 100%;
}

/* ==========================================
   HEADER & NAVIGATION (MOBILE FIRST)
========================================== */

html.menu-open,
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

body.menu-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(9, 31, 76, 0.06);
}

.site-header .navbar {
    padding: 8px 0;
}

.logo-img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0;
    background: var(--white);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-lines {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}

.toggler-lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.toggler-lines span:nth-child(1) { top: 0; }
.toggler-lines span:nth-child(2) { top: 6px; }
.toggler-lines span:nth-child(3) { top: 12px; }

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
    background: var(--red);
}

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
    background: var(--red);
}

/* Full-screen mobile navigation overlay (< 992px) */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1055;
        background: var(--white);
        padding: 24px 20px 28px;
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }

    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: calc(100dvh - 73px) !important;
    }

    .site-header .navbar-nav {
        width: 100%;
    }

    .site-header .nav-link {
        position: relative;
        padding: 14px 12px !important;
        color: var(--text);
        font-family: 'Outfit', sans-serif;
        font-size: 20px;
        font-weight: 600;
        border-bottom: 1px solid #EEF1F6;
        border-left: 3px solid transparent;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

    .site-header .nav-link.active {
        color: var(--navy);
        background: var(--bg);
        border-left-color: var(--red);
    }

    .site-header .nav-cta-item .btn-nav-cta {
        min-height: 48px;
        font-size: 15.5px;
    }

    .mobile-menu-meta {
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid var(--border);
    }

    .mobile-menu-timings {
        margin: 0 0 4px;
        color: var(--navy);
        font-family: 'Outfit', sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.4px;
    }

    .mobile-menu-address {
        margin: 0;
        color: var(--body-text);
        font-size: 13px;
        line-height: 1.5;
    }

    .mobile-menu-address a {
        color: var(--red);
        font-weight: 600;
        white-space: nowrap;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .site-header .navbar-collapse {
        top: 85px;
    }

    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        height: calc(100dvh - 85px) !important;
    }
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--navy);
    font-weight: 600;
}

/* ==========================================
   HERO SECTION (MOBILE FIRST)
========================================== */

.hero-section {
    background: var(--white);
    padding: 24px 0 0;
    border-bottom: 1px solid var(--border);
    overflow-x: clip;
}

.hero-main-row {
    padding-bottom: 24px;
}

.hero-eyebrow {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.45;
    text-transform: uppercase;
}

.hero-eyebrow::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 8px;
    background: var(--yellow);
}

.hero-title {
    max-width: 620px;
    margin: 0;
    color: var(--dark-navy);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 7.8vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.9px;
}

.hero-title span {
    color: var(--red);
}

.hero-description {
    max-width: 540px;
    margin: 14px 0 0;
    color: var(--body-text);
    font-size: 14.5px;
    line-height: 1.68;
}

.hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.hero-buttons .btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 14px;
    text-align: center;
}

.hero-programmes-line {
    margin: 16px 0 0;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.9px;
    line-height: 1.6;
}

/* HERO MATHEMATICAL PLATE */

.hero-plate {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: 4px;
    padding: 18px 16px;
}

.hero-plate::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--yellow);
}

.hero-plate-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.hero-plate-label {
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-plate-index {
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-plate-equation {
    padding: 16px 0 12px;
}

.equation-main {
    color: var(--dark-navy);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.equation-main .eq-var,
.equation-sub .eq-var {
    font-style: italic;
}

.equation-main .eq-op {
    padding: 0 5px;
    color: var(--red);
    font-weight: 600;
}

.equation-main sup,
.equation-sub sup {
    font-size: 0.65em;
    color: var(--red);
}

.equation-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.hero-plate-graph {
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--border);
}

.hero-plate-graph svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-plate-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
}

.plate-meta-title {
    display: block;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 3px;
}

.plate-meta-value {
    margin: 0;
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* HERO BOTTOM INFORMATION ROW (hidden on mobile, shown on >= 768px) */

.hero-info-row {
    display: none;
    border-top: 1px solid var(--border);
}

.hero-info-item {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #EEF1F6;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.5;
}

.hero-info-item:last-child {
    border-bottom: 0;
}

.hero-info-hours {
    color: var(--navy);
    font-weight: 700;
}

.hero-info-sep {
    display: none;
}

/* ==========================================
   ABOUT SECTION (MOBILE FIRST)
========================================== */

.about-section {
    background: var(--white);
}

.about-figure {
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: 4px;
    overflow: hidden;
}

.about-photo-wrap {
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-meta {
    padding: 12px 16px;
}

.about-meta-row {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.about-meta-row:first-child {
    padding-top: 0;
}

.about-meta-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-meta-label {
    display: block;
    margin-bottom: 3px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.about-meta-value {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.about-principles {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.about-principles li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.principle-marker {
    width: 8px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
    transform: translateY(-4px);
}

/* ==========================================
   PROGRAMMES SECTION (MOBILE FIRST)
========================================== */

.programmes-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.programme-grid {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--border);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.programme-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 18px 16px;
    transition: background-color 0.2s ease;
}

.programme-item:hover {
    background: #FAFBFD;
}

.programme-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 14px;
}

.programme-num {
    color: var(--red);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.programme-tag {
    color: #55637A;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
}

.programme-item h3 {
    margin: 0 0 10px;
    color: var(--dark-navy);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.programme-item p {
    color: var(--body-text);
    font-size: 15px;
    line-height: 1.72;
    margin-bottom: 14px;
}

.programme-meta {
    padding: 10px 13px;
    background: var(--bg);
    border-left: 2px solid var(--navy);
    color: var(--text) !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-top: auto;
    margin-bottom: 16px !important;
}

.programme-meta strong {
    color: var(--navy);
}

.programme-link {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.programme-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.programme-link:hover {
    color: var(--red);
}

.programme-link:hover i {
    transform: translateX(3px);
}

.supporting-benefit {
    margin-top: 20px;
    padding: 22px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: 4px;
}

.benefit-label {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.supporting-benefit h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
}

.supporting-benefit p {
    color: var(--body-text);
    font-size: 14.5px;
}

/* ==========================================
   TEACHING APPROACH / WHY CHOOSE US (MOBILE FIRST)
========================================== */

.approach-section {
    background: var(--white);
}

.approach-intro {
    padding-right: 0;
}

.approach-motto {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: 4px;
}

.approach-motto-label {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.approach-motto p {
    margin: 0;
    color: var(--dark-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.approach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.approach-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.approach-index {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
}

.approach-detail h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--dark-navy);
}

.approach-detail p {
    display: none;
    margin: 6px 0 0;
    color: var(--body-text);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================
   VEDIC MATHEMATICS SECTION (MOBILE FIRST)
========================================== */

.vedic-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vedic-plate {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: 4px;
    padding: 20px 18px;
}

.vedic-plate-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--muted);
}

.vedic-plate-code {
    color: var(--red);
}

.vedic-example {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.vedic-example:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.vedic-example-title {
    margin-bottom: 12px;
    color: var(--dark-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.vedic-example-title span {
    color: var(--muted);
    font-weight: 400;
    font-size: 13px;
}

.vedic-formula-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 9px 12px;
    margin-bottom: 8px;
    background: var(--bg);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
}

.vedic-formula-row:last-child {
    margin-bottom: 0;
}

.vf-problem {
    color: var(--navy);
    font-weight: 600;
}

.vf-eq {
    color: var(--muted);
}

.vf-step {
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
}

.vf-result {
    color: var(--red);
    font-weight: 700;
}

.vedic-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.vedic-list li {
    position: relative;
    padding: 7px 0 7px 20px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.vedic-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 8px;
    height: 2px;
    background: var(--navy);
}

/* ==========================================
   CONTACT & ENQUIRY SECTION (MOBILE FIRST)
========================================== */

.contact-section {
    background: var(--navy);
    color: var(--white);
}

.contact-section .section-title span {
    color: var(--yellow);
}

.contact-lead {
    color: #D2DCF0;
    font-size: 15.5px;
    line-height: 1.74;
    margin-bottom: 24px;
}

.contact-details {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--yellow);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-body {
    flex: 1;
    min-width: 0;
}

.contact-detail-label {
    display: block;
    color: #A9B9D6;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.contact-detail-value {
    display: inline-block;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

a.contact-detail-value:hover {
    color: var(--yellow);
}

.contact-ext-icon {
    font-size: 12px;
}

/* ENQUIRY FORM PANEL */

.enquiry-panel {
    background: var(--white);
    border-top: 3px solid var(--red);
    border-radius: 4px;
    padding: 24px 18px;
    color: var(--text);
    box-shadow: 0 16px 36px rgba(4, 15, 38, 0.22);
}

.enquiry-panel-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.enquiry-panel-head h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    color: var(--dark-navy);
}

.enquiry-panel-head p {
    margin: 0;
    color: var(--body-text);
    font-size: 14px;
}

.enquiry-panel .form-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.enquiry-panel .req {
    color: var(--red);
}

/* 16px font-size prevents iOS Safari auto-zoom on focus */
.enquiry-panel .form-control,
.enquiry-panel .form-select {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #CFD6E2;
    border-radius: 4px;
    color: var(--text);
    font-size: 16px;
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-panel textarea.form-control {
    min-height: 96px;
}

.enquiry-panel .form-control:focus,
.enquiry-panel .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(16, 45, 104, 0.12);
}

.enquiry-panel .btn-brand-red {
    min-height: 48px;
}

.enquiry-status {
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14.5px;
    line-height: 1.6;
}

.enquiry-status-info {
    background: #F0F4FA;
    border: 1px solid #C8D5EA;
    color: var(--dark-navy);
}

.enquiry-status-info a {
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
}

.enquiry-status-error {
    background: #FEF2F3;
    border: 1px solid #F5C2C7;
    color: #842029;
}

/* ==========================================
   CALL NOW CTA STRIP (MOBILE FIRST)
========================================== */

.cta-strip {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.cta-strip-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.cta-strip-copy strong {
    display: block;
    color: var(--dark-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.cta-strip-copy span {
    display: block;
    margin-top: 3px;
    color: var(--body-text);
    font-size: 13.5px;
    line-height: 1.5;
}

.cta-strip-btn {
    padding: 12px 22px;
    font-size: 14.5px;
    white-space: nowrap;
}

/* ==========================================
   FOOTER (MOBILE FIRST)
========================================== */

.site-footer {
    background: var(--dark-navy);
    color: #CBD5E7;
    padding-top: 48px;
    /* Extra clearance so mobile floating action bar never covers footer credits */
    padding-bottom: 76px;
}

.footer-main {
    padding-bottom: 32px;
}

.footer-brand img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-description {
    max-width: 100%;
    margin: 16px 0 0;
    color: #AEBCD4;
    font-size: 14.5px;
    line-height: 1.72;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #AEBCD4;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    color: #AEBCD4;
    font-size: 14.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-contact i {
    color: var(--yellow);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #AEBCD4;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: #8F9FB8;
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-bottom i {
    color: var(--red);
}

/* ==========================================
   FLOATING CONTACT ACTIONS (MOBILE FIRST)
   Theme-matched sticky bottom bar on mobile (< 768px);
   Animated floating pills on tablet & desktop (>= 768px)
========================================== */

.floating-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(9, 31, 76, 0.08);
}

.floating-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1.5px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.floating-btn:hover {
    color: var(--white);
}

.floating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-call {
    background: var(--navy);
    border-color: var(--navy);
}

.floating-call:hover {
    background: var(--dark-navy);
    border-color: var(--dark-navy);
}

.floating-call .floating-icon i {
    font-size: 14px;
}

.floating-whatsapp {
    background: var(--red);
    border-color: var(--red);
}

.floating-whatsapp:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.floating-whatsapp .floating-icon i {
    font-size: 17px;
}

@keyframes floatingPulseRed {
    0% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 0 rgba(215, 25, 45, 0.6);
    }
    70% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 12px rgba(215, 25, 45, 0);
    }
    100% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 0 rgba(215, 25, 45, 0);
    }
}

@keyframes floatingPulseGreen {
    0% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 0 rgba(31, 168, 85, 0.6);
    }
    70% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 12px rgba(31, 168, 85, 0);
    }
    100% {
        box-shadow: 0 8px 22px rgba(9, 31, 76, 0.28), 0 0 0 0 rgba(31, 168, 85, 0);
    }
}

@keyframes floatingBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes phoneRing {
    0%, 55%, 100% {
        transform: rotate(0deg);
    }
    60%, 70% {
        transform: rotate(-16deg);
    }
    65%, 75% {
        transform: rotate(16deg);
    }
    80% {
        transform: rotate(0deg);
    }
}

@media (max-width: 340px) {
    .hero-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SMALL TABLET & LARGE PHONE (>= 576px)
========================================== */

@media (min-width: 576px) {

    .hero-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        margin-top: 28px;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 13px 24px;
        font-size: 15px;
    }

    .about-section .btn-brand-navy,
    .supporting-benefit .btn-brand-outline,
    .approach-section .btn-brand-red,
    .vedic-section .btn-brand-navy {
        width: auto;
    }

    .hero-plate-footer {
        grid-template-columns: 0.9fr 1.3fr;
        gap: 16px;
    }

    .vedic-formula-row {
        font-size: 16px;
        gap: 6px 10px;
    }

    .vf-step {
        font-size: 14.5px;
    }
}

/* ==========================================
   TABLET (>= 768px)
========================================== */

@media (min-width: 768px) {

    .site-footer {
        padding-bottom: 0;
    }

    /* Switch bottom bar to stacked animated floating pills on tablet & desktop */
    .floating-actions {
        left: auto;
        right: 22px;
        bottom: 22px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
        padding: 0;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .floating-btn {
        height: 52px;
        padding: 0 22px 0 18px;
        border-radius: 50px;
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 700;
        gap: 10px;
        border: 2px solid var(--white);
        box-shadow: 0 8px 24px rgba(9, 31, 76, 0.28);
    }

    .floating-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 12px 28px rgba(9, 31, 76, 0.36);
    }

    .floating-call {
        background: var(--red);
        border-color: var(--white);
        animation: floatingPulseRed 2.4s ease-out infinite, floatingBob 3.2s ease-in-out infinite;
    }

    .floating-call:hover {
        background: var(--red-hover);
        border-color: var(--white);
    }

    .floating-call .floating-icon i {
        font-size: 17px;
        animation: phoneRing 2.6s ease-in-out infinite;
    }

    .floating-whatsapp {
        background: #1FA855;
        border-color: var(--white);
        animation: floatingPulseGreen 2.4s ease-out 1.2s infinite, floatingBob 3.2s ease-in-out 1.6s infinite;
    }

    .floating-whatsapp:hover {
        background: #188B45;
        border-color: var(--white);
    }

    .floating-whatsapp .floating-icon i {
        font-size: 22px;
    }

    body,
    p {
        font-size: 16px;
    }

    .section-padding {
        padding: 68px 0;
    }

    .section-eyebrow {
        font-size: 12.5px;
        letter-spacing: 2px;
    }

    .logo-img {
        width: 68px;
        height: 68px;
    }

    .preloader-logo img {
        width: 96px;
        height: 96px;
    }

    .preloader-track {
        width: 210px;
    }

    .hero-section {
        padding-top: 48px;
    }

    .hero-main-row {
        padding-bottom: 44px;
    }

    .hero-eyebrow {
        font-size: 12.5px;
        letter-spacing: 1.8px;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 16.5px;
        margin-top: 20px;
    }

    .hero-programmes-line {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .hero-plate,
    .vedic-plate {
        padding: 26px 28px;
    }

    .hero-info-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 24px;
        padding: 12px 0;
    }

    .hero-info-item {
        padding: 10px 0;
    }

    .hero-info-item:nth-last-child(1),
    .hero-info-item:nth-last-child(3) {
        border-bottom: 0;
    }

    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programme-item {
        padding: 28px 26px;
    }

    .supporting-benefit {
        padding: 26px 28px;
    }

    .about-photo {
        aspect-ratio: 4 / 3;
    }

    .approach-row {
        grid-template-columns: 44px 1fr;
        gap: 16px;
        padding: 18px 0;
        align-items: start;
    }

    .approach-index {
        width: 36px;
        height: 36px;
        font-size: 13.5px;
    }

    .approach-detail h3 {
        margin: 2px 0 6px;
        font-size: 19px;
    }

    .approach-detail p {
        display: block;
    }

    .enquiry-panel {
        padding: 34px 36px;
    }

    .enquiry-panel .form-control,
    .enquiry-panel .form-select {
        font-size: 15px;
    }

    .cta-strip-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cta-strip-btn {
        width: auto;
    }

    .footer-brand img {
        width: 74px;
        height: 74px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 0;
    }
}

/* ==========================================
   DESKTOP (>= 992px)
========================================== */

@media (min-width: 992px) {

    html {
        scroll-padding-top: 96px;
    }

    .section-padding {
        padding: 86px 0;
    }

    .site-header .navbar {
        padding: 10px 0;
    }

    .logo-img {
        width: 72px;
        height: 72px;
    }

    .site-header .navbar-collapse {
        margin-top: 0;
        padding: 0;
        border-top: 0;
    }

    .site-header .nav-link {
        padding: 10px 14px !important;
        font-size: 15px;
        border-bottom: 0;
    }

    .site-header .nav-link.active::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 4px;
        height: 2px;
        background: var(--red);
    }

    .w-lg-auto {
        width: auto !important;
    }

    .hero-section {
        padding-top: 56px;
    }

    .hero-main-row {
        padding-bottom: 52px;
    }

    .hero-content {
        padding-right: 28px;
    }

    .hero-title {
        letter-spacing: -1.4px;
    }

    .hero-info-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 0;
    }

    .hero-info-item {
        width: auto;
        padding: 0;
        border-bottom: 0;
        font-size: 12.5px;
        letter-spacing: 1.3px;
    }

    .hero-info-sep {
        display: block;
        width: 1px;
        height: 14px;
        background: var(--border);
        flex-shrink: 0;
    }

    .about-content {
        padding-left: 16px;
    }

    .about-meta {
        padding: 18px 22px;
    }

    .programme-item {
        padding: 30px 34px;
    }

    .supporting-benefit {
        padding: 26px 34px;
    }

    .approach-intro {
        padding-right: 20px;
    }

    .contact-left {
        padding-right: 20px;
    }

    .enquiry-panel {
        padding: 36px 40px;
    }

    .site-footer {
        padding-top: 64px;
    }

    .footer-main {
        padding-bottom: 44px;
    }

    .footer-description {
        max-width: 310px;
    }

    .floating-actions {
        right: 22px;
        bottom: 22px;
    }

    .floating-btn {
        height: 52px;
    }
}

/* ==========================================
   LARGE DESKTOP (>= 1200px)
========================================== */

@media (min-width: 1200px) {

    .hero-content {
        padding-right: 36px;
    }

    .programme-item h3 {
        font-size: 23px;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .peq-part {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
