/* styles.css — timeless, elegant wedding template
   Replace images in the /images/ folder as indicated in HTML.
*/

/* CSS variables (palette chosen to be neutral, timeless) */
:root {
  --bg: #ffffff;
  --muted: #6b6b6b;
  --text: #111111;
  --accent: #2f6e92; /* tasteful deep teal; replace if desired */
  --soft: #f6f4f2;
  --card-bg: #ffffff;
  --radius: 12px;
  --container: 1100px;
  --max-width: 1100px;
  --shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(120%) blur(6px);
  z-index: 60;
  border-bottom: 1px solid rgba(16, 16, 16, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
  padding: 6px;
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Nav */
.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(47, 110, 146, 0.05);
}

/* nav toggle for small screens */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.95);
  min-height: 420px;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bg);
  padding: 3rem 1rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: 3.25rem;
  margin: 0.25rem 0;
  color: var(--bg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.hero-subtitle {
  margin: 0.25rem 0 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}
.btn-primary {
  background: var(--bg);
  color: var(--text);
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  min-width: 72px;
}
.countdown-value {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.countdown-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 3rem 0;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}
.alt-bg {
  background: var(--soft);
}

/* layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.portrait img.rounded {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.info-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.info-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.6rem 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.04);
  color: var(--muted);
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  z-index: 100;
  padding: 1.2rem;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--bg);
  max-width: 720px;
  width: 100%;
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(4, 4, 4, 0.3);
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* lightbox specifics */
.lightbox .modal-content {
  max-width: 900px;
  text-align: center;
  padding: 1rem;
}
.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* rsvp form */
.rsvp-form {
  display: grid;
  gap: 0.5rem;
}
.rsvp-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  font-size: 1rem;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

/* footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

/* small helpers */
.muted {
  color: var(--muted);
}
.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* responsive */
@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 420px;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav-toggle {
    display: none;
  }
  .nav-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
  }
}

/* small screens */
@media (max-width: 699px) {
  .container {
    padding: 1rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 64px;
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .site-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
    background: transparent;
    border: 0;
    font-size: 1.1rem;
  }
  .brand-text {
    display: none;
  }
}

/* keyboard focus visibility */
.show-focus :focus {
  outline: 3px solid rgba(47, 110, 146, 0.15);
  outline-offset: 3px;
  border-radius: 6px;
}

/* accordion panels */
.accordion .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 0.5rem;
  color: var(--muted);
}

/* small polish */
.btn-primary:hover {
  transform: translateY(-1px);
  transition: transform 0.12s ease;
}
