/* ========================================
   NEW MALDEN PHYSIO — SHARED STYLES
   ======================================== */
:root {
    --navy: #0F2545;
    --navy-mid: #1B3A6B;
    --navy-light: #2A4F8A;
    --navy-pale: #EEF2F9;
    --navy-glow: rgba(27, 58, 107, 0.12);

    --gold: #C8973A;
    --gold-light: #E8B86D;
    --gold-pale: #FBF5E8;
    --gold-dark: #A07828;

    --text: #1E293B;
    --text-muted: #64748B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --surface: #F1F5F9;
    --dark-bg: #07152B;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-navy: 0 8px 30px rgba(15, 37, 69, 0.25);
    --shadow-gold: 0 4px 20px rgba(200, 151, 58, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --max-w: 1200px;
    --section-pad: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* TYPOGRAPHY UTILS */
.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}
.h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.h2-white { color: var(--white); }
.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--navy-mid);
    color: var(--white);
    box-shadow: var(--shadow-navy);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(15,37,69,0.35); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,151,58,0.5); }
.btn-outline {
    background: transparent;
    color: var(--navy-mid);
    border: 2px solid var(--navy-mid);
}
.btn-outline:hover { background: var(--navy-mid); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px);} to {opacity:1; transform:translateY(0);} }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.15);opacity:0.8;} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes slideInLeft { from{opacity:0;transform:translateX(-40px);} to{opacity:1;transform:translateX(0);} }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* TOP BAR */
.topbar { background: var(--navy); color: rgba(255,255,255,0.75); padding: 0.6rem 0; font-size: 0.82rem; }
.topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.topbar-contact { display: flex; gap: 1.5rem; align-items: center; }
.topbar-contact a { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar-contact a:hover { color: var(--gold-light); }
.topbar-contact svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-socials { display: flex; gap: 0.75rem; align-items: center; }
.topbar-socials a {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.topbar-socials a:hover { background: var(--gold); color: white; }
.topbar-socials svg { width: 13px; height: 13px; fill: currentColor; }

/* NAVIGATION */
.nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-mark svg { width: 24px; height: 24px; fill: white; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); font-weight: 700; line-height: 1.2; }
.nav-logo-text span { color: var(--gold); }
.nav-logo-sub { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-mid); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gold); border-radius: 1px; transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 0.65rem 1.5rem !important; font-size: 0.875rem !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* MOBILE MENU */
.mobile-menu {
    display: none; position: fixed; top: 116px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 999; padding: 2rem; overflow-y: auto;
}
.mobile-menu.active { display: flex; flex-direction: column; }
.mobile-menu a { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--navy-mid); }
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* PAGE HEADER (inner pages) */
.page-header {
    background: linear-gradient(160deg, var(--dark-bg) 0%, var(--navy) 50%, #162D56 100%);
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    position: relative; overflow: hidden; text-align: center;
}
.page-header::before {
    content: ''; position: absolute; top: -120px; right: -120px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(200,151,58,0.14) 0%, transparent 65%);
    border-radius: 50%;
}
.page-header-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none;
}
.page-header-content { position: relative; z-index: 1; }
.page-header .label { color: var(--gold-light); }
.page-header h1 {
    font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.5rem);
    color: var(--white); line-height: 1.15; margin-bottom: 1rem;
}
.page-header p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ICON CIRCLES (modern SVG icons) */
.icon-box {
    width: 54px; height: 54px;
    background: var(--navy-pale);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s;
}
.icon-box svg { width: 26px; height: 26px; stroke: var(--navy-mid); fill: none; stroke-width: 1.8; }
.icon-box-gold { background: var(--gold-pale); }
.icon-box-gold svg { stroke: var(--gold-dark); }

