/* ============================================================
   Pure Heart Match — main stylesheet
   Premium editorial style · warm ivory, charcoal, burgundy, rose
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ivory: #faf5ee;
  --cream: #f3ebdf;
  --paper: #fffdf9;
  --charcoal: #2e2a27;
  --charcoal-soft: #453f3b;
  --gray: #6e6661;
  --gray-light: #a79d96;
  --line: #e7ded3;
  --wine: #7a2438;
  --wine-dark: #5f1b2c;
  --rose: #c98a93;
  --blush: #f2e1dd;
  --navy: #22303f;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(46, 42, 39, 0.07);
  --shadow-md: 0 12px 34px rgba(46, 42, 39, 0.12);
  --shadow-lg: 0 24px 60px rgba(46, 42, 39, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --font-serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1160px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wine); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--wine-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.25em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: var(--white);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(122, 36, 56, 0.28);
}
.btn-primary:hover { color: var(--white); box-shadow: 0 14px 30px rgba(122, 36, 56, 0.36); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}
.btn-outline:hover { background: var(--wine); color: var(--white); }

.btn-small { padding: 10px 20px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
}
.brand:hover { color: var(--wine-dark); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.primary-nav { display: flex; align-items: center; gap: 22px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--charcoal-soft);
  font-weight: 500;
  font-size: .99rem;
}
.nav-list a:hover { color: var(--wine); background: var(--blush); }
.nav-list a.is-active { color: var(--wine); font-weight: 600; }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 1020px) {
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 22px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 13px 14px; }
  .header-cta { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(720px, 92vh);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 23, 20, 0.55) 0%, rgba(46, 42, 39, 0.25) 45%, rgba(20, 14, 12, 0.78) 100%),
    linear-gradient(120deg, rgba(95, 27, 44, 0.42) 0%, rgba(223, 133, 143, 0.12) 60%, rgba(31, 23, 20, 0.6) 100%);
}

.hero-content { max-width: 720px; padding: 110px 24px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blush);
  background: rgba(242, 225, 221, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 { color: var(--white); font-weight: 600; margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 253, 249, 0.92);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }

.section-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 46px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-intro { color: var(--gray); font-size: 1.08rem; }

.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-wine {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--white);
}
.bg-wine h2, .bg-wine h3, .bg-wine .section-intro { color: var(--white); }

/* ---------- Feature / info cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blush), rgba(201, 138, 147, 0.35));
  color: var(--wine);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); margin-bottom: 0; font-size: .99rem; }

/* ---------- Split / media sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 10; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

.media-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(46, 42, 39, 0.72);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.split-copy h2 { margin-bottom: 18px; }
.split-copy .section-intro { margin-bottom: 22px; }
.split-copy ul { color: var(--gray); }

.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--charcoal-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%237a2438' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--gray); margin-bottom: 0; }

/* ---------- Split (pills) list ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------- Quote / statement ---------- */
.statement {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.statement blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.45;
  color: var(--charcoal);
}
.statement.bg-wine blockquote { color: var(--white); }

/* ---------- 18+ community ---------- */
.adult-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy), #17222f);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow-md);
}
.adult-badge-lg {
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose);
  background: rgba(201, 138, 147, 0.12);
}
.adult-banner h2 { color: var(--white); margin-bottom: 8px; }
.adult-banner p { margin: 0; color: rgba(255, 253, 249, 0.85); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 24px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}
.faq-q:hover { color: var(--wine); }

.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--wine);
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item.is-open .faq-icon { background: var(--wine); color: var(--white); transform: rotate(45deg); }

.faq-a { display: none; padding: 0 24px 22px; color: var(--gray); }
.faq-item.is-open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--charcoal-soft);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
}
.form-control:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 138, 147, 0.25);
}
.form-note { font-size: .88rem; color: var(--gray); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-card .card-icon { margin-left: auto; margin-right: auto; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: .97rem; margin-bottom: 14px; }

/* ---------- Legal / prose pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 55%, var(--navy) 130%);
  color: var(--white);
  padding: clamp(56px, 8vw, 92px) 0 clamp(44px, 6vw, 66px);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 253, 249, 0.85); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p { color: var(--charcoal-soft); }
.prose ul { color: var(--charcoal-soft); }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: .9rem; color: var(--gray-light); font-style: italic; }

/* ---------- Page intro ---------- */
.page-intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-intro .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding-top: 56px; padding-bottom: 56px; }
.page-intro .media-frame { aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 60%, var(--navy) 135%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(44px, 6vw, 72px) 30px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 253, 249, 0.85); max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(46, 42, 39, 0.97);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
}
.cookie-banner-copy { flex: 1 1 420px; }
.cookie-banner-title { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.cookie-banner-copy p { margin: 0; color: rgba(255, 253, 249, 0.85); font-size: .95rem; }
.cookie-banner-copy a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #241f1c 0%, #191513 100%);
  color: rgba(255, 253, 249, 0.82);
  padding-top: clamp(52px, 7vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 46px;
}

.footer-brand-link { margin-bottom: 18px; }
.footer-brand-link .brand-name { color: var(--ivory); }

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--ivory);
  margin-bottom: 12px;
}
.footer-note { color: rgba(255, 253, 249, 0.68); font-size: .95rem; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 253, 249, 0.82); font-size: .97rem; }
.footer-links a:hover { color: var(--rose); }

.footer-contact a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

.footer-adult-badge {
  display: inline-block;
  margin-top: 12px;
  border: 1.5px solid var(--rose);
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .82rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 24px 28px;
  color: rgba(255, 253, 249, 0.62);
  text-align: center;
}
.footer-legal { font-size: .92rem; margin-bottom: 6px; }
.footer-copy { font-size: .9rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .card-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-intro .container { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  h1 { font-size: 2rem; }
  .card-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .adult-banner { flex-direction: column; text-align: center; padding: 30px 24px; }
  .cookie-banner-inner { padding: 22px; }
  .hero-content { padding: 110px 24px 70px; }
  .media-frame.tall { aspect-ratio: 4 / 5; }
}