/* ============================================================
   Richard & Maz — Wedding Site v1
   Palette: blush coral / cream / charcoal / soft gold
   ============================================================ */

@font-face {
  font-family: 'Bright Angels';
  src: url('../fonts/Bright Angels.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --coral:      #e98b86;
  --coral-deep: #d96f6a;
  --blush:      #f7e7e3;
  --cream:      #fbf7f3;
  --ink:        #3a3330;
  --muted:      #8a807a;
  --gold:       #c9a36a;
  --white:      #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script:'Great Vibes', cursive;
  --display: 'Bright Angels', var(--script);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--coral-deep);
  margin: 0 0 .8rem;
}
.eyebrow.light { color: #f3d4cf; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ink);
}
.section-title.light { color: #fff; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 1.1rem;
}
.lead:last-child { margin-bottom: 0; }
.lead.light { color: rgba(255,255,255,.92); }
.muted-note {
  color: var(--muted);
  font-size: .92rem;
  font-style: italic;
  margin-top: 1.4rem;
}
.amp, .amp-script { color: var(--coral); }
.amp-script { font-family: var(--script); font-weight: 400; }

.title-flourish { margin: 1rem auto 1.6rem; width: 80px; opacity: .9; }
.title-flourish img { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .35s var(--ease);
  border: 1.5px solid transparent;
}
.btn-light {
  background: var(--white);
  color: var(--coral-deep);
  box-shadow: 0 12px 30px rgba(217,111,106,.25);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(217,111,106,.35); }
.btn-outline {
  background: transparent;
  border-color: var(--coral);
  color: var(--coral-deep);
}
.btn-outline:hover { background: var(--coral); color: #fff; }
.btn-stay {
  background: var(--coral);
  color: #fff;
  padding: 13px 26px;
  font-size: .72rem;
  box-shadow: 0 8px 20px rgba(217,111,106,.22);
}
.btn-stay:hover { background: var(--coral-deep); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(251,247,243,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(58,51,48,.08);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 44px;
  position: relative;
}
.nav-groups { display: contents; }

.brand { grid-column: 2; justify-self: center; flex-shrink: 0; }
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  transform: translateY(-65%); /* logo's monogram sits low in its frame — nudge up to align with nav text */
  filter: drop-shadow(0 1px 10px rgba(0,0,0,.45));
  transition: height .4s var(--ease), filter .4s var(--ease);
}
.scrolled .brand-logo {
  height: 44px;
  filter: invert(1) drop-shadow(0 1px 4px rgba(0,0,0,.08));
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav-left { grid-column: 1; justify-self: end; }
.main-nav-right { grid-column: 3; justify-self: start; }
.main-nav a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
  position: relative;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.scrolled .main-nav a { text-shadow: none; }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--coral);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.scrolled .main-nav a { color: var(--ink); }
.main-nav a.nav-cta {
  background: var(--coral);
  color: #fff;
  padding: 9px 22px;
  border-radius: 999px;
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover { background: var(--coral-deep); }
.scrolled .main-nav a.nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: #fff; border-radius: 2px;
  transition: all .3s var(--ease);
}
.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   HERO  (stylish image-collage background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #16110f;
  z-index: 0;
  filter: saturate(.9) brightness(.86) contrast(1);
  animation: kenburns 50s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}
/* layered scrim: top gradient (nav) + soft warm tint + radial vignette behind the headline */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* darken the top so the nav + logo always read (unchanged — nav is dialled in) */
    linear-gradient(to bottom, rgba(20,15,14,.72) 0%, rgba(20,15,14,.18) 18%, rgba(20,15,14,0) 32%),
    /* lighter warm brand tint so the photos show through */
    linear-gradient(165deg, rgba(217,111,106,.13) 0%, rgba(58,51,48,.17) 100%),
    /* radial spotlight: clear behind the text, gentle vignette at the edges */
    radial-gradient(ellipse 82% 68% at 50% 50%, rgba(20,15,14,.20) 0%, rgba(20,15,14,.40) 62%, rgba(20,15,14,.62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 120px 24px 80px;
  max-width: 860px;
  margin: 0 auto;
}
/* soft contained scrim directly behind the words for guaranteed contrast */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -6% -8%;
  z-index: -1;
  background: radial-gradient(ellipse 60% 56% at 50% 48%, rgba(20,15,14,.55) 0%, rgba(20,15,14,.32) 55%, rgba(20,15,14,0) 78%);
  filter: blur(8px);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .82rem;
  font-weight: 600;
  margin: 0 0 .6rem;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
.hero-names {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: .98;
  margin: 0;
  text-shadow: 0 2px 28px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.4);
}
.hero-names .amp-script {
  font-family: var(--script);
  color: #ffd9d3;
  font-size: .7em;
  padding: 0 .12em;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 1.6rem auto 1.2rem; max-width: 360px;
}
.hero-rule span { height: 1px; flex: 1; background: rgba(255,255,255,.6); }
.hero-rule img { width: 64px; filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.5)); opacity: .95; }
.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .02em;
  margin: 0;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.hero-date sup { font-size: .55em; }
.hero-venue {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .82rem;
  font-weight: 600;
  margin: .5rem 0 0;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}

