/* ==========================================================================
   Crestcare Medical Centre
   Stylesheet — design system + components
   ========================================================================== */

:root {
  --teal-950: #041e1c;
  --teal-900: #063a36;
  --teal-800: #0b4f49;
  --teal-700: #0f766e;
  --teal-600: #14a89c;
  --teal-500: #1cc4b7;
  --teal-400: #4fd8cd;
  --mint-100: #e6fbf6;
  --mint-50: #f4fdfb;
  --navy-900: #071b30;
  --gold-500: #f2a41f;
  --gold-600: #d68c0f;
  --ink-950: #0a1815;
  --ink-900: #10241f;
  --ink-700: #3c5a54;
  --ink-500: #6b8d86;
  --ink-300: #a7c0ba;
  --white: #ffffff;
  --off-white: #f8fbfa;
  --line: #e3efec;
  --shadow-xs: 0 1px 4px rgba(6, 30, 28, 0.06);
  --shadow-sm: 0 4px 16px rgba(6, 30, 28, 0.08);
  --shadow-md: 0 14px 36px rgba(6, 30, 28, 0.12);
  --shadow-lg: 0 26px 60px rgba(6, 30, 28, 0.18);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 34px;
  --ease: cubic-bezier(.65,0,.35,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ff-head: 'Sora', sans-serif;
  --ff-body: 'Manrope', sans-serif;
  --section-pad: clamp(4.5rem, 8vw, 8.5rem);
}

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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5 { font-family: var(--ff-head); line-height: 1.15; color: var(--teal-950); font-weight: 700; letter-spacing: -0.01em; }

::selection { background: var(--teal-600); color: var(--white); }

/* custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--teal-600); border-radius: 10px; border: 2px solid var(--off-white); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section-pad) 0; }
.hide-sm { display: inline; }

/* fluid type helpers */
.h-xxl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h-xl  { font-size: clamp(2.1rem, 4vw, 3rem); }
.h-lg  { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* ---------- noise overlay ---------- */
.noise {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
  z-index: 9997; transition: width .1s linear;
}

/* ---------- page transition overlay ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950));
  transform: translateY(0);
  transition: transform .7s var(--ease);
}
.page-transition.exit { transform: translateY(-100%); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9996;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: var(--teal-600); transition: opacity .2s; }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--teal-500); transition: width .2s, height .2s, border-color .2s, opacity .2s; opacity: .6; }
.cursor-ring.hovering { width: 54px; height: 54px; border-color: var(--gold-500); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .93rem; font-family: var(--ff-head);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-800); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--ink-900); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--teal-700); background: var(--teal-700); color: var(--white); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--teal-900); }
.btn-light:hover { background: var(--gold-500); color: var(--white); transform: translateY(-3px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: .82rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
.btn-ghost-icon {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); transition: all .3s var(--ease-out);
}
.btn-ghost-icon:hover { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); transform: translateY(-3px); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-weight: 700;
  font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.eyebrow.light { color: var(--teal-400); }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-500); }

/* ---------- topbar ---------- */
.topbar { background: var(--teal-950); color: rgba(255,255,255,0.82); font-size: .82rem; position: relative; z-index: 600; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.topbar-left { display: flex; gap: 24px; min-width: 0; }
.topbar-left a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-left a:hover { color: var(--teal-400); }
.topbar-left svg { width: 14px; height: 14px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.badge-open { background: rgba(28,196,183,0.16); color: var(--teal-400); padding: 4px 13px; border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.social-mini { display: flex; gap: 10px; }
.social-mini a { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.social-mini a:hover { background: var(--teal-600); border-color: var(--teal-600); }
.social-mini svg { width: 13px; height: 13px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s ease, border-color .3s ease, padding .3s ease; }
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--teal-800); color: var(--white); }
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { font-family: var(--ff-head); font-weight: 800; font-size: 1.28rem; color: var(--teal-950); line-height: 1.05; }
.logo-text span { color: var(--gold-500); }
.logo-text small { display: block; font-family: var(--ff-body); font-weight: 700; font-size: .58rem; letter-spacing: 1px; color: var(--ink-500); text-transform: uppercase; margin-top: 2px; }
.logo-text.light { color: var(--white); }

.nav-wrap { position: relative; display: flex; background: var(--off-white); border-radius: 999px; padding: 5px; border: 1px solid var(--line); }
.nav-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--teal-700); transition: left .4s var(--ease-out), width .4s var(--ease-out); z-index: 0; }
.nav { display: flex; gap: 2px; position: relative; z-index: 1; }
.nav-link { position: relative; font-weight: 700; font-size: .87rem; color: var(--ink-700); padding: 10px 19px; border-radius: 999px; transition: color .3s ease; }
.nav-link.active, .nav-link:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; align-items: center; justify-content: center; z-index: 1200; }
.hamburger span { display: block; height: 2px; width: 24px; background: var(--teal-950); border-radius: 2px; transition: transform .35s var(--ease), opacity .35s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile full-screen menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--teal-950); z-index: 1100;
  display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px,8vw,60px);
  transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-link { color: rgba(255,255,255,0.55); font-size: clamp(1.8rem, 7vw, 2.6rem); font-family: var(--ff-head); font-weight: 800; padding: 12px 0; display: block; }
