/* ============================================================
   Plena Health : plenahealthclinic.com
   Wellness palette v2, layered greens with a softened clay accent:
   pine #14382B · forest #1D6B4E · meadow #2F8A66 · sage #8FB8A2
   mint #E7F3EB · mist #F6FAF7 · clay #D98362 · honey #E3B36B
   ============================================================ */

:root {
  --pine: #14382B;
  --forest: #1D6B4E;
  --meadow: #2F8A66;
  --sage: #8FB8A2;
  --mint: #E7F3EB;
  --mint-deep: #D8ECE0;
  --mist: #F6FAF7;
  --paper: #FFFFFF;
  --clay: #D98362;
  --clay-soft: #EEB49A;
  --clay-tint: #FBEEE7;
  --honey: #E3B36B;
  --ink: #223129;
  --muted: #5D7066;
  --line: #DCEAE1;
  --radius: 22px;
  --shadow: 0 20px 48px -22px rgba(20, 56, 43, .30);
  --shadow-soft: 0 12px 32px -18px rgba(20, 56, 43, .20);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, .display { font-family: var(--font-display); color: var(--pine); line-height: 1.14; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--clay); border-radius: 2.5px; transform: rotate(45deg); flex: none; }

.section { padding: 6rem 0; }
.section-head { max-width: 660px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: .9rem; }
.section-head p { color: var(--muted); font-size: 1.07rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .88rem 1.75rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 14px 28px -12px rgba(29, 107, 78, .55); }
.btn-primary:hover { background: var(--pine); transform: translateY(-2px); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-clay { background: var(--clay); color: #fff; box-shadow: 0 14px 28px -12px rgba(217, 131, 98, .6); }
.btn-clay:hover { background: #C9704C; transform: translateY(-2px); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { transform: translateY(-2px); color: var(--pine); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 250, 247, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.1rem; padding: .6rem 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--forest); }
.nav .btn { padding: .48rem 1.05rem; font-size: .87rem; }

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff; font-size: .82rem; font-weight: 700;
}
.lang-toggle button {
  border: 0; background: transparent; padding: .34rem .7rem; cursor: pointer;
  color: var(--muted); font-weight: 700; letter-spacing: .04em; font-family: var(--font-body);
}
.lang-toggle button[aria-pressed="true"] { background: var(--forest); color: #fff; }

.menu-btn { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn svg { width: 28px; height: 28px; stroke: var(--forest); }

/* ---------- Hero (dark editorial) ---------- */
.hero {
  position: relative; overflow: hidden; padding: 5.6rem 0 7rem;
  background:
    radial-gradient(900px 520px at 86% -12%, rgba(227, 179, 107, .11), transparent 60%),
    radial-gradient(780px 560px at -10% 115%, rgba(47, 138, 102, .32), transparent 62%),
    linear-gradient(150deg, #134631 0%, var(--pine) 58%, #0D291F 100%);
  color: #E9F3ED;
}
.hero .watermark {
  position: absolute; right: -1.5%; bottom: -4.2rem; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 19vw, 15rem);
  line-height: .8; letter-spacing: .03em; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 2px rgba(233, 243, 237, .08);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.6rem; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--honey); }
.hero .eyebrow::before { background: var(--honey); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 5.4vw, 4.25rem); letter-spacing: -.015em; margin: .5rem 0 1.2rem; }
.hero h1 .accent { color: var(--honey); font-style: italic; }
.hero p.lede { font-size: 1.16rem; color: #C7DCD0; max-width: 33em; margin-bottom: 2.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--pine); transform: translateY(-2px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.hero-stats .stat { border-left: 3px solid rgba(227, 179, 107, .5); padding-left: 1rem; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--honey); line-height: 1; }
.hero-stats .stat span { font-size: .86rem; color: #A9C6B6; font-weight: 600; }

.hero-panel { position: relative; }
.hero-panel .photo {
  border-radius: 30px; overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .92);
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .6);
  transform: rotate(1.3deg);
}
.hero-panel .photo img { width: 100%; height: 470px; object-fit: cover; object-position: 50% 28%; }
.mini-badge {
  position: absolute; top: -16px; left: -16px; z-index: 2; transform: rotate(-2.2deg);
  background: #fff; border-radius: 999px; padding: .5rem 1.1rem;
  font-weight: 700; font-size: .86rem; color: var(--pine); box-shadow: var(--shadow-soft);
  display: inline-flex; align-items: center; gap: .45rem;
}
.mini-badge svg { width: 16px; height: 16px; stroke: var(--clay); }
.float-chip {
  position: absolute; right: -14px; bottom: 26px; z-index: 2; transform: rotate(-1.8deg);
  background: var(--clay); color: #fff; border-radius: 16px; padding: .65rem 1.1rem;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); text-align: center; line-height: 1.25;
}
.float-chip b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.float-chip span { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FCE9DF; }

.chip {
  background: var(--mint); border: 1px solid var(--line); border-radius: 999px;
  padding: .38rem .95rem; font-size: .82rem; font-weight: 700; color: var(--forest);
}
.chip.clay { color: #B35F3E; border-color: #F2D5C8; background: var(--clay-tint); }

/* ---------- Trust bar ---------- */
.trustbar { background: linear-gradient(120deg, var(--pine), var(--forest)); color: #E4F1E9; padding: 1.2rem 0; }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.8rem; }
.trustbar span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; }
.trustbar svg { width: 19px; height: 19px; stroke: var(--honey); flex: none; }

/* ---------- Cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sage); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mint), var(--mint-deep)); margin-bottom: 1.15rem;
}
.card .icon svg { width: 27px; height: 27px; stroke: var(--forest); }
.card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Wellness photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery figure {
  position: relative; border-radius: 20px; overflow: hidden; margin: 0;
  box-shadow: var(--shadow-soft); aspect-ratio: 3 / 4;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery figure:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem 1.1rem .95rem;
  background: linear-gradient(180deg, transparent, rgba(20, 56, 43, .82));
  color: #fff; font-family: var(--font-display); font-size: 1.06rem; font-weight: 600;
}
.gallery figcaption small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: #CBE4D6; margin-top: .15rem; }

/* ---------- About the doctor ---------- */
.about { background: var(--paper); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, var(--mint) 0%, transparent 68%);
}
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.4rem; align-items: center; position: relative; }

.montage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.montage .main-photo {
  grid-row: span 2; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff; transform: rotate(-1.2deg); position: relative;
}
.montage .main-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; aspect-ratio: 4 / 5.1; }
.montage .side-photo {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft);
  border: 5px solid #fff; aspect-ratio: 1 / 1;
}
.montage .side-photo img { width: 100%; height: 100%; object-fit: cover; }
.montage .side-photo.tilt-a { transform: rotate(1.6deg) translateY(-6px); }
.montage .side-photo.tilt-b { transform: rotate(-1.4deg); }
.montage .years-badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 3;
  background: var(--forest); color: #fff; border-radius: 18px; padding: .9rem 1.2rem;
  box-shadow: var(--shadow); text-align: center; transform: rotate(-2deg);
}
.montage .years-badge b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--honey); }
.montage .years-badge span { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.photo-caption { font-size: .8rem; color: var(--muted); margin-top: .9rem; text-align: center; font-style: italic; }

.about-copy h2 { font-size: clamp(1.95rem, 3vw, 2.55rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.credentials {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem;
}
.check-list { list-style: none; margin-top: 1.3rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--pine); }
.check-list svg { width: 20px; height: 20px; stroke: var(--clay); flex: none; margin-top: .15rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
  position: relative; padding: 2rem 1.7rem 1.8rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--sage);
  display: block; line-height: 1; margin-bottom: .7rem; opacity: .55;
}
.step h3 { font-size: 1.16rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper); border-block: 1px solid var(--line); }
.quote-card { display: flex; flex-direction: column; }
.quote-card .stars { color: var(--honey); font-size: 1.05rem; letter-spacing: .18em; margin-bottom: .8rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.12rem; color: var(--pine); font-style: italic; flex: 1; }
.quote-card figcaption { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.fine-print { margin-top: 2rem; font-size: .82rem; color: var(--muted); max-width: 62em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 80%);
  border-radius: 30px; padding: 3.8rem 3.2rem; color: #E4F1E9;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(227, 179, 107, .18); pointer-events: none;
}
.cta-band::before {
  content: ""; position: absolute; left: -60px; bottom: -110px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(217, 131, 98, .14); pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .5rem; position: relative; z-index: 1; }
