/* ================================================================
   Family Plus Silverberry Medical Centre
   Clean modern clinic aesthetic — 2026
   ================================================================ */

/* --- Tokens ---------------------------------------------------- */
:root {
  --teal: #1CB9D1;
  --teal-light: #33d4e8;
  --teal-dark: #0ea8c2;
  --teal-deep: #239663;
  --green: #33AB5F;
  --navy: #0f172a;
  --navy-mid: #0d2545;

  --white: #ffffff;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;

  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.12);
  --shadow-teal: 0 8px 24px rgba(28,185,209,0.30);
  --shadow-navy: 0 8px 32px rgba(15,23,42,0.3);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --container: min(1180px, calc(100vw - 48px));

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.25s;
  --dur-slow: 0.55s;
}

/* --- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* --- Layout ---------------------------------------------------- */
.container { width: var(--container); margin: 0 auto; }

/* ================================================================
   PRELOADER
   ================================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  width: 160px;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-logo img { width: 100%; height: auto; display: block; }
.preloader-track {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  margin-top: 28px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  border-radius: var(--r-full);
  animation: preloaderFill 1.4s var(--ease-out) forwards;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.8; }
}
@keyframes preloaderFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- Scroll Reveal --------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal-left].revealed { opacity: 1; transform: none; }

[data-reveal-right] {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal-right].revealed { opacity: 1; transform: none; }

[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-spring);
}
[data-reveal-scale].revealed { opacity: 1; transform: scale(1); }

[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal-delay="2"] { transition-delay: 0.15s; }
[data-reveal-delay="3"] { transition-delay: 0.23s; }
[data-reveal-delay="4"] { transition-delay: 0.31s; }

/* Hero content is always visible — never animated in */
.hero-content,
.page-hero-content { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Floating animation for hero strip icons */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.hero-strip-icon { animation: floatY 3s ease-in-out infinite; }
.hero-strip-item:nth-child(3) .hero-strip-icon { animation-delay: 0.6s; }
.hero-strip-item:nth-child(5) .hero-strip-icon { animation-delay: 1.2s; }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
  background: var(--navy);
  color: #ffffff;
  font-size: 0.875rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.topbar-inner p { margin: 0; color: #ffffff; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-links a { transition: color var(--dur) var(--ease); }
.topbar-links a:hover { color: var(--teal-light); }

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--dur) var(--ease);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

/* ================================================================
   BRAND
   ================================================================ */
.brand { display: inline-flex; align-items: center; gap: 12px; transition: opacity var(--dur) var(--ease); }
.brand:hover { opacity: 0.84; }

.brand-mark {
  width: auto;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: transform var(--dur) var(--ease-spring);
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-mark img { width: 116px; height: auto; display: block; }
.header .brand-mark { width: auto; height: 80px; }
.header .brand-mark img { height: 80px; width: auto; }

.footer .brand-mark {
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 5px 8px;
  width: auto;
  height: auto;
}
.footer .brand-mark img { height: 70px; width: auto; }

.brand-cross { display: none; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong, h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; }
.brand-copy strong { font-size: 0.88rem; max-width: 30ch; color: var(--navy); font-weight: 700; }
.header .brand-copy strong { color: #DC2626; }
.brand-copy span { color: var(--text-soft); font-size: 0.77rem; margin-top: 2px; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); background: var(--bg); }
.nav a.is-active { color: var(--teal-dark); background: rgba(13,148,136,0.08); }

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: var(--r-full) !important;
  padding: 9px 20px !important;
  margin-left: 6px;
  font-weight: 700 !important;
  box-shadow: var(--shadow-teal);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease) !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; transform: translateY(-1px) !important; box-shadow: 0 12px 32px rgba(13,148,136,0.38) !important; }
.nav-cta.is-active { background: var(--teal-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); border-radius: 2px; }

/* ================================================================
   EYEBROW
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(13,148,136,0.09);
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.7rem;
  border: 1px solid rgba(13,148,136,0.2);
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
}
h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--navy);
}
h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
p { margin: 0 0 16px; color: var(--text-soft); font-size: 1rem; line-height: 1.72; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 14px 36px rgba(13,148,136,0.4); }

.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--teal); background: rgba(13,148,136,0.04); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.7); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ================================================================
   MINI LABEL
   ================================================================ */
.mini-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 800;
}

