/* Knots of Life — mobile-first, tokens per approved mockup */

/* ── Fonts (self-hosted) ─────────────────────────────── */
@font-face {
  font-family: 'Merienda';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/merienda-300-900-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Livvic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/livvic-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Livvic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/livvic-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Livvic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/livvic-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Livvic';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/livvic-400-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Livvic';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/livvic-700-italic-latin.woff2') format('woff2');
}

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --burgundy: #6c2933;        /* style guide "wine" */
  --burgundy-deep: #571E28;   /* card panels on burgundy sections */
  --cream: #eadfd4;           /* style guide "linen" */
  --cream-bright: #f5f1eb;    /* style guide "cloud white" — panels/inputs on cream */
  --charcoal: #2d2d2c;        /* style guide "onyx" */
  --amber: #e16c56;           /* style guide "tiger lily" */
  --olive: #d9bc45;           /* style guide "daffodil" */
  --teal: #3f9c9f;            /* style guide "forget-me-not" */
  /* AA-safe derivatives: backgrounds darkened so white text passes 4.5:1 */
  --teal-btn: #2E6B59;
  --teal-btn-hover: #275C4C;
  --warm-btn-a: #B85032;
  --warm-btn-b: #9E4227;
  --header-h: 76px;
}

/* ── Reset / base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Livvic', sans-serif;
  font-size: 1.0625rem;            /* 17px */
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

section { padding: 72px 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 20px;
  z-index: 300;
}
.skip-link:focus { left: 0; }

