/*
  Homepage — design notes
  =======================
  "Come to My Wedding" (placeholder name) — the platform's own pitch
  page for future couples. Shares its color/type tokens with the
  admin dashboard (css/brand.css) so the two read as one product;
  this file only adds the homepage's own layout on top of that.

  Bright and cheerful on purpose — white paper, vivid rose as the
  primary accent, gold as a secondary decorative touch — since the
  product being sold is itself "a wedding page," not a neutral SaaS
  tool. Each individual couple's page (each wedding's own
  css/style.css) stays fully custom and does not share these tokens.

  No real client example yet — the "example" section uses the same
  mocked browser-preview device as the hero, generically captioned,
  swapped for real screenshots once they exist.

  Layout: left-aligned editorial with one asymmetric hero split,
  numbered steps only where content is a real sequence, a plain
  divided feature list (not cards).
*/

.wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -- top bar ---------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0;
  color: var(--rose-deep);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-links a {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.topbar-links a:hover {
  border-bottom-color: var(--rose);
}

.topbar-links .couples-link {
  color: var(--ink-soft);
}

/* -- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 3rem 4.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

/* Soft radial glow behind the hero — the "fresh" cue: an airy wash
   of color rather than a flat paper background. */
.hero::before {
  content: "";
  position: absolute;
  inset: -4rem 0 auto 0;
  height: 26rem;
  background: radial-gradient(circle at 25% 20%, var(--rose-tint) 0%, transparent 60%),
    radial-gradient(circle at 85% 10%, var(--gold-tint) 0%, transparent 55%);
  z-index: -1;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 1.5rem 3rem;
  }
  .hero-visual {
    order: -1;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero p {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-secondary {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.btn-secondary:hover {
  border-bottom-color: var(--rose);
}

/* -- mock preview ----------------------------------------------------------
   A mocked-up miniature of a wedding page, standing in until real
   screenshots exist. Kept generic (no real couple's name or link) —
   this platform doesn't have a live client example to show yet. */

/* Neutral, fixed "browser chrome" tones — deliberately not tied to
   this page's own bright tokens, since a device frame reads as
   neutral hardware regardless of the page's theme. */

.mock-preview {
  border: 1px solid #e3d6d0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.35s var(--ease);
}

.mock-preview:hover {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .mock-preview {
    transition: none;
  }
}

.mock-chrome {
  display: flex;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  background: #efe6e0;
  border-bottom: 1px solid #e3d6d0;
}

.mock-chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8c8bd;
}

.mock-body {
  aspect-ratio: 3 / 4;
  background: #fffaf9;
  color: var(--rose-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1.5rem 1rem;
}

.mock-flourish {
  width: 2rem;
  height: auto;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.mock-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  margin: 0;
}

.mock-date {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.mock-countdown {
  margin: 0.5rem 0 1rem;
}

.mock-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  display: block;
  line-height: 1;
}

.mock-num-label {
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.mock-btn {
  width: 55%;
  height: 0.55rem;
  background: var(--gold);
  opacity: 0.6;
  border-radius: 2px;
}

.photo-caption {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

/* -- sections ------------------------------------------------------------ */

section {
  padding-block: 3.5rem;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 2.25rem;
}

.section-eyebrow {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.9rem;
  margin: 0;
  color: var(--rose-deep);
}

/* -- decorative divider between sections (romantic flourish) ---------- */

.flourish-divider {
  display: flex;
  justify-content: center;
  color: var(--gold);
  opacity: 0.7;
}

.flourish-divider svg {
  width: 2.5rem;
  height: auto;
}

/* -- scroll reveal (progressive enhancement, see js/home.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- steps (a real sequence) --------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.25rem 1.1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--rose-tint);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--rose-deep);
  font-size: 1.25rem;
  line-height: 1;
}

.step-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
  grid-column: 2;
}

.step-body {
  color: var(--ink-soft);
  margin: 0;
  grid-column: 2;
  max-width: 38rem;
}

/* -- feature list (not a sequence: a plain divided list) ------------------ */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  padding: 1.4rem;
  display: flex;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .feature-list li {
    transition: none;
  }
}

.feature-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--rose-deep);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-body {
  flex: 1 1 auto;
}

.feature-name {
  font-weight: 600;
  display: block;
  margin: 0 0 0.2rem;
}

.feature-desc {
  color: var(--ink-soft);
  margin: 0;
  max-width: 34rem;
}

/* -- example showcase ------------------------------------------------------
   A generic mocked preview (see .mock-preview above) — no real
   client site to link to yet, so this is captioned as a preview of
   what's coming, not tied to any couple. */

.example-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 720px) {
  .example-showcase {
    grid-template-columns: 1fr;
  }
}

.example-visual {
  max-width: 15rem;
  margin: 0 auto;
}

.example-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.example-detail {
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 1.1rem;
}

/* -- closing cta ---------------------------------------------------------- */

section.closing {
  border-top: none;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-tint), var(--gold-tint));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.closing .section-heading {
  justify-content: center;
}

.closing p {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  section.closing {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

footer.site-footer {
  padding-block: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--ink-soft);
}
