/* ==========================================================================
   RG Wellness — shared stylesheet
   Every color and shape is drawn from the practice logo. Nothing invented.
   ========================================================================== */

:root {
  --ink: #2F3529;
  --sage: #6F795A;
  --sage-light: #A8B292;
  --sand: #E9E7D7;
  --cream: #F7F5EF;
  --paper: #FBFAF6;
  --mint: #CFE0CE;
  --lavender: #D9CFE9;
  --blue: #C6DAE7;

  --line: rgba(47, 53, 41, 0.14);
  --line-soft: rgba(47, 53, 41, 0.08);
  --ink-70: rgba(47, 53, 41, 0.70);
  --ink-55: rgba(47, 53, 41, 0.55);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: var(--sage); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1.1em; }

/* ---- shared layout helpers ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(3.25rem, 8vw, 6rem) 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.mt-0 { margin-top: 0; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 1.1rem;
}

.h1 { font-size: clamp(2.35rem, 5.4vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-70); }

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

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--sage); color: var(--cream); }
.btn--primary:hover { background: #616a4f; color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(247,245,239,0.4); }
.btn--outline-light:hover { border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

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

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--ink); color: rgba(247,245,239,0.85);
  font-size: 0.78rem; letter-spacing: 0.01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; }
.topbar a { color: rgba(247,245,239,0.9); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__note { opacity: 0.92; }
.topbar__contact { display: flex; gap: 1.25rem; white-space: nowrap; }
@media (max-width: 720px) {
  .topbar__note { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar__contact { gap: 1rem; font-weight: 500; }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.16em; font-size: 1.02rem; text-transform: uppercase; }
.brand__tag { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-55); margin-top: 0.28rem; display: flex; align-items: center; gap: 0.34rem; }
.brand__tag .dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { font-family: var(--sans); font-size: 0.96rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.site-nav a:not(.btn):hover { color: var(--sage); }
.site-nav a[aria-current="page"] { color: var(--sage); box-shadow: inset 0 -2px 0 var(--sage-light); }
.site-nav > .btn { display: none; }

.header__cta { display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: .85rem; }

@media (max-width: 940px) {
  .header__cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav > .btn { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--cream); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .28s ease;
    display: flex; flex-direction: column; gap: 0.25rem; padding: 6rem 1.75rem 2rem;
    box-shadow: -20px 0 60px rgba(47,53,41,0.12); z-index: 60;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn { display: inline-flex; margin-top: 1.25rem; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(47,53,41,0.35); opacity: 0; pointer-events: none; transition: opacity .28s ease; z-index: 55; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 8px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
}
@media (min-width: 941px) { .nav-close, .nav-backdrop { display: none; } }

/* ==========================================================================
   Arch image frame (the dome from the logo)
   ========================================================================== */
.arch { position: relative; border-radius: 50% 50% var(--radius) var(--radius) / 42% 42% var(--radius) var(--radius); overflow: hidden; background: var(--sand); box-shadow: 0 22px 50px -28px rgba(47,53,41,0.45); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247,245,239,0.55); border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px; pointer-events: none; }
.arch--wide { border-radius: 220px 220px var(--radius) var(--radius) / 90px 90px var(--radius) var(--radius); }
.arch--wide::after { border-radius: 210px 210px 4px 4px / 82px 82px 4px 4px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(2.75rem, 6vw, 5rem); }
.hero__copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 3.85rem); font-weight: 400; margin-bottom: 1.1rem; }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-70); max-width: 33rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-70); }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__media { position: relative; }
.hero__media .arch { aspect-ratio: 4 / 5; }

/* rotating multilingual card */
.langline {
  margin-top: 1.4rem; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 14px 40px -30px rgba(47,53,41,0.5);
}
.langline__label { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.6rem; font-weight: 700; color: var(--sage); white-space: nowrap; }
.langline__quotes { position: relative; flex: 1; }
.langline__q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.28rem; color: var(--ink); }
.langline__lang { display: block; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.58rem; font-weight: 700; color: var(--ink-55); margin-top: 0.35rem; font-style: normal; font-family: var(--sans); }
.langline__item { transition: opacity .5s ease; }
.langline--js .langline__item { position: absolute; inset: 0; opacity: 0; }
.langline--js .langline__item.is-active { position: relative; opacity: 1; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; margin: 0.5rem auto 0; }
}

