/* ==========================================================================
   Dr. Nitin's Physiotherapy Clinic — Premium Stylesheet
   HTML5 / CSS3 only. No frameworks.
   Sections: 1. Variables  2. Reset/Base  3. Typography  4. Utilities
             5. Buttons  6. Cursor  7. Preloader  8. Header/Nav
             9. Hero  10. Sections/Components  11. Footer
             12. Animations  13. Responsive
   ========================================================================== */

/* ============================ 1. VARIABLES ============================ */
:root {
  /* Brand palette sampled from the clinic logo: purple and sky blue */
  --blue-900: #35213f;
  --blue-700: #6f3f82;
  --blue-600: #89549c;
  --blue-500: #a06cb2;
  --teal-600: #419dcc;
  --teal-500: #68b9e2;
  --teal-400: #8acbed;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --white: #ffffff;
  --off-white: #faf7fc;
  --gray-50: #fcfaff;
  --gray-100: #f2ebf6;
  --gray-200: #e5dbe9;
  --gray-400: #a391aa;
  --gray-500: #75677c;
  --gray-600: #5f5066;
  --gray-700: #493d50;
  --ink: #2b2030;

  /* Semantic tokens */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --text: var(--gray-700);
  --heading: var(--blue-900);
  --muted: var(--gray-500);
  --primary: var(--blue-600);
  --primary-dark: var(--blue-700);
  --accent: var(--teal-500);
  --accent-2: var(--green-500);
  --border: rgba(53, 33, 63, 0.10);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-500) 100%);
  --grad-accent: linear-gradient(135deg, var(--teal-500) 0%, var(--blue-500) 100%);
  --grad-hero: linear-gradient(120deg, rgba(53,33,63,0.94) 0%, rgba(137,84,156,0.86) 48%, rgba(104,185,226,0.76) 100%);
  --grad-soft: linear-gradient(180deg, #fcfaff 0%, #f2ebf6 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(53, 33, 63, 0.06);
  --shadow-sm: 0 4px 12px rgba(53, 33, 63, 0.09);
  --shadow-md: 0 12px 30px rgba(53, 33, 63, 0.12);
  --shadow-lg: 0 24px 60px rgba(53, 33, 63, 0.18);
  --shadow-glow: 0 10px 40px rgba(104, 185, 226, 0.36);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.16, 1.08, 0.29, 1);
  --dur: 0.5s;
}

