/* =========================================================================
   WEDDING SITE — "Kuwohi Sunrise" theme
   Color palette:
     Pre-Dawn Slate     #2B3A52
     Sunrise Orange     #D4651A
     Dawn Rose          #A84F6E
     Morning Mist       #F0EAE2
     Charcoal           #27303F
   ========================================================================= */

/* ─── Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #2B3A52;   /* pre-dawn slate */
  --amber:   #D4651A;   /* sunrise orange */
  --sienna:  #A84F6E;   /* dawn rose */
  --cream:   #F0EAE2;   /* morning mist */
  --cream-dk:#E6D9CE;
  --charcoal:#27303F;
  --white:   #FDFAF6;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --radius: 6px;
  --shadow: 0 2px 16px rgba(44,44,44,.12);
  --transition: 0.2s ease;

  scroll-behavior: smooth;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a   { color: var(--amber); }
a:hover { color: var(--sienna); }

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--green);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

/* ─── Layout helpers ──────────────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow{ max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }
.section          { padding: 5rem 0; }
.section--cream   { background: var(--cream); }

/* ─── Section badge (trail marker label) ─────────────────────────────── */
.section-badge {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: .25rem .8rem;
  margin: 0 auto 1rem;
  width: fit-content;
}

.section-title    { margin-bottom: .75rem; text-align: center; }
.section-subtitle {
  color: #555;
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary  { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: #1a2638; color: var(--cream); }
.btn--outline  { background: transparent; border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--cream); }
.btn--sm       { padding: .45rem 1rem; font-size: .85rem; }
.btn--lg       { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--placeholder { cursor: default; opacity: .6; }

/* ─── Wood-grain card ─────────────────────────────────────────────────── */
.wood-card {
  background: var(--white);
  border: 1px solid var(--cream-dk);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Subtle wood-grain via repeating gradient */
  background-image:
    repeating-linear-gradient(
      92deg,
      rgba(139,69,19,.018) 0px,
      rgba(139,69,19,.018) 1px,
      transparent 1px,
      transparent 28px
    );
  padding: 1.75rem;
}

/* ─── Dividers ────────────────────────────────────────────────────────── */
.divider { width: 100%; overflow: hidden; line-height: 0; }
.divider--topo {
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='40'%3E%3Cpath d='M0 20 Q100 5 200 20 T400 20 T600 20 T800 20' fill='none' stroke='%232B3A52' stroke-width='1' opacity='.25'/%3E%3Cpath d='M0 28 Q100 13 200 28 T400 28 T600 28 T800 28' fill='none' stroke='%232B3A52' stroke-width='1' opacity='.18'/%3E%3Cpath d='M0 12 Q100 0 200 12 T400 12 T600 12 T800 12' fill='none' stroke='%23D4651A' stroke-width='1' opacity='.15'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 800px 40px;
}
.divider--fern { height: 60px; }
.divider--fern svg { width: 100%; height: 60px; }

/* ─── Sticky Nav ──────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,237,224,.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--amber);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(44,44,44,.1); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(20,25,40,.52) 0%,
      rgba(20,25,40,.28) 100%
    ),
    url('../images/banner.JPG');
  background-size: cover;
  background-position: center;
}
.hero-overlay.topo-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cpath d='M0 300 Q150 250 300 300 T600 300' fill='none' stroke='white' stroke-width='0.8' opacity='.08'/%3E%3Cpath d='M0 320 Q150 270 300 320 T600 320' fill='none' stroke='white' stroke-width='0.8' opacity='.06'/%3E%3Cpath d='M0 280 Q150 230 300 280 T600 280' fill='none' stroke='white' stroke-width='0.8' opacity='.06'/%3E%3Cpath d='M0 340 Q150 290 300 340 T600 340' fill='none' stroke='white' stroke-width='0.8' opacity='.05'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 700px;
  color: white;
}
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: .75rem;
}
.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: white;
  margin-bottom: .5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-meta {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}
.hero-submeta {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
}
.hero-sep { margin: 0 .5rem; opacity: .6; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-actions .btn--primary  { background: var(--amber); border-color: var(--amber); color: white; }
.hero-actions .btn--primary:hover { background: #a84d14; }
.hero-actions .btn--outline  { border-color: rgba(255,255,255,.7); color: white; }
.hero-actions .btn--outline:hover { background: rgba(255,255,255,.15); }

/* Countdown */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.countdown-unit span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  min-width: 3ch;
  text-align: center;
}
.countdown-unit small {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* ─── Event Details ───────────────────────────────────────────────────── */
.event-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.event-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--cream-dk);
  border-radius: var(--radius);
  background: var(--cream);
}
.event-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--amber);
}
.event-card__icon svg { width: 100%; height: 100%; }
.event-card h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4rem;
}
.event-card p { color: var(--charcoal); }

