/* ============================================================
   ONCOVASC — Design System
   ============================================================ */

:root {
  /* Brand */
  --green-deep: #1F3329;
  --green: #2D4A3E;
  --green-mid: #3F5A4D;
  --sage: #6B7A52;
  --sage-soft: #8A9871;
  --olive: #B5A26E;
  --gold: #C8B27F;
  --terra: #B89476;

  /* Neutrals */
  --cream: #FAF6EE;
  --cream-soft: #F5EFE3;
  --cream-warm: #EBE3D3;
  --paper: #FDFBF7;
  --white: #FFFFFF;

  /* Ink */
  --ink: #1A2A22;
  --ink-2: #3A4A40;
  --ink-3: #5C6B5F;
  --ink-4: #8A968B;

  /* Lines */
  --line: rgba(26, 42, 34, 0.10);
  --line-strong: rgba(26, 42, 34, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 36px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26, 42, 34, 0.06), 0 2px 6px rgba(26, 42, 34, 0.04);
  --shadow: 0 4px 24px -8px rgba(26, 42, 34, 0.12), 0 1px 3px rgba(26, 42, 34, 0.05);
  --shadow-lg: 0 30px 60px -30px rgba(26, 42, 34, 0.30), 0 8px 20px -8px rgba(26, 42, 34, 0.10);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--green-deep); color: var(--cream); }

/* ============================================================
   Typography
   ============================================================ */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}

h1, .h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
em.italic, .italic {
  font-style: italic;
  font-family: var(--display);
  font-weight: 300;
}
.serif { font-family: var(--display); font-weight: 400; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: clamp(72px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
}
.section-tight { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.bg-cream { background: var(--cream); }
.bg-cream-soft { background: var(--cream-soft); }
.bg-paper { background: var(--paper); }
.bg-green { background: var(--green-deep); color: var(--cream); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--cream); }
.bg-green .eyebrow { color: var(--olive); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo .wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo .wordmark b { font-weight: 500; }
.nav-logo .wordmark span { font-style: italic; font-weight: 300; }
.nav-logo .tag {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-weight: 500;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--green-deep);
}
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }
  .nav-logo .tag { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-deep);
  color: var(--cream);
  box-shadow: 0 6px 20px -8px rgba(26,42,34,0.45);
}
.btn-primary:hover { background: #16241D; box-shadow: 0 10px 30px -10px rgba(26,42,34,0.55); }

.btn-whats {
  background: var(--green-deep);
  color: var(--cream);
  padding: 14px 22px;
  font-size: 13px;
  box-shadow: 0 6px 20px -8px rgba(26,42,34,0.45);
}
.btn-whats svg { width: 16px; height: 16px; }
.btn-whats:hover { background: #16241D; }

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }

.btn-light {
  background: var(--cream);
  color: var(--green-deep);
}
.btn-light:hover { background: var(--white); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green-deep);
  transition: gap .25s var(--ease);
}
.btn-link:hover { gap: 16px; }
.btn-link svg { width: 14px; height: 14px; }

/* ============================================================
   Reveal animation (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.fab-whats {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 14px 40px -10px rgba(26,42,34,0.55), 0 4px 12px -4px rgba(26,42,34,0.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab-whats:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(26,42,34,0.65); }
.fab-whats .icon-wrap {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
}
.fab-whats .icon-wrap svg { width: 18px; height: 18px; }
.fab-whats .pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(181, 162, 110, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181,162,110,0.45); }
  70% { box-shadow: 0 0 0 18px rgba(181,162,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(181,162,110,0); }
}
@media (max-width: 640px) {
  .fab-whats span.label { display: none; }
  .fab-whats { padding: 12px; }
}

/* ============================================================
   Image placeholder
   ============================================================ */
.placeholder {
  position: relative;
  background: var(--cream-warm);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(31, 51, 41, 0.05) 0 1px,
    transparent 1px 14px
  );
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31, 51, 41, 0.08);
  border-radius: inherit;
  pointer-events: none;
}
.placeholder.dark {
  background: var(--green-mid);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0 1px,
    transparent 1px 14px
  );
  color: var(--cream-warm);
}
.placeholder .label {
  padding: 6px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.placeholder.dark .label { background: rgba(0,0,0,0.25); color: var(--cream); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card.dark {
  background: var(--green-mid);
  color: var(--cream);
  border-color: rgba(255,255,255,0.06);
}
.card.dark:hover { border-color: rgba(255,255,255,0.18); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer a { color: var(--cream-warm); transition: color .2s var(--ease); }
.footer a:hover { color: var(--olive); }
.footer .eyebrow { color: var(--olive); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--cream-warm);
  opacity: 0.8;
}
@media (max-width: 840px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Organic shapes (decorative)
   ============================================================ */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.6;
}

/* ============================================================
   Accordion
   ============================================================ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--green-deep); }
.faq-q .plus {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.faq-q .plus svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.faq-item.is-open .faq-q .plus { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.faq-item.is-open .faq-q .plus svg { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0 0 28px;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
  display: inline-flex;
  padding: 6px;
  background: var(--cream-warm);
  border-radius: 999px;
  gap: 4px;
}
.tab {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tab:hover { color: var(--green-deep); }
.tab.is-active {
  background: var(--green-deep);
  color: var(--cream);
}

/* ============================================================
   Marquee (subtle)
   ============================================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 60s linear infinite;
  padding-right: 64px;
}
.marquee-item {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink-3);
}
.marquee-item .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--olive);
  border-radius: 999px;
  margin: 0 28px;
  vertical-align: middle;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Star (rating)
   ============================================================ */
.stars { display: inline-flex; gap: 2px; color: var(--olive); }
.stars svg { width: 14px; height: 14px; }

/* ============================================================
   Utility
   ============================================================ */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.subtle { color: var(--ink-4); }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-8 { margin-top: 32px; }
.mw-md { max-width: 640px; }
.mw-lg { max-width: 820px; }
