:root {
  --navy: #2f4a8a;
  --cream: #f5efe8;
  --text: #2d2d2d;
  --muted: #6b6b6b;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
}

.container {
    text-align: center;
    padding: 20px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.section {
  background: var(--cream);
  text-align: center;
  padding: 60px 20px;
}

.section h1 {
  font-size:42px;
  color:var(--navy);
  margin-bottom:10px;
}

/* Navbar layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-icon {
  font-size: 26px;
  cursor: pointer;
  display: none;
  color: white;
}

/* Menu default (desktop) */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  padding: 18px 50px;
  position: relative;
  z-index: 10;
}

.logo {
  color: var(--cream);
  font-weight: 500;
  font-size: 18px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--cream);
  font-size: 15px;
  opacity: .9;
  font-weight: 500;
}

.nav-links li a:hover {
  opacity: 1;
}

.nav-links .current {
  color: #6f8fd6;
  font-weight: bold;
}

/* HERO */
.hero {
  position: relative;
  height: 95vh;
  background: url('images/homeimage.JPG') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.overlay {
  position: relative;
  text-align: center;
  color: white;
}

.overlay h1 {
  font-size: 64px;
  letter-spacing: 1px;
}

.overlay .sub {
  margin: 10px 0;
  font-size: 16px;
  letter-spacing: 2px;
  opacity: .9;
}

.overlay h2 {
  margin-top: 25px;
  font-size: 28px;
}

.overlay .btn {
  margin-top: 25px;
}

/* STORY */
.story-container {
  display: flex;
  gap: 50px;
  max-width: 1100px;
  margin: 60px auto 0;
  align-items: center;
}

.story-container img {
  width: 50%;
  border-radius: 12px;
}

.story-text {
  width: 50%;
  text-align: left;
}

.story-text h3 {
  margin-top: 20px;
  color: var(--navy);
}

.story-text p {
  line-height: 1.7;
  color: var(--muted);
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  transition: .3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* RSVP */
.rsvp-section {
  background: #f5f1e8;
  text-align: center;
  padding: 60px 20px;
}

.rsvp-section h1 {
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 10px;
}

.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.rsvp-card label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
}

.rsvp-card input,
.rsvp-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.rsvp-card textarea {
  min-height: 100px;
  resize: none;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.rsvp-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.rsvp-btn:hover {
  background: #3f5fa8;
}

/* BUTTONS */
.btn,
button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover,
button:hover {
  background: #243b6b;
}

/* MAP */
.map-container {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.map-container iframe {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.map-container .btn {
  display: inline-block;
  margin-top: 15px;
}

/* REGISTRY */
.registry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: #eee;
  border-radius: 50%;
}

.card h3 {
  color: var(--navy);
  margin: 0;
}

.card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

/* DETAILS */
.details-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 60px auto 0;
}

.details-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.details-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.details-content {
  padding: 20px;
}

.details-content h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.details-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

/* DIVIDER */
.divider {
  width: 120px;
  height: 2px;
  background: var(--navy);
  margin: 15px auto;
  position: relative;
}

.divider::after {
  content: "♥";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 10px;
  color: var(--navy);
}

/* FOOTER */
.footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.footer-content {
  max-width: 800px;
  margin: auto;
}

.footer h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 10px;
}

.footer .date,
.footer .location {
  opacity: 0.9;
  margin: 5px 0;
}

.footer-line {
  width: 70%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 30px auto;
}

.footer .message {
  font-size: 14px;
  opacity: 0.8;
}

/* MOBILE */
@media(max-width:768px) {

  .hero {
    height: 80vh;
    padding: 20px;
  }

  .overlay h1 {
    font-size: 36px;
  }

  .overlay h2 {
    font-size: 22px;
  }

  .overlay p {
    font-size: 14px;
  }

  .story-container {
    flex-direction: column;
    gap: 20px;
  }

  .story-container img,
  .story-text {
    width: 100%;
  }

  .details-container {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .registry {
    grid-template-columns: 1fr;
  }

  form {
    padding: 20px;
  }

  .map-container iframe {
    height: 250px;
  }

  .footer {
    padding: 60px 20px;
  }
}

@media(max-width:600px) {
  .rsvp-card {
    padding: 20px;
  }

  .rsvp-section h1 {
    font-size: 32px;
  }

  /* Show hamburger */
  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
  }

  /* Hide desktop menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--navy);
    text-align: center;
    padding: 20px 0;
    z-index: 1000;
  }

  /* Toggle menu */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}

@media (max-width: 768px) {

  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--navy);
    text-align: center;
    padding: 20px 0;
    z-index: 1000;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
} 
