/* ============================================================
   Wedding Memory PRO — Global Styles
   Dark professional aesthetic: near-black + gold
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Italianno&display=swap');

/* ---------- CSS Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-deep:    #07050f;
  --bg-section: #0f0a1e;
  --bg-card:    #1a0f2e;
  --bg-card-alt:#110d20;

  /* Gold palette */
  --gold:       #D4AF37;
  --gold-light: #E8C547;
  --gold-dim:   #B89A1F;
  --gold-faint: rgba(212,175,55,0.12);
  --gold-border: rgba(212,175,55,0.22);
  --gold-border-bright: rgba(212,175,55,0.55);

  /* Text */
  --text-primary: #FFFFFF;
  --text-body:    rgba(255,255,255,0.82);
  --text-muted:   rgba(255,255,255,0.50);
  --text-dim:     rgba(255,255,255,0.35);

  /* Spacing */
  --section-pad: 96px 24px;
  --section-pad-sm: 64px 24px;
  --max-w: 1120px;
  --max-w-narrow: 800px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-accent:  'Italianno', cursive;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-card: 0 8px 40px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 32px rgba(212,175,55,0.18);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.container-mid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad);
}
section.alt {
  background: var(--bg-section);
}

/* ---------- Gold Divider ---------- */
.gold-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ---------- Citation Block ---------- */
.citation {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--gold-faint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 32px 0;
}

/* ---------- Cards ---------- */
.card {
  background: rgba(26,15,46,0.8);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}
.card:hover {
  border-color: var(--gold-border-bright);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0510;
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 13px 27px;
  border: 1.5px solid var(--gold-border-bright);
}
.btn-secondary:hover {
  background: var(--gold-faint);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
}

thead th.wm-col {
  background: rgba(212,175,55,0.25);
  color: var(--gold-light);
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 13px 16px;
  color: var(--text-body);
  vertical-align: top;
}

/* Centre columns 2–6 in both header and body */
thead th:nth-child(n+2),
tbody td:nth-child(n+2) {
  text-align: center;
}

tbody td.wm-col {
  color: var(--text-primary);
  font-weight: 500;
}

tbody td.row-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Checkmark / X */
.yes { color: #4ade80; }
.no  { color: rgba(255,255,255,0.3); }

/* ---------- Section Label ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Step Cards ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-border-bright);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Feature Icon Grid ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.icon-card {
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

/* .icon-card .icon — replaced by .icon-wrap SVG container (defined per-page) */

.icon-card .icon-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.3;
}

.icon-card .icon-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Video Placeholder ---------- */
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 2px dashed var(--gold-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  max-width: 880px;
  margin: 40px auto 0;
}

.video-placeholder .play-icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
}

.video-placeholder .placeholder-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
}

.faq-item {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover { background: rgba(26,15,46,0.9); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  background: var(--bg-card);
  padding: 0 24px 24px;
  color: var(--text-body);
  border-top: 1px solid var(--gold-border);
  padding-top: 20px;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- Option Boxes (How to Sell) ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.option-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
}

.option-tag {
  display: inline-block;
  background: var(--gold);
  color: #0a0510;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.option-box blockquote {
  border-left: 2px solid var(--gold-border);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
  margin: 16px 0;
  line-height: 1.6;
}

/* ---------- Comparison When/When ---------- */
.when-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.when-box {
  border-radius: var(--radius);
  padding: 28px;
}

.when-box.them {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.when-box.us {
  background: var(--gold-faint);
  border: 1px solid var(--gold-border-bright);
}

.when-box h4 { margin-bottom: 16px; }
.when-box ul { padding-left: 20px; }
.when-box li { margin-bottom: 8px; font-size: 0.92rem; }

/* ---------- Pricing Card ---------- */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--gold-border-bright);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 640px;
  margin: 40px auto 0;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.price-display {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gold-border);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-unit {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.price-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.92rem;
  color: var(--text-body);
}
.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.not-included-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.not-included-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.not-included-list li::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ---------- Inline FAQ (pricing page) ---------- */
.inline-faq {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inline-faq-item h4 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1rem;
}

.inline-faq-item p {
  color: var(--text-body);
  font-size: 0.92rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--gold-border);
}

.cta-section h2 { margin-bottom: 20px; }

.cta-section .fine-print {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 16px;
    --section-pad-sm: 48px 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .pricing-card { padding: 32px 24px; }
  .price-amount { font-size: 3.5rem; }

  .btn-lg { padding: 14px 24px; font-size: 1rem; }

  .cta-buttons { flex-direction: column; align-items: center; }
}
