@import url("../fonts/fonts.css");

/* ============================================================
   Jessica Doyle-Mekkes — design tokens
   Palette + type extracted from the live Wix theme. See brand.md.
   ============================================================ */

:root {
  /* colour */
  --red: #bb2423;
  --red-dark: #7d1817;
  --red-deep: #3e0c0c;
  --rose: #d27d7c;
  --blush: #e8aaa9;
  --snow: #fffafa;
  --ink: #333232;
  --ink-soft: #666464;
  --grey: #999696;
  --rule: #ccc8c8;

  /* semantic */
  --bg: var(--snow);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --accent: var(--red);
  --accent-hover: var(--red-dark);

  /* type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;
  --label: "Oswald", "Helvetica Neue", Arial, sans-serif;

  /* fluid type scale — clamp() so it breathes without breakpoints */
  --t-hero: clamp(2.75rem, 1.6rem + 5.6vw, 6rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --t-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --t-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --t-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --t-body: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --t-small: 0.95rem;
  --t-label: 0.8rem;

  /* spacing — 4px base */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s12: 3rem;
  --s16: 4rem;
  --s24: 6rem;
  --s32: 8rem;

  /* layout */
  --measure: 34rem;      /* optimal reading width */
  --wide: 76rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);

  /* motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --mid: 240ms;
}

/* ============================================================
   reset / base
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  overflow-x: hidden; /* belt-and-braces: nothing may scroll the page sideways */
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }

p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

/* One focus style, everywhere. Never removed. */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   layout primitives
   ============================================================ */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s4); }

section { padding-block: clamp(var(--s16), 10vw, var(--s32)); }
section.tight { padding-block: clamp(var(--s12), 6vw, var(--s16)); }

.eyebrow {
  font-family: var(--label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s3);
  display: block;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--fg-soft);
}

/* inverted band */
.invert {
  background: var(--red-deep);
  color: var(--snow);
}
.invert h1, .invert h2, .invert h3 { color: var(--snow); }
.invert .eyebrow { color: var(--blush); }
.invert .lead { color: #e6dcdc; }
.invert a { color: var(--blush); }
.invert a:hover { color: var(--snow); }
.invert :focus-visible { outline-color: var(--blush); }

.band-red { background: var(--red); color: var(--snow); }
.band-red h2, .band-red h3 { color: var(--snow); }
.band-red .eyebrow { color: #ffd9d9; }
.band-red a { color: var(--snow); }
.band-red :focus-visible { outline-color: var(--snow); }

.band-blush { background: #fdf0ef; }

/* ============================================================
   buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;           /* >= 40px touch target */
  padding: var(--s3) var(--s8);
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--snow);
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--snow);
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: var(--snow); }

.invert .btn,
.band-red .btn {
  background: var(--snow);
  border-color: var(--snow);
  color: var(--red-deep);
}
.invert .btn:hover,
.band-red .btn:hover { background: var(--blush); border-color: var(--blush); color: var(--red-deep); }

.invert .btn-ghost,
.band-red .btn-ghost { background: transparent; color: var(--snow); }
.invert .btn-ghost:hover,
.band-red .btn-ghost:hover { background: var(--snow); color: var(--red-deep); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s8);
}

/* ============================================================
   header / nav
   ============================================================ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--snow);
  padding: var(--s3) var(--s6);
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--t-label);
  z-index: 100;
}
.skip:focus { left: 0; color: var(--snow); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--snow) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 72px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.wordmark:hover { color: var(--red); }
.wordmark span {
  display: block;
  font-family: var(--label);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(var(--s3), 1.6vw, var(--s6));
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s1);
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav .nav-cta {
  border: 2px solid var(--red);
  color: var(--red);
  padding-inline: var(--s4);
  min-height: 40px;
}
.nav .nav-cta:hover { background: var(--red); color: var(--snow); border-bottom-color: var(--red); }

/* mobile nav — CSS-only disclosure via checkbox, no JS */
.nav-toggle { display: none; }
.nav-label { display: none; }