/* ─── Schedule ────────────────────────────────────────────────────────── */
.schedule-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}
.schedule-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.schedule-tab--active,
.schedule-tab:hover { background: var(--green); color: var(--cream); }

.schedule-panel { display: none; max-width: 600px; margin: 0 auto; }
.schedule-panel--active { display: block; }

/* Trail timeline */
.trail-timeline { list-style: none; padding: 0; position: relative; }
.trail-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream-dk);
}
.trail-event {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.trail-marker {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white);
}
.trail-event__body { padding-top: .4rem; }
.trail-event__time {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .2rem;
}
.trail-event__title { margin-bottom: .4rem; font-size: 1.1rem; }
.trail-event__desc  { color: #555; font-size: .95rem; margin-bottom: .3rem; }
.trail-event__location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  color: var(--sienna);
}
.icon-pin { width: 12px; height: 12px; fill: var(--sienna); flex-shrink: 0; }

/* ─── Activity grid ───────────────────────────────────────────────────── */
.explore-category-title {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--cream-dk);
  padding-bottom: .5rem;
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.activity-card { overflow: hidden; }
.activity-card__img img { width: 100%; height: 180px; object-fit: cover; }
.activity-card__body { padding: 1.25rem; }
.activity-card__body h4 { margin-bottom: .4rem; font-size: 1rem; }
.activity-card__body p  { font-size: .9rem; color: #555; margin-bottom: .6rem; }
.activity-card__addr    { font-size: .8rem; color: #888; }
.activity-card__cat {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: .4rem;
  font-weight: 700;
}
.link-arrow { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--amber); }
.link-arrow:hover { color: var(--sienna); }
.link-arrow--placeholder { color: #aaa; cursor: default; }

/* ─── Map ─────────────────────────────────────────────────────────────── */
.map-container {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
  border: 1px solid var(--cream-dk);
  box-shadow: var(--shadow);
}

/* ─── Stay grid ───────────────────────────────────────────────────────── */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.stay-card { overflow: hidden; }
.stay-card__img img { width: 100%; height: 180px; object-fit: cover; }
.stay-card__body { padding: 1.5rem; }
.stay-card__body h3 { margin: .5rem 0 .5rem; font-size: 1.1rem; }
.stay-card__body p  { font-size: .9rem; color: #555; margin-bottom: .4rem; }
.stay-card__type {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
}
.stay-card__type--hotel  { background: rgba(43,58,82,.12); color: var(--green); }
.stay-card__type--airbnb { background: rgba(212,101,26,.12); color: var(--sienna); }
.stay-card__addr  { font-size: .8rem; color: #888; margin-bottom: .2rem; }
.stay-card__dist  { font-size: .8rem; color: var(--amber); font-weight: 600; margin-bottom: .75rem; }

/* ─── Registry ────────────────────────────────────────────────────────── */
.registry-placeholder {
  text-align: center;
  padding: 3rem 2rem;
}
.registry-placeholder__compass { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.registry-placeholder h3 { margin-bottom: .75rem; font-size: 1.4rem; }
.registry-placeholder p  { color: #555; max-width: 42ch; margin: 0 auto; }

/* ─── RSVP Info ───────────────────────────────────────────────────────── */
.rsvp-info__card { max-width: 560px; margin: 0 auto; }
.rsvp-info__deadline {
  background: rgba(212,101,26,.1);
  border-left: 3px solid var(--amber);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
  font-size: .95rem;
}

/* ─── RSVP Form page ──────────────────────────────────────────────────── */
.rsvp-header { text-align: center; margin-bottom: 2rem; }
.rsvp-form { display: flex; flex-direction: column; gap: 2.25rem; }

fieldset { border: none; padding: 0; margin: 0; min-width: 0; }

.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group--indent { padding-left: 1rem; }
.form-label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.form-label__count { font-weight: 400; font-size: .8rem; color: var(--amber); }
.form-hint { font-size: .85rem; color: #777; }
.form-input, .form-textarea {
  border: 1.5px solid var(--cream-dk);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43,58,82,.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { color: #c0392b; font-size: .85rem; }

/* Radio group */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .95rem;
  padding: .55rem 1.1rem;
  border: 2px solid var(--cream-dk);
  border-radius: 999px;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option:has(input:checked) {
  border-color: var(--green);
  background: rgba(43,58,82,.06);
}
.radio-option input[type="radio"] { accent-color: var(--green); }

/* Checkbox cards for food */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 2px solid var(--cream-dk);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.checkbox-card:hover { border-color: var(--amber); }
.checkbox-card:has(input:checked) {
  border-color: var(--green);
  background: rgba(43,58,82,.05);
  box-shadow: 0 0 0 1px var(--green);
}
.checkbox-card--veg { border-style: dashed; }
.checkbox-card input[type="checkbox"] { accent-color: var(--green); margin-top: .2rem; flex-shrink: 0; }
.checkbox-card__inner { display: flex; flex-direction: column; gap: .2rem; }
.checkbox-card__name { font-weight: 600; font-size: .9rem; }
.checkbox-card__desc { font-size: .8rem; color: #666; }
/* Disabled (max reached) */
.checkbox-card--disabled {
  opacity: .45;
  pointer-events: none;
}

/* Song fields */
.song-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* Submit row */
.form-submit { text-align: center; padding-top: .5rem; }

/* ─── RSVP linked-guest sections ─────────────────────────────────────── */
.rsvp-person-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.rsvp-person-divider {
  border: none;
  border-top: 1px dashed var(--cream-dk);
  margin: 2rem 0;
}

/* ─── RSVP Confirmed ──────────────────────────────────────────────────── */
.confirmed-card { text-align: center; padding: 3rem 2rem; }
.confirmed-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.confirmed-msg  { color: #555; margin: .75rem 0 1.5rem; font-size: 1.05rem; }
.confirmed-details {
  text-align: left;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .95rem;
}
.confirmed-details--linked {
  border-top: 1px dashed var(--cream-dk);
  padding-top: 1rem;
  margin-top: .25rem;
}
.confirmed-details__heading { margin-bottom: .4rem; }
.confirmed-person-label {
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bark);
  margin-bottom: .5rem;
}
.confirmed-plus-one {
  border-top: 1px dashed var(--cream-dk);
  margin-top: 1rem;
  padding-top: 1rem;
}

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

/* ─── Flash messages ──────────────────────────────────────────────────── */
.flash-container { padding: 1rem 1.5rem; }
.flash {
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.flash--success { background: rgba(43,58,82,.1); border-left: 3px solid var(--green); color: var(--green); }
.flash--error   { background: rgba(192,57,43,.08); border-left: 3px solid #c0392b;   color: #c0392b; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green);
  color: rgba(245,237,224,.8);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.footer-names { font-family: var(--font-heading); font-size: 1.2rem; color: var(--cream); margin-bottom: .3rem; }
.footer-date  { font-size: .9rem; margin-bottom: .5rem; }
.footer-contact { font-size: .85rem; }
.footer-contact a { color: var(--amber); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dk);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }

  .song-inputs { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .countdown { gap: 1rem; }
  .countdown-unit span { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .checkbox-grid { grid-template-columns: 1fr; }
  .schedule-tabs { gap: .35rem; }
  .schedule-tab  { font-size: .8rem; padding: .45rem .9rem; }
}