/* ── Type ────────────────────────────────────────────── */
.script-heading {
  font-family: 'Merienda', cursive;
  font-weight: 600;
  line-height: 1.35;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  color: var(--burgundy);
  margin-bottom: 36px;
}
.script-heading.on-dark { color: var(--cream); }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 68ch; }
.prose.on-dark { color: var(--cream); }
.salutation { font-style: italic; font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  font-family: 'Livvic', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-burgundy { background: var(--burgundy); color: #fff; }
.btn-burgundy:hover { background: #5B222B; }
.btn-light { background: var(--cream-bright); color: var(--burgundy); }
.btn-light:hover { background: #fff; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--burgundy);
}
.btn-outline:hover { background: rgba(108, 40, 51, 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(45, 45, 45, 0.18); }
}

/* ── Header / nav ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-color: rgba(45, 45, 45, 0.12);
  box-shadow: 0 2px 14px rgba(45, 45, 45, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header-logo { display: inline-flex; align-items: center; }
.header-logo img { width: min(58vw, 220px); height: auto; }

.nav-links {
  display: none;
  list-style: none;
}
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--burgundy); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--charcoal);
}

/* mobile menu open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 16px 20px 24px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.12);
  box-shadow: 0 10px 24px rgba(45, 45, 45, 0.12);
}
.nav-links.open .nav-cta-item { margin-top: 8px; }

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 24px 0 24px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero-content { order: 2; }
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  order: 1;
}
.hero-art img { width: min(52vw, 220px); }
.hero h1 {
  font-family: 'Merienda', cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.hero-tagline {
  font-weight: 600;
  text-align: center;
  color: var(--charcoal);
}
.hero-sub {
  max-width: 54ch;
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions .btn { padding: 12px 16px; }

@media (max-width: 480px) and (max-height: 720px) {
  .hero { padding: 16px 0; }
  .hero-art img { width: min(40vw, 150px); }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.96rem; line-height: 1.5; }
}

@media (max-width: 360px) and (max-height: 620px) {
  .hero { padding: 8px 0; }
  .hero-inner { gap: 12px; }
  .hero-art img { width: 110px; }
  .hero-tagline { font-size: 0.85rem; }
  .hero .eyebrow { font-size: 0.75rem; margin-bottom: 8px; }
  .hero h1 { font-size: 1.45rem; margin-bottom: 8px; }
  .hero-sub { font-size: 0.85rem; margin-bottom: 10px; }
  .hero-actions .btn { min-height: 44px; padding: 8px 10px; font-size: 0.85rem; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero-content { order: 1; }
  .hero-art { order: 2; }
  .hero-art img { width: min(32vw, 420px); }
  .hero h1 { font-size: 2.8rem; }
}

/* ── Services (burgundy) ─────────────────────────────── */
.services {
  background: var(--burgundy);
  color: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.services .script-heading { margin-bottom: 20px; }
.services-intro { margin-bottom: 32px; }
.services-disclaimer { margin: 24px 0; }
.service-group {
  border-top: 4px solid var(--amber);
  padding-top: 22px;
}
.service-group + .service-group { border-top-color: var(--teal); }
.service-group h3 {
  font-family: 'Merienda', cursive;
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 18px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  gap: 12px;
  line-height: 1.55;
}
.service-list li::before {
  content: '◆';
  font-size: 0.5rem;
  margin-top: 0.55em;
  flex-shrink: 0;
}
.service-list-warm li::before { color: var(--amber); }
.service-list-teal li::before { color: var(--teal); }
.service-note {
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(232, 223, 214, 0.08);
  border-radius: 6px;
}
.services-cta { min-width: 170px; }

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ── How I Show Up (cream) ───────────────────────────── */
.show-up { background: var(--cream); }

/* ── Approach (amber → olive-gold gradient) ──────────── */
.approach {
  background: linear-gradient(135deg, var(--amber) 0%, #E1A14E 32%, #C8A94F 58%, var(--olive) 82%, #7FA46F 100%);
}
.approach .script-heading { color: var(--charcoal); }
.approach-panel {
  background: rgba(245, 241, 235, 0.94); /* style guide "cloud white" */
  border-radius: 14px;
  padding: 32px 28px;
}

/* ── Resources (cream) ───────────────────────────────── */
.resources { background: var(--cream); }
.resources-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
}
.resources-list li {
  background: var(--cream-bright);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .resources-list { grid-template-columns: 1fr 1fr; }
}

/* ── About (burgundy + watermark) ────────────────────── */
.about {
  background: var(--burgundy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(70vw, 620px);
  aspect-ratio: 1078 / 1100;
  background-image: url('/assets/mark-white-720.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.about-inner { position: relative; }
.about-body { max-width: 72ch; }
.about-media { margin: 0 0 32px; }
.about-photo {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(45, 45, 45, 0.24);
}
.credentials {
  background: var(--burgundy-deep);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.65;
}
.credentials h3 {
  font-family: 'Merienda', cursive;
  font-size: 1.22rem;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 10px;
}
.credential-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.credential-logo,
.credential-logo-link { flex: 0 1 auto; }
.credential-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.credential-logo-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.neda-badge { width: min(38vw, 138px); border-radius: 50%; background: #fff; }
.chamber-badge { width: min(64vw, 248px); border-radius: 4px; }
.credential-directory { margin-top: 18px; }
.credential-directory a { color: #fff; font-weight: 700; }
.credential-directory a:hover { text-decoration-thickness: 2px; }
.byline {
  margin-top: 32px;
  font-family: 'Merienda', cursive;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

@media (min-width: 960px) {
  .about-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    grid-template-areas:
      "title media"
      "credentials media"
      "prose media"
      "byline media";
    column-gap: 64px;
    align-items: start;
    max-width: none;
  }
  .about-body > .script-heading { grid-area: title; }
  .about-body > .credentials { grid-area: credentials; }
  .about-body > .about-media { grid-area: media; margin: 4px 0 0; }
  .about-body > .prose { grid-area: prose; }
  .about-body > .byline { grid-area: byline; }
  .about-photo { max-width: none; }
}

/* ── Contact (cream) ─────────────────────────────────── */
.contact { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item dt {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 2px;
}
.contact-item dd a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.partner-note {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--cream-bright);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  font-size: 0.95rem;
  max-width: 46ch;
}

@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1.2fr; gap: 72px; }
}

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--cream-bright);
  border-radius: 14px;
  padding: 28px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: 'Livvic', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid rgba(45, 45, 45, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--burgundy);
  outline-offset: 1px;
  border-color: var(--burgundy);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232D2D2C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.hp-field { position: absolute; left: -9999px; }
.submit-btn { width: 100%; }

/* ── Footer (charcoal) ───────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 56px 0 32px;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(232, 223, 214, 0.2);
  margin-bottom: 24px;
}
.footer-brand img { width: min(82vw, 320px); height: auto; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}

/* Contact confirmation */
.thank-you-page { min-height: 100vh; display: flex; flex-direction: column; }
.confirmation { flex: 1; display: flex; align-items: center; }
.confirmation-inner { max-width: 680px; }
.confirmation h1 {
  font-family: 'Merienda', cursive;
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--burgundy);
  margin-bottom: 18px;
}
.confirmation p { margin-bottom: 28px; }
.confirmation-footer {
  padding: 24px 0;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.9rem;
}

/* ── Scroll reveal (motion-safe, JS-gated) ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* larger sections on desktop */
@media (min-width: 900px) {
  section { padding: 96px 0; }
}
