/* =========================================================
   Syntropy Wellness — calm clinical, modern boutique wellness
   Palette derived from flyer: deep teal/blue-green, warm gold,
   cream background.
   ========================================================= */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.98rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --text-3xl: clamp(2.6rem, 1.6rem + 3.6vw, 4.4rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand palette — cream / teal / gold */
  --cream: #f5f1e8;
  --cream-2: #efe9dc;
  --paper: #fbf8f1;

  --teal: #123f47;          /* deep blue-green (primary) */
  --teal-2: #0d3238;        /* darker teal */
  --teal-3: #1c565f;        /* mid teal */
  --teal-soft: #e3ebe9;     /* pale teal wash */

  --gold: #c39a4b;          /* warm gold accent */
  --gold-2: #a9812f;        /* deeper gold for hover/contrast */
  --gold-soft: #efe4cc;

  --text: #1e2b2c;
  --text-muted: #4f5f60;
  --text-on-dark: #eef2ef;
  --text-on-dark-muted: #b9c8c6;

  --border: #ddd4c2;
  --border-dark: rgba(255,255,255,0.14);

  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(18,63,71,0.08);
  --shadow-md: 0 8px 24px rgba(18,63,71,0.10);
  --shadow-lg: 0 22px 55px rgba(18,63,71,0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1160px;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --font-body: 'Work Sans', 'Helvetica Neue', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }

a, button {
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: var(--radius-sm); }

::selection { background: rgba(195,154,75,0.28); color: var(--teal-2); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .01em;
  padding: .8rem 1.5rem; border-radius: var(--radius-full);
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn--gold {
  background: var(--gold); color: #2a2010;
  box-shadow: 0 6px 18px rgba(195,154,75,0.32);
}
.btn--gold:hover { background: var(--gold-2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(169,129,47,0.38); }

.btn--ghost { border-color: rgba(18,63,71,0.28); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--text-on-dark); border-color: var(--teal); transform: translateY(-2px); }

.btn--outline { border-color: var(--gold); color: var(--teal); }
.btn--outline:hover { background: var(--gold); color: #2a2010; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; gap: var(--space-6); padding-block: .85rem; }

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; min-width: 0; }
.brand-logo { width: clamp(13rem, 24vw, 20rem); height: auto; display: block; }
.brand-mark { color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; color: var(--teal); text-transform: uppercase; }
.brand-tag { font-size: .72rem; color: var(--text-muted); letter-spacing: .02em; }

.site-nav { display: flex; gap: var(--space-6); }
.site-nav a { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; position: relative; padding-block: .2rem; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.site-nav a:hover { color: var(--teal); }
.site-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 1.25rem var(--space-6); border-top: 1px solid var(--border); background: var(--cream); }
.mobile-nav a:not(.btn) { padding: .7rem .4rem; font-size: var(--text-base); color: var(--teal); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: var(--space-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(var(--space-16), 9vw, var(--space-32)); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(195,154,75,0.10), transparent 70%),
    radial-gradient(55% 60% at 10% 95%, rgba(18,63,71,0.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; color: var(--teal-3);
  background: var(--teal-soft); padding: .4rem .85rem; border-radius: var(--radius-full);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(195,154,75,0.22); }

#hero-title { margin-top: var(--space-5); font-family: var(--font-display); color: var(--teal); }
.hero-line { display: block; font-size: var(--text-2xl); font-weight: 500; letter-spacing: .005em; }
.hero-script { display: block; font-family: var(--font-script); color: var(--gold-2); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; margin-top: .1em; }
.hero-script--sm { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }

.hero-flourish { display: flex; align-items: center; gap: .8rem; margin: var(--space-6) 0; max-width: 320px; }
.hero-flourish .rule { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.hero-lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* Hero side card */
.hero-panel { display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 380px;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-2) 100%);
  color: var(--text-on-dark); border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8) var(--space-10);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(195,154,75,0.22), transparent 70%);
}
.hero-card__label { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: #fff; margin-bottom: var(--space-5); }
.hero-card__list { display: grid; gap: var(--space-3); }
.hero-card__list li { position: relative; padding-left: 1.9rem; color: var(--text-on-dark-muted); font-size: var(--text-sm); }
.hero-card__list li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px;
  border-radius: 50%; border: 1.5px solid var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23123f47' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hero-card__quote { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-dark); text-align: center; }
.hero-card__quote .hero-script { color: var(--gold); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-head { max-width: 620px; margin-bottom: var(--space-12); }
.section-eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--gold-2); margin-bottom: var(--space-3); }
.section-title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--teal); font-weight: 600; }
.section-intro { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6); position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--teal-soft); color: var(--teal); margin-bottom: var(--space-5);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--teal); margin-bottom: var(--space-3); }
.service-card p { color: var(--text-muted); font-size: var(--text-sm); }