.cta-band p { color: #C9E3D4; max-width: 34em; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 21px; height: 21px; stroke: var(--clay); flex: none; margin-top: .2rem; }
.contact-list b { display: block; color: var(--pine); }
.contact-list span { color: var(--muted); font-size: .95rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem; box-shadow: var(--shadow); }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--pine); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .72rem .9rem;
  font-family: var(--font-body); font-size: .98rem; background: var(--mist); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 107, 78, .13);
}
.form-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--pine) 0%, #0E2A20 100%); color: #B9D6C6; margin-top: 5rem; }
.site-footer .container { padding: 3.6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.6rem; }
.footer-logo-card { background: #fff; border-radius: 16px; padding: .9rem 1.1rem; display: inline-block; margin-bottom: 1.1rem; }
.footer-logo-card img { height: 46px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #B9D6C6; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.6rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center; }
.footer-legal .legal-links { display: flex; gap: 1.4rem; }
.emergency-note { font-size: .85rem; color: #9DC2AF; margin-top: 1.3rem; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: .8rem 1.1rem; }

/* ---------- Legal pages ---------- */
.legal-hero { background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%); color: #E4F1E9; padding: 3.8rem 0; }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.legal-hero p { color: #C9E3D4; max-width: 46em; }
.legal-body { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.8rem, 4vw, 3.4rem); margin: 3rem 0 1rem; box-shadow: var(--shadow-soft); }
.legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .99rem; margin-bottom: .7rem; }
.legal-body ul { padding-left: 1.3rem; }
.legal-body li { margin-bottom: .35rem; }
.legal-body strong { color: var(--pine); }
.todo { background: var(--clay-tint); border: 1px dashed var(--clay); border-radius: 10px; padding: .7rem 1rem; font-size: .85rem; color: #96522F; margin: .6rem 0 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.6rem 0 5rem; }
  .hero .watermark { font-size: 26vw; right: auto; left: 4%; bottom: -2.4rem; }
  .hero-panel .photo img { height: 340px; }
  .mini-badge { top: -12px; left: 8px; }
  .float-chip { right: 4px; bottom: 14px; }
  .about::before { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
         align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .8rem 4%; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: .8rem 0; justify-content: center; }
  .menu-btn { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-header { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.8rem 1.9rem; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .form-card .row { grid-template-columns: 1fr; }
}
