/* ============================================================
   Bright Roots Wellbeing — theme
   Reskins the Claude CMS template (dark) into a light, cream
   "Twenty Twenty"-style look matching the source design.
   Loaded via custom_head <link>, so it overrides the template's
   inline <style> defaults.
   ============================================================ */

/* ── TOKEN OVERRIDES (re-theme the template via its own vars) ── */
:root {
  --bg:        #ffffff;
  --surface:   #f3efe6;   /* cream — cards, footer */
  --band:      #dcd7ca;   /* cream band fill */
  --text:      #1d1d1b;
  --muted:     #5f5f5a;
  --border:    #e6dfd0;
  --accent:    #cd2653;   /* brand pink-red */
  --accent-2:  #8aacae;   /* muted teal */
  --maxw:      1120px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-head: 'Quicksand', var(--font);
}

/* ── BASE ── */
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--text); letter-spacing: -.01em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Neutralise the template's narrow wrapper so bands can go full-width */
.rp-page { padding: 0 !important; }
.rp-container { max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* shared inner width */
.brw-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.rp-navbar { background: #ffffff !important; border-bottom: 1px solid var(--border); backdrop-filter: none !important; }
.rp-navbar-inner { max-width: var(--maxw); padding: 16px 24px; }
.rp-brand {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  color: var(--accent) !important; letter-spacing: -.02em; line-height: 1.05;
}
.rp-brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); }
.rp-nav { gap: 20px; flex-wrap: wrap; }
.rp-nav a { color: var(--text) !important; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.rp-nav a:hover { color: var(--accent) !important; }

/* Mobile nav (toggle button injected by main.js) */
.brw-navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px;
  font-size: 26px; line-height: 1; color: var(--accent); }
@media (max-width: 860px) {
  .brw-navtoggle { display: block; }
  .rp-navbar-inner { flex-wrap: wrap; }
  .rp-nav { flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 4px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .rp-nav.open { max-height: 640px; padding-top: 12px; }
  .rp-nav a { padding: 8px 0; font-size: 16px; }
}

/* ── HERO ── */
.brw-hero {
  position: relative; color: #fff; text-align: center;
  padding: 110px 24px; background: #444 center/cover no-repeat;
}
.brw-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,25,.5); }
.brw-hero > * { position: relative; z-index: 1; }
.brw-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .35em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.brw-hero p.lead { color: #fff; font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-style: italic;
  max-width: 760px; margin: 0 auto 1.6em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }

/* ── SECTION BANDS ── */
.brw-band { padding: 72px 0; }
.brw-band--cream { background: var(--band); }
.brw-band--soft  { background: var(--surface); }
.brw-band--accent { background: var(--accent); color: #fff; }
.brw-band--accent h2, .brw-band--accent h3 { color: #fff; }
.brw-band--accent p { color: rgba(255,255,255,.92); }
.brw-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 .7em; }
.brw-band--center { text-align: center; }
.brw-lead { font-size: 1.15rem; color: var(--muted); max-width: 820px; }
.brw-band--center .brw-lead { margin-left: auto; margin-right: auto; }

/* ── EXPERTISE / CARD GRID ── */
.brw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 36px; }
.brw-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.brw-card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-2);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.brw-card h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.brw-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ── FEATURE ROW (text + images) ── */
.brw-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.brw-feature--reverse .brw-feature-media { order: -1; }
.brw-feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brw-feature-media img { border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.brw-feature-media.single { grid-template-columns: 1fr; }
.brw-feature-media.single img { aspect-ratio: 16/9; }
@media (max-width: 820px) {
  .brw-feature { grid-template-columns: 1fr; gap: 28px; }
  .brw-feature--reverse .brw-feature-media { order: 0; }
}

/* ── PACKAGES / PRICING ── */
.brw-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; align-items: stretch; }
.brw-pkg { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.brw-pkg--featured { border-color: var(--accent); box-shadow: 0 10px 30px rgba(205,38,83,.12); }
.brw-pkg h3 { font-size: 1.35rem; margin: 0 0 .2em; color: var(--accent); }
.brw-pkg .price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin: 6px 0 16px; }
.brw-pkg ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.brw-pkg li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.brw-pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.brw-pkg li:last-child { border-bottom: 0; }

/* ── QUOTE / TESTIMONIALS ── */
.brw-quote { max-width: 820px; margin: 0 auto; text-align: center; font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-style: italic; line-height: 1.5; color: var(--text); }
.brw-quote::before { content: "“"; display: block; font-size: 4rem; line-height: .4; color: var(--accent); margin-bottom: 18px; }
.brw-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.brw-testimonial { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 26px; font-style: italic; color: var(--muted); }

/* ── PROSE (blog / legal) ── */
.brw-prose { max-width: 760px; margin: 0 auto; }
.brw-prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.brw-prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.brw-prose ul { padding-left: 22px; }
.brw-prose li { margin: .4em 0; }
.brw-postmeta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.brw-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px;
  border-top: 1px solid var(--border); padding-top: 24px; font-weight: 600; }

/* ── RECENT POSTS CARDS ── */
.brw-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.brw-post { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.brw-post img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.brw-post .body { padding: 20px; }
.brw-post h3 { font-size: 1.1rem; margin: 0 0 .5em; }
.brw-post h3 a { color: var(--text); }
.brw-post h3 a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn, .brw-btn { display: inline-block; padding: 13px 30px; border-radius: 40px; font-family: var(--font-head);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-primary, .brw-btn { background: var(--accent); color: #fff !important; }
.btn-primary:hover, .brw-btn:hover { background: #b01f47; text-decoration: none; }
.brw-btn--ghost { background: transparent; color: #fff !important; border: 2px solid #fff; }
.brw-btn--ghost:hover { background: #fff; color: var(--accent) !important; }
.brw-btn--teal { background: var(--accent-2); }
.brw-btn--teal:hover { background: #6f9698; }

/* ── CONTACT ── */
.brw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .brw-contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.brw-contact-details p { margin: 0 0 .4em; }
.brw-contact-details .big { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.brw-form { display: grid; gap: 14px; }
.brw-form input, .brw-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.brw-form textarea { min-height: 140px; resize: vertical; }
.brw-form button { justify-self: start; border: 0; }

/* ── CTA STRIP ── */
.brw-cta { text-align: center; }
.brw-cta h2 { margin-bottom: .3em; }
.brw-cta p { max-width: 620px; margin: 0 auto 1.6em; }

/* ── FOOTER (template footer uses var(--surface)/(--muted), now light) ── */
footer .brw-footcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px;
  text-align: left; max-width: var(--maxw); margin: 0 auto 24px; }
footer h4 { color: var(--text); font-size: 1rem; margin: 0 0 .6em; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
