/* =============================================================
   Noor Digital — styles
   Light theme matches the printed offer sheet; a dark theme is
   layered on via semantic tokens toggled with [data-theme].
   ============================================================= */

:root {
  color-scheme: light;

  /* Brand constants (never change between themes) */
  --ink:        #16202E;
  --paper:      #F5F3EE;
  --white:      #FFFFFF;
  --green:      #17A66B;
  --green-deep: #0E7A4E;
  --grey:       #6A7382;

  /* Semantic, themeable tokens (light values) */
  --bg:          var(--paper);         /* page background        */
  --surface:     #FFFFFF;              /* main cards             */
  --surface-2:   var(--paper);         /* nested cards / inputs  */
  --panel:       var(--ink);           /* intentionally-dark bands */
  --text:        var(--ink);           /* primary text           */
  --text-soft:   rgba(22, 32, 46, 0.80);
  --text-muted:  var(--grey);
  --border:      rgba(22, 32, 46, 0.10);
  --header-bg:   rgba(245, 243, 238, 0.85);
  --mock:        rgba(22, 32, 46, 0.18);
  --shadow:      0 10px 30px rgba(22, 32, 46, 0.08);
  --shadow-lg:   0 24px 60px rgba(22, 32, 46, 0.14);

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Shape + rhythm */
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:         #0E1621;
  --surface:    #1B2836;
  --surface-2:  #223141;
  --panel:      #16212E;
  --text:       #F2F0E9;
  --text-soft:  rgba(242, 240, 233, 0.80);
  --text-muted: #9BA7B5;
  --border:     rgba(242, 240, 233, 0.13);
  --header-bg:  rgba(14, 22, 33, 0.85);
  --mock:       rgba(242, 240, 233, 0.22);
  --green-deep: #35BE83;               /* brighter accent on dark */
  --shadow:     0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.50);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Scroll-reveal animations (JS adds .anim-ready) ---------- */
.anim-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.anim-ready .reveal.is-visible { opacity: 1; transform: none; }

.anim-ready .reveal-fade {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.anim-ready .reveal-fade.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready .reveal, .anim-ready .reveal-fade {
    opacity: 1; transform: none; transition: none;
  }
}

/* Gentle float on the hero "call" card */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .call-card { animation: float 6s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth theme cross-fade on the main surfaces */
.site-header, .stats, .card, .stat, .packages, .price-card, .who-col,
.how, .testi-card, .contact-form, .field input, .section.alt, .why,
.cta-band, .site-footer, .call-card, .mini-browser, .reply-bubble,
.charity-tile, .theme-toggle {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--green-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
.section-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 46ch;
  margin-top: -0.25rem;
  margin-bottom: 2.5rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.wordmark-dot {
  width: 30px; height: 30px; flex: none;
  background: url("../assets/icon.svg") center / contain no-repeat;
}
.wordmark-light { color: var(--paper); }
.wordmark-light .wordmark-dot {
  background-image: url("../assets/icon-light.svg");
}
/* In dark mode the header sits on a dark surface too, so use the
   light mark there as well for contrast. */
:root[data-theme="dark"] .site-header .wordmark-dot {
  background-image: url("../assets/icon-light.svg");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.nav { display: flex; align-items: center; gap: 1rem; }
.nav-menu { order: 1; }
.theme-toggle { order: 2; }
.nav-toggle { order: 3; }
.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 1.5rem;
  margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  text-decoration: none; color: var(--text); font-weight: 600;
  font-size: 0.98rem;
}
.nav-menu a:not(.btn):hover { color: var(--green-deep); }

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

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(23, 166, 107, 0.10), transparent 60%),
    var(--bg);
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 0.6rem; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-soft); max-width: 42ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-deep);
  background: rgba(23, 166, 107, 0.10);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }
.hero-trust {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.hero-trust li { position: relative; padding-left: 1.5rem; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}

/* Pulse dot (used in eyebrow + call card) */
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  display: inline-block; position: relative;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

/* Hero visual — "call being captured" card */
.hero-visual { display: grid; gap: 1rem; }
.call-card {
  background: var(--panel); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.call-card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(245, 243, 238, 0.7);
}
.call-status { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--paper); }
.call-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin: 0.9rem 0 1.1rem; }

