/* ===========================================================
   Maryke & Henry — Wedding Website
   Theme: cream base, burgundy + forest green accents
   =========================================================== */

:root {
  --cream: #f9f4ea;
  --cream-alt: #f1e9d8;
  --cream-deep: #e8dcc4;
  --burgundy: #722f37;
  --burgundy-dark: #551f26;
  --burgundy-light: #9a4b53;
  --olive: #2f4f3c;
  --olive-dark: #1f3529;
  --olive-light: #6a8f7a;
  --text: #3b2f28;
  --text-light: #6b5f54;
  --white: #fffdf9;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--burgundy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p { margin: 0 0 1em; }

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover { color: var(--olive-dark); }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Ornamental divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
  color: var(--olive);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--olive-light);
}

.divider span {
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
}

.btn-outline:hover {
  background: var(--burgundy);
  color: var(--white);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}

.logo .amp {
  color: var(--olive);
  font-style: italic;
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--burgundy);
  border-color: var(--olive);
}

.main-nav a.nav-rsvp {
  background: var(--burgundy);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
}

.main-nav a.nav-rsvp:hover {
  background: var(--olive-dark);
  border-color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--burgundy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--cream-alt) 0%, var(--cream) 65%);
}

.hero-monogram {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 1.2rem;
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.6rem;
}

.hero .event-line {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero .event-line strong {
  color: var(--burgundy);
}

.hero-photo {
  max-width: 600px;
  margin: 0 auto 1rem;
  padding: 10px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(85, 37, 38, 0.18);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
}

.countdown .count-block {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 4px;
  min-width: 90px;
  padding: 1rem 0.6rem;
  box-shadow: 0 4px 14px rgba(85, 37, 38, 0.06);
}

.countdown .count-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--burgundy);
  display: block;
}

.countdown .count-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 4px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(85, 37, 38, 0.08);
}

.card .card-icon {
  font-size: 1.8rem;
  color: var(--olive);
  margin-bottom: 0.8rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card .card-meta {
  color: var(--burgundy);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* ---------- Timeline (schedule / our story) ---------- */
.timeline {
  max-width: 640px;
  margin: 2.5rem auto 0;
  border-left: 2px solid var(--olive-light);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--cream);
}

.timeline-time {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--olive-dark);
  font-size: 1rem;
  margin-bottom: 0.2rem;
  display: block;
}

/* ---------- Info strip ---------- */
.info-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--burgundy);
  color: var(--cream);
}

.info-strip .info-item .info-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 0.3rem;
}

.info-strip .info-item .info-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

/* ---------- Placeholder callouts (for user to fill in) ---------- */
.todo-note {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--burgundy-dark);
  border: 1px dashed var(--olive);
  border-radius: 3px;
  padding: 0.15rem 0.6rem;
  font-size: 0.85em;
  font-style: italic;
}

/* ---------- RSVP ---------- */
.rsvp-form-wrap {
  max-width: 720px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(85, 37, 38, 0.08);
}

.rsvp-form-wrap iframe {
  width: 100%;
  min-height: 1521px;
  border: none;
  display: block;
}

/* ---------- Gallery masonry ---------- */
.gallery-masonry {
  column-count: 2;
  column-gap: 0.9rem;
  margin-top: 2.5rem;
}

@media (min-width: 620px) {
  .gallery-masonry { column-count: 3; }
}

@media (min-width: 980px) {
  .gallery-masonry { column-count: 4; }
}

.gallery-masonry a {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(85, 37, 38, 0.1);
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-masonry a:hover img {
  transform: scale(1.03);
}

/* ---------- Gallery password gate ---------- */
.gallery-gate-card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 6px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 24px rgba(85, 37, 38, 0.08);
}

.gate-label {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.gate-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.3rem;
  border: 1px solid var(--cream-deep);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
}

.gate-input:focus {
  outline: none;
  border-color: var(--olive);
}

.gate-error {
  color: var(--burgundy);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--cream-deep);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.2rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--burgundy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question .faq-icon {
  color: var(--olive);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding-bottom: 1.2rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive-dark);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.footer-monogram {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.footer-note {
  color: var(--cream-deep);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.4rem;
  }

  .nav-toggle {
    display: flex;
  }
}
