/* ==========================================================================
   YOURNOLOGY — Website stylesheet
   Clean Professional + card-based blocks · WCAG AA · Brand Guide v3
   All values are tokens for easy Framer / Webflow handoff.
   ========================================================================== */

/* ---- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Brand colors */
  --teal:      #0E9594;  /* brand presence, icons, fills, large headings */
  --teal-cta:  #0B7A79;  /* CTA button fills + small teal text — passes AA */
  --teal-deep: #0A6E6D;  /* teal CTA band background — white body passes AA */
  --emerald-text: #0A7A57; /* emerald used as TEXT (stats) — passes AA (bright #10B981 = fills only) */
  --navy:      #2C3E50;  /* headings, body, credibility canvas */
  --coral:     #FF6B6B;  /* warmth accent — fills only, cap ~10% */
  --emerald:   #10B981;  /* data / results only — never adjacent to teal */
  --offwhite:  #F7F7F3;  /* default background */
  --white:     #FFFFFF;
  --slate:     #5A6B7B;  /* secondary body text (AA on light) */
  --navy-80:   rgba(44,62,80,.80);
  --line:      #E4E6E1;  /* hairline dividers */

  /* Typography */
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w-body: 400; --w-semi: 600; --w-bold: 700;

  /* Spacing scale (8px base) */
  --s1:.5rem; --s2:1rem; --s3:1.5rem; --s4:2rem; --s5:3rem; --s6:4rem; --s7:6rem;

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;      /* soft elevated cards — nod to tactile depth */
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(44,62,80,.04), 0 8px 24px rgba(44,62,80,.06);
  --shadow-hover: 0 4px 8px rgba(44,62,80,.06), 0 16px 40px rgba(44,62,80,.10);
}

/* ---- 2. Base ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-body);
  color: var(--navy);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { color: var(--navy); font-weight: var(--w-semi); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--navy-80); max-width: 62ch; }
a  { color: var(--teal-cta); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s7) 0; }
section[id] { scroll-margin-top: 88px; }
.section--navy { background: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(247,247,243,.82); }

/* Section label: 11–12px uppercase letterspaced teal */
.label {
  display: inline-block; font-size: .72rem; font-weight: var(--w-bold);
  text-transform: uppercase; letter-spacing: .12em; color: var(--teal-cta);
  margin-bottom: var(--s2);
}
.section--navy .label { color: #4FD1C5; } /* lighter teal for AA on navy */
.lead { font-size: 1.2rem; color: var(--slate); max-width: 58ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---- 3. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font); font-weight: var(--w-semi);
  font-size: 1rem; padding: .8rem 1.6rem; border-radius: var(--radius-sm);
  cursor: pointer; border: 2px solid transparent; transition: .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal-cta); color: var(--white); }
.btn--primary:hover { background: #0a6b6a; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--outline { color: var(--white); border-color: var(--white); }
.section--navy .btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--text { color: var(--teal-cta); padding: .8rem .4rem; }
.btn--text:hover { text-decoration: underline; }

/* Accessible focus ring */
a:focus-visible, .btn:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px;
}

/* ---- 4. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,243,.9); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--navy); font-weight: var(--w-semi); font-size: .98rem; }
.nav__links a:hover { color: var(--teal-cta); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--teal-cta); text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; font-size: 1.5rem; line-height: 1; color: var(--navy);
}

/* Skip link + screen-reader utility */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: var(--w-semi); transition: top .15s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }
.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;
}

/* Coral warmth — highlighter fill under a keyword (navy text stays high-contrast) */
.mark { background: linear-gradient(transparent 62%, rgba(255,107,107,.38) 0); padding: 0 .06em; }
.section--navy .mark { background: linear-gradient(transparent 62%, rgba(255,107,107,.5) 0); }

/* ---- 5. Hero ------------------------------------------------------------- */
.hero { padding: var(--s7) 0 var(--s6); text-align: center; }
.hero__mark { height: 88px; margin: 0 auto var(--s3); }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lead { margin: var(--s2) auto var(--s4); }
.hero__actions { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
/* Split hero: text left, image right */
.hero--split { text-align: left; padding: var(--s4) 0 var(--s6); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s5); align-items: center; }
.hero__text { text-align: left; }
.hero--split h1 { max-width: 15ch; margin: 0 0 .5em; }
.hero--split .lead { margin: 0 0 var(--s4); }
.hero--split .hero__actions { justify-content: flex-start; }
.hero__media { display: block; }
.hero__media img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .hero--split { text-align: center; }
  .hero--split h1, .hero--split .lead { max-width: none; margin-inline: auto; }
  .hero--split .hero__actions { justify-content: center; }
  .hero__media { max-width: 360px; margin: 0 auto; }
}