.service-card--cta {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-2) 100%);
  border-color: transparent; color: var(--text-on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-3);
}
.service-card--cta:hover { border-color: transparent; }
.service-cta-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 600; }
.service-cta-text { font-family: var(--font-display); font-size: var(--text-lg); color: #fff; font-weight: 600; margin-bottom: var(--space-2); }
.service-card--cta .btn { align-self: flex-start; }

/* ---------- Provider ---------- */
.provider-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.provider-media { position: relative; display: grid; place-items: center; }
.provider-photo {
  width: min(340px, 78vw);
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(195, 154, 75, 0.45);
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--teal-soft), var(--gold-soft));
}
.provider-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.provider-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2a2010; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: .45rem 1rem; border-radius: var(--radius-full);
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.provider-role { font-size: var(--text-base); color: var(--gold-2); font-weight: 600; margin-bottom: var(--space-5); }
.provider-copy p { color: var(--text-muted); margin-bottom: var(--space-4); }
.provider-copy .section-title { margin-bottom: var(--space-2); }
.provider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-4); }
.provider-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--teal);
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
.provider-link svg { color: var(--gold-2); }
.provider-link:hover { color: var(--gold-2); border-bottom-color: var(--gold); }

/* ---------- Telehealth banner ---------- */
.telehealth { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-2) 100%); color: var(--text-on-dark); }
.telehealth-inner { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: start; }
.telehealth-icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold); color: var(--gold); flex-shrink: 0;
}
.telehealth-icon svg { width: 34px; height: 34px; }
.telehealth .section-eyebrow { color: var(--gold); }
.telehealth .section-title { color: #fff; max-width: 24ch; }
.telehealth-note { margin-top: var(--space-5); color: var(--text-on-dark-muted); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-title { }
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: start; }
.contact-list { display: grid; gap: var(--space-6); align-content: start; }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-full);
  border: 1.5px solid var(--gold); color: var(--teal); flex-shrink: 0;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); font-weight: 600; }
.contact-val { display: block; font-size: var(--text-lg); color: var(--teal); font-weight: 500; }
a.contact-val:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

.contact-cta {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-2) 100%);
  color: var(--text-on-dark); border-radius: var(--radius-xl); padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-cta::after {
  content: ''; position: absolute; left: -50px; bottom: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(195,154,75,0.18), transparent 70%);
}
.contact-cta__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 600; }
.contact-cta__title { font-family: var(--font-display); font-size: var(--text-xl); color: #fff; font-weight: 600; margin: var(--space-2) 0 var(--space-4); }
.contact-cta__text { color: var(--text-on-dark-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.contact-cta__url { margin-top: var(--space-4); text-align: center; font-size: var(--text-xs); color: var(--text-on-dark-muted); letter-spacing: .02em; }

.privacy-note {
  display: flex; gap: var(--space-3); align-items: flex-start; max-width: none;
  margin-top: var(--space-12); padding: var(--space-5) var(--space-6);
  background: var(--teal-soft); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-muted);
}
.privacy-note svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.privacy-note strong { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-2); color: var(--text-on-dark); padding-top: var(--space-16); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); padding-bottom: var(--space-12); }
.footer-brand { display: flex; gap: var(--space-4); align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.footer-script { margin-top: .2rem; }
.footer-script .hero-script { color: var(--gold); }

.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 600; margin-bottom: var(--space-2); }
.footer-col a, .footer-col span { font-size: var(--text-sm); color: var(--text-on-dark-muted); }
.footer-col a:hover { color: var(--gold); }

.footer-base { border-top: 1px solid var(--border-dark); padding-block: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.footer-base p { font-size: var(--text-xs); color: var(--text-on-dark-muted); max-width: none; }
.footer-disclaimer { color: rgba(185,200,198,0.7); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .hero-card { max-width: 100%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: 1fr; gap: var(--space-16); }
  .provider-media { max-width: 320px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .telehealth-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-actions .btn { flex: 1; }
}
