/* Athelas Counseling & Consulting — palette and type taken from the original site.
   cream #FFF5D9 · navy #182241 · deep #213C4E · slate #536C7C · mist #7B949C · ink #3D3328 */

:root {
  --cream: #FFF5D9;
  --cream-soft: #FFFBF0;
  --navy: #182241;
  --deep: #213C4E;
  --slate: #536C7C;
  --mist: #7B949C;
  --ink: #3D3328;
  --wave-fill: var(--cream);

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --radius: 999px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}

h1, h2, h3, h4, .section-title { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; margin: 0; padding: 12px 18px; z-index: 100;
  background: var(--cream); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 26px;
  min-height: 44px;                /* comfortable touch target */
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--slate); color: var(--cream); border-color: var(--slate); }
.btn-solid:hover, .btn-solid:focus { background: var(--deep); border-color: var(--deep); color: var(--cream); }

.btn-outline { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-outline:focus { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 34, 65, .08);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { flex: 0 0 auto; display: block; }
.brand img { width: 190px; height: auto; }

.nav-toggle {
  margin-left: auto;
  width: 46px; height: 46px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.site-nav { display: none; }
.site-nav.open { display: block; flex: 1 0 100%; width: 100%; padding: 8px 0 20px; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid rgba(24, 34, 65, .1); }
.nav-list a, .sub-toggle {
  display: block; width: 100%; text-align: left;
  padding: 13px 2px; font-size: 1rem; color: var(--navy);
  text-decoration: none; background: none; border: 0; font-family: var(--sans); cursor: pointer;
}
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.sub-toggle { display: flex; align-items: center; justify-content: space-between; }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
         border-top: 6px solid var(--navy); transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.sub { list-style: none; margin: 0; padding: 0 0 8px 16px; display: none; }
.has-sub.open > .sub,
.has-sub.is-current-section > .sub { display: block; }
.sub a { padding: 9px 2px; font-size: .95rem; }
.sub li { border: 0; }

.nav-cta { margin-top: 16px; display: inline-block; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; }
.hero-img {
  width: 100%; height: clamp(400px, 64vh, 600px); object-fit: cover; object-position: center 55%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 34, 65, .22) 0%, rgba(24, 34, 65, .10) 45%, rgba(24, 34, 65, .42) 100%);
}
.hero-content {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  text-align: center; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5em; color: #fff; max-width: 20ch; margin-inline: auto; }
.hero-sub { font-family: var(--serif); font-size: 1rem; line-height: 1.4; margin: 0 auto; max-width: 34ch; }
.hero-cta { margin-top: 22px; text-shadow: none; }

/* ---------------------------------------------------------------- waves */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: 42px; }
.wave .fill { fill: var(--wave-fill); }
.wave .line { fill: none; stroke: var(--cream); stroke-width: 3; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: 54px 0; }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: .8em; }

.section-owner { background: var(--mist); color: var(--navy); padding-bottom: 86px; --wave-fill: var(--slate); }
.hero { --wave-fill: var(--mist); }

.owner-grid { display: grid; gap: 28px; }
.owner-photo img { border: 8px solid var(--cream); width: 100%; max-width: 330px; margin: 0 auto; }
.owner-name { font-family: var(--serif); font-weight: 700; text-align: center; font-size: 1.1rem; margin: 0 0 1em; }
.owner-text p { font-size: 1rem; }
.owner-text .center { margin-top: 26px; }

.section-approach { background: var(--slate); color: var(--cream); }
.section-approach .section-title { color: var(--cream); }
.section-approach a:not(.btn) { color: var(--cream); }
.section-approach p { font-size: 1rem; }

.section-mist { background: var(--mist); }
.section-cream { background: var(--cream); }

.two-col { display: grid; gap: 44px; }
.col-img { margin-top: 28px; width: 100%; }

.pull-quote { margin: 30px 0 0; text-align: center; font-family: var(--serif); font-style: italic; }
.pull-quote p { margin: 0 0 .4em; font-size: 1rem; }
.pull-quote cite { font-style: normal; font-size: .95rem; }

/* ---------------------------------------------------------------- accordion */
.areas { margin-top: 4px; }
.area { border-bottom: 1px solid rgba(255, 245, 217, .25); }
.area > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 0;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; color: var(--cream);
}
.area > summary::-webkit-details-marker { display: none; }
.marker { position: relative; flex: 0 0 auto; width: 15px; height: 15px; margin-top: .45em; }
.marker::before, .marker::after {
  content: ""; position: absolute; background: var(--cream); transition: opacity .2s ease, transform .2s ease;
}
.marker::before { top: 6px; left: 0; width: 15px; height: 2px; }
.marker::after { left: 6px; top: 0; width: 2px; height: 15px; }
.area[open] .marker::after { opacity: 0; transform: scaleY(0); }
.area-body { padding: 0 0 22px 29px; }
.area-body p { margin-top: 0; }
.area-body .btn { margin-top: 6px; }

.plain-list { margin: 0 0 1.1em; padding-left: 1.15em; }
.plain-list li { margin-bottom: .45em; font-size: 1rem; }

