/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  scroll-behavior: smooth;
  color: #1f2e3c;
}

/* CSS variables for easy theming */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Playfair Display', serif;
  --color-primary: #0b1e36;
  --color-secondary: #f5f1e8;
  --color-accent: #8b6f56;
  --color-dark-overlay: rgba(0, 0, 0, 0.5);
  --btn-background: #4a7c59;
  --btn-hover: #3d664a;
}

  --font-body: 'Playfair Display', serif;
  --color-primary: #0b1e36; /* deep navy used in footer */
  --color-secondary: #f5f1e8; /* light beige used for section backgrounds */
  --color-accent: #8b6f56; /* muted brown for icons and highlights */
  --color-dark-overlay: rgba(0, 0, 0, 0.5);
  --btn-background: #4a7c59;
  --btn-hover: #3d664a;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

p {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.primary {
  background-color: var(--btn-background);
  color: #fff;
}

.btn.primary:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}

/* Hero section */
#hero {
  position: relative;
  height: 100vh;
  background-image: url('images/buca.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-overlay);
  z-index: 1;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

#hero .event-date {
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

#hero .couple-name {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#hero .countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

#hero .time-box {
  text-align: center;
}

#hero .number {
  font-size: 2.5rem;
  display: block;
  font-weight: 700;
}

#hero .label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

#hero .location {
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1rem;
}

/* Generic section styles */
section {
  padding: 4rem 1rem;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Schedule section */
#schedule {
  background-color: var(--color-secondary);
}

#schedule .schedule-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

#schedule .event {
  text-align: center;
  width: 140px;
}

#schedule .event .time {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#schedule .event .icon {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

#schedule .event .desc {
  font-size: 0.9rem;
}

/* Location section */
#location {
  background-color: var(--color-secondary);
  text-align: center;
}

#location .accommodation-details li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

##location .accommodation-details li::before {
  content: '\2022';
  color: var(--color-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

#location .map-wrapper {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* FAQs section */
#faqs {
  position: relative;
  color: #fff;
  background-image: linear-gradient(var(--color-dark-overlay), var(--color-dark-overlay)), url('images/faqs-bg.png');
  background-size: cover;
  background-position: center;
}

#faqs h2 {
  color: #fff;
}

#faqs .faq-item {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

#faqs .faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #f9f9f9;
}

#faqs .faq-item p {
  margin-bottom: 0.5rem;
  color: #e6e6e6;
}

/* RSVP section */
#rsvp {
  background-color: var(--color-secondary);
}

#rsvp form {
  max-width: 600px;
  margin: 0 auto;
}

#rsvp .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#rsvp .form-group {
  flex: 1;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

#rsvp label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

#rsvp input[type="text"],
#rsvp input[type="tel"],
#rsvp select,
#rsvp textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#rsvp input[type="text"]:focus,
#rsvp input[type="tel"]:focus,
#rsvp select:focus,
#rsvp textarea:focus {
  outline: none;
  border-color: var(--btn-background);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

#rsvp .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#rsvp .radio-group label {
  font-weight: normal;
}

#rsvp .radio-group input {
  margin-right: 0.25rem;
}

#rsvp button.btn {
  margin-top: 0.5rem;
}

/* Contacts section */
#contacts {
  background-color: var(--color-secondary);
}

#contacts .contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#contacts h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

#contacts p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-family: var(--font-heading);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #hero .couple-name {
    font-size: 2.25rem;
  }
  #hero .number {
    font-size: 1.75rem;
  }
  #hero .countdown {
    gap: 1rem;
  }
  #schedule .event {
    width: 100px;
  }
  #rsvp .form-row {
    flex-direction: column;
  }
}
