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

:root {
    /* Brand Palette */
    --blue: #3f51c9;
    --blue-deep: #28348a;
    --coral: #e8897b;
    --coral-soft: #fbe9e6;
    --cream: #fbf8f4;
    --ink: #25303d;
    --muted: #6b7280;
    --green: #3aa675;
    --white: #ffffff;
    --border: #e5e7eb;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--blue-deep);
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---- Shared layout utilities (used across all pages) ---- */
.section { padding: 84px 0; }
.bg-cream { background-color: var(--cream); }
.bg-blue-deep { background-color: var(--blue-deep); }
.bg-white { background-color: var(--white); }
.color-white { color: var(--white); }
.text-muted { color: var(--muted); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.section-sub { color: var(--muted); margin-bottom: 40px; font-size: 1.1rem; }
.card-link { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 0.92rem; transition: var(--transition); }
.service-card:hover .card-link { color: var(--coral); letter-spacing: 0.02em; }

/* ---- Shared page header (inner pages) ---- */
.page-header {
    position: relative;
    padding: 76px 0 84px;
    color: var(--white);
    background:
        radial-gradient(800px 300px at 85% 0%, rgba(232,137,123,0.25), transparent 60%),
        var(--blue-deep);
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-sub { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto; }
.header-about { background: linear-gradient(rgba(40,52,138,0.85), rgba(40,52,138,0.85)), url('../assets/img/hero-about.jpg') center/cover no-repeat; }
.header-contact { background: linear-gradient(rgba(40,52,138,0.85), rgba(40,52,138,0.85)), url('../assets/img/hero-contact.jpg') center/cover no-repeat; }
.header-service { background: linear-gradient(rgba(40,52,138,0.85), rgba(40,52,138,0.85)), url('../assets/img/hero-services.jpg') center/cover no-repeat; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-deep);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--green);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #2e8b60;
    color: var(--white);
}

/* Top Strip */
.top-strip {
    background-color: var(--blue-deep);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strip-item a {
    color: var(--white);
}

/* Header & Nav */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--ink);
    font-weight: 500;
    font-size: 16px;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--ink);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger animated to X when open */
.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.float-wa {
    background-color: #25D366;
}