@media (max-width: 860px) {
  .nav-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: calc(var(--s1) * -1);
    cursor: pointer;
    color: var(--ink);
  }
  .nav-label:hover { color: var(--red); }
  .nav-label svg { width: 26px; height: 26px; }
  .nav-toggle:focus-visible + .nav-label {
    outline: 3px solid var(--red);
    outline-offset: 2px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--snow);
    border-bottom: 1px solid var(--rule);
    display: none;
    box-shadow: 0 14px 34px rgba(51, 50, 50, 0.1);
  }
  .nav-toggle:checked ~ .nav { display: block; }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s6);
  }
  .nav li + li { border-top: 1px solid var(--rule); }
  .nav a {
    min-height: 54px;
    width: 100%;
    font-size: 0.9rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: var(--s3);
  }
  .nav a:hover,
  .nav a[aria-current="page"] { border-bottom: none; border-left-color: var(--red); }
  .nav .nav-cta {
    margin-top: var(--s4);
    justify-content: center;
    border-left-width: 2px;
  }
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  padding-block: clamp(var(--s16), 9vw, var(--s32));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--s8), 5vw, var(--s24));
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s12); }
}

.hero h1 {
  font-size: var(--t-hero);
  margin-bottom: var(--s6);
}

.hero-portrait {
  position: relative;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
/* Offset frame peeking out behind the portrait. Suppressed on narrow screens,
   where the 14px overhang would sit flush against the viewport edge. */
@media (min-width: 901px) {
  .hero-portrait::after {
    content: "";
    position: absolute;
    inset: auto -14px -14px auto;
    width: 62%;
    height: 46%;
    border: 3px solid var(--red);
    z-index: -1;
  }
}

/* ============================================================
   cards / grids
   ============================================================ */

.grid {
  display: grid;
  gap: clamp(var(--s6), 3vw, var(--s12));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
/* exactly two columns once there's room — for even 2x2 sets */
.grid-2x2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2x2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
  border-top: 3px solid var(--red);
  padding-top: var(--s6);
}
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--fg-soft); font-size: var(--t-small); line-height: 1.6; }
.card .num {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--grey);
  display: block;
  margin-bottom: var(--s2);
}

.card-boxed {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  padding: var(--s8) var(--s6) var(--s6);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card-boxed .btn { margin-top: auto; align-self: flex-start; }
.card-boxed > * + * { margin-top: var(--s3); }
.card-boxed .btn { margin-top: var(--s6); }

/* ============================================================
   quotes
   ============================================================ */

blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: var(--t-h3);
  line-height: 1.35;
  font-style: italic;
  text-wrap: pretty;
}

blockquote cite {
  display: block;
  margin-top: var(--s4);
  font-family: var(--label);
  font-size: var(--t-label);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.invert blockquote cite,
.band-red blockquote cite { color: var(--blush); }

.pullquote {
  border-left: 3px solid var(--red);
  padding-left: var(--s6);
  max-width: 44rem;
}

/* ============================================================
   lists
   ============================================================ */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: var(--s8);
  margin-bottom: var(--s4);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 20px;
  height: 2px;
  background: var(--red);
}
.invert .ticks li::before,
.band-red .ticks li::before { background: var(--blush); }

/* definition-style spec rows */
.spec {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: var(--s4) var(--s8);
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: var(--s6);
}
.spec dt {
  font-family: var(--label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 0.25em;
}
.spec dd { margin: 0; }
.spec > dt:not(:first-of-type),
.spec > dd:not(:first-of-type) { border-top: 1px solid var(--rule); padding-top: var(--s6); }

@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; gap: var(--s2); }
  .spec > dd:not(:first-of-type) { border-top: none; padding-top: 0; }
  .spec dd { padding-bottom: var(--s4); }
}

/* accordion (FAQ) */
details {
  border-bottom: 1px solid var(--rule);
  padding: var(--s4) 0;
}
details summary {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  min-height: 44px;
  align-content: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--label);
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
}
details[open] summary::after { content: "\2013"; }
details summary:hover { color: var(--red); }
details > *:not(summary) { margin-top: var(--s4); max-width: var(--measure); color: var(--fg-soft); }

