@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --paper: #f7f5ef;
  --surface: #fdfcf7;
  --primary: #2a6355;
  --primary-light: #1f5245;
  --secondary: #5a8f72;
  --sage: #8db48e;
  --sage-pale: #c9d8c5;
  --deep: #163832;
  --ink: #1e302b;
  --muted: #5a6e68;
  --muted-light: #8a9e97;
  --line: rgba(26, 58, 50, 0.10);
  --line-strong: rgba(26, 58, 50, 0.18);
  --white: #ffffff;
  --soft: #eef4ec;
  --warm: #f2ede3;
  --shadow: 0 20px 60px rgba(22, 56, 50, 0.10);
  --shadow-sm: 0 8px 24px rgba(22, 56, 50, 0.07);
  --shadow-lg: 0 32px 80px rgba(22, 56, 50, 0.14);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1280px;
  --serif: 'Outfit', system-ui, sans-serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

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

.container { width: min(var(--max), calc(100vw - clamp(28px, 4vw, 80px))); margin: 0 auto; }
.narrow { width: min(820px, calc(100vw - clamp(28px, 4vw, 80px))); margin: 0 auto; }

.notice {
  background: var(--primary);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 10px 20px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 81;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(247, 245, 239, 0.95);
  border-bottom: 1px solid var(--line);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* ── iOS Safari / Brave nav fix ── */
@supports (-webkit-touch-callout: none) {
  .nav {
    background: rgba(247, 245, 239, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.nav-inner {
  width: min(var(--max), calc(100vw - 56px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 58px; height: 58px; object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-text strong {
  display: block; font-family: var(--sans); font-weight: 700; font-size: 17px;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--deep);
}
.brand-text small {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--secondary); font-weight: 500; margin-top: 3px;
}
.links { display: flex; gap: 2px; align-items: center; }
.links a {
  padding: 8px 14px; font-size: 14px; font-weight: 400; color: var(--ink);
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.links a:hover { color: var(--primary); background: var(--soft); font-weight: 500; }
.links a.active { color: var(--primary); font-weight: 600; background: var(--soft); border-bottom: 2px solid var(--primary); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 12px 24px; font-size: 14px; font-weight: 600;
  font-family: var(--sans); background: var(--primary); color: white;
  border: 1.5px solid var(--primary);
  box-shadow: 0 6px 20px rgba(42,99,85,0.22);
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(42,99,85,0.40); background: #1a4a3c; border-color: #1a4a3c; }
.btn.light { background: transparent; color: var(--primary); border-color: var(--line-strong); box-shadow: none; }
.btn.light:hover { background: var(--soft); border-color: var(--sage-pale); box-shadow: var(--shadow-sm); }
.btn.soft { background: var(--soft); color: var(--deep); border-color: transparent; box-shadow: none; }

/* HERO */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(141,180,142,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 20%, rgba(90,143,114,0.09) 0%, transparent 55%);
  pointer-events: none;
}
.hero-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; padding: 70px 0 80px;
}
.hero-copy { padding: 20px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px;
}
.kicker::before { content: ''; width: 26px; height: 1.5px; background: var(--sage); border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--deep); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(48px, 5vw, 78px); line-height: 1.02; margin-bottom: 22px; }
h2 { font-size: clamp(34px, 3.2vw, 52px); line-height: 1.02; margin-bottom: 18px; }
h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.12; margin-bottom: 13px; }
h4 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.22; margin-bottom: 10px; }
.lead { font-size: 17px; line-height: 1.76; color: var(--muted); max-width: 580px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* HERO MEDIA */
.hero-media {
  position: relative; display: flex; align-items: center;
  justify-content: center; min-height: 500px;
}
.hero-orb { position: relative; width: min(90%, 440px); aspect-ratio: 1; }
.hero-orb::before {
  content: ''; position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.85), rgba(201,216,197,0.4) 55%, transparent 72%);
  filter: blur(3px);
}
.hero-logo {
  position: relative; z-index: 2; width: 100%;
  filter: drop-shadow(0 28px 56px rgba(22,56,50,0.16));
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin-slow linear infinite;
}
.hero-ring-1 { inset: -20%; border-color: rgba(141,180,142,0.16); animation-duration: 32s; }
.hero-ring-2 { inset: -35%; border-color: rgba(141,180,142,0.08); animation-duration: 52s; animation-direction: reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-dot { position: absolute; border-radius: 50%; background: var(--sage); }
.hero-dot-1 { width: 9px; height: 9px; top: 14%; right: 6%; opacity: 0.45; animation: float 4.5s 0.4s ease-in-out infinite; }
.hero-dot-2 { width: 5px; height: 5px; bottom: 26%; left: 4%; opacity: 0.35; animation: float 5.5s 1.1s ease-in-out infinite; }
.hero-dot-3 { width: 13px; height: 13px; bottom: 8%; right: 22%; opacity: 0.18; animation: float 7.5s 0.2s ease-in-out infinite; }

/* SECTIONS */
.section { padding: clamp(48px, 8vw, 120px) 0; }
.band { background: rgba(255,255,255,0.52); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.rule { width: 44px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--sage)); margin: 18px auto 0; border-radius: 2px; }

/* CARDS */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(16px, 2.5vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-pale); }
.card p, .card li { color: var(--muted); line-height: 1.7; font-size: 15px; }