.mobile-menu .nav-link.active, .mobile-menu .nav-link:hover { color: var(--white); }
.mobile-menu-foot { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.mobile-menu-foot a { color: rgba(255,255,255,0.7); font-weight: 600; }
.mobile-menu-foot .btn { color: var(--white); margin-bottom: 4px; }

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: clamp(70px,14vw,120px) 0 clamp(50px,8vw,80px);
  background: var(--teal-900); overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5;
}
.page-banner-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--teal-400); }
.page-banner h1 { color: var(--white); font-size: clamp(2.3rem, 5.5vw, 3.6rem); max-width: 700px; }
.page-banner p { color: rgba(255,255,255,0.7); max-width: 560px; margin-top: 16px; font-size: 1.05rem; }

/* ================= HOME HERO ================= */
.hero { position: relative; padding: clamp(50px,8vw,90px) 0 0; overflow: hidden; background: var(--off-white); }
.dot-field {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(11,79,73,0.10) 1.5px, transparent 1.5px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,60px); align-items: center; padding-bottom: clamp(60px,8vw,100px); }

.hero-content h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-bottom: 20px; }
.split-title .line { display: block; overflow: hidden; }
.split-title .line span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.split-title .line:nth-child(2) span { transition-delay: .08s; }
.split-title .line:nth-child(3) span { transition-delay: .16s; }
.split-title.reveal-text .line span { transform: translateY(0); }
.hero-content h1 .accent { color: var(--teal-600); font-style: italic; }
.hero-sub { color: var(--ink-700); font-size: 1.1rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-actions.center { justify-content: center; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ink-700); box-shadow: var(--shadow-xs); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; color: var(--teal-600); }

.hero-visual { position: relative; }
.collage { position: relative; height: clamp(360px, 42vw, 520px); }
.tilt-card { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform-style: preserve-3d; will-change: transform; transition: transform .1s ease; }
.collage .tilt-card.main { width: 76%; height: 88%; top: 0; right: 0; }
.collage .tilt-card.sub { width: 52%; height: 46%; left: 0; bottom: 0; border: 5px solid var(--white); }