/* ================================================================
   HERO  —  Full-width photo, dark overlay, white text
   ================================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(15,23,42,0.90) 0%,
    rgba(15,23,42,0.65) 55%,
    rgba(13,148,136,0.28) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 110px 0 56px;
}

.hero-content { max-width: 740px; color: white; }

.hero-content .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
}

.hero-identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg);
  background: rgba(15,23,42,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-identity-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 78px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.96);
}

.hero-identity-logo img {
  width: 100%;
  height: auto;
}

.hero-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-identity-copy strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-identity-copy span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}

.hero-content h1 {
  color: white;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  margin: 16px 0 18px;
}

.hero-content > p {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 54ch;
  margin-bottom: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-inline-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-inline-points span {
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* --- Hero info strip ------------------------------------------ */
.hero-strip {
  position: relative;
  z-index: 2;
  background: rgba(8,14,28,0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-strip-inner { display: flex; align-items: stretch; }

.hero-strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
}
.hero-strip-item > div { display: flex; flex-direction: column; gap: 4px; }

.hero-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal-light);
}
.hero-strip-icon svg { width: 18px; height: 18px; }

.hero-strip-divider { width: 1px; background: rgba(255,255,255,0.1); margin: 14px 0; flex-shrink: 0; }

.hero-strip-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--teal-light);
}
.hero-strip-value { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.88); line-height: 1.45; }
a.hero-strip-value { transition: color var(--dur) var(--ease); }
a.hero-strip-value:hover { color: var(--teal-light); }

/* ================================================================
   PAGE HERO  —  Inner pages compact banner
   ================================================================ */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(15,23,42,0.90) 0%,
    rgba(15,23,42,0.65) 55%,
    rgba(13,148,136,0.25) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 680px;
  padding: 72px 0 80px;
}

.page-hero-content .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
}
.page-hero-content h1 { color: white; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; margin: 14px 0 14px; }
.page-hero-content p { color: rgba(255,255,255,0.76); font-size: 1.08rem; max-width: 52ch; margin-bottom: 0; }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip { padding: 40px 0 64px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  background: var(--white);
  padding: 32px 40px;
  text-align: center;
  border-right: 1.5px solid var(--border);
  transition: background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal-dark));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.stat-item:hover { background: var(--bg); }
.stat-item:hover::before { opacity: 1; }
.stat-item:last-child { border-right: none; }

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13,148,136,0.1);
  border: 1.5px solid rgba(13,148,136,0.18);
  color: var(--teal);
  margin: 0 auto 14px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-item:hover .stat-icon { background: rgba(13,148,136,0.18); transform: scale(1.08); }

.stat-number { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 6px; letter-spacing: -0.04em; }
.stat-label { font-size: 0.82rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section, .updates-section { padding: 40px 0 96px; }

.section-alt,
.section-grey,
.section-accent,
.services-showcase { background: var(--bg); }

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

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-heading.slim { align-items: center; }
.section-heading p { max-width: 500px; margin-bottom: 0; }
.section-heading-centered { flex-direction: column; align-items: center; text-align: center; }
.section-heading-centered p { max-width: 680px; }

/* ================================================================
   SPLIT LAYOUT
   ================================================================ */
.split-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 72px; }
.split-layout.reverse { grid-template-columns: 1.05fr 0.95fr; }

/* ================================================================
   MEDIA STACK
   ================================================================ */
.media-stack { position: relative; min-height: 540px; }
.media-stack-compact { min-height: 500px; }

.media-main { position: absolute; inset: 0 90px 70px 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); object-fit: cover; }
.media-float { position: absolute; right: 0; bottom: 0; width: 250px; height: 300px; border-radius: var(--r-lg); border: 8px solid var(--white); box-shadow: var(--shadow-md); object-fit: cover; }

/* ================================================================
   CONTENT STACK
   ================================================================ */
.content-stack { display: flex; flex-direction: column; gap: 8px; }

/* ================================================================
   ICON POINTS
   ================================================================ */
.icon-points { display: grid; gap: 16px; margin-top: 8px; }
.icon-points article { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }

.point-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(13,148,136,0.1);
  color: var(--teal-dark);
}
.point-icon svg { width: 24px; height: 24px; }
.icon-points strong { display: block; margin-bottom: 3px; color: var(--navy); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; }
.icon-points p { margin-bottom: 0; }

/* ================================================================
   FEATURE GRID
   ================================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(13,148,136,0.1);
  color: var(--teal-dark);
  margin-bottom: 18px;
  transition: transform var(--dur) var(--ease-spring);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-card h3 { color: var(--navy); }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ================================================================
   SERVICES PREVIEW
   ================================================================ */
.services-preview { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }

.services-preview article {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.services-preview article:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.service-preview-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: rgba(13,148,136,0.1);
  color: var(--teal-dark);
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease);
}
.services-preview article:hover .service-preview-icon { transform: scale(1.1); background: rgba(13,148,136,0.18); }
.services-preview article > .service-preview-icon:not([aria-hidden]) { display: none; }
.service-preview-icon svg { width: 34px; height: 34px; }

