/* =========================================================
   Sam & Lillian wedding site styles
   Mobile-first: base styles are for phones, and the
   @media (min-width: ...) blocks add changes for larger screens.
   ========================================================= */

/* ---------- Theme: change colors and fonts here ---------- */
:root {
  --color-bg: #faf7f2;          /* warm ivory page background */
  --color-bg-alt: #f1ece3;      /* slightly darker band for alternating sections */
  --color-text: #3b3a36;        /* soft charcoal body text */
  --color-muted: #7a766d;       /* secondary text */
  --color-accent: #6b7f6a;      /* sage green: buttons, links, details */
  --color-accent-dark: #556654;
  --color-line: #ddd5c8;        /* borders and dividers */
  --color-white: #ffffff;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --max-width: 1080px;
  --max-width-narrow: 680px;
  --header-height: 60px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* keeps headings from hiding under the sticky nav */
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: var(--max-width-narrow);
}

.center {
  text-align: center;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* small decorative line under each section title */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.note {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 400;
  border: 1px solid var(--color-accent);
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.button-outline {
  background: transparent;
  color: var(--color-accent);
}

.button-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.text-link {
  font-weight: 400;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.95);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  text-decoration: none;
}

/* Hamburger button (phones only) */
.nav-toggle {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.2s;
}

.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after  { content: ""; left: 0; top: 7px; }

/* Phone menu: hidden until the hamburger is tapped (script.js adds .is-open) */
.nav-links {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem 0 1rem;
  list-style: none;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.nav-links.is-open {
  display: block;
}

.nav-links a {
  display: block;
  padding: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* ---------- 1. Hero ---------- */
.hero {
  /* To use a photo, uncomment the next line (and keep the gradient so text stays readable):
  --hero-image: url("images/hero.webp"); */
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--color-white);
  background:
    linear-gradient(rgba(40, 45, 38, 0.45), rgba(40, 45, 38, 0.55)),
    var(--hero-image, linear-gradient(135deg, #8a9b88, #6b7f6a 50%, #4f5f4e));
  background-size: cover;
  background-position: center;
}

.hero-names {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-names .amp {
  font-style: italic;
  font-weight: 400;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.hero-location {
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.hero .button {
  background: transparent;
  border-color: var(--color-white);
}

.hero .button:hover {
  background: var(--color-white);
  color: var(--color-text);
}

/* ---------- 2. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.gallery img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-line);
  color: var(--color-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- 3. Schedule ---------- */
.schedule {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: var(--max-width-narrow);
}

.schedule-item {
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

/* ---------- 4. Travel cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 2rem 1.5rem;
  text-align: center;
}

/* ---------- 7. FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2rem 1.25rem 0;
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* plus/minus icon */
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--color-accent);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-line);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

/* =========================================================
   Tablet and up (768px+)
   ========================================================= */
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 3rem;
  }

  .hero-names {
    font-size: 5.5rem;
  }

  .hero-date {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Show the nav links inline and hide the hamburger */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    padding: 0;
    border: none;
    background: none;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}