.photo-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-950));
  color: rgba(255,255,255,0.72); position: relative;
}
.photo-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px); background-size: 20px 20px;
}
.photo-placeholder svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.photo-placeholder span { font-size: .78rem; font-weight: 700; letter-spacing: .4px; position: relative; z-index: 1; text-align: center; padding: 0 16px; }
.photo-placeholder.alt { background: linear-gradient(150deg, var(--gold-600), #8a5a06); }

/* real photography (stock, license-free — see HTML comments for swap notes) */
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.tilt-card .ph-img { border-radius: inherit; }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; background: var(--white);
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 2; animation: bob 5s ease-in-out infinite;
}
.float-badge .fb-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--mint-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-badge .fb-icon svg { width: 20px; height: 20px; }
.float-badge strong { display: block; font-size: .85rem; color: var(--teal-950); }
.float-badge small { color: var(--ink-500); font-size: .72rem; }
.badge-top { top: -6%; left: -8%; animation-delay: 0s; }
.badge-bot { bottom: 6%; right: -10%; animation-delay: 1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- marquee ---------- */
.marquee-strip { background: var(--teal-950); padding: 16px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--ff-head); font-weight: 700; font-size: .95rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span em { color: var(--gold-500); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stat strip ---------- */
.stat-strip { padding: clamp(50px,7vw,80px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; text-align: center; }
.stat { padding: 0 10px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num { display: block; font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--teal-700); }
.stat-label { color: var(--ink-500); font-size: .82rem; font-weight: 700; }

/* ---------- section head ---------- */
.section-head { max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.section-head.left { margin: 0 0 3.5rem; text-align: left; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--ink-500); margin-top: 14px; font-size: 1.02rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 3.5rem; flex-wrap: wrap; }

/* ---------- services preview / grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.service-card {
  position: relative; background: var(--white); border-radius: var(--r-md); padding: 30px 26px;
  border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-num { position: absolute; top: 22px; right: 26px; font-family: var(--ff-head); font-weight: 800; font-size: .78rem; color: var(--ink-300); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; background: var(--mint-100); color: var(--teal-700); transition: background .35s ease, color .35s ease; }
.service-card:hover .service-icon { background: var(--teal-700); color: var(--white); }
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.service-card p { color: var(--ink-500); font-size: .9rem; margin-bottom: 16px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--teal-700); }
.service-link svg { width: 14px; height: 14px; transition: transform .3s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* category filter pills (services page) */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-pill { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .84rem; color: var(--ink-700); transition: all .3s ease; }
.filter-pill.active, .filter-pill:hover { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }

/* ---------- dialysis banner ---------- */
.dialysis { position: relative; padding: var(--section-pad) 0; background: var(--teal-950); color: var(--white); overflow: hidden; }
.dialysis::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px); background-size: 30px 30px; }
.dialysis-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,60px); align-items: center; }
.dialysis-content h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 18px; }
.dialysis-content > p { color: rgba(255,255,255,0.7); margin-bottom: 34px; font-size: 1.03rem; max-width: 520px; }
.d-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 22px; margin-bottom: 36px; }
.d-feature { display: flex; gap: 14px; align-items: flex-start; }
.d-feature .df-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: rgba(28,196,183,0.15); color: var(--teal-400); display: flex; align-items: center; justify-content: center; }
.d-feature svg { width: 18px; height: 18px; }
.d-feature strong { display: block; margin-bottom: 4px; font-size: .96rem; }
.d-feature p { color: rgba(255,255,255,0.55); font-size: .85rem; }
.dialysis-visual .tilt-card { height: clamp(320px, 34vw, 440px); width: 100%; position: relative; }

/* ---------- why us (numbered) ---------- */
.why-list { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); align-items: center; transition: padding .3s ease; }
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-row:hover { padding-left: 14px; background: var(--mint-50); }
.why-index { font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; color: var(--ink-300); }
.why-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: center; }
.why-body h3 { font-size: 1.12rem; }
.why-body p { color: var(--ink-500); font-size: .92rem; }

