/* ==========================================================================
   Origin Health Homeopathy — Design tokens
   Palette drawn from the client's existing logo + marketing materials.
   Type: Fraunces (organic serif, display + italic accent) / Inter (body).
   Signature element: the leaf motif (her own hand-drawn mark) as a recurring
   quiet divider + edge-glint, never as decorative clutter.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #232922;
  --ink-soft:   #4B5449;
  --teal-deep:  #1E4A46;
  --teal-mid:   #3C7365;
  --sage:       #8FAE93;
  --cream:      #F7F2E8;
  --cream-2:    #FBF8F2;
  --paper:      #FFFFFF;
  --gold:       #AD8A55;
  --line:       #E2DACB;

  --font-display: 'Poppins', -apple-system, Segoe UI, Arial, sans-serif;
  --font-body:    'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  margin: 0 0 12px;
  display: inline-block;
}

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-deep);
}

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--teal-deep); color: var(--cream-2); }
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn-outline-dark:hover { background: var(--teal-deep); color: #fff; }

/* ---------- edge glint (subtle, on load only) ---------- */
@keyframes glint {
  0%   { background-position: -200% 0; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; }
}
.edge-glint { position: relative; overflow: hidden; }
.edge-glint::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  background-size: 60% 100%;
  animation: glint 3.5s ease-out 0.4s 1;
}

/* ---------- leaf accent (SVG, not raster — crisp at any size) ---------- */
.leaf-icon { width: 24px; height: 24px; color: var(--sage); }
.leaf-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto; width: fit-content;
}
.leaf-divider .rule { width: 46px; height: 1px; background: var(--line); }