.service-card-corner { position: absolute; top: 0; left: 0; width: 52px; height: 52px; padding: 12px; color: var(--teal); background: linear-gradient(135deg, rgba(13,148,136,0.12) 50%, transparent 50%); }
.service-card-corner svg { width: 14px; height: 14px; }

.service-divider { display: block; width: 48px; height: 2px; margin: 0 auto 20px; border-radius: 2px; background: var(--teal); opacity: 0.5; }
.services-preview h3 { margin-bottom: 10px; font-size: 1.08rem; }
.services-preview p { max-width: 28ch; margin: 0 auto; font-size: 0.93rem; }
.services-link-row { display: flex; justify-content: center; margin-top: 28px; }

/* ================================================================
   SERVICES LIST (services page)
   ================================================================ */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }

.service-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.service-block h2 { color: var(--navy); font-size: 1.2rem; margin-bottom: 4px; }

.service-block ul, .notice-list, .footer-links, .contact-list { margin: 0; padding: 0; list-style: none; }
.service-block ul { margin-top: 16px; display: grid; gap: 8px; }

.service-block li, .notice-list li, .contact-list li {
  position: relative; padding-left: 20px; color: var(--text-soft); font-size: 0.95rem;
}
.service-block li::before, .notice-list li::before, .contact-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 999px; background: var(--teal);
}

/* ================================================================
   PRINCIPLES GRID
   ================================================================ */
.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.principles-grid article { padding: 18px; border-radius: var(--r-md); background: rgba(13,148,136,0.06); border: 1px solid rgba(13,148,136,0.14); transition: background var(--dur) var(--ease); }
.principles-grid article:hover { background: rgba(13,148,136,0.11); }
.principles-grid strong { display: block; margin-bottom: 4px; color: var(--navy); font-weight: 700; font-size: 0.9rem; font-family: "Plus Jakarta Sans", sans-serif; }
.principles-grid span { color: var(--text-soft); font-size: 0.87rem; }

/* ================================================================
   AFTER HOURS
   ================================================================ */
.after-hours { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 32px; }

.notice-panel { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-navy); }
.notice-panel h3 { color: #fff; margin-bottom: 18px; }
.notice-list { display: grid; gap: 10px; }
.notice-list li { color: rgba(255,255,255,0.78); }
.notice-list li::before { background: var(--teal-light); top: 9px; }
.notice-foot { margin-top: 20px; color: rgba(255,255,255,0.48); font-size: 0.9rem; margin-bottom: 0; }

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  background: var(--navy);
  color: #fff;
  padding: 52px 56px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.cta-band p, .cta-band h2, .cta-band .eyebrow { color: rgba(255,255,255,0.82); }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ================================================================
   QUICK FACTS
   ================================================================ */
.quick-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

.section-sitemap {
  background:
    radial-gradient(circle at top left, rgba(28,185,209,0.12), transparent 35%),
    linear-gradient(180deg, #f8fcff 0%, #eef6fb 100%);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.sitemap-card {
  display: block;
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.sitemap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(28,185,209,0.42);
}

.sitemap-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: rgba(28,185,209,0.12);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sitemap-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: var(--navy);
}

.sitemap-card p {
  margin: 0;
  color: var(--text-soft);
}

.fact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.fact-icon, .service-preview-icon, .point-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact-icon { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 14px; background: rgba(13,148,136,0.1); color: var(--teal-dark); }
.fact-icon svg { width: 22px; height: 22px; }

.quick-facts-grid h3, .feature-card h3, .service-block h2, .doctor-card h2, .update-card h3 { color: var(--navy); }
.quick-facts-grid p { color: var(--text-soft); font-size: 0.93rem; }

/* ================================================================
   INFO PANELS
   ================================================================ */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.info-panel, .form-panel, .contact-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 36px; }
.info-panel.accent, .accent-card { background: rgba(13,148,136,0.04); border-color: rgba(13,148,136,0.2); }

/* ================================================================
   LANGUAGE LIST
   ================================================================ */
.language-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.language-list span { padding: 8px 16px; border-radius: var(--r-full); background: rgba(13,148,136,0.08); color: var(--teal-dark); font-weight: 700; font-size: 0.87rem; border: 1px solid rgba(13,148,136,0.2); transition: background var(--dur) var(--ease); }
.language-list span:hover { background: rgba(13,148,136,0.15); }

/* ================================================================
   DOCTORS
   ================================================================ */
.doctors-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

.doctor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 28px 32px;
  text-align: center;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.doctor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-mid) 100%);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
  transition: transform var(--dur) var(--ease-spring);
}
.doctor-card:hover .doctor-avatar { transform: scale(1.07); }

.doctor-badge, .update-tag { display: inline-flex; padding: 5px 14px; border-radius: var(--r-full); background: var(--bg); color: var(--text-soft); font-size: 0.79rem; font-weight: 700; margin-bottom: 12px; border: 1px solid var(--border); }
.doctor-card h2 { font-size: 1.18rem; margin: 0 0 10px; }
.doctor-card p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }

/* ================================================================
   FORM
   ================================================================ */
.form-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 28px; }
.contact-panel { display: grid; gap: 20px; }
.contact-form, .form-grid { display: grid; gap: 18px; }
.form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

label { display: grid; gap: 7px; font-weight: 600; font-size: 0.87rem; color: var(--navy); }

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }

.form-note { font-size: 0.87rem; color: var(--text-muted); }
.text-link { color: var(--teal-dark); font-weight: 600; transition: color var(--dur) var(--ease); }
.text-link:hover { color: var(--teal); }

/* ================================================================
   UPDATES
   ================================================================ */
.updates-board { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.update-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.update-card.featured { background: rgba(13,148,136,0.04); border-color: rgba(13,148,136,0.2); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { margin-top: 24px; padding: 72px 0 88px; background: var(--navy); color: rgba(255,255,255,0.6); }

.footer-grid { display: grid; grid-template-columns: 1.1fr 0.7fr 0.9fr 0.8fr; align-items: start; gap: 48px; }
.footer-brand { margin-bottom: 18px; }
.footer .brand-copy strong { color: rgba(255,255,255,0.92); }
.footer .brand-copy span { color: rgba(255,255,255,0.38); }
.footer .brand-mark { box-shadow: 0 8px 24px rgba(13,148,136,0.24); }

.footer h3 { color: rgba(255,255,255,0.88); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-copy { max-width: 28ch; line-height: 1.88; font-size: 0.9rem; color: rgba(255,255,255,0.46); }

.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.58); font-size: 0.9rem; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--teal-light); }
.footer-links li:not(:has(a)) { color: rgba(255,255,255,0.46); font-size: 0.9rem; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li a, .footer-contact li span:not(.footer-link-icon) { color: rgba(255,255,255,0.58); font-size: 0.9rem; line-height: 1.5; }
.footer-link-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(20,184,166,0.12);
  color: var(--teal-light);
}
.footer-link-icon svg { width: 13px; height: 13px; }

/* ================================================================
   RESPONSIVE  1024px
   ================================================================ */
@media (max-width: 1024px) {
  .hero-inner { padding: 96px 0 48px; }

  .split-layout, .split-layout.reverse, .form-layout, .after-hours, .footer-grid, .info-grid, .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-band { grid-template-columns: 1fr; gap: 28px; padding: 40px 44px; }
  .cta-actions { justify-content: flex-start; }
  .feature-grid, .updates-board, .quick-facts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .services-preview, .services-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doctors-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .media-stack { min-height: 500px; }
  .hero-strip-inner { flex-wrap: wrap; }
  .hero-strip-item { flex: 0 0 50%; }
  .hero-strip-divider { display: none; }
  .page-hero-content { padding: 64px 0 72px; }
}

/* ================================================================
   RESPONSIVE  760px
   ================================================================ */
@media (max-width: 760px) {
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    position: absolute;
    left: 16px; right: 16px;
    top: calc(100% + 10px);
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 11px 14px; }
  .nav-cta { margin-left: 0 !important; width: 100%; text-align: center; border-radius: var(--r-md) !important; justify-content: center; }

  .hero { min-height: 78vh; }
  .hero-inner { padding: 72px 0 36px; }
  .hero-identity { width: 100%; align-items: flex-start; }
  .hero-identity-logo { width: 68px; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content > p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-strip-inner { flex-direction: column; }
  .hero-strip-item { padding: 12px 20px; gap: 12px; }
  .hero-strip-icon { width: 34px; height: 34px; border-radius: 8px; }
  .hero-strip-icon svg { width: 16px; height: 16px; }
  .hero-strip-divider { display: none; }

  .page-hero { min-height: 300px; }
  .page-hero-content { padding: 56px 0 60px; }
  .page-hero-content h1 { font-size: 2.1rem; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .section-heading { flex-direction: column; align-items: flex-start; }

  .feature-grid, .updates-board, .services-preview, .services-list,
  .doctors-grid, .principles-grid, .form-grid, .quick-facts-grid, .sitemap-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stat-item { padding: 22px 12px; }
  .stat-number { font-size: 2rem; }

  .media-stack { min-height: auto; display: grid; gap: 16px; }
  .media-main, .media-float { position: relative; inset: auto; width: 100%; height: 260px; }
  .media-float { border-width: 0; height: 200px; }

  .cta-band { padding: 32px 24px; }
  .info-panel, .form-panel, .contact-card, .update-card,
  .feature-card, .service-block, .doctor-card, .notice-panel, .fact-card { padding: 24px; }

  .footer { padding: 52px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
