/* ============================================================
   Helen's Way — Shared Stylesheet
   All pages link to this file.
   Brand palette: Cobalt #4456FF · Lime #C9FF46 · Ivory #FEFFE3
   Navy #12195E · Ink #1a1a2e · Liliac #9FA3FF · Orchid #D238EB
   ============================================================ */

:root {
    --cobalt:  #4456FF;
    --lime:    #C9FF46;
    --ivory:   #FEFFE3;
    --orchid:  #D238EB;
    --mint:    #A6FFE8;
    --liliac:  #9FA3FF;
    --navy:    #12195E;
    --ink:     #1a1a2e;
    --mid-bg:  #eeeef5;
    --font:    'Inter', sans-serif;
    --max-w:   1160px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); background: var(--ivory); color: var(--ink); line-height: 1.65; }
img   { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a     { color: inherit; }

/* ── Accessibility ─────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -120%; left: 20px;
    background: var(--cobalt); color: #fff; font-weight: 700;
    padding: 12px 22px; border-radius: 0 0 10px 10px;
    text-decoration: none; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

/* ── Navigation ────────────────────────────────────────────── */
nav[aria-label="Main navigation"] {
    position: sticky; top: 0; z-index: 200;
    background: var(--ivory); border-bottom: 2px solid var(--cobalt);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em;
    color: var(--cobalt); text-decoration: none;
    flex-shrink: 0; margin-right: 12px;
    line-height: 1;
}
.nav-logo em { color: var(--orchid); font-style: normal; }
.nav-list { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.nav-list a {
    font-size: .88rem; font-weight: 500; text-decoration: none;
    color: var(--ink); transition: color .2s; white-space: nowrap;
}
.nav-list a:hover { color: var(--cobalt); }
.nav-list a.active { color: var(--cobalt); font-weight: 700; }
.soon-tag {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--lime); color: var(--ink);
    border-radius: 4px; padding: 1px 5px;
    margin-left: 4px; vertical-align: middle;
    line-height: 1.4;
}
.nav-cta {
    background: var(--cobalt) !important;
    color: #fff !important; padding: 9px 20px;
    border-radius: 7px; transition: background .2s !important;
}
.nav-cta:hover { background: #2d3fd4 !important; }
.nav-cta.active { background: #2d3fd4 !important; }
.nav-toggle {
    display: none !important; background: none;
    border: 2px solid var(--cobalt); border-radius: 7px;
    padding: 6px 12px; font-size: 1.1rem;
    color: var(--cobalt); cursor: pointer; line-height: 1;
}
@media (max-width: 920px) {
    .nav-toggle { display: block !important; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 700; font-size: .95rem;
    padding: 13px 26px; border-radius: 8px; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime   { background: var(--lime); color: var(--ink); }
.btn-lime:hover  { box-shadow: 0 8px 24px rgba(201,255,70,.45); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: #2d3fd4; box-shadow: 0 8px 24px rgba(68,86,255,.3); }
.btn-ghost  { background: transparent; color: var(--ivory); border-color: rgba(254,255,227,.5); }
.btn-ghost:hover  { border-color: var(--ivory); background: rgba(254,255,227,.1); }
.btn-outline { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn-outline:hover { background: var(--cobalt); color: #fff; }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(254,255,227,.6); }
.btn-outline-light:hover { background: rgba(254,255,227,.1); border-color: var(--ivory); }

/* ── Layout utilities ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section    { padding: 80px 24px; }
.section-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px;
}
.section-title {
    font-size: 1.75rem; font-weight: 800;
    line-height: 1.25; letter-spacing: -.025em; color: var(--ink);
}
.section-intro {
    font-size: 1rem; color: #3a3a55;
    line-height: 1.75; max-width: 640px; margin-top: 16px;
}

/* ── Page hero (inner pages) ───────────────────────────────── */
.page-hero {
    background: var(--cobalt); color: var(--ivory);
    padding: 72px 24px 64px; position: relative; overflow: hidden;
}
/* Large ghost circle — top-right atmosphere */
.page-hero::before {
    content: ''; position: absolute; pointer-events: none;
    width: 240px; height: 240px; background: var(--lime);
    border-radius: 50%; opacity: .07; top: -60px; right: -40px;
}
.page-hero h1 { position: relative; }
        /* Dot cluster — lifts off the upper-right of the headline */
        .page-hero h1::after {
            content: ''; position: absolute; pointer-events: none;
            width: 12px; height: 12px; border-radius: 50%;
            background: var(--orchid);
            top: -6px; right: -20px;
            box-shadow:
                20px  -14px 0  0px var(--lime),
                42px    2px 0  2px var(--orchid),
                12px  -26px 0 -2px var(--mint),
                56px  -16px 0 -3px var(--liliac),
                34px   12px 0  0px var(--lime);
        }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { color: rgba(254,255,227,.7); }
.page-hero h1 {
    font-size: 2.25rem; font-weight: 800; line-height: 1.2;
    letter-spacing: -.025em; margin-top: 10px; max-width: 640px;
}
.page-hero .lead {
    font-size: 1rem; opacity: .88;
    max-width: 560px; margin-top: 18px; line-height: 1.75;
}

/* ── Instagram placeholder (shared) ───────────────────────── */
.ig-placeholder {
    background: linear-gradient(135deg, var(--cobalt) 0%, #6c3dcc 100%);
    border-radius: 16px; padding: 48px 40px; color: #fff; text-align: center;
}
.ig-placeholder h3 {
    font-size: 1.35rem; font-weight: 800; margin-bottom: 10px;
}
.ig-placeholder > p { opacity: .85; max-width: 460px; margin: 0 auto 24px; font-size: .95rem; }
.ig-steps {
    display: inline-block; text-align: left; list-style: decimal;
    background: rgba(255,255,255,.1); border-radius: 12px;
    padding: 20px 24px 20px 44px; font-size: .88rem; line-height: 2.1; max-width: 400px;
}

/* ── CTA strip ─────────────────────────────────────────────── */
.cta-strip {
    background: var(--lime); padding: 64px 24px; text-align: center;
}
.cta-strip h2 {
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -.02em; margin-bottom: 12px; color: var(--ink);
}
.cta-strip p { color: #2a2a3e; max-width: 480px; margin: 0 auto 28px; line-height: 1.65; }
.cta-strip .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--ink); color: rgba(254,255,227,.85);
    padding: 48px 24px 40px; font-size: .9rem;
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
}
.footer-brand .footer-logo {
    font-size: 1.15rem; font-weight: 800;
    color: var(--ivory); margin-bottom: 10px;
}
.footer-brand .footer-logo em { color: var(--orchid); font-style: normal; }
.footer-tagline {
    max-width: 340px; line-height: 1.7;
    font-size: .9rem; color: rgba(254,255,227,.8);
}
.footer-contact-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 20px;
    background: var(--lime);
    color: var(--ink) !important;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none !important;
    transition: opacity .2s;
}
.footer-contact-btn:hover { opacity: .85; text-decoration: none !important; }
.footer-links { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-links a {
    color: var(--liliac); text-decoration: none;
    font-size: .9rem; font-weight: 500;
}
.footer-links a:hover { color: var(--ivory); text-decoration: underline; }
.footer-copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(254,255,227,.2);
    padding-top: 24px; margin-top: 8px;
    font-size: .875rem;
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    color: rgba(254,255,227,.75);
}
.footer-legal {
    display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer-legal a {
    color: rgba(254,255,227,.75); text-decoration: none;
    font-size: .875rem; font-weight: 500;
    transition: color .2s;
}
.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
    color: var(--lime); text-decoration: underline; text-underline-offset: 3px;
}
footer a { color: var(--liliac); text-decoration: none; }
footer a:hover { color: var(--ivory); text-decoration: underline; }

/* ── Nav JS shared script helper ───────────────────────────── */
/* (script is inlined per-page) */

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
    .nav-list {
        display: none; flex-direction: column; align-items: flex-start; gap: 16px;
        position: absolute; top: 66px; left: 0; right: 0;
        background: var(--ivory); border-bottom: 2px solid var(--cobalt);
        padding: 24px; z-index: 199;
    }
    .nav-list.open { display: flex; }
    /* nav-toggle display handled above with !important */
    nav[aria-label="Main navigation"] { position: relative; }
    .footer-inner  { grid-template-columns: 1fr; gap: 28px; }
    .footer-links  { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .footer-copy   { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal  { gap: 16px; }
}
@media (max-width: 600px) {
    section           { padding: 60px 20px; }
    .page-hero        { padding: 56px 20px 48px; }
    .page-hero h1     { font-size: 1.8rem; }
    .section-title    { font-size: 1.5rem; }
    .cta-strip h2     { font-size: 1.35rem; }
    .ig-placeholder   { padding: 36px 24px; }
}

/* ── Dot cluster (.page-hero h1::after): responsive (shrink on tablets, hide on phones) ── */
@media (max-width: 900px) { .page-hero h1::after { transform: scale(.68); } }
@media (max-width: 600px) { .page-hero h1::after { display: none; } }

.footer-about {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  opacity: 0.72;
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 74ch;
}
.footer-about a { color: inherit; text-decoration: underline; }

.print-footer { display: none; }
@media print {
  .print-footer { display: block !important; margin-top: 18pt; background: #12195E; color: #FEFFE3; padding: 12pt 14pt; border-radius: 8pt; font-size: 8.5pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-footer strong { color: #FEFFE3; }
}

/* social icons */
.nav-list .nav-social { display:flex; align-items:center; }
.nav-list .nav-social a { display:inline-flex; align-items:center; color:var(--cobalt); padding:4px 6px; transition:color .15s; }
.nav-list .nav-social a:hover { color:#D238EB; }
.hero-ig { display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-weight:700; font-size:.92rem; color:#fff; text-decoration:none; opacity:.95; }
.hero-ig:hover { text-decoration:underline; opacity:1; }
.footer-social { display:flex; gap:16px; align-items:center; margin-top:18px; }
.footer-social a { display:inline-flex; color:inherit; opacity:.9; transition:opacity .15s,color .15s; }
.footer-social a svg { width:30px; height:30px; }
.footer-social a:hover { opacity:1; color:#C9FF46; }


.ig-stories { margin: 20px 0 34px; }

.ig-reels { margin: 0 0 34px; }

.ig-highlights { margin: 0 0 34px; }

/* Instagram tabbed hub */
.ig-intro { max-width:720px; margin:0 auto 18px; text-align:center; color:#4a4a65; font-size:.97rem; line-height:1.7; }
.ig-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:6px 0 24px; }
.ig-tab { font-family:inherit; font-weight:700; font-size:.9rem; padding:9px 20px; border-radius:999px; border:2px solid #d5d7ea; background:#fff; color:var(--ink,#1A1A2E); cursor:pointer; transition:all .15s; }
.ig-tab:hover { border-color:var(--cobalt); color:var(--cobalt); }
.ig-tab.active { background:var(--cobalt); color:#fff; border-color:var(--cobalt); }
.ig-panels { min-height:420px; }
.ig-panel { display:none; }
.ig-panel.active { display:block; }
.ig-follow { text-align:center; margin-top:28px; }


/* ── Neurodiversity statement (home + tracker short note) ─────────── */
.nd-section{ background:#eef0ff; padding:52px 24px; border-top:1px solid #dcdff5; border-bottom:1px solid #dcdff5; }
.nd-inner{ max-width:var(--max-w); margin:0 auto; }
.nd-band{ max-width:820px; }
.nd-section .section-label{ color:var(--cobalt); margin-bottom:4px; }
.nd-band h2{ font-size:1.25rem; color:var(--navy); margin:4px 0 10px; letter-spacing:-.01em; }
.nd-band p{ font-size:.96rem; line-height:1.75; color:#3a3a55; margin:0 0 12px; }
.nd-band .nd-link{ display:inline-block; font-weight:700; color:var(--cobalt); text-decoration:none; }
.nd-band .nd-link:hover{ text-decoration:underline; }