.service-card {
  text-align: center; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 22px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.service-card:hover { background: white; box-shadow: var(--shadow); transform: translateY(-5px); }
.icon-badge {
  width: 72px; height: 72px; border-radius: 20px; background: var(--soft);
  color: var(--primary); display: grid; place-items: center; font-size: 28px;
  margin: 0 auto 18px; border: 1px solid rgba(42,99,85,0.10);
  transition: background 0.28s ease, transform 0.28s ease;
}
.service-card:hover .icon-badge { background: var(--primary); color: white; transform: scale(1.08); }

/* GRIDS */
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.5vw, 24px); }
.grid-4 > a, .grid-2 > a, .grid-3 > a { display: contents; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* CHECK LIST */
.check-list { display: grid; gap: 18px; align-content: start; }
.check-list div { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.check-list strong { color: var(--ink); display: block; font-weight: 500; font-size: 15px; }
.check {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px;
  color: white; font-size: 11px; font-weight: 700; box-shadow: 0 4px 10px rgba(42,99,85,0.22);
}

/* FEATURE LIST */
.feature-list { display: grid; gap: 12px; }
.feature-item {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 22px; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature-item:hover { border-color: var(--sage-pale); box-shadow: var(--shadow); }
.feature-item-num { font-family: var(--sans); font-size: 34px; font-weight: 300; color: var(--sage-pale); line-height: 1; flex-shrink: 0; }
.feature-item p { color: var(--muted); line-height: 1.6; font-size: 14.5px; margin-top: 3px; }
.feature-item strong { color: var(--deep); font-weight: 500; }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.article-card { overflow: hidden; padding: 0; }
.article-top {
  height: 160px;
  background: linear-gradient(135deg, var(--soft) 0%, var(--sage-pale) 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 16px 20px;
  position: relative; overflow: hidden;
}
.article-top[style*="background-image"]::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,45,38,0.55) 0%, rgba(20,45,38,0.10) 60%, transparent 100%);
  z-index: 0;
}
.article-top .article-tag { position: relative; z-index: 2; }
.article-top::after {
  content: ''; position: absolute; right: -16px; top: -24px;
  width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.32);
}
.article-tag {
  display: inline-flex; border-radius: 999px; padding: 5px 12px;
  background: white; color: var(--primary); font-size: 11px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; z-index: 1; box-shadow: var(--shadow-sm);
}
.article-body { padding: 22px; }
.article-body h4 { margin-bottom: 8px; }
.article-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.65; }
.readmore { color: var(--primary); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s ease; }
.readmore:hover { gap: 9px; }

/* CTA BAND */
.cta-band {
  background: linear-gradient(140deg, var(--deep) 0%, var(--primary) 60%, var(--secondary) 100%);
  color: white; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.03); top: -200px; left: -150px;
}
.cta-band::after {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.03); bottom: -100px; right: 10%;
}
.cta-band h2, .cta-band h3 { color: white; }
.cta-band .lead { color: rgba(255,255,255,0.78); }

/* PAGE HERO */
.page-hero { padding: 56px 0 28px; position: relative; }
.page-hero::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: radial-gradient(ellipse at 80% 50%, rgba(141,180,142,0.11), transparent 65%);
  pointer-events: none;
}
.breadcrumb { color: var(--muted-light); font-size: 13px; margin-bottom: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--sage); border-radius: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.25s; }
.faq details[open] { border-color: var(--sage-pale); }
.faq summary {
  cursor: pointer; font-weight: 500; color: var(--deep);
  padding: 18px 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--sage); font-weight: 300; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); line-height: 1.72; padding: 0 22px 18px; font-size: 15px; }

/* CONTENT PAGES */
.content h2 { margin-top: 40px; margin-bottom: 14px; }
.content h3 { margin-top: 26px; font-size: 26px; margin-bottom: 11px; }
.content p, .content li { color: var(--muted); line-height: 1.8; font-size: 16.5px; }
.content ul { padding-left: 22px; }
.content p + p { margin-top: 14px; }
.note { background: rgba(141,180,142,0.10); border-left: 3px solid var(--secondary); border-radius: 12px; padding: 15px 20px; color: var(--deep); line-height: 1.65; font-size: 15px; margin: 22px 0; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: start; }
.form { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; color: var(--ink); font-size: 13.5px; }
input, textarea, select {
  width: 100%; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 15px;
  color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(141,180,142,0.14); }
