/* ═══════════════════════════════════════
   BEN & MCKAYLAH — WEDDING WEBSITE
   Shared Stylesheet
═══════════════════════════════════════ */

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

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

:root {
  --white:        rgb(243,236,227);
  --off-white:    #F8F7F5;
  --light-grey:   #E8E6E2;
  --mid-grey:     #C4C0BA;
  --blush:        #EDCFC8;
  --blush-mid:    #CC9E96;
  --blush-dark:   #A87068;
  --sage:         #C2D1BA;
  --sage-mid:     #8FA886;
  --sage-dark:    #5A7852;
  --text:         #383330;
  --text-mid:     #6B625A;
  --text-light:   #9E968E;
  --accent:       #A8876A;
  --accent-light: #DFC9B0;
  --whitesmoke:   #F5F5F5;
}

html { scroll-behavior: smooth; }

body {
  background: var(--whitesmoke);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem;
  background: var(--whitesmoke);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-grey);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-style: italic; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex; gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--sage-mid); transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--sage-dark); }
.nav-links a.active::after { transform: scaleX(1); }

/* hamburger for mobile */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--text-mid); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media(max-width: 680px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(242, 238, 232, 0.99);
    border-bottom: 1px solid var(--light-grey); padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 0.8rem 1rem; font-size: 0.68rem; }
}

/* ── PAGE HERO (full-screen background) ── */
.page-hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 5rem;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.page-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }

/* ── HERO TYPOGRAPHY ── */
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1.3rem;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 500; line-height: 1; color: var(--text);
}
.hero-names em { font-style: italic; color: var(--text); }
.hero-amp { display: block; font-style: italic; font-size: 0.72em; color: var(--text); margin: 0.06em 0; }
.hero-feat { display: block; font-style: italic; font-size: 0.32em; font-weight: 500; color: var(--text-mid); letter-spacing: 0.04em; margin-top: 0.5em; }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 500; line-height: 1.05; color: var(--text);
}
.page-title em { font-style: italic; color: var(--text); }
.hero-rule {
  width: 48px; height: 1px; margin: 1.6rem auto;
  background: linear-gradient(to right, transparent, currentColor, transparent);
}
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic; color: var(--text-mid);
}
.hero-detail {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text); margin-top: 0.6rem;
}

/* countdown */
.countdown {
  display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem;
}
.cd-unit { text-align: center; }
.cd-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  font-weight: 500; line-height: 1; display: block;
}
.cd-lbl {
  font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 0.3rem; display: block;
}
.cd-sep {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  align-self: flex-start; padding-top: 0.15rem;
}

/* ── SCROLL ARROW ── */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: bounce 2s ease infinite;
  text-decoration: none;
}
.scroll-hint span {
  font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-hint svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── CONTENT CARD (white card sitting below/over hero) ── */
.content-card {
  background: var(--whitesmoke);
  max-width: 900px; margin: 0 auto;
  padding: 5rem 3rem 6rem;
}
@media(max-width:600px) { .content-card { padding: 3.5rem 1.5rem 5rem; } }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--sage), transparent);
}

/* ── HEADINGS ── */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500; line-height: 1.1; color: var(--text); margin-bottom: 0.5rem;
}
h2 em { font-style: italic; color: var(--blush-dark); }
.lead {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.85;
  max-width: 540px; margin-bottom: 2.5rem; margin-top: 0.4rem;
}

.lead-wide {
  max-width: none;
}

/* ── DIVIDER ── */
.ornament {
  text-align: center; color: var(--sage); font-size: 0.9rem;
  letter-spacing: 0.6rem; padding: 2rem 0; opacity: 0.7;
}
hr.light { border: none; border-top: 1px solid var(--light-grey); margin: 3rem 0; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage) 8%, var(--sage) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 2.6rem 2rem; }
.tl-item::before {
  content: ''; position: absolute; left: -4px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage-mid);
  box-shadow: 0 0 0 4px var(--whitesmoke), 0 0 0 5.5px var(--sage);
}
.tl-time {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 0.28rem;
}
.tl-event {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--text); margin-bottom: 0.22rem;
}
.tl-desc { font-size: 0.84rem; color: var(--text-light); line-height: 1.65; }

