/* ===== Design tokens ===== */
:root {
  --burnt-orange: #C05A2E;
  --teal:         #0F8B8D;
  --warm-cream:   #FDF5E6;
  --deep-brown:   #3B1F0A;
  --white:        #FFFFFF;
  --soft-gold:    #D4A017;

  --ink:    var(--deep-brown);
  --paper:  var(--warm-cream);
  --accent: var(--burnt-orange);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 31, 10, 0.12);
  --shadow-sm: 0 4px 14px rgba(59, 31, 10, 0.08);
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--accent);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, #FAEAD0, var(--paper)); }
.grid { display: grid; gap: 1.5rem; }
.two-col { grid-template-columns: repeat(2, 1fr); }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(253, 245, 230, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192, 90, 46, 0.18);
}
.brand {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-list { display: flex; gap: 1.5rem; }
.nav-list a {
  color: var(--deep-brown); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; padding: 0.25rem 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav-list a:hover::after, .nav-list a:focus::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 6px; }
.nav-toggle-bar { display: block; width: 26px; height: 2px; background: var(--deep-brown); border-radius: 2px; transition: var(--transition); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid rgba(192, 90, 46, 0.2);
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-list.open { max-height: 360px; padding: 0.5rem 1.5rem 1rem; }
  .nav-list li { border-top: 1px solid rgba(192, 90, 46, 0.12); }
  .nav-list li:first-child { border-top: 0; }
  .nav-list a { display: block; padding: 0.75rem 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white); padding: 7rem 1.25rem 4rem;
  background: linear-gradient(135deg, #5c2a10, #8a3c14 55%, #b85620);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 160, 23, 0.22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(192, 90, 46, 0.35), transparent 50%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.8rem;
  margin: 0 0 1rem; color: var(--soft-gold); font-weight: 700;
}
.hero-names {
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-date {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0 0 1.25rem; color: rgba(255,255,255,0.95);
}
.hero-message { font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; color: rgba(255,255,255,0.92); }

/* Countdown */
.countdown {
  display: flex; justify-content: center; align-items: flex-start; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 auto 0.75rem;
}
.countdown-unit {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 0.75rem 0.5rem; min-width: 70px;
  backdrop-filter: blur(4px);
}
.countdown-num {
  font-family: var(--font-head); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700;
  display: block; line-height: 1; color: var(--white);
}
.countdown-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--soft-gold);
}
.countdown-sep {
  font-family: var(--font-head); font-size: 1.8rem; color: var(--soft-gold);
  align-self: center; padding-top: 0.5rem;
}
.countdown-note { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin: 0 0 1.5rem; }

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 1.5rem; color: rgba(255,255,255,0.85);
  animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem;
  border: 2px solid transparent; transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ===== Section heads ===== */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem;
  color: var(--accent); font-weight: 700; margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--deep-brown); margin: 0; }
.section-sub { color: var(--teal); font-style: italic; margin-top: 0.75rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1rem 0 0; }
.divider span { width: 50px; height: 2px; background: var(--soft-gold); display: block; }

/* ===== Cards ===== */
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(192,90,46,0.12);
}
.location-card h3 { color: var(--accent); font-size: 1.5rem; margin-bottom: 0.5rem; }
.location-card .place { font-weight: 700; color: var(--deep-brown); margin: 0 0 0.5rem; }
.location-card .address { color: rgba(59,31,10,0.8); margin: 0 0 1rem; }
.card-link { font-weight: 700; font-size: 0.9rem; }

/* ===== Location single ===== */
.location-single { max-width: 640px; margin: 0 auto; }
.location-card { text-align: center; }
.card-links { margin: 0; }