/* SERVICES GRID */
.services { padding: var(--section-pad) 0; }
.services-header { text-align: center; margin-bottom: 3.5rem; }
.services-header .lead { margin: 0 auto; max-width: 560px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
    background: var(--white); border-radius: var(--radius-md); padding: 2rem;
    border: 1px solid var(--border); transition: all 0.35s ease;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-box { margin-bottom: 1.25rem; }
.service-card:hover .icon-box { background: var(--navy-mid); }
.service-card:hover .icon-box svg { stroke: white; }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.service-card .service-link {
    display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
    font-size: 0.82rem; font-weight: 600; color: var(--gold-dark);
}
.service-card .service-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* CONTACT SECTION */
.contact-section { padding: var(--section-pad) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item .icon-box { width: 46px; height: 46px; }
.contact-item .icon-box svg { width: 20px; height: 20px; }
.contact-detail-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-detail-value { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.contact-detail-value a { color: var(--navy-mid); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--gold-dark); }
.contact-hours { background: var(--bg); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border); }
.contact-hours h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.contact-hours h4 svg { width: 18px; height: 18px; stroke: var(--gold-dark); fill: none; stroke-width: 1.8; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; font-size: 0.875rem; }
.hours-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.hours-row .day { font-weight: 600; color: var(--text); }
.hours-row .time { color: var(--text-muted); }
.contact-map {
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
    min-height: 460px; height: 100%; background: var(--surface);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: none; display: block; }

/* FOOTER */
.footer { background: var(--dark-bg); padding: 4rem 0 2rem; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem;
    margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 1rem; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-social-link:hover { background: var(--gold); color: white; }
.footer-social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-line { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; }
.footer-contact-line svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact-line a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-contact-line a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* STICKY MOBILE CTA */
.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem; display: none; z-index: 997;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.sticky-cta .btn { width: 100%; justify-content: center; }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem; width: 58px; height: 58px;
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5); z-index: 998;
    transition: all 0.3s; animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1) !important; box-shadow: 0 8px 30px rgba(37,211,102,0.65); animation: none; }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* CTA BANNER (reusable) */
.cta-banner {
    padding: var(--section-pad) 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1E4080 100%);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}
.cta-banner::after {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200,151,58,0.2) 0%, transparent 60%);
    border-radius: 50%;
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner .label { color: var(--gold-light); }
.cta-inner .h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner .lead { color: rgba(255,255,255,0.65); margin-bottom: 2.5rem; }
.cta-options { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cta-note { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .sticky-cta { display: block; }
    body { padding-bottom: 70px; }
    .whatsapp-float { bottom: 5.5rem; }
    .topbar-socials { display: none; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar-inner { justify-content: center; }
    .topbar-contact span { display: none; }
}

/* ============================================
   PREMIUM ANIMATIONS & IMAGE ENHANCEMENTS (v2)
   ============================================ */

/* Smoother reveal easing */
.reveal { opacity:0; transform:translateY(34px); transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); will-change:opacity,transform; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* Reveal variants */
.reveal-left { opacity:0; transform:translateX(-40px); transition:opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(40px); transition:opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-right.visible { opacity:1; transform:translateX(0); }
.reveal-scale { opacity:0; transform:scale(.94); transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal-scale.visible { opacity:1; transform:scale(1); }

/* Image frames with ken-burns hover */
.img-cover { width:100%; height:100%; object-fit:cover; display:block; transition:transform 1.1s cubic-bezier(.22,1,.36,1); }
.img-zoom { overflow:hidden; }
.img-zoom:hover .img-cover { transform:scale(1.06); }

/* Smooth card lift */
.service-card, .sd-card, .cond-card, .tcard, .why-feature, .cred-item { transition:transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1), border-color .4s ease, background .4s ease; }

/* Button shine */
.btn { position:relative; overflow:hidden; }
.btn::after { content:''; position:absolute; top:0; left:-120%; width:60%; height:100%; background:linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform:skewX(-20deg); transition:left .7s ease; }
.btn:hover::after { left:140%; }

/* Hero gradient subtle pan */
@keyframes gradientPan { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }

/* Float-in stagger for hero on load */
@keyframes heroFadeUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }

/* Ken burns slow zoom for hero bg images */
@keyframes kenBurns { from{transform:scale(1);} to{transform:scale(1.08);} }

/* Soft pulsing ring */
@keyframes softPulse { 0%,100%{box-shadow:0 0 0 0 rgba(200,151,58,.4);} 50%{box-shadow:0 0 0 12px rgba(200,151,58,0);} }

/* Count-up stat helper */
.stat-counting { font-variant-numeric:tabular-nums; }

/* Smooth anchor + focus */
a, button { transition:color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }

/* Premium section image band */
.media-band { position:relative; overflow:hidden; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); }
.media-band img { width:100%; height:100%; object-fit:cover; }

/* Generic float animation refinement */
@keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* Scrollbar (premium touch) */
::-webkit-scrollbar { width:11px; }
::-webkit-scrollbar-track { background:var(--navy-pale); }
::-webkit-scrollbar-thumb { background:linear-gradient(var(--navy-mid),var(--navy)); border-radius:6px; border:2px solid var(--navy-pale); }
::-webkit-scrollbar-thumb:hover { background:var(--navy); }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity:1 !important; transform:none !important; }
}