/* ---------- departments (about) ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.dept-card { background: var(--off-white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 26px; transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dept-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--teal-800); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.dept-icon svg { width: 26px; height: 26px; }
.dept-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.dept-card p { color: var(--ink-500); font-size: .9rem; }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px,5vw,70px); align-items: center; }
.about-visual { position: relative; }
.badge-float { position: absolute; bottom: -22px; left: -22px; background: var(--white); padding: 18px 22px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold-500); z-index: 2; }
.badge-float strong { display: block; color: var(--teal-900); font-family: var(--ff-head); font-size: 1.05rem; }
.badge-float span { font-size: .78rem; color: var(--ink-500); }
.about-content p { color: var(--ink-700); margin-bottom: 16px; }
.check-list { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { color: var(--ink-700); padding-left: 32px; position: relative; font-weight: 600; font-size: .95rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; margin-top: 20px; }
.mv-card { padding: 34px 30px; border-radius: var(--r-lg); }
.mv-card.mission { background: var(--teal-800); color: var(--white); }
.mv-card.vision { background: var(--mint-100); color: var(--teal-950); }
.mv-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: inherit; }
.mv-card.mission p { color: rgba(255,255,255,0.75); }
.mv-card.vision p { color: var(--ink-700); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item:nth-child(3n+2) { aspect-ratio: 4/5; }
.gallery-item .photo-placeholder { transition: transform .5s var(--ease-out); }
.gallery-item:hover .photo-placeholder,
.gallery-item:hover .ph-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,30,28,0.85), transparent 55%);
  display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 700; font-size: .88rem; }
.gallery-item[data-cat] { display: block; }
[data-cat].hidden { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(4,30,28,0.94); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; padding: 30px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; width: min(720px, 90vw); aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox-frame { width: 100%; height: 100%; }
.lightbox-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 26px; background: linear-gradient(0deg, rgba(4,30,28,0.85), transparent); color: var(--white); font-weight: 700; }
.lightbox-close, .lightbox-nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--teal-600); }
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { top: 50%; left: -60px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: -60px; transform: translateY(-50%); }
@media (max-width: 780px) { .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox-close { top: 6px; right: 6px; background: rgba(4,30,28,0.6); } }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--gold-500); background: linear-gradient(115deg, var(--gold-600), var(--gold-500)); padding: clamp(50px,8vw,80px) 0; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.15) 1.5px, transparent 1.5px); background-size: 24px 24px; }
.cta-strip-inner { position: relative; z-index: 1; text-align: center; }
.cta-strip-inner h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 12px; }
.cta-strip-inner p { color: rgba(255,255,255,0.9); margin-bottom: 30px; }

/* ---------- booking / contact ---------- */
.booking-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px,5vw,60px); }
.info-card { background: var(--teal-950); color: var(--white); border-radius: var(--r-lg); padding: 40px 34px; }
.info-card h2 { color: var(--white); font-size: clamp(1.6rem,3vw,2rem); margin-bottom: 14px; }
.info-card > p { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.info-row { display: flex; gap: 16px; margin-bottom: 24px; }
.info-row .ir-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(28,196,183,0.15); color: var(--teal-400); display: flex; align-items: center; justify-content: center; }
.info-row svg { width: 19px; height: 19px; }
.info-row strong { display: block; margin-bottom: 3px; font-size: .92rem; }
.info-row p, .info-row a { color: rgba(255,255,255,0.65); font-size: .88rem; }
.info-row a:hover { color: var(--teal-400); }
.info-card .social-mini a { border-color: rgba(255,255,255,0.25); }

.booking-form { background: var(--white); border-radius: var(--r-lg); padding: clamp(28px,4vw,42px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--teal-900); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; font-size: .92rem;
  color: var(--ink-900); background: var(--off-white); transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(28,196,183,0.14); background: var(--white); }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--teal-700); font-weight: 700; min-height: 18px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--off-white); transition: border-color .3s ease; }
.faq-item.open { border-color: var(--teal-500); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-family: var(--ff-head); font-weight: 700; font-size: .98rem; color: var(--teal-950); text-align: left; }
.faq-toggle { width: 30px; height: 30px; border-radius: 50%; background: var(--mint-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s ease, background .3s ease; }
.faq-toggle svg { width: 14px; height: 14px; }
.faq-item.open .faq-toggle { transform: rotate(135deg); background: var(--teal-600); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 26px 22px; color: var(--ink-700); font-size: .93rem; }

/* ---------- map ---------- */
.map-block { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; }
.map-block iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--teal-950); color: rgba(255,255,255,0.72); }
.footer-cta { padding: clamp(50px,8vw,80px) 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-cta h2 { color: var(--white); font-size: clamp(1.7rem,4vw,2.5rem); max-width: 520px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 50px; }
.footer-brand p { margin: 16px 0 22px; font-size: .88rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .92rem; margin-bottom: 20px; letter-spacing: .5px; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; margin-bottom: 13px; font-size: .89rem; color: rgba(255,255,255,0.58); }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,0.45); }

/* ---------- back to top ---------- */
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-700); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s ease; z-index: 400; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-wrap, .header-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .hero-inner, .about-grid, .dialysis-grid, .booking-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .why-body { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { display: none; }
  .logo-text { font-size: 1.1rem; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .badge-float { position: static; margin-top: 18px; display: inline-flex; flex-direction: column; }
  .about-visual { display: flex; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 50px 1fr; }
}
