/* =============================================
   CSS VARIABLES — update these to restyle the site
   ============================================= */
:root {
  color-scheme: only light;
  /* Colors */
  --color-bg:           #faf8f5;
  --color-surface:      #ffffff;
  --color-text:         #2c2825;
  --color-text-muted:   #7a736b;
  --color-accent:         #05330b;
  --color-accent-beige:   #b08d6e;
  --color-accent-blue:    #6890ac;
  --color-rose:           #d4856a;
  --color-sage:           #6b9b5a;
  --color-accent-light:   #e8ddd3;
  --color-border:         #e0d8d0;
  --color-error:          #9b3a3a;
  --color-success-bg:     #f0ebe4;
  --color-success-text:   #5a4a3a;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;

  /* Spacing */
  --max-width: 820px;
  --section-gap: 4rem;

  /* Misc */
  --radius: 2px;
  --transition: 0.2s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  font-family: var(--font-body);
  background: linear-gradient(160deg,
    rgba(107, 155, 90, 0.07) 0%,
    var(--color-bg) 40%,
    rgba(212, 133, 106, 0.07) 100%
  );
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 0.02em; }
h3 { font-size: 1.25rem; }

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

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}


.page-content {
  padding-top: 2rem;
  padding-bottom: var(--section-gap);
}

section {
  margin-bottom: var(--section-gap);
}

section:last-child {
  margin-bottom: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #05330b;
  padding: 1rem 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-monogram {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-rose {
  height: 1.4em;
  width: auto;
}

.nav-monogram:hover {
  opacity: 0.7;
}

.nav-monogram-short { display: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* =============================================
   HERO (Home page)
   ============================================= */
/* Lock the homepage to the viewport so it never scrolls */
body:has(.hero) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body:has(.hero) main {
  flex: 1;
  min-height: 0;
}

body:has(.hero) .site-footer {
  display: none;
}

.hero {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  padding: 1.5rem;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-ampersand {
  color: var(--color-accent);
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin: 0.75rem auto;
}

.hero-photo {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: var(--radius);
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 4rem;
  gap: 0.1rem;
}

.rsvp-home {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
  }

  .hero-photo {
    flex: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    margin-top: 1rem;
  }

  .hero-text {
    flex: 0 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    justify-content: flex-start;
  }
}

.hero-tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 36ch;
  margin: 0 auto 2.5rem;
}

/* =============================================
   BUTTON
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-accent-blue);
  color: var(--color-accent-blue);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-accent-blue);
  color: var(--color-surface);
  opacity: 1;
}

.btn-filled {
  background: var(--color-accent-blue);
  color: var(--color-surface);
}

.btn-filled:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =============================================
   LOGISTICS SECTIONS
   ============================================= */
.logistics-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.logistics-section:first-child {
  border-top: none;
}

.logistics-section:last-child {
  border-bottom: 1px solid var(--color-border);
}

.logistics-label {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 0.2rem;
}

.logistics-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.logistics-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.logistics-body a {
  color: var(--color-accent-blue);
}

.venue-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  display: block;
}

@media (max-width: 600px) {
  .logistics-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* =============================================
   SCHEDULE
   ============================================= */
.schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
  width: 5rem;
  flex-shrink: 0;
}

.schedule-event {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text);
}

/* =============================================
   DETAIL CARD (Logistics)
   ============================================= */
.detail-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--color-surface);
}

.detail-card + .detail-card {
  margin-top: 1.5rem;
}

.detail-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.detail-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.detail-card .address {
  font-style: normal;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.detail-card .time {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.detail-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

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

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

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq-icon::before { width: 12px; height: 1px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform var(--transition), opacity var(--transition); }

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

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

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq-answer-inner p:last-child { margin-bottom: 0; }

/* =============================================
   RSVP FORM
   ============================================= */
.rsvp-wrapper {
  max-width: 520px;
  margin: 1.5rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  appearance: none;
}

input[type="number"] {
  max-width: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible { display: block; }

.form-submit {
  margin-top: 2rem;
}

/* Confirmation message */
.confirmation {
  display: none;
  background: var(--color-success-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.confirmation.visible { display: block; }

.confirmation h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.confirmation p {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.confirmation .confirm-detail {
  font-size: 0.9rem;
}

.confirmation .confirm-detail strong {
  color: var(--color-text);
}

.confirm-divider {
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.25rem auto;
}

/* =============================================
   PHOTO GRID
   ============================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.photo-placeholder {
  position: relative;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown when no <img> is inside */
.photo-placeholder:not(:has(img))::after {
  content: 'Photo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 540px) {
  .photo-grid,
  .photo-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   BOTANICAL ELEMENTS
   ============================================= */
.botanical-divider {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0.75rem auto;
}


/* =============================================
   PASSWORD GATE
   ============================================= */
.password-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 57px - 60px); /* viewport minus nav and footer */
  padding: 2rem 1.5rem;
  text-align: center;
}

.password-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.password-form {
  width: 100%;
  max-width: 360px;
}

.password-row {
  display: flex;
  gap: 0.5rem;
}

.password-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}

.password-input:focus {
  border-color: var(--color-accent-blue);
}

.password-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-error);
  min-height: 1.2em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-top: var(--section-gap);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 540px) {

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .nav-monogram {
    font-size: 1.1rem;
  }

  .nav-monogram-full  { display: none; }
  .nav-monogram-short { display: inline; }

  .detail-card {
    padding: 1.5rem;
  }
}