/* countdown */
.countdown {
  display: flex; justify-content: center; gap: 14px;
  margin: 2.4rem auto 2.4rem;
  flex-wrap: wrap;
}
.cd-unit {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 8px 10px;
  min-width: 78px;
}
.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}
.cd-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .62rem;
  margin-top: 6px;
  color: rgba(255,255,255,.85);
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #fff; font-size: 1.6rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }
.story { background: var(--cream); }

/* Details */
.details { background: var(--blush); }
.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
.venue-photo img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(58,51,48,.18);
}
.venue-info h3 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0 0 .4rem;
}
.venue-addr { color: var(--muted); margin: 0 0 1.6rem; }
.fact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.fact-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58,51,48,.1);
  font-size: 1.02rem;
}
.fact-list sup { font-size: .6em; vertical-align: super; line-height: 0; }
.fact-label {
  display: block;
  flex-shrink: 0;
  width: 110px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--coral-deep);
}

/* Schedule timeline */
.schedule { background: var(--cream); }
.timeline { list-style: none; padding: 0; margin: 56px 0 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--coral), var(--blush));
  transform: translateX(-50%);
}
.timeline li {
  display: flex; align-items: center; gap: 24px;
  width: 50%; position: relative; padding: 18px 40px;
}
.timeline li:nth-child(odd) {
  left: 0; justify-content: flex-end; text-align: right;
}
.timeline li:nth-child(even) { left: 50%; }
.timeline li::after {
  content: ''; position: absolute; top: 50%; width: 14px; height: 14px;
  background: var(--coral); border-radius: 50%; transform: translateY(-50%);
  border: 3px solid var(--cream);
}
.timeline li:nth-child(odd)::after  { right: -7px; }
.timeline li:nth-child(even)::after { left: -7px; }
.t-time {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--coral-deep); white-space: nowrap;
}
.t-event { font-size: 1.02rem; }

/* ============================================================
   ACCOMMODATION
   ============================================================ */
.stay { background: var(--blush); }
.stay .lead { margin-top: 1.4rem; }
.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.stay-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(58,51,48,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid rgba(233,139,134,.12);
}
.stay-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(58,51,48,.16); }
.stay-card.featured {
  border: 1.5px solid var(--coral);
  box-shadow: 0 22px 55px rgba(217,111,106,.2);
}
.stay-tag {
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .62rem;
  font-weight: 700;
  color: var(--coral-deep);
  background: var(--blush);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.stay-card.featured .stay-tag { background: var(--coral); color: #fff; }
.stay-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 .3rem;
}
.stay-meta { font-size: .82rem; color: var(--muted); margin: 0 0 1rem; font-weight: 500; }
.stay-desc { font-size: .96rem; color: var(--ink); margin: 0 0 1.4rem; flex: 1; }
.stay-price {
  font-size: .82rem; letter-spacing: .04em; color: var(--gold);
  font-weight: 700; margin: 0 0 1.4rem;
}
.stay-card .btn-stay { align-self: flex-start; }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  position: relative;
  background: url('../img/couple/lake-louise.jpg') center 30%/cover fixed no-repeat;
  padding: 120px 0;
}
.rsvp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(217,111,106,.92), rgba(58,51,48,.88));
}
.rsvp-content { position: relative; z-index: 2; }
.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: .98rem;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}
.field.full .btn { margin-top: 6px; justify-self: center; }

.btn-add-guest {
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,.55);
  color: rgba(255,255,255,.9);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  width: 100%;
}
.btn-add-guest:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.85); }

.extra-guest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 4px;
}
.extra-guest-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.remove-guest {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
}
.remove-guest:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 60px 0 50px;
}
.footer-names {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 .4rem;
}
.footer-meta { color: rgba(255,255,255,.7); letter-spacing: .1em; font-size: .9rem; margin: 0 0 1.4rem; }
.footer-meta sup { font-size: .6em; }
.footer-credit {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--coral);
  margin: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .details-grid { grid-template-columns: 1fr; gap: 36px; }
  .stay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-groups {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
  }
  .nav-groups.open { transform: translateX(0); }
  .main-nav { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav-left, .main-nav-right { order: initial; }
  .main-nav a { color: var(--ink) !important; font-size: 1rem; }
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--ink); }

  .section { padding: 72px 0; }
  .rsvp { background-attachment: scroll; }
  .rsvp-form { grid-template-columns: 1fr; }

  /* stack timeline to one side */
  .timeline::before { left: 8px; }
  .timeline li,
  .timeline li:nth-child(even),
  .timeline li:nth-child(odd) {
    width: 100%; left: 0; justify-content: flex-start; text-align: left;
    padding-left: 36px; flex-direction: column; align-items: flex-start; gap: 4px;
  }
  .timeline li::after,
  .timeline li:nth-child(odd)::after,
  .timeline li:nth-child(even)::after { left: 1px; right: auto; top: 22px; }
}
@media (max-width: 540px) {
  .stay-grid { grid-template-columns: 1fr; }
  .cd-unit { min-width: 60px; padding: 12px 6px 8px; }
  .cd-num { font-size: 1.7rem; }
  .countdown { gap: 8px; }
  .hero-names { font-size: clamp(2.1rem, 9.4vw, 3.4rem); line-height: 1.06; }
  .hero-names .amp-script { font-size: .62em; padding: 0 .06em; }
  .hero-eyebrow { letter-spacing: .26em; font-size: .72rem; }
  .hero-venue { letter-spacing: .16em; font-size: .74rem; }
  .hero-content { padding: 110px 20px 70px; }
  .hero-date { font-size: 1.4rem; }
}
