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

:root {
  --bg: #56643f;
  --text: #f4e7c6;
  --btn-bg: #f4e7c6;
  --btn-text: #000000;
  --font-header: 'Cormorant Infant', serif;
  --font-body: 'Libre Baskerville', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 400;
  line-height: 1.2;
  text-transform: capitalize;
}

/* ─── NAV ─── */

.site-header {
  background-color: var(--bg);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 20px 20px 0;
}

.site-header .couple-name-nav {
  font-family: var(--font-header);
  color: var(--text);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0;
}

.nav-bar {
  background-color: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 400;
  padding: 20px 0 12px;
}

.nav-bar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.nav-bar li {
  margin: 0 12px;
  padding: 8px 0;
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.nav-bar li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--text);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-bar li:hover::after,
.nav-bar li.active::after {
  transform: scaleX(1);
}

.nav-bar a { color: var(--text); }

/* ─── HERO (home page) ─── */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 12 / 7;
  min-height: 300px;
}

@media (max-width: 767px) {
  .hero { aspect-ratio: 1 / 1; }
}

.hero-stacked {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stacked img {
  width: 550px;
  height: 550px;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 991px) {
  .hero-stacked img { width: 60vw; height: 60vw; }
}

@media (max-width: 600px) {
  .hero-stacked img { width: 70vw; height: 70vw; }
}

.hero-img-back {
  position: relative;
  z-index: 10;
  top: -40px;
  right: -40px;
}

.hero-img-front {
  position: relative;
  z-index: 20;
  bottom: -40px;
  left: -40px;
}

/* ─── CONTENT CONTAINER ─── */

.content-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 30px 32px 0;
  position: relative;
  z-index: 150;
}

@media (max-width: 991px) {
  .content-wrap { padding: 8px 5% 0; }
}

.content-center { text-align: center; }

/* ─── HOME NAMES + DATE ─── */

.names-section {
  padding: 20px 32px 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .names-section { padding: 16px 16px 24px; }
}

.couple-name {
  font-size: 65px;
  margin: 0;
}

@media (max-width: 767px) {
  .couple-name { font-size: 14.285714vw; }
}

.ampersand {
  font-family: var(--font-body);
  font-size: 16px;
  display: block;
  margin: 32px 0;
}

@media (max-width: 767px) {
  .ampersand { margin: 20px 0; }
}

.date-location { margin-top: 40px; }

.event-date {
  font-family: var(--font-header);
  font-size: 35px;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 767px) {
  .event-date { font-size: 28px; }
}

.event-location {
  margin-top: 24px;
}

/* ─── COUNTDOWN ─── */

.countdown {
  margin-top: 24px;
  font-size: 16px;
}

.countdown span { margin-left: 16px; }
.countdown span:first-child { margin-left: 0; }

/* ─── PAGE TITLE (sub-pages) ─── */

.page-title {
  font-size: 33px;
  text-align: center;
  margin: 0 0 10px;
}

@media (max-width: 767px) {
  .page-title { font-size: 28px; }
}

.page-description {
  text-align: center;
  margin-bottom: 40px;
  font-style: italic;
  opacity: 0.85;
}

/* ─── SCHEDULE ─── */

.schedule-section { margin-top: 80px; text-align: center; }

@media (max-width: 991px) {
  .schedule-section { margin-top: 60px; }
}

.day-group { margin-bottom: 60px; }

.day-label {
  font-family: var(--font-header);
  font-size: 30px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.day-label::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--text);
  margin: 12px auto 0;
  opacity: 0.4;
}

.event-card {
  margin-bottom: 60px;
}

.event-card .event-icon {
  margin-bottom: 24px;
  color: var(--text);
}

.event-card .event-icon svg { width: 64px; height: 64px; }

.event-card h2 {
  font-size: 25px;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .event-card h2 { font-size: 20px; }
}

.event-card .event-time {
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.event-card .event-attire,
.event-card .event-note {
  font-size: 16px;
  margin-top: 8px;
  white-space: pre-wrap;
}

/* ─── TRAVEL ─── */

.travel-section { margin-top: 80px; text-align: center; }

@media (max-width: 991px) {
  .travel-section { margin-top: 60px; }
}

.travel-card {
  margin-bottom: 80px;
}

.travel-card .travel-icon {
  margin-bottom: 24px;
  color: var(--text);
}

.travel-card .travel-icon svg { width: 64px; height: 64px; }

.travel-card h2 {
  font-size: 25px;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .travel-card h2 { font-size: 20px; }
}

.travel-card address {
  font-style: normal;
  margin-bottom: 32px;
  display: block;
}

.travel-card .travel-note {
  white-space: pre-wrap;
  margin-bottom: 24px;
  text-align: center;
}

.btn {
  display: inline-block;
  border-radius: 4px;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 16px;
  width: 200px;
  text-align: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; text-decoration: none; color: var(--btn-text); }

/* ─── FAQ ─── */

.faq-section { margin-top: 80px; text-align: center; }

@media (max-width: 991px) {
  .faq-section { margin-top: 60px; }
}

.faq-item {
  margin-bottom: 60px;
}

.faq-item h2 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .faq-item h2 { font-size: 20px; }
}

.faq-item p {
  white-space: pre-wrap;
}

/* ─── FOOTER ─── */

.site-footer {
  font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 80px;
  margin-top: 80px;
}

@media (max-width: 767px) {
  .site-footer { padding: 20px 20px 40px; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links > * { padding: 4px 12px; }

@media (max-width: 767px) {
  .footer-links > * { padding: 12px; }
}

.footer-links a { color: inherit; }
.footer-links a:hover { color: inherit; }

/* ─── MOBILE NAV TOGGLE ─── */

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 767px) {
  .mobile-nav-toggle { display: block; }
  .site-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 0; }
  .nav-bar { top: 42px; }
  .nav-bar ul { flex-direction: column; display: none; gap: 4px; }
  .nav-bar.open ul { display: flex; }
  .couple-name-nav { font-size: 22px; }
}

/* ─── DIVIDER ─── */

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--text);
  margin: 0 auto 40px;
  opacity: 0.3;
}