/* ── REGISTRY CARDS ── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--off-white); border: 1px solid var(--light-grey);
  padding: 2rem 1.5rem; text-align: center;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(143,168,134,0.14);
  border-color: var(--sage);
}
.card-icon { font-size: 2rem; margin-bottom: 0.85rem; display: block; }
.card-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  color: var(--text); margin-bottom: 0.3rem;
}
.card-sub { font-size: 0.75rem; color: var(--text-light); }
.card-btn {
  display: inline-block; margin-top: 1.1rem; font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-dark);
  border-bottom: 1px solid var(--sage); padding-bottom: 2px; transition: border-color 0.25s;
}
.card:hover .card-btn { border-color: var(--sage-dark); }

/* ── TRAVEL GRID ── */
.travel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem;
}
@media(max-width:580px) { .travel-grid { grid-template-columns: 1fr; } }
.tc {
  background: var(--off-white); border: 1px solid var(--light-grey); padding: 1.8rem;
  transition: border-color 0.3s;
}
.tc:hover { border-color: var(--blush); }
.tc-label {
  font-size: 0.57rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blush-dark); margin-bottom: 0.55rem;
}
.tc h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--text); margin-bottom: 0.4rem;
}
.tc p { font-size: 0.83rem; color: var(--text-light); line-height: 1.7; }
.tc a {
  display: inline-block; margin-top: 0.85rem; font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blush-dark);
  text-decoration: none; border-bottom: 1px solid var(--blush); transition: border-color 0.25s;
}
.tc a:hover { border-color: var(--blush-dark); }

/* ── FORMS ── */
.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:500px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--light-grey); color: var(--text);
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.9rem;
  padding: 0.72rem 1rem; outline: none; transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none; border-radius: 0;
}
input::placeholder, textarea::placeholder { color: var(--mid-grey); }
input:focus, select:focus, textarea:focus {
  border-color: var(--sage-mid); background: var(--whitesmoke);
}
select option { background: var(--whitesmoke); color: var(--text); }
textarea { resize: vertical; min-height: 85px; }

.optional-lbl { opacity: 0.5; font-size: 0.88em; }

.btn-primary {
  width: 100%; margin-top: 0.5rem;
  background: transparent; border: 1px solid var(--sage-mid);
  color: var(--sage-dark); font-family: 'Jost', sans-serif; font-weight: 500;
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.95rem 2rem; cursor: pointer;
  transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.btn-primary:hover { background: var(--sage-mid); color: var(--whitesmoke); border-color: var(--sage-mid); }

/* form success state */
.form-success {
  display: none; text-align: center; padding: 3rem 1rem;
}
.success-icon { font-size: 2.2rem; display: block; margin-bottom: 0.9rem; }
.form-success h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  font-weight: 500; font-style: italic; color: var(--text); margin-bottom: 0.5rem;
}
.form-success p { font-size: 0.85rem; color: var(--text-light); }

/* song list */
.song-list { margin-top: 2.5rem; }
.song-list-lbl {
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 0.8rem; text-align: center;
}
.song-entries { display: flex; flex-direction: column; gap: 0.5rem; }
.song-entry {
  display: flex; gap: 0.8rem; align-items: center;
  padding: 0.7rem 1rem; background: var(--off-white); border: 1px solid var(--light-grey);
}
.song-title { font-size: 0.85rem; color: var(--text); }
.song-artist { font-size: 0.72rem; color: var(--text-light); }

/* ── PHOTO BAND ── */
.photo-band {
  width: 100%; height: 320px; overflow: hidden; position: relative;
}
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.05); transition: transform 10s ease;
}
.photo-band:hover img { transform: scale(1.0); }
.photo-band-overlay { position: absolute; inset: 0; pointer-events: none; }

/* ── SUNSET PHOTO BAND ── */
.sunset-band {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.sunset-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.sunset-band:hover img {
  transform: scale(1.0);
}

.sunset-band-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── RSVP PHOTO BAND ── */
.rsvp-band {
  width: 100%;
  height: 330px;
  overflow: hidden;
  position: relative;
}

.rsvp-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.rsvp-band:hover img {
  transform: scale(1.0);
}

.rsvp-band-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* uploadable couple band */
.couple-band {
  cursor: pointer;
  background: var(--whitesmoke);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem;
}
.couple-band-text { text-align: center; pointer-events: none; }
.couple-band-icon { font-size: 2.2rem; opacity: 0.4; display: block; margin-bottom: 0.35rem; }
.couple-band-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mid); opacity: 0.55;
}
.couple-band input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3;
}

/* ── PAGE TRANSITIONS ── */
body { animation: pageIn 0.5s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2.8rem 2rem;
  background: var(--whitesmoke); border-top: 1px solid var(--light-grey);
}
.footer-names {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  font-style: italic; color: var(--text-mid);
}
.footer-sub {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-light); margin-top: 0.4rem;
}
.footer-venue {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 0.82rem; color: var(--sage-dark); margin-top: 0.25rem;
}

/* ── FADE-UP REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