textarea { min-height: 120px; resize: vertical; }
.info-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.map-box { min-height: 260px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--soft), var(--sage-pale)); overflow: hidden; margin-top: 16px; }
.map-box iframe { display: block; width: 100%; min-height: 260px; border: 0; }

/* FOOTER */
.footer { background: var(--deep); color: white; padding: 60px 0 36px; margin-top: 80px; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; bottom: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.02); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; }
.footer p, .footer a { color: rgba(255,255,255,0.62); line-height: 1.8; font-size: 14px; }
.footer a:hover { color: var(--sage-pale); }
.footer h4 { font-family: var(--sans); color: white; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; opacity: 0.7; }
.footer .brand-text strong { color: white; }
.footer .brand-text small { color: var(--sage-pale); }
.footer .brand img { background: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.38); }

/* AI PANEL */
.ai-launch {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-size: 20px;
  box-shadow: 0 8px 28px rgba(42,99,85,0.35);
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-launch:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(42,99,85,0.42); }
.ai-launch::after {
  content: 'Ask a question'; position: absolute; right: 68px; top: 50%;
  transform: translateY(-50%); white-space: nowrap; background: white; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 500; box-shadow: var(--shadow-sm); pointer-events: none;
}
.ai-panel {
  position: fixed; right: 26px; bottom: 98px; z-index: 89;
  width: min(400px, calc(100vw - 32px)); max-height: 70vh;
  background: white; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column;
  overflow: hidden;
}
.ai-panel.open { display: flex; animation: panel-in 0.25s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.ai-head { background: linear-gradient(140deg, var(--deep), var(--primary)); color: white; padding: 17px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ai-head strong { display: block; font-size: 15px; font-weight: 500; }
.ai-head span { display: block; color: rgba(255,255,255,0.68); font-size: 11.5px; margin-top: 3px; }
.ai-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 64px !important;
  padding: 17px 20px !important;
  background: linear-gradient(140deg, var(--deep), var(--primary)) !important;
  color: white !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}
.ai-close { border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: white; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; font-size: 16px; transition: background 0.2s; }
.ai-close:hover { background: rgba(255,255,255,0.22); }
.ai-body { padding: 16px; overflow: auto; flex: 1; }
.msg { border-radius: 16px; padding: 12px 14px; line-height: 1.5; font-size: 13.5px; margin-bottom: 10px; }
.msg.agent { background: var(--soft); color: var(--ink); border-top-left-radius: 4px; }
.msg.user { background: var(--primary); color: white; border-top-right-radius: 4px; margin-left: 32px; }
.suggestions { display: grid; gap: 6px; margin: 10px 0; }
.suggestions button { text-align: left; border: 1px solid var(--line); background: white; color: var(--primary); border-radius: 999px; padding: 9px 14px; font-size: 13px; cursor: pointer; font-family: var(--sans); transition: background 0.2s, border-color 0.2s; }
.suggestions button:hover { background: var(--soft); border-color: var(--sage-pale); }
.ai-form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 12px 14px; background: white; }
.ai-form input { border-radius: 999px; padding: 10px 16px; font-size: 13.5px; }
.ai-form button { border: 0; border-radius: 999px; background: var(--primary); color: white; padding: 0 16px; font-weight: 500; cursor: pointer; font-family: var(--sans); font-size: 13px; white-space: nowrap; transition: background 0.2s; }
.ai-form button:hover { background: var(--primary-light); }

/* MISC */
.small { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.text-center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* NAV BOOK NOW - always visible, never goes dark */
.nav-inner .btn {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(42,99,85,0.25);
}
.nav-inner .btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,99,85,0.32);
}

/* CLINIC - not information site */
/* Reframe notice bar */


/* ─── Mobile Navigation ──────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
  position: relative;
  z-index: 82;
}
.hamburger:hover { background: var(--soft); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(15, 45, 39, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-menu.open {
  opacity: 1;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(15,45,39,0.18);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 101;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-head .brand-text strong { color: var(--deep); font-size: 16px; }
.mobile-menu-head .brand-text small { color: var(--secondary); }
.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--muted);
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: var(--soft); }
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.mobile-menu-links a:hover { background: var(--soft); color: var(--primary); }
.mobile-menu-links a.active { color: var(--primary); background: var(--soft); }
.mobile-menu-links a::after {
  content: '›';
  margin-left: auto;
  font-size: 20px;
  color: var(--sage);
}
.mobile-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

/* RESPONSIVE, mobile first, scales to 8K */

/* ── Extra large screens (1800px+) ── */
@media (min-width: 1800px) {
  :root { --max: min(1400px, 90vw); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr) !important; }
  body { font-size: 17px; }
}