.float-wa:hover { color: white; background-color: #128C7E; }

.float-call {
    background-color: var(--blue);
    display: none; /* Only show on mobile */
}

.float-call:hover { color: white; background-color: var(--blue-deep); }

/* Global CTA */
.global-cta {
    background-color: var(--coral-soft);
    padding: 60px 0;
}

.global-cta h2 {
    color: var(--blue-deep);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.main-footer {
    background-color: var(--blue-deep);
    color: var(--white);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo { height: 64px; width: auto; border-radius: 10px; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: #fff; transition: var(--transition);
}
.footer-social a:hover { background: var(--coral); transform: translateY(-3px); }
.footer-areas {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0; font-size: 0.9rem; color: #cbd5e1;
}
.footer-areas strong { color: var(--coral); }

.footer-col h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.footer-col h4 {
    color: var(--coral);
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.brand-col .tagline {
    font-style: italic;
    color: var(--coral);
    margin-bottom: 15px;
}

.brand-col .desc {
    color: #cbd5e1;
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 10px;
}

.links-col a {
    color: #cbd5e1;
}

.links-col a:hover {
    color: var(--coral);
}

.contact-col .contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #cbd5e1;
    align-items: flex-start;
}

.contact-item a {
    color: #cbd5e1;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--coral);
}

.footer-bottom {
    background-color: #1e286d;
    padding: 20px 0;
    font-size: 14px;
    color: #94a3b8;
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #94a3b8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%; /* Anchors exactly to the bottom of the header */
        left: 0;
        right: 0;
        height: 100vh; /* Covers the screen below the header */
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px 100px;
        gap: 30px;
        text-align: center;
        z-index: 99;
        border-top: 1px solid var(--border);
        
        /* Smooth animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
        display: flex;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.8rem;
        font-family: var(--font-heading);
        color: var(--blue-deep);
        padding: 10px;
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    .float-call {
        display: flex;
    }

    .cta-actions {
        flex-direction: column;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* =====================================================================
   ENHANCEMENTS — animation system, micro-interactions & new components
   ===================================================================== */

/* ---- Motion tokens ---- */
:root {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 2px 8px rgba(37, 48, 61, 0.06);
    --shadow-md: 0 10px 30px rgba(37, 48, 61, 0.08);
    --shadow-lg: 0 24px 60px rgba(37, 48, 61, 0.14);
    --radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Scroll reveal system ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom       { transform: scale(0.94); }
.reveal.in-view    { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

/* staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.53s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.61s; }

/* ---- Button polish ---- */
.btn {
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(63, 81, 201, 0.4); outline-offset: 2px; }

.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #d9705f; color: #fff; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.75); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--cream); color: var(--blue-deep); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn.is-loading { opacity: 0.75; pointer-events: none; }

/* ---- Header shrink on scroll ---- */
.main-header { transition: box-shadow 0.3s var(--ease); }
.main-header .header-inner { transition: height 0.3s var(--ease); }
.main-header.scrolled { box-shadow: 0 6px 24px rgba(37,48,61,0.12); }
.main-header.scrolled .header-inner { height: 66px; }
.main-header.scrolled .logo img { height: 44px; }
.logo img { transition: height 0.3s var(--ease); }

/* nav underline animation */
.nav-links a { position: relative; }
.nav-links a::after {
    content: '';
    position: absolute; left: 0; bottom: -6px;
    width: 100%; height: 2px; background: var(--coral);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* nav CTA button */
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--coral); color: #fff !important;
    padding: 9px 20px; border-radius: 30px; font-weight: 600;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #d9705f; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.header-actions { display: flex; align-items: center; gap: 24px; }

/* ---- Section header helpers ---- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--coral-soft); color: #c25a48;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 7px 16px; border-radius: 30px;
    margin-bottom: 16px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.12); color: var(--coral); }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--blue-deep); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: rgba(255,255,255,0.72); }
.text-coral { color: var(--coral); }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
.hover-lift { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---- Urgent admission banner ---- */
.urgent-banner {
    background: linear-gradient(90deg, var(--coral) 0%, #e0705f 100%);
    color: #fff; text-align: center; font-size: 0.92rem; font-weight: 500;
    padding: 9px 16px;
}
.urgent-banner .container { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.urgent-banner a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pulse-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---- Request-callback strip ---- */
.callback-strip {
    background:
        radial-gradient(1000px 300px at 100% 0%, rgba(232,137,123,0.25), transparent 60%),
        linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #fff; padding: 56px 0;
}
.callback-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.callback-copy h2 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.callback-copy p { color: rgba(255,255,255,0.8); }
.callback-form { display: flex; gap: 12px; flex-wrap: wrap; }
.callback-form input[type="text"], .callback-form input[type="tel"] {
    flex: 1; min-width: 180px; padding: 15px 18px; border: none; border-radius: 10px;
    font-family: var(--font-body); font-size: 1rem;
}
.callback-form input:focus { outline: 3px solid rgba(255,255,255,0.5); }
.callback-form .form-status { flex-basis: 100%; }

/* ---- Stats row ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--coral); line-height: 1; display: block; }
.stat-label { margin-top: 8px; color: var(--muted); font-weight: 500; font-size: 0.98rem; }

/* ---- Icon circle (for cards) ---- */
.icon-circle {
    width: 60px; height: 60px; border-radius: 16px; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 18px;
    background: var(--coral-soft); color: var(--coral);
    transition: var(--transition);
}
.icon-circle svg { width: 28px; height: 28px; }
.card-hover-blue:hover .icon-circle { background: var(--blue); color: #fff; }

/* ---- Approach steps ---- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.approach-card {
    position: relative; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 26px; text-align: center;
}
.approach-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.approach-card h4 { color: var(--blue-deep); margin: 14px 0 8px; }
.approach-card p { color: var(--muted); font-size: 0.96rem; }

/* ---- Care-in-action gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 16px;
    background: linear-gradient(transparent, rgba(30,40,109,0.85));
    color: #fff; font-size: 0.92rem; font-weight: 500;
}
.gallery-item.tall { aspect-ratio: auto; grid-row: span 2; }

/* ---- Accordion / FAQ ---- */
.accordion { max-width: 820px; margin: 0 auto; }
.accordion-item {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 14px; overflow: hidden; transition: box-shadow 0.3s var(--ease);
}
.accordion-item.open { box-shadow: var(--shadow-md); border-color: rgba(63,81,201,0.3); }
.accordion-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 22px 24px; font-family: var(--font-body); font-size: 1.08rem; font-weight: 600;
    color: var(--blue-deep); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion-q::after {
    content: ''; flex-shrink: 0; width: 12px; height: 12px;
    border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral);
    transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.accordion-item.open .accordion-q::after { transform: rotate(-135deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion-item.open .accordion-a { max-height: 400px; }
.accordion-a p { padding: 0 24px 22px; color: var(--muted); line-height: 1.7; }

/* ---- Sticky mobile CTA bar ---- */
.mobile-cta-bar { display: none; }
.mobile-cta-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px; font-size: 0.72rem; font-weight: 600; color: #fff;
}
.mobile-cta-bar a svg { width: 20px; height: 20px; }
.mcta-call { background: var(--blue); }
.mcta-wa { background: #25D366; }
.mcta-enquire { background: var(--coral); }

/* ---- Back to top ---- */
.back-to-top {
    position: fixed; bottom: 90px; right: 20px; z-index: 98;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); }

/* ---- Global CTA polish ---- */
.global-cta {
    background:
        radial-gradient(700px 220px at 0% 100%, rgba(63,81,201,0.10), transparent 60%),
        var(--coral-soft);
}
.global-cta p { color: var(--muted); font-size: 1.1rem; }

/* ---- Trust / badges row ---- */
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--border); border-radius: 30px; padding: 9px 18px;
    font-size: 0.9rem; font-weight: 600; color: var(--blue-deep); box-shadow: var(--shadow-sm);
}
.badge svg { width: 18px; height: 18px; color: var(--green); }

/* ---- Popup Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    padding: 34px 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--ease);
}

.modal-overlay.active .modal-content {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    color: var(--coral);
    background: var(--coral-soft);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.modal-header h3 {
    color: var(--blue-deep);
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.modal-header p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-form .form-group {
    margin-bottom: 16px;
}
.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}
.modal-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(63, 81, 201, 0.1);
}
.modal-form .btn {
    margin-top: 10px;
}

/* ---- Responsive for enhancements ---- */
@media (max-width: 900px) {
    .callback-inner { grid-template-columns: 1fr; }
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
    .header-actions .nav-cta { display: none; }

    /* sticky mobile CTA bar on */
    .mobile-cta-bar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    }
    body { padding-bottom: 58px; }
    .floating-buttons { display: none; }
    .back-to-top { bottom: 70px; }
}
@media (max-width: 520px) {
    .approach-grid, .stats-row, .gallery-grid { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 36px; }
}

