/* static/css/style.css */

:root {
  --yellow-50: #fffbeb;
  --yellow-100: #fef3c7;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --yellow-700: #a16207;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --gray-700: #374151; 
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: linear-gradient(to bottom, var(--yellow-50), white);
  min-height: 100vh;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  /* Make header part of the normal flow so content stacks beneath it */
  position: static;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow-600);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-brand svg {
  color: var(--yellow-600);
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--gray-700);
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--yellow-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  /* reduce top padding now header takes up layout space */
  padding: 4rem 1rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.heart-icon {
  color: var(--yellow-400);
  margin-bottom: 2rem;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.wedding-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  color: var(--gray-700);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item svg {
  color: var(--yellow-500);
  stroke-width: 2;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-item {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1rem;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--yellow-600);
}

.countdown-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Section Styles */
section {
  padding: 4rem 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--gray-800);
  margin-bottom: 3rem;
}

.section-icon {
  display: block;
  margin: 0 auto 1.5rem;
  color: var(--yellow-500);
  stroke-width: 2;
}

/* Story Section */
.story-section {
  background: white;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

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

.story-icon {
  width: 80px;
  height: 80px;
  background: var(--yellow-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.story-icon svg {
  color: var(--yellow-500);
  stroke-width: 2;
}

.story-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.story-card p {
  color: var(--gray-600);
}

/* Details Section */
.details-section {
  background: var(--yellow-50);
}

.generic-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.generic-section br {
    margin-bottom: 1rem;
}

.generic-section {
  text-align: center;
}


.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.detail-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--yellow-600);
  margin-bottom: 1rem;
}

.detail-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-info svg {
  color: var(--yellow-500);
  flex-shrink: 0;
  margin-top: 0.25rem;
  stroke-width: 2;
}

.detail-info strong {
  display: block;
  margin-bottom: 0.25rem;
}

.detail-info .small {
  font-size: 0.875rem;
  margin: 0;
}

.dress-code {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.dress-code h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--yellow-600);
  margin-bottom: 1rem;
}

/* Registry Section */
.registry-section {
  background: white;
}

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

.registry-text {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--gray-600);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--yellow-600);
  color: white;
}

.btn-primary:hover {
  background: var(--yellow-700);
}

.btn-secondary {
  border-color: var(--yellow-600);
  color: var(--yellow-600);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--yellow-50);
}

.btn-block {
  width: 100%;
}

/* RSVP Section */
.rsvp-section {
  background: var(--yellow-50);
}

.rsvp-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-deadline {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.rsvp-form {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: left;
}

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

.form-group label {
  display: block;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

/* Checkbox group: keep label on the left and checkbox to the right */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: auto; /* override .form-group input width:100% */
  padding: 0;
  margin: 0;
  border: 0;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-600);
}

.footer svg {
  color: var(--yellow-400);
  margin-bottom: 1rem;
}

.footer p {
  margin: 0.5rem 0;
}

.copyright {
  font-size: 0.875rem;
}

/* Mobile layout: always show nav buttons on a new row (no hamburger)
   - Stack the brand and the menu vertically
   - Hide the (removed) hamburger toggle
   - Keep other responsive adjustments from before (hero, countdown)
*/
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  /* hamburger removed; ensure it's hidden if present */
  .nav-toggle {
    display: none !important;
  }

  /* make the brand span the full width */
  .nav-brand {
    width: 100%;
    justify-content: flex-start;
  }

  /* show the menu on its own row, full width */
  .nav-menu {
    display: flex;
    position: static;
    right: auto;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-menu a {
    padding: 0.5rem 0;
    display: inline-block;
  }

  /* other responsive adjustments */
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown-value { font-size: 2rem; }
  .wedding-info { flex-direction: column; gap: 1rem; }
}