.call-wave { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-bottom: 1.1rem; }
.call-wave span {
  flex: 1; background: var(--green); border-radius: 3px;
  animation: wave 1.1s ease-in-out infinite;
}
.call-wave span:nth-child(1) { animation-delay: 0s; }
.call-wave span:nth-child(2) { animation-delay: 0.1s; }
.call-wave span:nth-child(3) { animation-delay: 0.2s; }
.call-wave span:nth-child(4) { animation-delay: 0.3s; }
.call-wave span:nth-child(5) { animation-delay: 0.2s; }
.call-wave span:nth-child(6) { animation-delay: 0.1s; }
.call-wave span:nth-child(7) { animation-delay: 0s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.call-answered {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--green); font-weight: 600; font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats { background: var(--surface); }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.stat-figure {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem); color: var(--green-deep);
  line-height: 1; margin: 0 0 0.4rem;
}
.stat-label { font-weight: 700; margin: 0 0 0.5rem; }
.stat-note { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Cards (What we do) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(23, 166, 107, 0.12); color: var(--green-deep);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--text-soft); margin: 0; }

/* ---------- Packages ---------- */
.packages { background: var(--surface); }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: stretch;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.price-card-featured {
  background: var(--panel);
  color: var(--paper);
  border-color: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
:root[data-theme="dark"] .price-card-featured { border-color: var(--green); }
@media (min-width: 861px) {
  .price-card-featured { transform: scale(1.03); }
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.4rem; margin-bottom: 0.4rem; }
.price-figure { font-family: var(--font-body); color: inherit; margin-bottom: 1.3rem; line-height: 1.4; }
.price-build { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; }
.price-card-featured .price-build { color: var(--paper); }
.price-mo { color: var(--text-muted); font-weight: 600; }
.price-card-featured .price-mo { color: rgba(245, 243, 238, 0.75); }

.price-features { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.price-features li {
  position: relative; padding: 0.45rem 0 0.45rem 1.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
}
.price-card-featured .price-features li { border-top-color: rgba(245, 243, 238, 0.14); }
.price-features li:first-child { border-top: 0; }
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.62rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}
.price-reassure {
  text-align: center; margin-top: 2rem; margin-bottom: 1.25rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1.1rem;
  color: var(--green-deep);
}

/* Charity pricing tile */
.charity-tile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  background:
    linear-gradient(180deg, rgba(23, 166, 107, 0.10), rgba(23, 166, 107, 0.04)),
    var(--surface);
  border: 1px solid rgba(23, 166, 107, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.charity-tile-body { flex: 1 1 22rem; }
.charity-tag {
  display: inline-block; margin-bottom: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--green);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.charity-tile h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.charity-tile p { color: var(--text-soft); margin: 0; max-width: 52ch; }

/* ---------- Who we help ---------- */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.who-col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.who-col h3 { font-size: 1.4rem; }
.who-col p { color: var(--text-soft); }
.who-col-warm { background: linear-gradient(180deg, rgba(23,166,107,0.08), var(--surface)); }
.who-note {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  color: var(--green-deep); font-weight: 600;
}

/* ---------- How it works ---------- */
.how { background: var(--surface); }
.steps {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 0.5rem; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Why Noor ---------- */
.why { background: var(--panel); color: var(--paper); }
.why .section-title { color: var(--paper); }
.why-inner { max-width: 62ch; }
.why-lead { font-size: 1.25rem; color: var(--paper); }
.why p { color: rgba(245, 243, 238, 0.82); }
.why-note { color: rgba(245, 243, 238, 0.55); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card {
  margin: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.9rem;
  box-shadow: var(--shadow);
}
.testi-card blockquote {
  margin: 0 0 1.2rem; font-size: 1.05rem; color: var(--text-soft);
  position: relative; padding-top: 1.5rem;
}
.testi-card blockquote::before {
  content: "\201C"; position: absolute; top: -0.4rem; left: -0.2rem;
  font-family: var(--font-head); font-size: 3rem; color: var(--green); opacity: 0.35;
}
.testi-card figcaption { display: flex; flex-direction: column; }
.testi-name { font-family: var(--font-head); font-weight: 700; }
.testi-role { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- CTA / Contact ---------- */
.cta {
  background:
    radial-gradient(100% 80% at 10% 0%, rgba(23, 166, 107, 0.12), transparent 55%),
    var(--bg);
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.cta-copy p { color: var(--text-soft); font-size: 1.1rem; max-width: 42ch; }
.cta-points { list-style: none; margin: 1.5rem 0; padding: 0; }
.cta-points li { position: relative; padding: 0.35rem 0 0.35rem 1.9rem; font-weight: 600; }
.cta-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.5rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

/* Embedded Google Form */
.form-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.form-embed iframe {
  width: 100%;
  height: 1053px;
  border: 0;
  display: block;
}
.form-note {
  text-align: center; margin: 1rem 0 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.form-note a { font-family: var(--font-head); font-weight: 700; }

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.optional { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus { background: var(--surface); border-color: var(--green); }
.field textarea { resize: vertical; }
.form-fineprint { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin: 0.9rem 0 0; }
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); color: var(--paper); padding-block: 3rem 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(245, 243, 238, 0.12);
}
.footer-tag { color: rgba(245, 243, 238, 0.65); max-width: 30ch; margin-top: 0.9rem; }
.footer-contact h4, .footer-nav h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(245, 243, 238, 0.55); margin-bottom: 0.9rem;
}
.footer-contact a, .footer-nav a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover, .footer-nav a:hover { color: var(--green); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-resources { color: rgba(245, 243, 238, 0.6) !important; font-size: 0.9rem; }
.footer-bottom { padding-top: 1.5rem; }
.footer-bottom p { color: rgba(245, 243, 238, 0.5); font-size: 0.85rem; margin: 0; }
.footer-bottom a { color: rgba(245, 243, 238, 0.7); text-decoration: underline; }
.footer-bottom a:hover { color: var(--green); }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 68ch; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal-updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.legal-note {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.95rem;
}

/* =============================================================
   Sub-pages (Services / About / Contact)
   ============================================================= */

/* Alternating section background */
.section.alt { background: var(--surface); }

/* Page hero (top of sub-pages) */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(23, 166, 107, 0.10), transparent 60%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.page-hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-soft); max-width: 52ch; }

/* Service rows (alternating text / visual) */
.service-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.service-row-reverse .service-text { order: 2; }
.service-tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}
.service-text p { color: var(--text-soft); font-size: 1.08rem; max-width: 46ch; }

/* Green check-circle list */
.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.check-list li {
  position: relative; padding: 0.5rem 0 0.5rem 2rem;
  border-top: 1px solid var(--border);
}
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

/* Service visual: mini browser mock */
.service-visual { display: grid; place-items: center; }
.mini-browser {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.mini-browser-bar {
  display: flex; gap: 6px; padding: 12px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.mini-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mini-browser-bar span:first-child { background: var(--green); }
.mini-browser-body { padding: 1.5rem; display: grid; gap: 0.8rem; }
.mb-line { height: 12px; border-radius: 6px; background: var(--border); }
.mb-line-lg { height: 20px; width: 70%; background: var(--mock); }
.mb-short { width: 45%; }
.mb-btn {
  justify-self: start; margin-top: 0.5rem;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 1rem; border-radius: 999px;
}

/* Service visual: reply stack */
.reply-stack { width: 100%; max-width: 380px; display: grid; gap: 0.7rem; }
.reply-bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.8rem 1.1rem;
  font-size: 0.95rem; box-shadow: var(--shadow);
  max-width: 85%;
}
.reply-bubble-out {
  justify-self: end; background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.reply-bubble-book {
  justify-self: start; background: rgba(23, 166, 107, 0.12);
  border-color: rgba(23, 166, 107, 0.4); color: var(--green-deep); font-weight: 700;
}

/* CTA band */
.cta-band { background: var(--panel); color: var(--paper); }
.cta-band .section-title { color: var(--paper); }
.cta-band p { color: rgba(245, 243, 238, 0.8); max-width: 46ch; margin: 0; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band-email { margin: 1rem 0 0; color: rgba(245, 243, 238, 0.8); }
.cta-band-email a {
  color: var(--green); font-family: var(--font-head); font-weight: 700;
  text-decoration: none;
}
.cta-band-email a:hover { text-decoration: underline; }

/* Contact page: direct email line */
.contact-direct {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.contact-direct a { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

/* =============================================================
   Responsive — mobile first refinements
   ============================================================= */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .stat-grid, .card-grid, .price-grid, .testi-grid, .steps { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-reverse .service-text { order: 0; }
  .service-visual { order: -1; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: 0.35rem 0; }
  .nav-menu .btn { margin-top: 0.5rem; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .charity-tile .btn { width: 100%; }
}