/* large faint background watermark leaves — the "little something extra" */
.leaf-watermark {
  position: absolute;
  color: var(--teal-deep);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.band-dark .leaf-watermark { color: #fff; opacity: 0.08; }

/* ---------- occasional glint sweep (traveling border light, not a shadow) ---------- */
@property --glint-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.glint-card { position: relative; }
.glint-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--glint-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(143,174,147,0) 265deg,
    var(--sage) 288deg,
    #d7ead9 300deg,
    var(--sage) 312deg,
    rgba(143,174,147,0) 330deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: glint-sweep 13s ease-in-out infinite;
}
.glint-card:nth-child(2)::after { animation-delay: 4.1s; }
.glint-card:nth-child(3)::after { animation-delay: 8.3s; }
@keyframes glint-sweep {
  0%, 74%   { opacity: 0; --glint-angle: 0deg; }
  78%       { opacity: 1; }
  90%       { opacity: 1; --glint-angle: 300deg; }
  94%, 100% { opacity: 0; --glint-angle: 300deg; }
}
@media (prefers-reduced-motion: reduce) {
  .glint-card::after { animation: none; opacity: 0; }
}

/* ---------- nav ----------
   Transparent over the hero image; solidifies once the page scrolls past it.
   (Logo sizing intentionally conservative until the transparent-background
   PNG is in hand — see note to Paul. Ready to go large the moment it lands.) */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-nav.scrolled {
  background: rgba(251,248,242,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(30,40,35,0.05);
}
.site-nav .wrap { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; transition: padding .35s ease; }
.site-nav.scrolled .wrap { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 192px; width: auto; display:block;
  filter: drop-shadow(0 2px 8px rgba(10,16,13,0.18));
  transition: height .35s ease;
}
.site-nav.scrolled .brand img { height: 76px; }
.nav-links { display: flex; align-items: center; gap: 28px; padding-top: 6px; margin-top: 28px; transition: margin-top .35s ease; }
.site-nav.scrolled .nav-links { margin-top: 0; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink); transition: color .2s ease; display:flex; align-items:center; gap:6px; }
.nav-links a svg { width: 15px; height: 15px; }
.nav-links a:hover { color: var(--teal-mid); }
.nav-links a.active { color: var(--teal-mid); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  background-size: cover; background-position: center 30%;
  color: #fff;
  padding-top: 28vh;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 24%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.46) 22%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(15,22,19,0.1) 0%, rgba(15,22,19,0.05) 30%, rgba(15,22,19,0.2) 65%, rgba(15,22,19,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 700px;
  padding: 36px; margin-top: 50px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
}

/* Occasional falling leaf — echoes the logo mark, wisps down a true curved
   path (offset-path) rather than a linear waypoint-to-waypoint zigzag. */
.falling-leaf {
  position: absolute; top: -60px; z-index: 1; pointer-events: none;
  color: rgba(255,255,255,0.5); will-change: transform, opacity, offset-distance;
  offset-rotate: 0deg;
}
.leaf-path {
  offset-path: path('M 0,0 C 62,36 78,78 52,120 S 11,188 -48,224 S -79,292 19,328 S 79,396 26,448 S -52,515 0,588');
}
.leaf-a {
  left: 16%; width: 42px; height: 42px;
  animation: leaf-progress 19s linear infinite, leaf-tumble 19s ease-in-out infinite, leaf-fade 19s ease-in-out infinite;
  animation-delay: 1s, 1s, 1s;
}
.leaf-b {
  left: 54%; width: 56px; height: 56px; color: rgba(143,174,147,0.55);
  animation: leaf-progress 24s linear infinite, leaf-tumble 24s ease-in-out infinite, leaf-fade 24s ease-in-out infinite;
  animation-delay: 9s, 9s, 9s;
}
.leaf-c {
  left: 80%; width: 36px; height: 36px;
  animation: leaf-progress 21s linear infinite, leaf-tumble 21s ease-in-out infinite, leaf-fade 21s ease-in-out infinite;
  animation-delay: 15s, 15s, 15s;
}
@keyframes leaf-progress {
  0%    { offset-distance: 0%; }
  100%  { offset-distance: 100%; }
}
@keyframes leaf-tumble {
  0%    { transform: rotate(-120deg); }
  13%   { transform: rotate(-84deg); }
  34%   { transform: rotate(-158deg); }
  54%   { transform: rotate(-86deg); }
  72%   { transform: rotate(-150deg); }
  100%  { transform: rotate(-120deg); }
}
@keyframes leaf-fade {
  0%    { opacity: 0; }
  4%    { opacity: .5; }
  38%   { opacity: .48; }
  66%   { opacity: .3; }
  78%   { opacity: 0; }
  100%  { opacity: 0; }
}
.hero h1 { color: var(--ink); font-size: clamp(34px, 5vw, 54px); text-align: left; max-width: 620px; }
.hero .script { color: var(--teal-deep); font-size: clamp(19px, 2.2vw, 24px); display:block; margin-top: 16px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; overflow: hidden; }
.section-tight { padding: 72px 0; }
.center { text-align: center; }
.lede { font-size: 19px; max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split img { border-radius: var(--radius); }
.split-copy .eyebrow { }

.band-dark {
  background: var(--teal-deep); color: var(--cream-2);
}
.band-dark h2, .band-dark .script { color: #fff; }
.band-dark p { color: rgba(251,248,242,0.82); }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; max-width: 820px; margin: 0 auto;
}
.pull-quote cite { display:block; font-family: var(--font-body); font-style: normal; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-top: 26px; font-weight:600; }

/* ---------- focus-area cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 52px; position: relative; z-index: 1; }
.focus-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,40,35,0.12); }
.focus-card .img-wrap { overflow: hidden; }
.focus-card img { height: 210px; object-fit: cover; width: 100%; transition: transform .5s ease; }
.focus-card:hover img { transform: scale(1.06); }
.focus-card-body { padding: 26px 24px 30px; }
.focus-card h3 { font-size: 21px; }
.focus-card p { font-size: 14.5px; }

/* ---------- blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 52px; position: relative; z-index: 1; }
.blog-grid-2col { grid-template-columns: repeat(2, 1fr); }
.blog-card {
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,40,35,0.12); border-color: var(--sage); }
.blog-card .img-wrap { overflow: hidden; }
.blog-card img { height: 190px; object-fit: cover; width: 100%; transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.06); }
.blog-card-body { padding: 24px 24px 28px; }
.blog-cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-mid); font-weight: 600; }
.blog-card h3 { font-size: 19px; margin-top: 10px; }
.blog-card p { font-size: 14.5px; }
.blog-card .read { font-size: 13.5px; font-weight: 600; color: var(--teal-deep); margin-top: 14px; display:inline-block; transition: gap .2s ease; }
.blog-card:hover .read { color: var(--teal-mid); }

/* ---------- info band ---------- */
.info-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-mid); font-family: var(--font-body); font-weight:700; margin-bottom: 10px;}
.info-grid p { font-size: 15px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { position: relative; color: #fff; background-size: cover; background-position: center; }
.site-footer::after { content:""; position:absolute; inset:0; background: rgba(20,28,24,0.72); }
.footer-inner { position: relative; z-index: 2; padding: 80px 0 40px; text-align: center; }
.footer-inner img.leaf-mark { filter: brightness(0) invert(1); margin: 0 auto 18px; opacity: .9;}
.footer-inner .script { color: #fff; font-size: 22px; }
.footer-links { display:flex; gap: 28px; justify-content:center; margin: 30px 0; flex-wrap: wrap; }
.footer-links a { font-size: 14px; opacity: .9; display:inline-flex; align-items:center; gap:6px; }
.footer-links a svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-links a:hover { opacity: 1; }
.copyright { font-size: 12.5px; opacity: .6; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; }

/* ---------- about page specifics ---------- */
/* Full-bleed header again, but on a light, on-brand texture rather than her
   face — stays legible under the nav without any contrast juggling. */
/* ---------- shared page header (About, Contact, and future interior pages) ---------- */
/* Full-bleed, fixed height, on-brand light texture — used consistently across
   every interior page so the header never has to be redesigned per page. */
.page-header {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff; padding-top: 90px;
}
.page-header::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.32) 24%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 26%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(15,22,19,0.05) 0%, rgba(15,22,19,0.08) 35%, rgba(15,22,19,0.75) 100%);
}
.page-header-inner { position: relative; z-index: 2; padding-bottom: 60px; width: 100%; }
.page-header-inner h1 { color: #fff; font-size: clamp(32px,4.5vw,50px); margin-bottom: 6px; }
.page-header-inner .lede { color: rgba(255,255,255,0.88); font-size: 19px; }
.credentials { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.credentials span {
  font-size: 12.5px; color: #fff; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3); padding: 7px 14px; border-radius: 999px;
}
.credentials strong { font-weight: 700; }

.about-body { max-width: 720px; margin: 0 auto; }
.about-body p { font-size: 17px; color: var(--ink); }
.about-body ul { padding-left: 20px; color: var(--ink-soft); font-size: 16px;}
.about-body li { margin-bottom: 6px; }
.split-copy ul { padding-left: 20px; color: var(--ink-soft); font-size: 16px; margin-top: 14px; }
.split-copy li { margin-bottom: 7px; }

.info-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; position: relative; z-index: 1; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: box-shadow .3s ease, transform .3s ease; }
.info-card-num { display:block; font-family: var(--font-display); font-weight: 600; font-size: 32px; color: var(--sage); margin-bottom: 8px; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,40,35,0.1); }
.info-card h3 { font-size: 18px; margin-bottom: 10px; }
.info-card p { font-size: 15px; }