/* ==========================================================================
   Condition chips (petal markers)
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.75rem 0 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 500; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--mint { background: #9dc7a6; } /* mint deepened for contrast */
.dot--lav { background: #b9a9d6; }
.dot--blue { background: #9dbdd6; }
.note-soft { color: var(--ink-70); font-size: 0.96rem; }

/* ==========================================================================
   Steps (numbered)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 2.25rem; }
.step__top { display: flex; align-items: center; gap: 0.7rem; border-top: 1px solid var(--ink); padding-top: 0.9rem; margin-bottom: 0.9rem; }
.step__num { font-family: var(--serif); font-size: 1.5rem; color: var(--sage); }
.step__dot { width: 8px; height: 8px; border-radius: 50%; }
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-70); font-size: 0.98rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ==========================================================================
   Split feature (provider / about)
   ========================================================================== */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split__media .arch { aspect-ratio: 4 / 5; max-width: 420px; }
.split blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.2rem; color: var(--ink); margin: 0 0 1.1rem; line-height: 1.5; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__media { max-width: 380px; }
  .split--media-first .split__media { order: -1; }
}

/* ==========================================================================
   Tables (insurance / plans)
   ========================================================================== */
.plan-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; font-size: 0.96rem; background: var(--paper); border: 1px solid var(--line); }
.plan-table td { border: 1px solid var(--line); padding: 0.85rem 1.1rem; }
.plan-scroll { overflow-x: auto; }
@media (max-width: 620px) { .plan-table { font-size: 0.9rem; } .plan-table td { padding: 0.7rem 0.8rem; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.cards { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.card h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-70); font-size: 0.97rem; margin: 0; }
.card .price { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); }
.card .price small { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-55); }
@media (max-width: 820px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cards--2 { grid-template-columns: 1fr; } }

/* conditions list beside image */
.cond-list { columns: 1; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.cond-list li { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.98rem; }
.cond-list .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 0.6rem; flex: none; }

/* ==========================================================================
   FAQ (native details)
   ========================================================================== */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--sage); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 2.5rem 1.35rem 0; color: var(--ink-70); }
.faq details > div p { margin: 0; }

/* ==========================================================================
   CTA band + banner
   ========================================================================== */
.cta-band { background: var(--sage); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(247,245,239,0.85); max-width: 40rem; margin: 0 auto 1.8rem; }
.cta-band .btn-row { justify-content: center; }

.banner { position: relative; border-radius: var(--radius); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner__inner { position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(247,245,239,0.78); font-size: 0.93rem; }
.site-footer .wrap { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand .brand__name { color: var(--cream); }
.footer__about { max-width: 24ch; color: rgba(247,245,239,0.68); }
.footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; font-weight: 700; color: rgba(247,245,239,0.55); margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: rgba(247,245,239,0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__langs { color: rgba(247,245,239,0.6); }

.crisis {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(247,245,239,0.18); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.86rem; color: rgba(247,245,239,0.75); line-height: 1.6;
}
.crisis strong { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(247,245,239,0.14); font-size: 0.8rem; color: rgba(247,245,239,0.55); }
.footer-bottom a { color: rgba(247,245,239,0.7); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.page-hero .wrap { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero.split-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.page-hero .arch { aspect-ratio: 4 / 5; max-width: 400px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 0.9rem; }
@media (max-width: 860px) { .page-hero.split-hero .wrap { grid-template-columns: 1fr; } .page-hero .arch { max-width: 340px; margin-top: 0.5rem; } }

.stack-gap > * + * { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

/* credentials box */
.cred { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.cred h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--sage); margin-bottom: 1rem; }
.cred ul { list-style: none; margin: 0; padding: 0; }
.cred li { display: flex; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.97rem; }
.cred li:last-child { border-bottom: 0; }
.cred .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 0.55rem; flex: none; }

.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,4vw,2.5rem); }
.info-cols h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; font-weight: 700; color: var(--sage); margin: 0 0 0.5rem; }
.info-cols p { color: var(--ink-70); font-size: 0.96rem; margin: 0; }
@media (max-width: 760px) { .info-cols { grid-template-columns: 1fr; gap: 1.5rem; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.contact-grid .phone { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); margin: 0.2rem 0 0.5rem; }
.book-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.book-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.book-list a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--sage); text-decoration: none; }
.book-list a:hover { text-decoration: underline; }
.book-list .dot { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.disclaimer { font-size: 0.85rem; color: var(--ink-55); }

/* ==========================================================================
   Legal / prose + 404
   ========================================================================== */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-70); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { font-size: 0.85rem; color: var(--ink-55); margin-bottom: 2rem; }

.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-page .code { font-family: var(--serif); font-size: clamp(4rem, 12vw, 7rem); color: var(--sage-light); line-height: 1; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.5rem 0 1rem; }