/* ===== Schedule ===== */
.schedule { margin-top: 2.5rem; }
.schedule-title { text-align: center; color: var(--deep-brown); font-size: 1.5rem; margin-bottom: 1rem; }
.schedule-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 640px; margin: 0 auto; }
.schedule-list li {
  display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 1rem;
  background: var(--white); padding: 0.9rem 1.2rem; border-radius: 10px;
  border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm);
}
.schedule-list .time { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 1rem; }
.schedule-list .event { color: var(--deep-brown); }
@media (max-width: 520px) {
  .schedule-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .schedule-list .time { font-size: 0.95rem; }
}

/* ===== Info notes ===== */
.info-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.info-note {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: rgba(212, 160, 23, 0.1); border: 1px dashed var(--soft-gold);
  padding: 1rem 1.2rem; border-radius: 10px;
}
.info-icon { font-size: 1.4rem; line-height: 1; }
.info-note p { margin: 0; color: var(--deep-brown); }
.info-note strong { color: var(--accent); }
@media (max-width: 520px) { .info-notes { grid-template-columns: 1fr; } }

/* ===== Dress code ===== */
.dress-card {
  background: var(--white); border-radius: var(--radius); padding: 2.5rem;
  text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(192,90,46,0.15);
  max-width: 640px; margin: 0 auto;
}
.dress-lead { font-size: 1.15rem; color: var(--deep-brown); margin: 0 0 1.5rem; }
.dress-list { display: flex; flex-direction: column; gap: 0.85rem; max-width: 480px; margin: 0 auto 1.5rem; text-align: left; }
.dress-list li { display: flex; align-items: center; gap: 0.75rem; }
.dress-icon { font-size: 1.3rem; }
.color-swatches { display: flex; justify-content: center; gap: 0.5rem; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--white); box-shadow: var(--shadow-sm); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  margin: 0; position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: var(--shadow-sm); background: var(--white);
}
.gallery-item img {
  width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(59,31,10,0.85), transparent);
  color: var(--white); font-size: 0.78rem; padding: 1.4rem 0.75rem 0.6rem;
  text-align: center; font-style: italic;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery-credit { text-align: center; margin-top: 1.75rem; font-style: italic; }

/* Gallery placeholder for inside-the-barn photos (to be added) */
.gallery-placeholder .placeholder {
  width: 100%; aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: repeating-linear-gradient(45deg, rgba(15,139,141,0.08) 0 12px, rgba(253,245,230,0.6) 12px 24px);
  border: 2px dashed var(--teal); border-radius: 12px; color: var(--teal);
  font-size: 0.85rem; text-align: center; font-style: italic; padding: 1rem;
}
.gallery-placeholder .placeholder span:first-child { font-size: 2rem; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: var(--white); border: 1px solid rgba(192,90,46,0.15);
  border-radius: 10px; padding: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; font-family: var(--font-head);
  color: var(--deep-brown); font-size: 1.05rem; list-style: none; position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); transition: transform var(--transition);
  font-family: var(--font-body); font-weight: 300;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: rgba(59,31,10,0.85); }

/* ===== Contact ===== */
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 2.5rem;
  text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(192,90,46,0.15);
}
.contact-lead { font-size: 1.1rem; color: var(--deep-brown); margin: 0 0 1.75rem; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; margin: 0 auto 1.5rem; }
.contact-list li {
  display: flex; flex-direction: column; gap: 0.15rem; text-align: center;
  padding: 0.85rem 1rem; background: rgba(212,160,23,0.1); border-radius: 10px;
}
.contact-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; color: var(--accent); font-weight: 700; }
.contact-value { color: var(--deep-brown); font-weight: 400; }
.contact-thanks { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--accent); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #3B1F0A, #5c2a10);
  color: rgba(255,255,255,0.85); text-align: center; padding: 3rem 0;
}
.footer-names { font-family: var(--font-head); font-size: 1.6rem; color: var(--white); margin: 0 0 0.3rem; }
.footer-date { margin: 0 0 0.75rem; font-style: italic; }
.footer-links a { color: var(--soft-gold); }
.footer-links a:hover { color: var(--white); }
.footer-made { margin: 1.25rem 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}