/* =========================================================
   Kintsugi Wellbeing Psychology — kintsugi.au
   Sage + gold design system
   ========================================================= */
:root {
  --cream: #FAF8F1;
  --paper: #F3F2EA;
  --sage-100: #E8EDE0;
  --sage-200: #D5DEC8;
  --sage-300: #B7C5A5;
  --sage-500: #87987A;
  --sage-600: #6C7F5F;
  --sage-700: #54664A;
  --sage-800: #3C4A35;
  --sage-900: #2A3526;
  --ink: #232B20;
  --gold: #C19A3F;
  --gold-light: #DDBC6E;
  --white: #FFFFFF;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 53, 38, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; color: var(--sage-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p + p { margin-top: 1em; }

a { color: var(--sage-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-200);
}
.header-inner { display: flex; align-items: center; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 0.65rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--sage-900); line-height: 1.15; }
.brand-tag { font-size: 0.68rem; color: var(--sage-600); letter-spacing: 0.04em; display: block; }

nav.primary { margin-left: auto; }
nav.primary ul { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
nav.primary > ul > li > a, nav.primary > ul > li > button {
  display: block; padding: 0.55rem 0.8rem; font-size: 0.95rem; font-weight: 500;
  color: var(--sage-800); text-decoration: none; background: none; border: 0;
  font-family: var(--font-body); cursor: pointer; border-radius: 8px;
}
nav.primary > ul > li > a:hover, nav.primary > ul > li > button:hover { background: var(--sage-100); color: var(--sage-900); }
nav.primary a[aria-current="page"] { color: var(--gold); }

.has-sub { position: relative; }
.has-sub .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--sage-200); border-radius: 10px;
  box-shadow: var(--shadow); padding: 0.4rem; z-index: 50;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub li { list-style: none; }
.sub a { display: block; padding: 0.55rem 0.8rem; border-radius: 7px; text-decoration: none; font-size: 0.93rem; color: var(--sage-800); }
.sub a:hover { background: var(--sage-100); }

.btn {
  display: inline-block; padding: 0.7rem 1.45rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--sage-900); }
.btn-gold:hover { background: var(--gold-light); color: var(--sage-900); box-shadow: 0 6px 18px rgba(193, 154, 63, 0.35); }
.btn-outline { border-color: var(--sage-300); color: var(--sage-800); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--sage-900); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.header-cta { margin-left: 0.4rem; padding: 0.55rem 1.15rem; font-size: 0.9rem; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sage-900); margin: 5px 0; transition: 0.2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--sage-200); padding: 0.75rem 1.25rem 1.25rem;
  }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .has-sub .sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding-left: 1rem; }
  .header-cta { margin: 0.6rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--sage-900); color: #fff;
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); max-width: 880px; text-align: left; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--sage-200); margin: 1.4rem 0 2.2rem; max-width: 56ch; }
.hero-kicker { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0.9; }
.hero-art svg { width: 100%; height: 100%; }

.gold-seam {
  fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: drawSeam 7s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(221, 188, 110, 0.45));
}
.gold-seam.s2 { animation-delay: 1.2s; stroke-width: 1.6; opacity: 0.7; }
.gold-seam.s3 { animation-delay: 2.2s; stroke-width: 1.1; opacity: 0.5; }
@keyframes drawSeam { to { stroke-dashoffset: 0; } }
.shard { fill: rgba(232, 237, 224, 0.05); stroke: rgba(232, 237, 224, 0.12); stroke-width: 1; }
.gold-dot { fill: var(--gold-light); opacity: 0; animation: dotIn 1s ease-out forwards; }
@keyframes dotIn { to { opacity: 0.85; } }

.trust-strip { background: var(--sage-800); color: var(--sage-200); font-size: 0.92rem; border-top: 1px solid rgba(255,255,255,0.08); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; padding: 0.85rem 1.25rem; justify-content: center; }
.trust-strip span::before { content: "◆"; color: var(--gold); margin-right: 0.55rem; font-size: 0.6rem; vertical-align: 2px; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); }
.section-sage { background: var(--sage-100); }
.kicker { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.6rem; }
.section-intro { max-width: 62ch; color: var(--sage-800); }
.center { text-align: center; }
.center .section-intro { margin: 0 auto; }

.grid { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--sage-200); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: 0 2px 10px rgba(42,53,38,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--gold); }
.card .more { font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.card-icon { width: 42px; height: 42px; margin-bottom: 1rem; }

blockquote.pull {
  border-left: 3px solid var(--gold); padding: 0.4rem 0 0.4rem 1.4rem; margin: 2rem 0;
  font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--sage-800);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split .photo img { width: 100%; object-fit: cover; }
.photo-frame { border: 1px solid var(--sage-200); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--sage-900); color: var(--gold-light);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Fees */
.fee-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(42,53,38,0.05); }
.fee-table th, .fee-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--sage-100); }
.fee-table th { background: var(--sage-900); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-note { font-size: 0.88rem; color: var(--sage-700); margin-top: 0.9rem; }

/* FAQ accordion */
details.faq-item { background: var(--white); border: 1px solid var(--sage-200); border-radius: 12px; margin-bottom: 0.85rem; overflow: hidden; }
details.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.05rem;
  color: var(--sage-900); list-style: none; position: relative; padding-right: 3rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); font-weight: 400;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink); }

/* CTA band */
.cta-band { background: var(--sage-900); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sage-200); max-width: 56ch; margin: 0.8rem auto 1.8rem; }
.cta-band .hero-ctas { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { background: var(--sage-800); color: #fff; padding: clamp(2.8rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 22ch; }
.page-hero .lede { color: var(--sage-200); margin-top: 1rem; max-width: 60ch; font-size: 1.1rem; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.2rem; color: var(--sage-300); }
.breadcrumbs a { color: var(--sage-200); }
.breadcrumbs a:hover { color: var(--gold-light); }

/* Prose (long-form pages) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; color: var(--sage-800); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 1em 0; }
.prose li { margin: 0.4em 0; }
.article-meta { font-size: 0.88rem; color: var(--sage-600); margin-bottom: 2rem; }

/* Contact */
.contact-cards .card { text-align: left; }
.contact-cards .card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--sage-900); margin-bottom: 0.4rem; }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }
.big-link { font-size: 1.35rem; font-family: var(--font-display); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: var(--sage-200); padding: 3.5rem 0 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.4rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.45rem 0; }
.site-footer a { color: var(--sage-200); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand svg { width: 44px; height: 44px; margin-bottom: 0.8rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--sage-300); margin-top: 0.4rem; max-width: 32ch; }
.crisis {
  background: var(--sage-800); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 2.5rem;
  font-size: 0.9rem; color: var(--sage-200); border-left: 3px solid var(--gold);
}
.crisis a { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding: 1.3rem 0; font-size: 0.83rem; color: var(--sage-500); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.ack { font-size: 0.83rem; color: var(--sage-500); margin-top: 1.6rem; max-width: 72ch; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.brand-icon {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}

.footer-logo {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 18px;
  margin-left: -10px;
}