/* Full-bleed video hero */
.hero--video { position: relative; overflow: hidden; background: #10151c; isolation: isolate; padding: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,21,28,.92) 0%, rgba(16,21,28,.72) 40%, rgba(16,21,28,.20) 72%, rgba(16,21,28,.04) 100%); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 540px; padding: var(--s6) 0; }
.hero--video .hero__text { text-align: left; max-width: 560px; }
.hero--video h1 { color: #fff; max-width: 17ch; }
.hero--video .lead { color: rgba(255,255,255,.86); margin: var(--s2) 0 var(--s4); }
.hero--video .hero__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero--video .btn--outline { color: #fff; border-color: #fff; }
.hero--video .btn--outline:hover { background: #fff; color: var(--navy); }
@media (max-width: 860px) {
  .hero__inner { min-height: 460px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(16,21,28,.66) 0%, rgba(16,21,28,.82) 100%); }
  .hero--video .hero__text { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero--video { background: #10151c url("../assets/hero/hero_poster.jpg") center/cover no-repeat; }
}

/* ---- 6. Grid + cards ----------------------------------------------------- */
.grid { display: grid; gap: var(--s3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4);
  box-shadow: var(--shadow); transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: var(--s2);
  display: grid; place-items: center; background: rgba(14,149,148,.10); color: var(--teal);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .98rem; margin-bottom: 0; }

/* Feature card — card-forward showcase variant (Solutions & three-modes) */
.card--feature { border-top: 3px solid var(--teal); display: flex; flex-direction: column; }
.card--feature .card__body { flex: 1; }
.card__eyebrow { font-size: .72rem; font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: .1em; color: var(--teal-cta); }
.card__list { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.card__list li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--navy-80); margin-bottom: .45rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.card__link { display: inline-block; margin-top: var(--s3); font-weight: var(--w-semi); color: var(--teal-cta); }
.card__link:hover { text-decoration: underline; }

/* Value chips (navy pills) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: var(--navy); color: var(--white); font-weight: var(--w-semi);
  font-size: .9rem; padding: .5rem 1rem; border-radius: 999px;
}

/* Results strip (emerald — data only, navy label) */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); text-align: center; }
.stat__num { font-size: 2.6rem; font-weight: var(--w-bold); color: var(--emerald-text); line-height: 1; }
.stat__label { color: var(--slate); font-size: .95rem; margin-top: .4rem; }

/* Approach steps */
.steps { counter-reset: step; display: grid; gap: var(--s3); }
.step { display: flex; gap: var(--s3); align-items: flex-start; }
.step__num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14,149,148,.12); color: var(--teal); display: grid; place-items: center;
  font-weight: var(--w-bold);
}
.section--navy .step__num { background: rgba(255,255,255,.12); color: #4FD1C5; }

/* ---- 7. CTA band --------------------------------------------------------- */
.cta-band { background: var(--teal-deep); color: var(--white); text-align: center; padding: var(--s6) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); margin-inline: auto; }

/* ---- 8. Forms ------------------------------------------------------------ */
.form { max-width: 560px; }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: var(--w-semi); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--navy);
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
/* [NO-CODE HANDOFF] wire form action to Formspree/Tally or native form here */

/* ---- 9. Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(247,247,243,.82); padding: var(--s6) 0 var(--s4); }
.site-footer a { color: var(--offwhite); }
.footer__top { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.footer__mark img { height: 40px; margin-bottom: var(--s2); }
.footer__links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer__col h4 { color: var(--white); font-size: .95rem; margin: 0 0 .8rem; }
.footer__col a { display: block; font-size: .95rem; margin-bottom: .4rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s4);
  padding-top: var(--s3); font-size: .85rem; color: rgba(247,247,243,.6);
}

/* ---- 10. Utilities & responsive ----------------------------------------- */
.mt-2 { margin-top: var(--s3); } .mt-3 { margin-top: var(--s4); }
.grid-block { align-items: center; }

@media (max-width: 860px) {
  .grid--3, .grid--2, .stats { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--offwhite); padding: var(--s3) var(--s4); gap: var(--s2);
    border-bottom: 1px solid var(--line);
  }
  .footer__top { flex-direction: column; }
}

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