/* ============================================================
   The Digital Wellbeing Project — stylesheet
   Palette: coral #F35959 / deep teal #1F6F6B / warm cream
   ============================================================ */

:root {
  --coral: #F35959;
  --coral-dark: #D64848;
  --teal: #1F6F6B;
  --teal-dark: #15504C;
  --cream: #FBF7EF;
  --cream-deep: #F0E9D8;
  --cream-card: #FFFFFF;
  --ink: #2B2A26;
  --ink-soft: #5C594F;
  --ink-faint: #8A8678;
  --border: #E5DDC8;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 30px -14px rgba(43, 42, 38, 0.18);
  --shadow-lift: 0 20px 45px -20px rgba(31, 111, 107, 0.35);

  --wrap: 1140px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral);
  margin: 0 0 0.9em;
}
.center { text-align: center; }
.section-title.center, .section-lead.center, .eyebrow.center { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--ink-soft); max-width: 620px; }
.section-lead.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}
.brand-mark--footer { height: 130px; width: auto; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:hover { color: var(--teal); border-color: var(--teal); }
.primary-nav a.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
}
.primary-nav a.nav-cta:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-lead { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-visual { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1; }
.hero-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.orbit-ring--1 { stroke: var(--cream-deep); }
.orbit-ring--2 { stroke: var(--border); }
.orbit-dot--coral { fill: var(--coral); }
.orbit-dot--teal { fill: var(--teal); }

.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, -50%) rotate(-4deg);
}
.hero-badge img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--cream-deep); }
.section-title { margin-top: 0.2em; }

/* ---------- offering cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.card {
  --accent: var(--teal);
  position: relative;
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  width: 200px; height: 200px;
  background: var(--accent);
  opacity: 0.07;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px -22px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-card);
}
.card:hover .offer-icon { transform: translateY(-2px) scale(1.06); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream-deep);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.offer-icon {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.25s ease;
}
.offer-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.96rem; }

.soft-prompt {
  margin-top: 54px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.soft-prompt p { color: #fff; margin: 0; font-family: var(--font-head); font-size: 1.2rem; max-width: 34ch; }
.soft-prompt .btn-primary { flex: none; }

/* ---------- daily loop ---------- */
.loop-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 56px auto 0;
}
.loop-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-ring { fill: none; }
.loop-ring--outer { stroke: var(--border); stroke-width: 1.5; }
.loop-ring--inner { stroke: var(--cream-deep); stroke-width: 1.5; }
.loop-core { fill: var(--teal); }

.loop-nodes { position: absolute; inset: 0; }
.loop-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.loop-node-time {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.loop-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.loop-icon svg { width: 28px; height: 28px; }
.loop-node:hover .loop-icon { transform: translateY(-3px) scale(1.05); }
.loop-node-label { font-weight: 700; font-size: 0.92rem; color: var(--ink); line-height: 1.25; margin-bottom: 4px; }
.loop-node-caption { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; }

@media (max-width: 640px) {
  .loop-wrap { aspect-ratio: auto; max-width: 380px; margin-top: 40px; }
  .loop-orbit { display: none; }
  .loop-nodes { position: static; display: flex; flex-direction: column; gap: 22px; }
  .loop-node {
    position: static;
    transform: none;
    width: 100%;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    text-align: left;
  }
  .loop-icon { grid-column: 1; grid-row: 1 / 4; align-self: center; margin-bottom: 0; }
  .loop-node-time { grid-column: 2; margin-bottom: 2px; }
  .loop-node-label { grid-column: 2; }
  .loop-node-caption { grid-column: 2; }
}

/* ---------- quiz ---------- */
.quiz-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 44px;
  box-shadow: var(--shadow-card);
}
.quiz-progress {
  height: 6px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}
.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background: var(--coral);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz-question h3 { font-size: 1.3rem; margin-bottom: 1em; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.quiz-option:hover { border-color: var(--coral); background: #fff; }
.quiz-option.is-selected { border-color: var(--teal); background: var(--cream-deep); }
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.quiz-step { font-size: 0.85rem; color: var(--ink-faint); }
.quiz-result h3 { font-family: var(--font-head); }
.quiz-result { text-align: center; }
.quiz-result .hero-actions { justify-content: center; margin-top: 20px; }

/* ---------- form ---------- */
.enquiry-form {
  margin-top: 44px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-row .optional { font-weight: 400; color: var(--ink-faint); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--teal);
  outline: none;
  background: #fff;
}
.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}
.form-status.success { color: var(--teal-dark); }
.form-status.error { color: var(--coral-dark); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D9D5C7;
  padding: 56px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-tagline { color: #B7B3A4; margin: 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.footer-nav a { color: #D9D5C7; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--coral); }
.footer-copy { color: #8A8678; font-size: 0.82rem; margin: 0; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 6px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .primary-nav a.nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .soft-prompt { flex-direction: column; align-items: flex-start; padding: 30px; }
  .quiz-card, .enquiry-form { padding: 26px; }
  .section { padding: 64px 0; }
}
