/* ============================================
   Wedding Site — Mobile-First Responsive CSS
   Color palette: sage green, ivory/cream, muted gold
   Fonts: Playfair Display (headings), Lato (body)
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #8faa8b;
  --sage-dark: #6b8a66;
  --sage-light: #c5d6c3;
  --ivory: #faf8f5;
  --cream: #f5f0e8;
  --gold: #b8976a;
  --gold-light: #d4be96;
  --text-dark: #3a3a3a;
  --text-medium: #5c5c5c;
  --text-light: #8a8a8a;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.8rem;
  text-align: center;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.required {
  color: #c0392b;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-light);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0.9rem 1rem;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-medium);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--sage-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
              url('wedding image 2.jpeg') center/cover no-repeat;
  padding: 80px 20px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 151, 106, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(143, 170, 139, 0.1) 0%, transparent 60%);
  animation: heroShimmer 15s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  from { transform: translate(0, 0); }
  to { transform: translate(2%, -1%); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-title .name {
  display: block;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-title .ampersand {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0.3rem 0;
}

.hero-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background-color: var(--sage);
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background-color: var(--sage-dark);
  transform: translateY(-1px);
}

/* --- Countdown --- */
.countdown-section {
  padding: 3.5rem 20px;
  background-color: var(--white);
  text-align: center;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 1rem 0.8rem;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--sage-light);
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--sage-dark);
  line-height: 1;
}

.countdown-label {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* --- Event Details --- */
.details-section {
  padding: 4rem 20px;
  background-color: var(--ivory);
  text-align: center;
}

.details-alt {
  background-color: var(--white);
}

.detail-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--sage-light);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.detail-date {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.detail-time {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.detail-venue {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sage-dark);
  margin-bottom: 0.25rem;
}

.detail-venue a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.detail-venue a:hover {
  color: var(--gold);
}

.detail-address {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.detail-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-light);
  border-top: 1px solid var(--sage-light);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* --- Map --- */
.venue-bg {
  background-color: var(--ivory);
}

.map-section {
  padding: 4rem 20px;
  background-color: var(--ivory);
  text-align: center;
}

.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sage-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- RSVP --- */
.rsvp-section {
  padding: 4rem 20px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  text-align: center;
}

.rsvp-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-medium);
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143, 170, 139, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.3rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1rem !important;
}

.radio-label input[type="radio"] {
  accent-color: var(--sage);
  width: 18px;
  height: 18px;
}

.radio-text {
  color: var(--text-dark);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.9rem;
  margin-top: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background-color: var(--sage);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  background-color: var(--sage-light);
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.success {
  color: var(--sage-dark);
}

.form-status.error {
  color: #c0392b;
}

/* --- Breast Cancer Research CTA --- */
.bcr-section {
  padding: 3rem 20px;
  text-align: center;
  background-color: var(--cream);
  border-top: 1px solid var(--sage-light);
}

.bcr-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 0.8rem;
}

.bcr-link {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d4639a;
  transition: color 0.3s ease;
}

.bcr-link:hover {
  color: #b84e82;
}

/* --- Footer --- */
.footer {
  padding: 3rem 20px;
  text-align: center;
  background-color: var(--sage-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-names {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-date {
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-contact {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-contact a {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-contact br.mobile-break {
  display: block;
}

@media (min-width: 480px) {
  .footer-contact br.mobile-break {
    display: none;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive — larger screens
   ============================================ */

@media (min-width: 480px) {
  .nav-list {
    gap: 2rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero-title .name {
    font-size: 3.2rem;
  }

  .hero-title .ampersand {
    font-size: 2rem;
  }

  .countdown-unit {
    min-width: 90px;
    padding: 1.2rem 1rem;
  }

  .countdown-number {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .hero-title .name {
    font-size: 3.8rem;
  }

  .hero-title .ampersand {
    font-size: 2.2rem;
  }

  .hero-subtitle,
  .hero-date {
    font-size: 1rem;
  }

  .nav-list {
    justify-content: center;
    gap: 2.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .countdown-section {
    padding: 4.5rem 20px;
  }

  .countdown {
    gap: 1.5rem;
  }

  .countdown-unit {
    min-width: 110px;
    padding: 1.5rem 1.2rem;
  }

  .countdown-number {
    font-size: 3rem;
  }

  .details-section {
    padding: 5rem 20px;
  }

  .detail-card {
    padding: 2.5rem 2rem;
  }

  .rsvp-section {
    padding: 5rem 20px;
  }

  .radio-group {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-title .name {
    font-size: 4.5rem;
  }

  .map-wrapper {
    padding-bottom: 45%;
  }
}