.consult-callout {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; margin: 24px 0 0;
}
.consult-callout p { font-size: 15px; margin-bottom: 6px; }
.consult-callout strong { color: var(--teal-deep); }

.about-section { padding: 84px 0; }
.about-section .eyebrow { display:block; text-align: center; }
.about-section > .wrap > h2.center-title { text-align:center; font-size: clamp(26px,3vw,34px); max-width: 620px; margin: 0 auto 44px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--paper);
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal-mid); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; }

.contact-details { background: var(--cream-2); border-radius: var(--radius); padding: 36px 32px; }
.contact-details h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-mid); margin: 26px 0 8px; }
.contact-details h3:first-child { margin-top: 0; }
.contact-details p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.contact-details a { color: var(--teal-deep); font-weight: 600; }

.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 34px rgba(30,40,35,0.1); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 4px; }
.map-label span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

/* ---------- single post body ---------- */
.post-body p { margin: 0 0 20px; }
.post-body strong { color: var(--teal-deep); font-family: var(--font-display); font-weight: 600; display: inline-block; margin-top: 10px; }
.post-body em { color: var(--teal-mid); }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 20px; }
.post-body li { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-grid { grid-template-columns: 1fr; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 64px 0; }
  .hero { min-height: 78vh; }
}

/* ---------- accessibility ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-mid); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .edge-glint::before { animation: none; }
  .falling-leaf { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}