/* ── 4K and above (2560px+) ── */
@media (min-width: 2560px) {
  :root { --max: min(1600px, 85vw); }
  h1 { font-size: clamp(64px, 4vw, 110px); }
  h2 { font-size: clamp(40px, 2.8vw, 72px); }
  .card { border-radius: 32px; }
  .svc-img-top { min-height: 180px; }
}

/* ── Tablet landscape / small desktop (980px–1280px) ── */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet portrait (700px–980px) ── */
@media (max-width: 980px) {
  .why-us-grid { grid-template-columns: 1fr; gap: 28px; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .links { display: none; }
  .container, .narrow, .nav-inner { width: min(100% - 36px, var(--max)); }
/* ── iOS Safari / Brave nav fix ── */
@supports (-webkit-touch-callout: none) {
  .nav {
    background: rgba(247, 245, 239, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.nav-inner { width: min(100% - 36px, var(--max)); }
  .hero-wrap { grid-template-columns: 1fr; padding: 40px 0 50px; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-media { min-height: 300px; }
  .hero-orb { width: min(78%, 300px); }
  .ai-launch::after { display: none; }
  h1 { font-size: clamp(38px, 8vw, 60px); }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Mobile (max 640px) ── */
@media (max-width: 640px) {
  .footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form, .info-panel { padding: 18px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr !important; }
  .hero-wrap { gap: 20px; }
  .split { gap: 24px; }
  .card { border-radius: 16px; }
  .faq summary { font-size: 14px; padding: 14px 16px; }
  .faq p { padding: 0 16px 14px; }
  h1 { font-size: clamp(34px, 10vw, 52px); }
  h2 { font-size: clamp(26px, 7vw, 40px); }
  
/* ── iOS Safari / Brave nav fix ── */
@supports (-webkit-touch-callout: none) {
  .nav {
    background: rgba(247, 245, 239, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.nav-inner { padding: 10px 0; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 16px; }
}

/* ── Small mobile (max 380px) ── */
@media (max-width: 380px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr; }
  .svc-body { padding: 12px; }
  h1 { font-size: clamp(30px, 9vw, 44px); }
}

/* ─── Image Placeholder Blocks (v8) ─────────────────────────────────────── */
.img-placeholder {
  position: relative;
  background: #1a3a2e;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  user-select: none;
}
/* hatching lines via repeating gradient */
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.04) 12px,
    rgba(255,255,255,0.04) 13px
  );
  pointer-events: none;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 16px;
  pointer-events: none;
}
.img-ph-num {
  font-family: var(--sans);
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  position: absolute;
  right: 20px;
  bottom: 10px;
  letter-spacing: -0.04em;
}
.img-ph-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.img-ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.img-ph-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fcf97;
  display: block;
}
.img-ph-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 220px;
}
.img-ph-spec {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: 'Courier New', monospace;
  margin-top: 4px;
}

/* Sizes */
.img-ph-hero    { width: 100%; aspect-ratio: 16/9; min-height: 280px; border-radius: 24px; }
.img-ph-wide    { width: 100%; aspect-ratio: 21/9; min-height: 180px; border-radius: 20px; }
.img-ph-landscape { width: 100%; aspect-ratio: 4/3; min-height: 160px; border-radius: 20px; }
.img-ph-portrait  { width: 100%; aspect-ratio: 3/4; min-height: 200px; border-radius: 20px; }
.img-ph-square    { width: 100%; aspect-ratio: 1; border-radius: 20px; }
.img-ph-card      { width: 100%; aspect-ratio: 3/2; min-height: 120px; border-radius: 16px; }

/* ─── Service card image-header layout (v9) ──────────────────────────────── */
.svc {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* svc card link wrappers use display:contents, handled per-page */
.svc-img-top {
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}
.svc-img-top .img-placeholder {
  height: 100%;
  border-radius: 0;
}
.svc-img-top .img-placeholder::after {
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed rgba(255,255,255,0.2);
}
.svc-body {
  padding: clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px) clamp(12px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-body a {
  margin-top: auto !important;
  padding-top: 14px;
}
.svc-icon {
  margin-bottom: 14px !important;
}
.svc h3 { font-size: 19px !important; margin-bottom: 8px !important; }
.svc p  { font-size: 14px !important; }
.svc a  { margin-top: 12px !important; }

/* img-placeholder number, smaller inside card header */
.svc-img-top .img-ph-num {
  font-size: 48px;
  right: 12px;
  bottom: 4px;
}
.svc-img-top .img-ph-inner {
  padding: 14px;
  gap: 6px;
}
.svc-img-top .img-ph-tag  { font-size: 10px; padding: 4px 10px; }
.svc-img-top .img-ph-label { font-size: 11.5px; max-width: 180px; }
.svc-img-top .img-ph-spec  { font-size: 10px; }