/* ============================ 2. RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--teal-500); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--grad-primary); border-radius: 999px; border: 3px solid var(--gray-100); }

/* ============================ 3. TYPOGRAPHY ============================ */
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--heading); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================ 4. UTILITIES / LAYOUT ============================ */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--grad-soft); }
.section-dark { background: var(--blue-900); color: #e6dbea; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.section-dark .eyebrow { color: var(--teal-400); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section-head.left { margin-inline: 0; text-align: left; }

.lead { font-size: 1.15rem; color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================ 5. BUTTONS ============================ */
.btn {
  --btn-bg: var(--grad-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  border-radius: var(--r-pill); color: #fff; background: var(--btn-bg);
  box-shadow: 0 10px 25px rgba(137,84,156, 0.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  overflow: hidden; isolation: isolate; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(137,84,156, 0.4); filter: brightness(1.05); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn::after { /* ripple layer target uses .ripple spans; keep sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn-accent { --btn-bg: var(--grad-accent); box-shadow: 0 10px 25px rgba(104, 185, 226, 0.3); }
.btn-ghost {
  background: transparent; color: var(--heading);
  border: 1.5px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); box-shadow: var(--shadow-sm); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { color: var(--primary-dark); }
.btn-outline-light { background: rgba(255,255,255,.08); color:#fff; border:1.5px solid rgba(255,255,255,.4); box-shadow:none; backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Ripple */
.ripple-ink {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, 0.5); animation: ripple .6s var(--ease); pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============================ 6. CUSTOM CURSOR ============================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}
.cursor-dot { width: 8px; height: 8px; background: var(--teal-500); transition: opacity .3s, transform .15s; }
.cursor-ring {
  width: 40px; height: 40px; border: 2px solid rgba(104,185,226, 0.6);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s;
  box-shadow: 0 0 20px rgba(104,185,226, 0.25);
}
.cursor-ring.hovering { width: 64px; height: 64px; background: rgba(104,185,226, 0.12); border-color: rgba(104,185,226,.9); }
.cursor-dot.hovering { transform: translate(-50%, -50%) scale(0.4); }
.cursor-trail { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: rgba(104,185,226,.35); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring, .cursor-trail { display: none !important; } }

/* Magnetic wrapper */
.magnetic { display: inline-block; will-change: transform; transition: transform .3s var(--ease); }

/* ============================ 7. PRELOADER ============================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: var(--blue-900); transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.pulse-logo {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 20px;
  background: var(--grad-accent); display: grid; place-items: center;
  animation: pulseBeat 1.3s var(--ease) infinite; box-shadow: var(--shadow-glow);
}
.pulse-logo svg { width: 38px; height: 38px; stroke: #fff; }
.preloader-inner span { color: #dbc9e3; font-family: var(--font-head); letter-spacing: .18em; font-size: .8rem; text-transform: uppercase; }
.loader-bar { width: 180px; height: 4px; background: rgba(255,255,255,.15); border-radius: 999px; margin: 16px auto 0; overflow: hidden; }
.loader-bar::before { content:""; display:block; height:100%; width:40%; background: var(--grad-accent); border-radius:999px; animation: loadSlide 1.1s var(--ease) infinite; }
@keyframes loadSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }
@keyframes pulseBeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

/* ============================ 8. SCROLL PROGRESS ============================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--grad-accent); z-index: 9997; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(104,185,226,.6);
}

/* ============================ 9. HEADER / NAV ============================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  box-shadow: var(--shadow-sm); padding: 10px 0; border-bottom: 1px solid var(--glass-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px; background: #fff; overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); flex-shrink: 0;
  transition: transform .4s var(--ease-bounce);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.12rem; color: var(--heading); }
.logo-text small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-family: var(--font-head); font-weight: 500;
  font-size: .96rem; color: var(--gray-700); border-radius: var(--r-pill); transition: color .3s;
}
.nav-dropdown { position: relative; }
.nav-caret { display: inline-block; margin-left: 3px; transition: transform .25s var(--ease); }
.nav-submenu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 280px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s var(--ease); z-index: 1100;
}
.nav-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-submenu li { width: 100%; }
.nav-submenu a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: .86rem; line-height: 1.35; }
.nav-submenu a:hover { color: var(--primary); background: var(--grad-soft); }
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--grad-accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--teal-600); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); font-family: var(--font-head); font-size: .92rem; }
.nav-phone svg { width: 18px; height: 18px; stroke: var(--teal-600); }

/* Hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; background: var(--gray-100); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--heading); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ 10. HERO ============================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content:""; position:absolute; inset:0; background: var(--grad-hero); }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1;
  animation: float 9s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; background: rgba(104,185,226,.5); top: -80px; right: -60px; }
.hero-blob.b2 { width: 360px; height: 360px; background: rgba(104,185,226,.35); bottom: -100px; left: -60px; animation-delay: -3s; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25);
  font-size: .85rem; font-weight: 500; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(74,222,128,.3); animation: pulseBeat 1.6s infinite; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .type-target { color: var(--teal-400); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -12px; }
.hero-trust .avatars img:first-child { margin-left: 0; }
.hero-trust .stars { color: #ffd54f; font-size: 1.05rem; letter-spacing: 2px; }
.hero-trust small { display: block; color: rgba(255,255,255,.8); font-size: .85rem; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; aspect-ratio: 4/5; border: 6px solid rgba(255,255,255,.15);
  animation: float 6s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; background: var(--glass-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-md); color: var(--heading); display: flex; align-items: center; gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.hero-float-card .fc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-accent); color: #fff; flex-shrink: 0; }
.hero-float-card .fc-icon svg { width: 22px; height: 22px; stroke: #fff; }
.hero-float-card strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1; }
.hero-float-card small { color: var(--muted); font-size: .8rem; }
.hero-float-card.fc-1 { top: 30px; left: -34px; animation-delay: -1s; }
.hero-float-card.fc-2 { bottom: 40px; right: -30px; animation-delay: -2.5s; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; display: block; }

/* Scroll cue */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.scroll-cue .mouse::before { content:""; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:4px; height:8px; background:#fff; border-radius:2px; animation: scrollWheel 1.6s infinite; }
@keyframes scrollWheel { 0%{opacity:0; transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform:translate(-50%,14px)} }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px; color: #fff; overflow: hidden; text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width:100%; height:100%; object-fit: cover; }
.page-hero-bg::after { content:""; position:absolute; inset:0; background: var(--grad-hero); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; margin: 16px auto 0; font-size: 1.1rem; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb span { opacity: .6; }

/* ============================ STATS COUNTER ============================ */
.stats-band { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border-radius: var(--r-lg); padding: 34px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--grad-soft); display: grid; place-items: center; color: var(--teal-600); }
.stat-icon svg { width: 28px; height: 28px; stroke: var(--teal-600); }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--heading); line-height: 1; }
.stat-num .suffix { color: var(--teal-500); }
.stat-label { color: var(--muted); font-weight: 500; margin-top: 6px; }

/* ============================ CARDS (generic) ============================ */
.card {
  background: #fff; border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(104,185,226,.3); }

/* Service card */
.service-card { display: flex; flex-direction: column; gap: 16px; }
.service-card .s-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--teal-600); transition: transform .45s var(--ease-bounce), background .45s;
}
.service-card .s-icon svg { width: 30px; height: 30px; stroke: var(--teal-600); transition: stroke .45s; }
.service-card:hover .s-icon { background: var(--grad-primary); transform: rotate(-6deg) scale(1.05); }
.service-card:hover .s-icon svg { stroke: #fff; }
.service-card h3 { font-size: 1.22rem; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card .s-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); font-family: var(--font-head); font-size: .92rem; }
.service-card .s-link svg { width: 16px; height: 16px; transition: transform .3s; }
.service-card:hover .s-link svg { transform: translateX(5px); }
.service-card::before {
  content:""; position:absolute; inset:0; background: var(--grad-primary); opacity:0; transition: opacity .45s; z-index:-1;
}

/* 3D tilt */
.tilt { transform-style: preserve-3d; transition: transform .2s var(--ease); will-change: transform; }
.tilt-inner { transform: translateZ(30px); }

/* Feature (why choose) */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .f-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-accent); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.feature .f-icon svg { width: 26px; height: 26px; stroke: #fff; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Split media section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.split-media .exp-badge {
  position: absolute; bottom: -24px; right: -10px; background: var(--grad-primary); color: #fff;
  border-radius: var(--r-lg); padding: 20px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.split-media .exp-badge strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; display: block; }
.split-media .exp-badge small { font-size: .78rem; letter-spacing: .05em; opacity: .9; }
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-700); }
.check-list li .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.check-list li .ck svg { width: 14px; height: 14px; stroke: #fff; }

/* Process / timeline steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; text-align: center; padding: 34px 22px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .4s var(--ease); }
.process-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.process-step .p-num { counter-increment: step; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.process-step .p-num::before { content: "0" counter(step); }
.process-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .92rem; }
.process-grid.connected .process-step::after {
  content:""; position:absolute; top: 54px; right: -14px; width: 28px; height: 2px; background: linear-gradient(90deg, var(--teal-400), transparent); }
.process-grid.connected .process-step:last-child::after { display:none; }

/* ============================ TESTIMONIALS ============================ */
.testimonials { overflow: hidden; }
.tslider { position: relative; max-width: 860px; margin: 0 auto; }
.tslider-track { display: flex; transition: transform .6s var(--ease); }
.tslide { min-width: 100%; padding: 0 10px; }
.tcard { background: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); text-align: center; position: relative; }
.tcard .quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgba(104,185,226,.22); position: absolute; top: 14px; left: 26px; }
.tcard .stars { color: #ffc107; letter-spacing: 3px; margin-bottom: 16px; }
.tcard p { font-size: 1.15rem; color: var(--gray-700); font-style: italic; margin-bottom: 24px; }
.tcard .t-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tcard .t-person img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray-100); }
.tcard .t-person strong { display: block; color: var(--heading); font-family: var(--font-head); }
.tcard .t-person small { color: var(--teal-600); }
.tslider-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.tslider-nav button { width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--primary); transition: background .3s, color .3s, transform .3s; }
.tslider-nav button:hover { background: var(--grad-primary); color: #fff; transform: scale(1.08); }
.tslider-nav button svg { width: 20px; height: 20px; }
.tdots { display: flex; gap: 8px; }
.tdots button { width: 10px; height: 10px; border-radius: 999px; background: var(--gray-200); padding: 0; transition: width .3s, background .3s; }
.tdots button.active { width: 28px; background: var(--grad-primary); }

/* ============================ GALLERY ============================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; aspect-ratio: 1; box-shadow: var(--shadow-xs); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent, rgba(53,33,63,.6)); opacity:0; transition: opacity .4s; }
.gallery-item .g-zoom { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; }
.gallery-item .g-zoom svg { width: 40px; height: 40px; stroke: #fff; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover::after, .gallery-item:hover .g-zoom { opacity: 1; }
.gallery-item:hover .g-zoom { transform: scale(1); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(6,20,33,.92); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); transform: scale(.92); transition: transform .4s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,.12); border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; color: #fff; transition: background .3s, transform .3s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--teal-500); transform: scale(1.08); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }

/* ============================ FAQ ACCORDION ============================ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(104,185,226,.4); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--heading); font-size: 1.05rem; }
.faq-q .faq-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, transform .4s; color: var(--primary); }
.faq-item.open .faq-q .faq-ic { background: var(--grad-primary); color: #fff; transform: rotate(135deg); }
.faq-q .faq-ic svg { width: 18px; height: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--muted); }

/* ============================ CTA BANNER ============================ */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(44px, 6vw, 72px); color: #fff; text-align: center; background: var(--grad-primary); box-shadow: var(--shadow-lg); }
.cta-banner::before, .cta-banner::after { content:""; position:absolute; border-radius:50%; filter: blur(50px); opacity:.5; }
.cta-banner::before { width: 300px; height: 300px; background: rgba(104,185,226,.6); top:-120px; left:-60px; }
.cta-banner::after { width: 300px; height: 300px; background: rgba(137,84,156,.5); bottom:-120px; right:-60px; }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255,255,255,.9); position: relative; max-width: 620px; margin: 14px auto 30px; font-size: 1.1rem; }
.cta-banner .hero-actions { justify-content: center; position: relative; margin-bottom: 0; }

