/* =========================================================
   COLOR PALETTE — change these to re-theme the whole site
   ========================================================= */
:root {
  --teal:      #1F4E5A;  /* Primary: header, footer, headings */
  --teal-dark: #163940;  /* Hover / deep backgrounds */
  --sage:      #8FAE9B;  /* Secondary: accents, dividers */
  --mist:      #E8EFEC;  /* Soft section background */
  --ivory:     #FAF7F2;  /* Page background */
  --clay:      #A85A3E;  /* Call-to-action buttons (use sparingly) */
  --clay-dark: #8E4A32;
  --ink:       #2B2F31;  /* Body text */
  --muted:     #5C6467;  /* Secondary text */
  --white:     #FFFFFF;
  --line:      #D6E0DC;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}
h1, h2, h3 { font-family: "Lora", Georgia, serif; color: var(--teal); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--clay); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay); margin-bottom: .75em;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  font-family: inherit; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--teal); }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-dark); color: #DCE6E2; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #DCE6E2; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.social { display: flex; gap: 16px; }

/* ---------- Header ---------- */
header.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo img { display: block; height: 44px; width: auto; }
nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; align-items: center; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
nav a:hover { color: var(--clay); }
nav .login { padding: 8px 20px; border: 2px solid var(--teal); border-radius: 999px; color: var(--teal); }
nav .login:hover { background: var(--teal); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--teal); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(22,57,64,.92) 0%, rgba(31,78,90,.78) 45%, rgba(31,78,90,.15) 80%),
    url("../images/hero-stones.webp") center 65% / cover no-repeat;
  color: var(--white); padding: 130px 0; min-height: 560px; display: flex; align-items: center;
}
.hero .container { width: 100%; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero p { font-size: 1.2rem; max-width: 600px; color: #DCE6E2; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero .eyebrow { color: #E9B8A3; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.info-card { background: var(--mist); border-radius: var(--radius); padding: 30px; border-left: 5px solid var(--sage); }
.info-card ul { margin: 0; padding-left: 1.2em; }
.info-card li { margin-bottom: .4em; }

/* ---------- Quote ---------- */
.quote {
  background: linear-gradient(rgba(22,57,64,.72), rgba(22,57,64,.72)), url("../images/quote-rain.webp") center / cover no-repeat;
  text-align: center; padding: 120px 0;
}
.quote blockquote { margin: 0 auto; max-width: 780px; font-family: "Lora", Georgia, serif; font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--white); font-style: italic; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 1rem; color: #DCE6E2; text-shadow: none; }

/* ---------- Providers (text listing) ---------- */
.providers-intro { max-width: 760px; margin-bottom: 40px; }
.provider-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.provider-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.provider-name { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.provider-cred { display: block; font-size: .95rem; color: var(--muted); }
.provider-link { white-space: nowrap; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--clay); }
.provider-link:hover { text-decoration: underline; }

.provider-group { margin: 36px 0 4px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; font-family: "Source Sans 3", sans-serif; font-weight: 700; color: var(--teal); border-bottom: 2px solid var(--sage); padding-bottom: 6px; }
.provider-group:first-of-type { margin-top: 0; }
.provider-group + .provider-list { margin-bottom: 8px; }

/* ---------- Refills ---------- */
.refills { padding-top: 0; }
.refill-card .hint { margin: 0; }
.refill-card { background: var(--mist); border-radius: var(--radius); padding: 36px; border-left: 5px solid var(--clay); }

/* ---------- Contact / Question form ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-details h3 { margin-top: 1.4em; }
.contact-details h3:first-child { margin-top: 0; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.crisis {
  margin-top: 28px; background: #FBEDE7; border-left: 5px solid var(--clay);
  padding: 16px 20px; border-radius: 6px; font-size: .95rem;
}

form.question-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-family: "Lora", Georgia, serif; font-size: 1.2rem; color: var(--teal); font-weight: 600; margin-bottom: 4px; padding: 0; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--white); font-family: "Source Sans 3", sans-serif; font-size: .9rem; margin-right: 8px; }
.hint { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.req { color: var(--clay); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid #BFCBC6; border-radius: 8px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(143,174,155,.5); border-color: var(--teal); }
textarea { min-height: 150px; resize: vertical; }

/* Topic choice chips */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; padding: 12px 14px; border: 1px solid #BFCBC6; border-radius: 8px;
  background: var(--white); cursor: pointer; font-weight: 600; font-size: .95rem; text-align: center;
  transition: all .15s;
}
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid rgba(143,174,155,.6); }

.inline-options { display: flex; gap: 22px; flex-wrap: wrap; }
.inline-options label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 400; }
.consent input { margin-top: 5px; }
.error { color: #A3322A; font-size: .88rem; margin-top: 4px; display: none; }
.field.invalid .error, fieldset.invalid > .error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #A3322A; }
.form-message { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 8px; background: var(--mist); color: var(--teal); font-weight: 600; }

/* ---------- Map ---------- */
.map { margin-top: 24px; }
.map iframe { display: block; width: 100%; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--clay); }
.map-link:hover { text-decoration: underline; }

/* ---------- Reviews ---------- */
.reviews { background: var(--mist); text-align: center; }
.reviews p { max-width: 640px; margin: 0 auto 26px; }
.review-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }

/* ---------- Location band ---------- */
.location { background: var(--teal); color: var(--white); padding: 56px 0; }
.location .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.location h2 { color: var(--white); margin-bottom: .2em; }
.location p { margin: 0; color: #DCE6E2; }

/* ---------- Footer ---------- */
footer { background: var(--teal-dark); color: #C9D6D1; padding: 40px 0; font-size: .95rem; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #C9D6D1; text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-logo img { display: block; height: 40px; width: auto; margin-bottom: 10px; }
footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .provider-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 90px 0; min-height: 0; background: linear-gradient(rgba(22,57,64,.82), rgba(22,57,64,.82)), url("../images/hero-stones.webp") 70% center / cover no-repeat; }
  .quote { padding: 80px 0; }
  .menu-toggle { display: block; }
  nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 10px 0 20px; }
  nav ul.open { display: flex; }
  nav li { width: 100%; text-align: center; padding: 10px 0; }
  .row { grid-template-columns: 1fr; }
  form.question-form { padding: 24px 18px; }
  .topbar .social { display: none; }
}
