/* Rahima Counselling: plain modern CSS (grid, clamp, custom properties). No framework. */
:root {
  --sage-700: #4f5f43;
  --sage-600: #647657;
  --sage-500: #7d8f6e;
  --sage-300: #b5c2a8;
  --sage-100: #e6ece0;
  --cream: #faf6ee;
  --beige: #efe6d5;
  --beige-deep: #dccfb8;
  --ink: #363c31;
  --muted: #666d5e;
  --white: #fffdf9;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(79, 95, 67, .28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.1rem)/1.7 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-700); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--sage-700); }
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--sage-500); margin-bottom: .8rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sage-700); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--sage-600); color: #fff; text-decoration: none; border: 2px solid var(--sage-600);
  padding: .85rem 1.7rem; border-radius: 999px; font: 700 1rem var(--sans); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--sage-700); border-color: var(--sage-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--sage-700); }
.btn-ghost:hover { background: var(--sage-100); color: var(--sage-700); }
.btn-small { padding: .5rem 1.1rem; font-size: .92rem; }
:focus-visible { outline: 3px solid var(--sage-500); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--beige); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font: 600 1.6rem var(--serif); color: var(--sage-700); text-decoration: none; }
.brand span { font-weight: 500; color: var(--sage-500); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--sage-600); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--sage-700); transition: transform .25s, top .25s, opacity .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--beige) 0%, var(--cream) 55%, var(--sage-100) 100%); padding-block: clamp(2.5rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 0; color: var(--sage-700); font-weight: 600; font-size: .95rem; }
.ticks li::before { content: "✓"; margin-right: .45rem; color: var(--sage-500); }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 6% -4% -4% 6%; background: var(--sage-300); opacity: .45; border-radius: 42% 58% 46% 54% / 46% 42% 58% 54%; z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); aspect-ratio: 9 / 10; object-fit: cover; object-position: 50% 30%; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.tint { background: var(--beige); }

.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards li { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--sage-300); }
.cards h3 { margin-bottom: .3em; }
.cards p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { text-align: center; padding: 1rem; }
.steps p { color: var(--muted); }
.num { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; background: var(--sage-100); color: var(--sage-700); font: 600 1.6rem var(--serif); border: 2px solid var(--sage-300); }

details { background: var(--white); border-radius: 14px; margin-top: 1rem; padding: 0 1.3rem; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--sage-700); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--sage-500); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: .9fr 1.1fr; align-items: start; }
.crisis { background: var(--sage-100); border-left: 4px solid var(--sage-500); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; font-size: .95rem; }
.form { background: var(--white); padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--sage-700); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--beige-deep);
  border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(125, 143, 110, .2); }
.field.invalid input, .field.invalid textarea { border-color: #b4574a; }
.err { color: #9a3f33; font-size: .85rem; margin: .3rem 0 0; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.consent input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--sage-600); flex: none; }
.turnstile { margin-bottom: 1.2rem; min-height: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 1rem 0 0; font-weight: 600; }
.status.ok { color: var(--sage-700); background: var(--sage-100); padding: .9rem 1rem; border-radius: 12px; }
.status.bad { color: #9a3f33; background: #f6e4e0; padding: .9rem 1rem; border-radius: 12px; }
.status:empty { display: none; }

/* Footer */
.site-footer { background: var(--sage-700); color: var(--sage-100); text-align: center; padding: 2.5rem 0; }
.brand-foot { font: 600 1.5rem var(--serif); color: #fff; margin: 0 0 .3rem; }
.small { font-size: .85rem; margin: 0; opacity: .85; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 380px; margin-inline: auto; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .ticks { justify-content: center; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--beige); padding: .5rem 1.25rem 1.2rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--beige); }
  .nav .btn { margin-top: 1rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