/* ============================ CONTACT / FORMS ============================ */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info-card { text-align: center; padding: 34px 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .4s var(--ease), box-shadow .4s; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card .ic-ico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-primary); display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.info-card .ic-ico svg { width: 28px; height: 28px; stroke: #fff; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.info-card p, .info-card a { color: var(--muted); font-size: .96rem; }
.info-card a:hover { color: var(--teal-600); }

.form-wrap { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--heading); margin-bottom: 8px; }
.form-group label .req { color: #ef4444; }
.form-control {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  background: var(--gray-50); color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-control:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(104,185,226,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-control.invalid { border-color: #ef4444; background: #fef2f2; }
.form-error { color: #ef4444; font-size: .82rem; margin-top: 6px; display: none; }
.form-group.error .form-error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.form-success {
  display: none; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(34,197,94,.12); border: 1px solid rgba(104,185,226,.35); color: #15803d; margin-bottom: 20px; font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; stroke: #15803d; flex-shrink: 0; }

/* Hours list */
.hours-list { display: grid; gap: 10px; }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { font-weight: 600; color: var(--heading); font-family: var(--font-head); }
.hours-list li .closed { color: #ef4444; font-weight: 600; }
.hours-list li .open-now { color: var(--green-500); font-weight: 600; }

/* Map */
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); line-height: 0; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.15) contrast(1.02); }

/* ============================ ABOUT specific ============================ */
.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.qual-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .35s var(--ease); }
.qual-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.qual-item .q-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; color: var(--teal-600); flex-shrink: 0; }
.qual-item .q-ico svg { width: 24px; height: 24px; stroke: var(--teal-600); }
.qual-item strong { display: block; color: var(--heading); font-family: var(--font-head); }
.qual-item small { color: var(--muted); }

.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mvv-card { padding: 38px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mvv-card .m-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-primary); display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.mvv-card .m-ico svg { width: 30px; height: 30px; stroke: #fff; }
.mvv-card h3 { margin-bottom: 12px; }
.mvv-card p { color: var(--muted); }

/* Timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 20px; }
.timeline::before { content:""; position:absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--grad-primary); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 40px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:""; position:absolute; left: -8px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--teal-500); box-shadow: 0 0 0 4px rgba(104,185,226,.15); }
.tl-item .tl-year { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--teal-600); margin-bottom: 6px; }
.tl-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .96rem; }

/* Achievements */
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ach-card { text-align: center; padding: 30px 20px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: transform .4s var(--ease), background .4s; }
.ach-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.ach-card .a-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--grad-accent); display: grid; place-items: center; }
.ach-card .a-ico svg { width: 28px; height: 28px; stroke: #fff; }
.ach-card strong { font-family: var(--font-head); font-size: 1.9rem; color: #fff; display: block; line-height: 1; }
.ach-card span { color: #dbc9e3; font-size: .92rem; }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--grad-soft); color: var(--teal-700, var(--teal-600)); font-size: .88rem; font-weight: 600; font-family: var(--font-head); border: 1px solid var(--border); }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Category tabs (services filter) */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.filter-tab { padding: 10px 22px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--border); font-family: var(--font-head); font-weight: 500; color: var(--gray-600); transition: all .3s var(--ease); }
.filter-tab.active, .filter-tab:hover { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* Appointment layout */
.appt-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.side-card { background: var(--blue-900); color: #e6dbea; border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-md); }
.side-card h3 { color: #fff; margin-bottom: 18px; }
.side-card .hours-list li { border-color: rgba(255,255,255,.12); }
.side-card .hours-list li span:first-child { color: #fff; }
.side-card .emergency { margin-top: 26px; padding: 20px; border-radius: var(--r-md); background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); }
.side-card .emergency strong { color: #fff; display: block; margin-bottom: 4px; }
.side-card .emergency a { color: #fca5a5; font-size: 1.2rem; font-weight: 700; font-family: var(--font-head); }

/* Service detail pages */
.service-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-detail-content { min-height: 380px; }
.content-placeholder { margin-top: 28px; padding: clamp(28px, 4vw, 46px); border: 2px dashed rgba(104,185,226,.45); border-radius: var(--r-xl); background: var(--grad-soft); }
.content-placeholder h3 { margin-bottom: 8px; }
.service-intro { margin: 18px 0 30px; }
.service-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.service-info-card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.service-info-card h3 { margin-bottom: 18px; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.service-list li { position: relative; padding-left: 24px; color: var(--gray-700); }
.service-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-600); font-weight: 800; }
.service-info-grid .service-list { grid-template-columns: 1fr; }
.service-symptoms { margin-top: 22px; border-left: 4px solid var(--teal-500); }
.service-symptoms + .service-info-card { margin-top: 22px; }
.service-detail-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.service-detail-aside p { margin-bottom: 24px; }

/* ============================ 11. FOOTER ============================ */
.site-footer { background: var(--blue-900); color: #c9b8d0; position: relative; overflow: hidden; }
.footer-top { padding: clamp(56px, 8vw, 90px) 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-about { margin: 20px 0 24px; font-size: .95rem; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #e6dbea; transition: transform .35s var(--ease), background .35s, color .35s; }
.footer-social a:hover { background: var(--grad-accent); color: #fff; transform: translateY(-4px); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content:""; position:absolute; left:0; bottom:0; width: 34px; height: 3px; background: var(--grad-accent); border-radius: 3px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; transition: color .3s, transform .3s; }
.footer-links a::before { content:"›"; color: var(--teal-400); font-size: 1.1rem; transition: transform .3s; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .95rem; align-items: flex-start; }
.footer-contact li svg { width: 20px; height: 20px; stroke: var(--teal-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact li a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.newsletter-form input::placeholder { color: #ad99b6; }
.newsletter-form input:focus { outline: none; border-color: var(--teal-400); }
.newsletter-form button { width: 50px; border-radius: var(--r-sm); background: var(--grad-accent); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s; }
.newsletter-form button:hover { transform: scale(1.06); }
.newsletter-form button svg { width: 20px; height: 20px; stroke: #fff; }
.footer-badges { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.footer-badges .fb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #e6dbea; }
.footer-badges .fb svg { width: 18px; height: 18px; stroke: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .88rem; margin: 0; }
.footer-bottom a { color: #e6dbea; }
.footer-bottom a:hover { color: var(--teal-400); }
.footer-bottom-links { display: flex; gap: 20px; font-size: .88rem; }

/* Back to top */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; display: grid; place-items: center; z-index: 900;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-lg); }
.back-to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* WhatsApp float */
.wa-float { position: fixed; left: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; z-index: 900; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .35s var(--ease-bounce); animation: float 3.5s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25d366; animation: ring 2s ease-out infinite; }
@keyframes ring { 0%{transform:scale(1); opacity:.7} 100%{transform:scale(1.7); opacity:0} }

/* ============================ 12. ANIMATIONS ============================ */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* Scroll reveal — signature motion: soft blur + rise + spring settle */
[data-reveal] {
  opacity: 0;
  transform: translateY(64px) scale(.96);
  filter: blur(8px);
  transition: opacity .7s var(--ease), transform .95s var(--ease-spring), filter .7s var(--ease);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* directional / flavoured variants (all resolve to none on .in) */
[data-reveal="left"]   { transform: translateX(-72px) rotate(-1.5deg); filter: blur(6px); }
[data-reveal="right"]  { transform: translateX(72px) rotate(1.5deg); filter: blur(6px); }
[data-reveal="up"]     { transform: translateY(96px); }
[data-reveal="zoom"]   { transform: scale(.8); }
[data-reveal="blur"]   { filter: blur(18px); transform: translateY(28px); }
[data-reveal="flip"]   { transform: perspective(1000px) rotateX(-34deg); transform-origin: center bottom; filter: blur(4px); }
[data-reveal="skew"]   { transform: translateY(60px) skewY(5deg); }
[data-reveal="rotate"] { transform: rotate(-7deg) translateY(48px) scale(.94); }

/* ==== Cinematic hero intro (index): decode + line-mask + portrait wipe ==== */

/* slow ambient zoom on the backdrop */
.hero-bg img { animation: kenBurns 22s ease-in-out infinite alternate; }
@keyframes kenBurns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}

/* supporting copy fades up in sequence (headline handled on its own) */
.hero .hero-content > *:not(h1) { opacity: 0; }
body.loaded .hero .hero-content > *:not(h1) { animation: heroRise 1s var(--ease-spring) both; }
body.loaded .hero .hero-content > *:nth-child(1) { animation-delay: .20s; }  /* badge  */
body.loaded .hero .hero-content > *:nth-child(3) { animation-delay: .80s; }  /* subtext */
body.loaded .hero .hero-content > *:nth-child(4) { animation-delay: .92s; }  /* buttons */
body.loaded .hero .hero-content > *:nth-child(5) { animation-delay: 1.04s; } /* trust  */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* headline: each line sweeps up from behind a mask */
.hero h1 .hl-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .hl-in { display: block; transform: translateY(120%); }
body.loaded .hero h1 .hl-in { animation: hlUp .95s var(--ease-spring) both; }
body.loaded .hero h1 .hl-line:nth-child(1) .hl-in { animation-delay: .36s; }
body.loaded .hero h1 .hl-line:nth-child(2) .hl-in { animation-delay: .50s; }
body.loaded .hero h1 .hl-line:nth-child(3) .hl-in { animation-delay: .64s; }
@keyframes hlUp { from { transform: translateY(120%); } to { transform: translateY(0); } }

/* the rotating accent word DECODES; scrambling glyphs shimmer */
.hero h1 .type-target { position: relative; }
.hero h1 .type-target .scramble-ch { color: var(--green-400); opacity: .9; }

/* portrait wipes in left-to-right while its frame floats */
.hero .hero-visual { opacity: 0; }
body.loaded .hero .hero-visual { animation: heroReveal 1s var(--ease) both; animation-delay: .5s; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero .hero-photo img { clip-path: inset(0 100% 0 0); }
body.loaded .hero .hero-photo img { animation: photoWipe 1.15s var(--ease-spring) both; animation-delay: .68s; }
@keyframes photoWipe {
  from { clip-path: inset(0 100% 0 0); transform: scale(1.12); }
  to   { clip-path: inset(0 0 0 0);   transform: scale(1); }
}


/* Stagger via delay data attr handled in JS; fallback classes */
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }

/* Parallax layer */
[data-parallax] { will-change: transform; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero .hero-content > *, .hero .hero-visual { opacity: 1 !important; }
  .hero h1 .hl-in { transform: none !important; }
  .hero .hero-photo img { clip-path: none !important; }
  .hero-bg img { animation: none !important; }
  .cursor-dot, .cursor-ring, .cursor-trail { display: none !important; }
}

/* ============================ 13. RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 440px; margin: 40px auto 0; }
  .split { grid-template-columns: 1fr; }
  .appt-grid { grid-template-columns: 1fr; }
  .grid-4, .stats-grid, .process-grid, .info-cards, .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .process-grid.connected .process-step::after { display: none; }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-detail-aside { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column;
    align-items: stretch; justify-content: flex-start; gap: 6px; padding: calc(var(--header-h) + 24px) 24px 40px;
    background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%);
    transition: transform .5s var(--ease); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 15px 18px; border-radius: var(--r-md); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--grad-soft); }
  .nav-links li { opacity: 0; transform: translateX(20px); }
  .nav-links .nav-submenu { position: static; width: 100%; margin-top: 4px; padding: 4px 0 4px 14px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; }
  .nav-links .nav-submenu li { opacity: 1; transform: none; animation: none !important; }
  .nav-links .nav-submenu a { padding: 10px 14px; font-size: .9rem; }
  .nav-caret { display: none; }
  .nav-links.open li { animation: navItemIn .5s var(--ease) forwards; }
  .nav-links.open li:nth-child(1){animation-delay:.08s} .nav-links.open li:nth-child(2){animation-delay:.14s}
  .nav-links.open li:nth-child(3){animation-delay:.20s} .nav-links.open li:nth-child(4){animation-delay:.26s}
  .nav-links.open li:nth-child(5){animation-delay:.32s} .nav-links.open li:nth-child(6){animation-delay:.38s}
  @keyframes navItemIn { to { opacity:1; transform:none; } }
  .nav-toggle { display: block; z-index: 1001; }
  .nav-cta .nav-phone { display: none; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(53,33,63,.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 999; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4, .stats-grid, .process-grid, .info-cards, .ach-grid, .qual-grid, .form-row { grid-template-columns: 1fr; }
  .service-info-grid, .service-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
  .hero-float-card.fc-1 { left: 6px; top: 12px; padding: 10px 12px; }
  .hero-float-card.fc-2 { right: 6px; bottom: 12px; padding: 10px 12px; }
  .hero-float-card strong { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .split-media .exp-badge { right: 50%; transform: translateX(50%); }
  .tcard { padding: 30px 22px; }
  .tcard p { font-size: 1.02rem; }
  .btn { padding: 14px 24px; }
  .back-to-top, .wa-float { width: 46px; height: 46px; }
}
