/* ===========================================================
   Amana Behavioral Health — brand + layout
   Static site, no build step. Mobile-first responsive.
   =========================================================== */

:root {
  /* Brand palette (from logo guide) */
  --plum:        #5d3a49;
  --plum-deep:   #4a2c3a;
  --mauve:       #a56f80;
  --pink:        #edd3e0;
  --sage:        #6f8a55;
  --sage-light:  #9cb87e;
  --cream:       #f2ede7;
  --card:        #faf6f0;
  --ink:         #4a3b40;
  --muted:       #8a7a80;
  --line:        #e3dad3;

  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(74, 44, 58, 0.45);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--plum); margin: 0; line-height: 1.08; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sage-light); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  padding: 14px 26px; border-radius: 40px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--plum); color: #f2ede7; }
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mauve); color: var(--mauve); }
.btn-text { color: var(--plum); font-weight: 500; border: 1px solid var(--line); }
.btn-text:hover { border-color: var(--mauve); color: var(--mauve); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 237, 231, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 56px; height: 68px; }
.brand-name { font-family: var(--font-serif); font-size: 2.8rem; color: var(--plum); letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.95rem; color: var(--ink); transition: color .18s ease; }
.nav-links a:hover { color: var(--mauve); }
/* Header CTA keeps light button text despite the .nav-links a color above */
.nav-links a.btn-primary { color: #f2ede7; }
.nav-links a.btn-primary:hover { color: #f2ede7; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--plum); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 18px 0 22px; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 30em; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; font-size: 0.85rem; color: var(--muted); }
.hero-tags span { display: inline-flex; align-items: center; gap: 10px; }
.hero-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-light); }

.hero-art { position: relative; min-height: 420px; }
.hero-blob {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%;
  background: linear-gradient(155deg, #e7e0d8, #ded4ea 120%);
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  border: 1px dashed #c9bccb;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem; text-align: center; padding: 30px;
  overflow: hidden;
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero-dot {
  position: absolute; top: 6%; right: 4%; width: 150px; height: 150px; border-radius: 50%;
  background: var(--pink); mix-blend-mode: multiply; opacity: .8;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-alt { background: var(--card); }

/* Approach / value cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.section-alt .card { background: var(--cream); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pink); color: var(--plum); margin-bottom: 18px;
}
.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Services list */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service {
  display: flex; gap: 18px; padding: 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.service h3 { font-size: 1.25rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Families / CTA band */
.band {
  background: var(--plum); color: #fdf7f2; border-radius: 26px;
  padding: 60px 50px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.band p { color: #e6d3dc; margin: 14px 0 0; }
.band .btn-ghost { color: #fdf7f2; border-color: rgba(255, 255, 255, 0.4); }
.band .btn-ghost:hover { color: #fff; border-color: #fff; }
.band-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* Contact form */
.contact-form {
  margin: 30px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; text-align: left; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--plum); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; resize: vertical; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(165, 111, 128, 0.15);
}
.contact-form .btn { justify-self: start; }
/* Honeypot field: visually removed, still present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Careers */
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.perk-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.perk-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.perk-list li::before {
  content: "✓"; color: var(--sage); font-weight: 700; background: #e7efdd;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; flex: none; margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #e9dbe2; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid .brand-name { color: #fff; }
.site-footer p { color: #cbb6c0; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #d9c6cf; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: #b79dab;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  /* Mobile: lead with the message (headline + CTA), image follows below */
  .hero-copy { order: 0; }
  .hero-art { min-height: 300px; order: 1; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 44px 30px; }
  .band-actions { justify-content: flex-start; }
  .careers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px; align-items: stretch;
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 15px 4px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  section { padding: 60px 0; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { margin: 14px 0 18px; }
  .hero-actions .btn { flex: 1; }
  .hero-art { min-height: 260px; }
  .hero-dot { width: 100px; height: 100px; top: 2%; right: 6%; }
  .footer-grid { grid-template-columns: 1fr; }
  .band-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
