/* =========================================================
   The Weight of Grace — Counselor-focused redesign
   Self-contained stylesheet (does not depend on styles.css)
   Palette per brief:
     #2d5a6b  Hero / Primary
     #2d8fa0  Accent / Links
     #7fc4c4  Hero subtext / secondary button
     #b8d4d8  Hero body subtext
     #f0f4f5  Trust bar
     #f7f9fa  Tinted sections
     #ccdde0  Card borders
   ========================================================= */

:root {
  --primary: #2d5a6b;
  --accent: #2d8fa0;
  --hero-eyebrow: #7fc4c4;
  --hero-subtext: #b8d4d8;
  --trust-bg: #f0f4f5;
  --tint-bg: #f7f9fa;
  --card-border: #ccdde0;
  --ink: #1f2d33;
  --body: #4a5a61;
  --muted: #7c8a90;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(45, 90, 107, 0.08);
  --shadow-md: 0 8px 28px rgba(45, 90, 107, 0.12);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tint { background: var(--tint-bg); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--body); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--hero-eyebrow); border-color: var(--hero-eyebrow); }
.btn-secondary:hover { background: rgba(127, 196, 196, 0.12); }
.btn-teal { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-teal:hover { box-shadow: var(--shadow-md); }
.btn-outline-teal { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline-teal:hover { background: var(--tint-bg); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--primary); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link.active { color: var(--accent); font-weight: 600; }
.nav-cta { background: var(--primary); color: #fff; padding: 9px 18px; border-radius: 8px; }
.nav-cta:hover { color: #fff; background: #244a59; text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--primary); color: var(--white); padding: 84px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem;
  font-weight: 700; color: var(--hero-eyebrow); margin-bottom: 18px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.12; margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero-subtext { color: var(--hero-subtext); font-size: 1.18rem; max-width: 560px; margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; }
.hero-image img {
  width: 100%; max-width: 320px; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38); transform: rotate(2deg);
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--trust-bg); border-bottom: 1px solid var(--card-border); }
.trust-bar .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 22px; padding-bottom: 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; flex: 1 1 200px; justify-content: center;
  font-weight: 600; color: var(--primary); font-size: 0.98rem;
}
.trust-item svg { flex: none; color: var(--accent); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--body); font-size: 0.98rem; }

/* ACT process cards */
.act-card .act-num {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent); margin-bottom: 8px;
}

/* How counselors use it */
.use-card h3 { color: var(--primary); }

/* ---------- Products ---------- */
.product-card { display: flex; flex-direction: column; }
.product-tag {
  display: inline-block; align-self: flex-start; background: var(--trust-bg);
  color: var(--primary); font-weight: 600; font-size: 0.8rem;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.product-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.product-card p { flex-grow: 1; margin-bottom: 22px; }
.product-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; margin-bottom: 0 !important; flex-grow: 0; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 760px; margin: 0 auto; }
.testimonial blockquote {
  border-left: 4px solid var(--accent); padding: 6px 0 6px 28px;
  font-size: 1.35rem; line-height: 1.5; color: var(--ink); font-weight: 500; font-style: italic;
}
.testimonial cite { display: block; margin-top: 18px; padding-left: 32px; font-style: normal; color: var(--muted); font-weight: 600; }

/* ---------- About Tom ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-text h2 { margin-bottom: 18px; }

/* ---------- Order ---------- */
.retailer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.retailer-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 18px; font-weight: 600; color: var(--primary); letter-spacing: 0.03em;
  transition: .15s ease;
}
.retailer-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact-box { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-box a { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: #cfe0e5; padding: 40px 0; text-align: center; font-size: 0.92rem; }
.footer a { color: var(--hero-eyebrow); }

/* ---------- Modal (workbook request) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 40, 48, 0.62);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 540px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 36px; box-shadow: var(--shadow-md); position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal .intro { margin-bottom: 22px; color: var(--body); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.form-field label .req { color: #c0392b; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--card-border); border-radius: 8px;
  font-family: inherit; font-size: 0.98rem; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 143, 160, 0.15); }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .btn { width: 100%; margin-top: 8px; }
.form-success { display: none; text-align: center; padding: 12px 0; }
.form-success.show { display: block; }
.form-success svg { color: var(--accent); margin-bottom: 14px; }
.form-success h3 { margin-bottom: 10px; }
.form-error { color: #c0392b; font-size: 0.9rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-subtext { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image img { max-width: 240px; }
  .grid-3, .grid-6, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-grid img { max-width: 240px; margin: 0 auto; }
}
/* Collapse to hamburger early — the nav has many links */
@media (max-width: 1200px) {
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    border-bottom: 1px solid var(--card-border); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link, .nav-menu .nav-cta { width: 100%; padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 680px) {
  .grid-3, .grid-6, .grid-2, .retailer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
