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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #2c2c2c;
  line-height: 1.7;
  background: #faf8f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #c4956a;
  color: #fff;
}

.btn-primary:hover {
  background: #b07d55;
}

.btn-secondary {
  background: transparent;
  color: #c4956a;
  border: 1.5px solid #c4956a;
}

.btn-secondary:hover {
  background: #c4956a;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
}

.hero-date {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.ampersand {
  font-style: italic;
  color: #c4956a;
}

.hero-location {
  font-size: 1.1rem;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-item span:first-child {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c4956a;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e0d8;
  padding: 0.75rem 0;
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  color: #c4956a;
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
}

.navbar nav a {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #c4956a;
}

.nav-admin {
  opacity: 0.4;
  font-size: 0.8rem !important;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #fff;
}

.section h2 {
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #3a3a3a;
  letter-spacing: 1px;
}

/* Story */
.story-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.story-text p + p {
  margin-top: 1.5rem;
}

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.event-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.event-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #c4956a;
  margin-bottom: 0.4rem;
}

.event-item p {
  font-size: 0.95rem;
  color: #555;
}

.map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-placeholder iframe {
  display: block;
}

/* RSVP */
.section-rsvp {
  background: #f5f0eb;
}

.rsvp-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c4956a;
}

.rsvp-success {
  text-align: center;
  padding: 2rem;
  background: #e6f0e6;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Admin */
#adminLogin {
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.admin-entry {
  background: #f9f6f2;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border-left: 4px solid #c4956a;
}

.admin-entry strong {
  color: #3a3a3a;
}

.admin-entry .admin-meta {
  font-size: 0.85rem;
  color: #888;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 0;
  background: #2c2c2c;
  color: #bbb;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Music player */
.music-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.music-btn {
  background: #c4956a;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.music-btn-sm {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
}

.music-btn-sm:hover {
  background: rgba(255, 255, 255, 0.25);
}

.music-btn:hover {
  background: #b07d55;
}

.music-label {
  color: #ddd;
  font-size: 0.8rem;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.music-counter {
  position: fixed;
  bottom: 64px;
  right: 32px;
  z-index: 199;
  color: #aaa;
  font-size: 0.7rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .music-control {
    bottom: 16px;
    right: 12px;
    padding: 6px 10px 6px 8px;
    gap: 4px;
  }
  .music-label {
    max-width: 80px;
    font-size: 0.7rem;
  }
  .music-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .music-btn-sm {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  .music-counter {
    right: 20px;
    font-size: 0.6rem;
  }
}

/* WhatsApp Banner */
.whatsapp-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.whatsapp-banner:hover {
  background: #20b85a;
}

/* Adjust music player to not be hidden by banner */
@media (max-width: 640px) {
  .music-control {
    bottom: 70px; /* Moved up */
  }
}
.music-control {
  bottom: 70px;
}