/* ---------------------------------------------------------------- inner pages */
.page-head { background: var(--deep); color: var(--cream); padding: 46px 0 40px; text-align: center; }
.page-head h1 { font-size: 1.9rem; margin-bottom: .25em; color: var(--cream); }
.page-sub { font-family: var(--serif); font-size: 1rem; margin: 0; color: var(--cream); opacity: .92; }

.prose p { margin: 0 0 1.25em; }
.specialty-img { width: 100%; margin: 0 0 32px; }

.about-grid { display: grid; gap: 30px; }
.about-photo img { border: 8px solid var(--cream); width: 100%; max-width: 330px; margin: 0 auto; }
.section-mist .about-text { color: var(--navy); }

.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal li { font-size: .95rem; }
.legal ul { padding-left: 1.2em; }

/* ---------------------------------------------------------------- contact */
.section-contact { background: var(--cream); color: var(--navy); }
.section-contact .section-title { color: var(--navy); font-size: 1.75rem; margin-bottom: .3em; }
.note { text-align: center; font-size: .95rem; font-style: italic; margin: 0 0 30px; }

.contact-grid { display: grid; gap: 34px; }
.contact-line { margin: 0 0 .2em; font-size: 1rem; }
.contact-intro p:first-child { margin-top: 0; }

.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  font-size: .95rem; font-weight: 700; letter-spacing: .02em; padding: 0;
}
.req { color: #9b2c2c; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;              /* 16px floor keeps iOS from zooming the page on focus */
  color: var(--navy);
  background: var(--cream-soft);
  border: 1px solid rgba(24, 34, 65, .35);
  border-radius: 6px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--deep); }

.checks { display: grid; gap: 2px; margin-top: 2px; }
/* the whole row is the tap target, not just the box — 44px is the comfortable minimum */
.check {
  display: flex; align-items: center; gap: 11px;
  min-height: 44px; padding: 2px 4px 2px 0; margin-left: -4px;
  font-size: 1rem; font-weight: 400; cursor: pointer; border-radius: 6px;
}
.check:hover { background: rgba(83, 108, 124, .07); }
.check input { width: 22px; height: 22px; accent-color: var(--slate); margin: 0; flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-fineprint { font-size: .9rem; line-height: 1.55; margin: 2px 0 0; opacity: .9; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1e5631; }
.form-status.err { color: #9b2c2c; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--cream); color: var(--navy); padding: 40px 0 24px; border-top: 1px solid rgba(24, 34, 65, .12); }
.footer-grid { display: grid; gap: 24px; }
.footer-grid p { margin: 0 0 .45em; font-size: .95rem; }
.footer-grid a, .contact-line a { display: inline-block; padding: 10px 0; }
.footer-name { font-family: var(--serif); font-size: 1rem; }
.footer-head { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(24, 34, 65, .14);
}
.footer-bottom p { margin: 0; font-size: .9rem; }
.footer-bottom a { display: inline-block; padding: 10px 0; }

/* ---------------------------------------------------------------- 768px+ */
@media (min-width: 768px) {
  .section { padding: 70px 0; }
  .hero-img { height: clamp(420px, 76vh, 820px); }
  .owner-text p, .section-approach p { font-size: .95rem; }
  .plain-list li { font-size: .95rem; }
  .legal p, .legal li { font-size: .9rem; }
  .section-owner { padding-bottom: 104px; }
  .wave svg { height: 58px; }

  .hero h1 { font-size: 2.6rem; max-width: 22ch; }
  .hero-sub { font-size: 1.25rem; max-width: 46ch; }

  .section-title { font-size: 2.1rem; }
  .page-head { padding: 64px 0 56px; }
  .page-head h1 { font-size: 2.6rem; }
  .page-sub { font-size: 1.15rem; }

  .owner-grid { grid-template-columns: 330px 1fr; gap: 50px; align-items: start; }
  .about-grid { grid-template-columns: 330px 1fr; gap: 50px; align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }

  .area > summary { font-size: 1.2rem; }
  .specialty-img { max-width: 560px; margin-inline: auto; }
}

/* ---------------------------------------------------------------- 1024px+ */
@media (min-width: 1024px) {
  .header-inner { min-height: 84px; gap: 28px; flex-wrap: nowrap; }
  .brand img { width: 215px; }
  .nav-toggle { display: none; }

  .site-nav { display: flex !important; align-items: center; gap: 22px; margin-left: auto; padding: 0; width: auto; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .sub-toggle { padding: 10px 12px; font-size: .95rem; white-space: nowrap; }
  .caret { margin-left: 6px; }

  .sub {
    display: block; position: absolute; top: 100%; left: 0; min-width: 268px;
    background: var(--cream); border: 1px solid rgba(24, 34, 65, .14);
    border-radius: 10px; padding: 8px; box-shadow: 0 12px 30px rgba(24, 34, 65, .16);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .sub a { padding: 9px 12px; border-radius: 6px; }
  .sub a:hover { background: rgba(83, 108, 124, .14); }

  .nav-cta { margin-top: 0; }

  .hero h1 { font-size: 3.5rem; max-width: 24ch; }
  .hero-sub { font-size: 1.45rem; }
  .section-title { font-size: 2.3rem; }
  .page-head h1 { font-size: 3rem; }
}
