/* =====================================================
   Marie & Sandy's Summer Party — styles
   Aesthetic: elegant & warm. Cream + blush + sage accent.
   ===================================================== */

:root {
  /* Palette */
  --bg-cream:    #FAF6F0;
  --bg-blush:    #F2E3D5;
  --bg-blush-deep:#E8D2BC;
  --accent-sage: #8FA08A;
  --accent-rust: #B5654C;
  --text-charcoal: #2C2622;
  --text-soft:   #6B5F55;
  --text-faded:  #A89A8C;
  --border:      #E5D9CB;
  --shadow-soft: 0 8px 30px rgba(63, 50, 38, 0.08);

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:   1100px;
  --gutter:      clamp(1.25rem, 5vw, 3rem);
  --radius:      4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-charcoal);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-blush) 0%, var(--bg-cream) 60%),
    var(--bg-cream);
  overflow: hidden;
}

/* Decorative botanical strokes — subtle, top-left and bottom-right */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
}
.hero::before {
  top: 2.5rem; left: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M10 90 Q 30 60 50 60 T 90 30' fill='none' stroke='%238FA08A' stroke-width='1.2'/><circle cx='50' cy='60' r='3' fill='%23B5654C'/><circle cx='70' cy='45' r='2.5' fill='%23B5654C'/><circle cx='30' cy='75' r='2.5' fill='%23B5654C'/></svg>");
}
.hero::after {
  bottom: 2rem; right: 2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M10 10 Q 35 30 50 50 T 90 90' fill='none' stroke='%238FA08A' stroke-width='1.2'/><circle cx='50' cy='50' r='3' fill='%23B5654C'/><circle cx='30' cy='30' r='2.5' fill='%23B5654C'/><circle cx='70' cy='70' r='2.5' fill='%23B5654C'/></svg>");
  transform: rotate(180deg);
}

/* Hero photo placeholder — replace this with a real photo. */
.hero-photo {
  width: min(700px, 92vw);
  height: 420px;
  margin-bottom: 2.5rem;
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/images/hero.jpg") center/cover no-repeat;
  position: relative;
  z-index: 1;
  /* TO USE A REAL PHOTO:
     background: url('images/hero.jpg') center/cover no-repeat;
     border: none;
     and remove the .hero-photo__hint span from the HTML. */
}
.hero-photo__hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-faded);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 1rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-rust);
  margin-bottom: 1.5rem;
}
.eyebrow--centered { text-align: center; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text-charcoal);
  margin-bottom: 1.75rem;
}
.hero-title__line { display: block; }
.hero-title__line--accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-rust);
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border: 1px solid var(--text-charcoal);
  border-radius: 100px;
  transition: all 0.25s ease;
}
.hero-cta:hover {
  background: var(--text-charcoal);
  color: var(--bg-cream);
}

/* =====================================================
   DETAILS
   ===================================================== */
.details {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.details__wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.detail-card {
  text-align: center;
  padding: 0 1rem;
}

.detail-card__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-rust);
  margin-bottom: 1rem;
}

.detail-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detail-card__body {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
}

.detail-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--accent-sage);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-sage);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.detail-card__link:hover { opacity: 0.7; }

/* =====================================================
   RSVP
   ===================================================== */
.rsvp {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-blush) 100%);
}
.rsvp__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.rsvp__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--text-charcoal);
}

.rsvp-form {
  text-align: left;
  background: rgba(255,255,255,0.5);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.field label,
.field-row label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field-row input[type="number"],
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-charcoal);
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field-row input:focus {
  outline: none;
  border-color: var(--accent-rust);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-sans);
}

.field-hint {
  margin-top: 0.4rem;
  font-size: 13px;
  color: var(--text-faded);
  font-style: italic;
}

.optional {
  color: var(--text-faded);
  font-weight: 400;
  font-style: italic;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-cream);
  background: var(--text-charcoal);
  border: none;
  border-radius: 100px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.05s ease;
}
.submit-btn:hover { background: var(--accent-rust); }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-btn__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  width: 18px; height: 18px;
  border: 2px solid rgba(250,246,240,0.35);
  border-top-color: var(--bg-cream);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.submit-btn.is-loading .submit-btn__label { visibility: hidden; }
.submit-btn.is-loading .submit-btn__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--accent-rust);
  text-align: center;
}

.rsvp-success {
  padding: 3rem 1rem;
  text-align: center;
}
.rsvp-success h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--accent-rust);
}
.rsvp-success p {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}
.rsvp-success__note {
  font-size: 14px;
  color: var(--text-faded);
  font-style: italic;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  padding: 4rem var(--gutter) 5rem;
  text-align: center;
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
}
.footer-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.footer-names {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: 1.5rem;
}
.footer-contact {
  font-size: 14px;
  color: var(--text-soft);
}
.footer-contact a {
  color: var(--accent-rust);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-rust);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
  .hero::before, .hero::after { width: 130px; height: 130px; opacity: 0.12; }
  .hero::before { top: 1rem; left: 1rem; }
  .hero::after { bottom: 1rem; right: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.5rem; }
}
.detail-card:last-child .detail-card__body { max-width: 320px; }
.detail-card__link:first-of-type { margin-top: 0.2rem; }
