/*
Theme Name: Simply Rooted Counseling
Description: A simple, earthy custom theme for Simply Rooted Counseling.
Version: 1.0
Text Domain: simply-rooted
*/

:root {
  --olive: #656646;
  --olive-soft: #727356;
  --cream: #f4f1ec;
  --blush: #e8dbd3;
  --sand: #ddd6c4;
  --ink: #42432f;
  --muted: #62634f;
  --radius: 14px;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--olive);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; max-width: 62ch; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--cream); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--olive); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--cream); text-decoration: none; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(244,241,236,.6); color: var(--cream); font: inherit; font-size: 1rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.9rem; }
.site-nav a { color: rgba(244,241,236,.82); text-decoration: none; font-size: 1.05rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cream); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--olive); padding: .5rem 1.5rem 1.5rem; border-top: 1px solid rgba(244,241,236,.25); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .4rem; }
  .site-nav a { display: block; padding: .6rem 0; font-size: 1.15rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--olive); color: var(--cream); padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1.05rem; border: 2px solid var(--olive); transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--outline { background: transparent; color: var(--olive); }
.btn--outline:hover { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.btn--light:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--olive); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.text-link { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--olive { background: var(--olive); color: var(--cream); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--cream); }
.section--olive a { color: var(--cream); }
.section--blush { background: var(--blush); }
.section--sand { background: var(--sand); }
.section-head { margin-bottom: 2.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--wide-text { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1; }
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero p { font-size: 1.25rem; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero .split { grid-template-columns: 1.05fr .95fr; }
.hero h1 { margin-bottom: .35em; }
.hero .quote { font-family: var(--font-heading); font-size: 1.35rem; font-style: italic; color: var(--muted); margin-bottom: 1.4rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink); }
.hero-art { background: var(--blush); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.hero-art .wordmark { text-align: center; font-family: var(--font-heading); color: var(--olive); font-size: 2rem; padding: 2rem; line-height: 1.2; }
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-bottom: -1px; }
@media (max-width: 860px) { .hero .split { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 420px; } }

/* ---------- Lists & cards ---------- */
.concerns { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.concerns li { padding-left: 1.6rem; position: relative; }
.concerns li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7rem; height: .7rem; border-radius: 50% 0 50% 50%; background: var(--olive-soft); transform: rotate(-45deg); }
.section--olive .concerns li::before { background: var(--cream); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.service { border-left: 2px solid var(--olive-soft); padding-left: 1.5rem; }
.service .icon { width: 64px; height: 64px; border: 2px solid var(--olive); border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--olive); }
.service .icon svg { width: 34px; height: 34px; }
.service h3 { margin-bottom: .5rem; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--cream); color: var(--olive); font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.insurance-list { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.insurance-list li { break-inside: avoid; padding: .15rem 0; }
.insurance-list--compact { columns: 3; font-size: 1rem; line-height: 1.6; }
@media (max-width: 700px) { .insurance-list, .insurance-list--compact { columns: 1; } }
.pay-list { list-style: none; padding: 0; margin: 0; }
.pay-list li { padding: .15rem 0; }

.prose h2 { margin-top: 1.6em; }
.stack > * + * { margin-top: 2.5rem; }
.detail { border-top: 2px solid var(--olive-soft); padding-top: 1.4rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.detail h2 { font-size: 1.7rem; margin: 0; }
.detail p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: .5rem; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-block { margin-bottom: 2rem; }
.contact-block h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.contact-block p { margin: 0; }
.contact-block a { font-size: 1.25rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.crisis { border: 2px solid var(--olive-soft); border-radius: var(--radius); padding: 1.2rem 1.5rem; font-size: 1rem; }
.crisis p { margin: 0; }

.cta { text-align: center; }
.cta p { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: var(--cream); padding: 3.5rem 0 2rem; font-size: 1.05rem; }
.site-footer a { color: var(--cream); }
.site-footer h2 { font-size: 1.15rem; color: var(--cream); margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.footer-grid p { margin-bottom: .4rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; margin-bottom: .5rem; }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,241,236,.3); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.footer-note p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Floral and roots motifs ---------- */
.section, .hero { position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.botanical { position: absolute; right: 2%; bottom: 0; width: clamp(130px, 18vw, 210px); height: auto; color: var(--olive); opacity: .13; pointer-events: none; }
.section--olive > .botanical { color: var(--cream); opacity: .16; }
.motif.divider { display: block; width: 240px; height: 32px; color: var(--olive-soft); margin: 1.2rem 0 0; }
.cta .motif.divider { margin: 0 auto 1.2rem; }
.wordmark .motif-art { display: block; width: 72%; max-width: 270px; height: auto; margin: 0 auto 1rem; color: var(--olive); }
.illustration { background: var(--blush); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; color: var(--olive); }
.illustration svg { width: 68%; max-width: 300px; height: auto; }
.brand .mark { width: 48px; height: 48px; border: 2px solid var(--cream); border-radius: 50%; display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 28px; height: 28px; }
.footer-mark svg { width: 40px; height: 40px; color: var(--cream); margin-bottom: .5rem; display: block; }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='28' viewBox='0 0 90 28'%3E%3Cpath d='M10 28C10 20 12 12 18 6M18 28V4M26 28C26 20 24 12 18 6M52 28C52 22 54 16 58 10M60 28V8M68 28C68 22 66 16 60 10' fill='none' stroke='%23656646' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom; }
.detail .icon, .info-item .icon { width: 56px; height: 56px; border: 2px solid var(--olive); border-radius: 50%; display: grid; place-items: center; color: var(--olive); flex: none; }
.detail .icon { margin-bottom: .9rem; }
.detail .icon svg, .info-item .icon svg { width: 30px; height: 30px; }

/* ---------- Outline tables (Payment) ---------- */
.pay-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.table-card { border: 2px solid var(--olive); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th { text-align: left; background: var(--blush); color: var(--olive); font-family: var(--font-heading); font-size: 1.3rem; padding: 1rem 1.3rem; border-bottom: 2px solid var(--olive); }
.table-card th .th-icon { display: inline-grid; vertical-align: middle; margin-right: .7rem; }
.table-card th .th-icon svg { width: 30px; height: 30px; }
.table-card td { padding: .8rem 1.3rem; border-top: 1px solid rgba(101,102,70,.3); font-size: 1.05rem; line-height: 1.5; }
.table-card tbody tr:first-child td { border-top: 0; }
.table-card td + td { border-left: 1px solid rgba(101,102,70,.3); }
.photo--banner { height: clamp(160px, 24vw, 260px); margin-bottom: 2rem; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .table-card td { display: block; } .table-card td + td { border-left: 0; } .table-card td:empty { display: none; } }

/* ---------- Contact card ---------- */
.info-card { border: 2px solid var(--olive); border-radius: var(--radius); padding: .4rem 1.6rem; }
.info-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.3rem 0; border-top: 1px solid rgba(101,102,70,.3); }
.info-item:first-child { border-top: 0; }
.info-item h2 { font-size: 1.15rem; margin: 0 0 .1rem; }
.info-item p { margin: 0; }
.info-item a { font-size: 1.2rem; word-break: break-word; }

.footer-mark img { width: 64px; height: 64px; margin-bottom: .5rem; }