/* ============================================================
   media / logo strip
   ============================================================ */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s6), 4vw, var(--s16));
}
.logos img {
  height: clamp(28px, 4vw, 44px);
  width: auto;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity var(--mid) var(--ease), filter var(--mid) var(--ease);
}
.logos a:hover img,
.logos a:focus-visible img { opacity: 1; filter: grayscale(0%); }

.ratio-16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--red-deep);
  overflow: hidden;
}
.ratio-16x9 iframe,
.ratio-16x9 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* wide content must scroll inside itself, never the page */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- "as seen in" credibility strip ----
   These outlets were verified live and are listed in full on /press. Set as
   type rather than logo images: no third-party marks to license, no pixelated
   PNGs, and it stays sharp at any width. */
.seen-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(1rem, 3.5vw, 3rem);
}
.seen-list li {
  font-family: var(--display);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.72;
  white-space: nowrap;
}
.seen .eyebrow { text-align: center; }

/* ============================================================
   forms
   ============================================================ */

.field { margin-bottom: var(--s6); }
.field label {
  display: block;
  font-family: var(--label);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.field .hint { font-size: var(--t-small); color: var(--fg-soft); margin: 0 0 var(--s2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  font-family: var(--body);
  font-size: var(--t-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 0;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--red); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--red); border-width: 2px; }
.field input:user-invalid + .err,
.field textarea:user-invalid + .err { display: block; }
.err {
  display: none;
  margin-top: var(--s2);
  font-size: var(--t-small);
  color: var(--red-dark);
  font-family: var(--label);
  letter-spacing: 0.04em;
}

/* Honeypot. Hidden from people, left in the DOM for bots to fill in.
   aria-hidden + tabindex="-1" on the input keep it away from screen readers
   and the keyboard, so it never traps a real user. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  background: #fff;
  padding: clamp(var(--s6), 4vw, var(--s12));
  max-width: 38rem;
}
.invert .form-card,
.band-red .form-card { color: var(--ink); }
.invert .form-card h2,
.invert .form-card h3,
.band-red .form-card h2,
.band-red .form-card h3 { color: var(--ink); }
.invert .form-card .field label,
.band-red .form-card .field label { color: var(--ink); }
/* The form card is always a white surface, so its button must stay the red
   filled style even when the card sits inside .band-red or .invert — those
   bands otherwise flip buttons to white, which renders white-on-white here. */
.form-card .btn,
.invert .form-card .btn,
.band-red .form-card .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--snow);
  width: 100%;
}
.form-card .btn:hover,
.invert .form-card .btn:hover,
.band-red .form-card .btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--snow);
}
.form-card :focus-visible { outline-color: var(--red); }

@media (min-width: 560px) {
  .form-card .btn,
  .invert .form-card .btn,
  .band-red .form-card .btn { width: auto; }
}

/* ============================================================
   footer
   ============================================================ */

.site-foot {
  background: var(--red-deep);
  color: #ded2d2;
  padding-block: var(--s16) var(--s8);
  font-size: var(--t-small);
}
.site-foot a { color: var(--blush); text-decoration: none; }
.site-foot a:hover { color: var(--snow); text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--blush); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s12);
  padding-bottom: var(--s12);
  border-bottom: 1px solid rgba(255, 250, 250, 0.16);
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: var(--s8); }
}

.foot-grid h2 {
  font-family: var(--label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--s4);
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: var(--s3); }
.foot-grid li a {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

.foot-mark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: var(--s3);
  line-height: 1.15;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s8);
  justify-content: space-between;
  padding-top: var(--s8);
  color: var(--grey);
  font-size: 0.85rem;
}

/* ============================================================
   motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   utilities
   ============================================================ */

.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;
}

.center { text-align: center; }
.center .prose,
.center .pullquote { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: var(--s6); }
.note {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: #fdf0ef;
  border: 1px dashed var(--rose);
  padding: var(--s2) var(--s3);
  display: inline-block;
}
