/* =========================================================
   Tanya Helps — single page site
   Drop-in package: index.html + styles.css + script.js + assets/
   Edit colours in the :root / [data-theme="dark"] blocks below.
   ========================================================= */

/* ---------- Tokens: light theme ---------- */
:root {
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --bg:            #fdf8f4;
  --bg-alt:        #f6efe9;
  --surface:       #ffffff;
  --surface-2:     #fffdfb;
  --border:        #e8dcd2;
  --text:          #2f2b28;
  --text-soft:     #5f574f;
  --text-faint:    #857b72;

  --accent:        #b4506e;   /* rose — buttons, links */
  --accent-hover:  #963f5b;
  --accent-ink:    #ffffff;

  /* Card accents, taken from the flyer */
  --pink:   #f6c9d4;
  --lilac:  #cfcaf0;
  --peach:  #fbd7a5;
  --mint:   #b9e6dc;

  --pink-ink:  #7d3550;
  --lilac-ink: #453f86;
  --peach-ink: #8a5314;
  --mint-ink:  #14625a;

  --card-bg: var(--surface);
  --shadow: 0 1px 2px rgba(47,43,40,.05), 0 12px 32px -18px rgba(47,43,40,.35);
  --shadow-lift: 0 2px 6px rgba(47,43,40,.06), 0 22px 48px -22px rgba(47,43,40,.42);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --wrap: 1120px;
  --sp-1: .35rem; --sp-2: .7rem; --sp-3: 1.1rem; --sp-4: 1.6rem;
  --sp-5: 2.4rem; --sp-6: 3.4rem; --sp-7: 5rem; --sp-8: 7rem;
}

/* ---------- Tokens: dark theme ---------- */
[data-theme="dark"] {
  --bg:        #17161a;
  --bg-alt:    #1e1c22;
  --surface:   #232128;
  --surface-2: #2a2830;
  --border:    #3a3742;
  --text:      #f2eeea;
  --text-soft: #c6bfba;
  --text-faint:#9b938d;

  --accent:       #f2a3bc;
  --accent-hover: #ffbfd2;
  --accent-ink:   #2a1420;

  --pink:   #6d3d4d;
  --lilac:  #464173;
  --peach:  #7a5527;
  --mint:   #2a5c57;

  --pink-ink:  #ffd4e0;
  --lilac-ink: #d6d2ff;
  --peach-ink: #ffdcae;
  --mint-ink:  #b6ece1;

  --card-bg: var(--surface);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.8);
  --shadow-lift: 0 2px 8px rgba(0,0,0,.45), 0 24px 52px -24px rgba(0,0,0,.9);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none; font-family: var(--font-display);
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem;
}
.brand-mark { color: var(--accent); flex: none; }

.site-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
  position: relative; padding: .25rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease; border-radius: 2px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: 1.1rem; }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  cursor: pointer; transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { grid-area: 1 / 1; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: var(--shadow-lift); }

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

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
  pointer-events: none;
}
.hero::before { width: 380px; height: 380px; background: var(--pink); top: -120px; left: -100px; }
.hero::after  { width: 420px; height: 420px; background: var(--mint); bottom: -180px; right: -120px; }
[data-theme="dark"] .hero::before, [data-theme="dark"] .hero::after { opacity: .3; }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }

.sparkles { position: relative; height: 46px; margin-bottom: .4rem; }
.sp {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  background: var(--pink);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  animation: twinkle 4s ease-in-out infinite;
}
.sp-1 { transform: translate(-42px,-6px); }
.sp-2 { width: 18px; height: 18px; background: var(--peach); transform: translate(6px,-20px); animation-delay: .9s; }
.sp-3 { width: 16px; height: 16px; background: var(--lilac); transform: translate(14px,6px); animation-delay: 1.8s; }
@keyframes twinkle { 0%,100% { opacity:.55; } 50% { opacity:1; } }

.eyebrow {
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .78rem; color: var(--text-faint); margin-bottom: .9rem;
}

.hero-title {
  font-size: clamp(2.9rem, 11vw, 5.4rem);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .55rem; word-break: normal; overflow-wrap: break-word;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 1.4rem;
}
.hero-copy { font-size: 1.1rem; color: var(--text-soft); max-width: 58ch; margin-inline: auto; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.9rem; }

.hero-badges {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.hero-badges li {
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: .4rem .9rem; border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-title { font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.section-lede { color: var(--text-soft); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid; gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: 1fr;
}
/* 2 x 2 grid on tablet and up — mirrors the original flyer layout. */
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--tone, var(--accent));
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--tone, var(--accent)); }

.card-pink  { --tone: var(--pink);  --tone-ink: var(--pink-ink); }
.card-lilac { --tone: var(--lilac); --tone-ink: var(--lilac-ink); }
.card-peach { --tone: var(--peach); --tone-ink: var(--peach-ink); }
.card-mint  { --tone: var(--mint);  --tone-ink: var(--mint-ink); }

.card-top { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.card-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--tone); color: var(--tone-ink);
}
.card-title {
  font-size: 1.18rem; text-wrap: balance; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text);
}

.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.card-list li { position: relative; padding-left: 1.6rem; color: var(--text-soft); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--tone);
}
.ast { color: var(--text-faint); }
.card-note {
  margin-top: auto; padding-top: 1.1rem;
  font-size: .82rem; color: var(--text-faint); line-height: 1.5;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; margin-bottom: .9rem;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 3.2rem);
  box-shadow: var(--shadow);
  display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 880px) {
  .contact-panel { grid-template-columns: 1.1fr 1fr; text-align: left; }
  .contact-panel .section-head { text-align: left; }
}

.contact-actions { display: grid; gap: .8rem; }
.contact-tile {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-align: left;
}
.contact-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.contact-tile svg { color: var(--accent); flex: none; }
.contact-tile span { display: flex; flex-direction: column; min-width: 0; }
.contact-tile small { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.contact-tile strong { font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.4rem 0 6.5rem; background: var(--bg-alt); }
.footer-inner { text-align: center; display: grid; gap: .55rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; color: var(--text-faint); }
.footer-fine { font-size: .82rem; color: var(--text-faint); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
.mobile-bar .btn { flex: 1; padding: .8rem 1rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 1.02rem; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .header-call { display: none; }
  .mobile-bar { display: flex; }
  .hero-cta .btn { width: 100%; }
  .site-footer { padding-bottom: 7rem; }
}

@media print {
  .site-header, .mobile-bar, .theme-toggle { display: none !important; }
  .card, .step, .contact-panel { break-inside: avoid; box-shadow: none; }
}
