/* ═══════════════════════════════════════════════
   Eternal Vows — Wedding Template
   style.css
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --cream:      #faf6ef;
  --cream-dark: #f0e8d8;
  --gold:       #b8973a;
  --gold-light: #d4af5a;
  --ink:        #1c1814;
  --ink-soft:   #4a4540;
  --ink-muted:  #7a746c;
  --white:      #ffffff;
  --border:     rgba(184, 151, 58, 0.25);

  --ff-serif: "Cormorant Garamond", Georgia, serif;
  --ff-sans:  "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;

  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: min(1160px, 100% - 2.5rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── UTILITIES ── */
.container { width: var(--container); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--cream-dark); }

.section-label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3rem;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(184, 151, 58, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 151, 58, 0.45);
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--container);
  margin-inline: auto;
}
.brand {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.brand-amp { color: var(--gold); font-style: italic; font-size: 1.1em; }

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  transform-origin: right;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.main-nav a:hover::after, .main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--gold);
  color: var(--white) !important;
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
  background: rgba(250, 246, 239, 0.98);
  backdrop-filter: blur(12px);
}
.mobile-menu.open { max-height: 340px; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 2rem 1.5rem;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(
    160deg,
    #f9f3e8 0%,
    #f0e4cc 40%,
    #e8d5b0 100%
  );
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(184,151,58,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184,151,58,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-overlay { display: none; }

.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-pre {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.95;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2em 0.4em;
}
.hero h1 .amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.75em;
}
.hero-date {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  color: var(--gold);
  opacity: 0.7;
}
.divider-ornament span {
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.countdown-block .num {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.countdown-block .label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.7;
  animation: bounce 2s infinite;
  transition: opacity 0.2s;
}
.hero-scroll:hover { opacity: 1; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── OUR STORY ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.story-image {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
}
.story-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.story-text h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.story-text p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.timeline {
  margin-top: 2.5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.tl-year {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 3rem;
  flex-shrink: 0;
}
.tl-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ── DETAILS ── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.detail-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.detail-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}
.detail-icon {
  margin: 0 auto 1.5rem;
  color: var(--gold);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.detail-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.detail-time {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.detail-place {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.detail-address {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.detail-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.detail-link:hover { color: var(--ink); border-color: var(--ink); }

.dress-code {
  text-align: center;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.dress-code p { font-size: 0.88rem; color: var(--ink-soft); }
.dress-code strong { color: var(--ink); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
}
.gallery-item {
  border-radius: 2px;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ── RSVP ── */
.rsvp-container { max-width: 760px; }
.rsvp-subtitle {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}
.rsvp-subtitle strong { color: var(--ink); }

.rsvp-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group label span { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 58, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-muted); }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.1rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.radio-label input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; }

.form-actions { display: flex; justify-content: flex-start; margin-top: 0.5rem; }
.form-success {
  font-size: 0.88rem;
  color: #3a7d44;
  min-height: 1.4em;
  font-weight: 500;
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.footer-names {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.footer-date {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-divider { color: var(--gold); opacity: 0.6; margin-bottom: 1.5rem; text-align: center; }
.footer-credit {
  font-size: 0.75rem;
  color: rgba(250, 246, 239, 0.4);
}
.footer-credit a { color: var(--gold-light); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-credit a:hover { border-color: var(--gold-light); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .details-grid { grid-template-columns: 1fr 1fr; }
  .detail-card:last-child { grid-column: span 2; max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-image { max-height: 380px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem; }

  /* Nav */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }

  .form-row { grid-template-columns: 1fr; }

  .details-grid { grid-template-columns: 1fr; }
  .detail-card:last-child { grid-column: span 1; max-width: 100%; }

  .countdown { gap: 1.25rem; }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall { grid-column: span 1; grid-row: span 1; height: 180px; }

  .dress-code { flex-direction: column; gap: 0.75rem; }

  .hero h1 { flex-direction: column; gap: 0; }
}
