/* Philia Gifts — reusable garden wedding theme */
:root {
  --sage: #87927a;
  --sage-dark: #596650;
  --sage-deep: #3e493a;
  --sage-pale: #eef0e5;
  --cream: #f7f5ee;
  --paper: #fffdf8;
  --ink: #34382f;
  --muted: #777c70;
  --line: #d9ddcf;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b4c39f; outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 1rem; z-index: 1000; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.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; }
.site-header { height: 76px; padding: 0 max(5vw, 22px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,248,.96); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(89,102,80,.12); }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; text-decoration: none; color: var(--sage-deep); }
.brand span { font-style: italic; color: var(--sage); }
.site-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.8rem); align-items: center; }
.site-nav a { text-decoration: none; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { color: var(--sage-dark); }
.site-nav .nav-rsvp { border: 1px solid var(--sage-dark); padding: .65rem 1.2rem; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .6rem; }
.hero { min-height: min(790px, calc(100svh - 76px)); position: relative; display: grid; place-items: center; color: white; text-align: center; overflow: hidden; background: var(--sage-deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=90") center 48% / cover no-repeat; transform: scale(1.015); }
.hero-shade { background: linear-gradient(180deg, rgba(27,39,26,.35), rgba(27,39,26,.55) 55%, rgba(27,39,26,.67)); }
.hero-content { position: relative; z-index: 1; padding: 5rem 1.5rem; width: min(100%, 900px); }
.eyebrow { margin: 0 0 1rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; }
.eyebrow.light { color: #e8ebdf; }
.hero h1 { font: 400 clamp(3.6rem, 10vw, 7.7rem)/1.08 var(--serif); margin: .7rem 0 1rem; letter-spacing: -.045em; }
.hero h1 em { font-weight: 400; color: #dce2ce; }
.hero-subtitle { font: italic 1.15rem var(--serif); margin: 0; }
.hero-rule { margin: 2rem auto 1.3rem; display: flex; align-items: center; gap: .8rem; width: 120px; color: #e0e7d5; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.65); }
.hero-date { letter-spacing: .17em; font-size: .75rem; margin: 0 0 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid transparent; padding: .9rem 1.7rem; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { color: white; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.button-light:hover { background: rgba(255,255,255,.18); }
.button-dark { background: var(--sage-deep); color: white; width: 100%; }
.button-dark:hover { background: var(--sage-dark); }
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; align-items: center; gap: .7rem; color: white; text-decoration: none; font-size: .6rem; letter-spacing: .2em; white-space: nowrap; }
.scroll-cue span { height: 30px; width: 1px; background: rgba(255,255,255,.75); }
.section-pad { padding: 70px; }
.welcome, .details, .gallery-section, .attire, .closing { text-align: center; }
.welcome { background: var(--sage-pale); }
h2 { font: 400 clamp(2.3rem, 5.5vw, 4rem)/1.15 var(--serif); letter-spacing: -.025em; margin: 0 0 1.2rem; }
.intro-copy, .section-intro { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: .96rem; }
.flourish { color: var(--sage); font: 3rem var(--serif); margin: 1.4rem 0 2.5rem; }
.countdown-wrap { max-width: 650px; margin: 0 auto; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.3rem; }
.countdown div { display: flex; flex-direction: column; gap: .2rem; border-right: 1px solid #d2d8c7; }
.countdown div:last-child { border: 0; }
.countdown strong { font: 400 clamp(2rem, 5vw, 3.1rem) var(--serif); color: var(--sage-deep); }
.countdown span { font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; max-width: 1400px; margin: 0 auto; }
.story-photo {
  width: 80%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  background-image: url("images/h&j.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-one { background-image: url("images/h&j.png"); }
.story-copy { max-width: 520px; padding: 2rem 0; }
.story-copy h2 { margin-bottom: 1.5rem; }
.story-copy p:not(.eyebrow):not(.signature) { color: var(--muted); font-size: .95rem; }
.signature { color: var(--sage-dark); font: italic 1.5rem var(--serif); margin-top: 2rem; }
.details { background: var(--cream); }

.details-grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 3rem auto 5rem;
}

.detail-card {
  background: transparent;
  padding: 2.5rem 2rem;
  border: 0;
  text-align: center;
}

.detail-card + .detail-card {
  border-left: 1px solid var(--line);
}


.detail-icon {
  color: var(--sage);
  font: 1.8rem var(--serif);
  margin-bottom: 1.2rem;
  opacity: .7;
}

.detail-card .eyebrow { margin-bottom: .6rem; }
.detail-card h3, .schedule-block h3 { font: 400 1.7rem var(--serif); margin: .4rem 0; }
.detail-card p:not(.eyebrow) { color: var(--muted); margin: .35rem 0; }
.text-link { display: inline-block; margin-top: .7rem; color: var(--sage-dark); font-size: .78rem; text-underline-offset: 4px; }
.schedule-block { max-width: 620px; margin: 0 auto; }
.schedule-block h3 { margin-bottom: 1.5rem; }
.schedule { margin-top: 1.5rem; text-align: left; border-top: 1px solid var(--line); }
.schedule-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.schedule-item time { color: var(--sage-dark); font-weight: 700; font-size: .8rem; }
.gallery-section { max-width: 1440px; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; max-width: 1000px; margin: 3rem auto 1rem; }
.gallery-item { display: block; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--sage-pale); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-tall { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-note { color: var(--muted); font-size: .72rem; }
.attire { background: var(--sage-pale); }
.palette { display: flex; justify-content: center; margin: 2rem auto 1rem; }
.palette span { display: block; width: 48px; height: 48px; border-radius: 50%; margin-left: -5px; background: var(--swatch); border: 3px solid var(--sage-pale); box-shadow: 0 0 0 1px rgba(50,50,50,.08); }
.attire-note { color: var(--muted); font-size: .85rem; }
.rsvp-section { background: var(--sage-dark); color: white; }
.rsvp-inner { max-width: 560px; margin: 0 auto; }
.rsvp-inner h2 { text-align: center; }
.rsvp-inner > .eyebrow, .rsvp-copy { text-align: center; }
.rsvp-copy { color: #e3e8dc; margin: 0 auto 2rem; }
.rsvp-form { display: grid; gap: .65rem; }
.rsvp-form > label, .rsvp-form legend { font-size: .8rem; letter-spacing: .03em; }
.optional { color: #d2d8ca; font-size: .72rem; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]), .rsvp-form select, .rsvp-form textarea { width: 100%; padding: .85rem 1rem; background: #fbfcf7; border: 1px solid transparent; border-radius: 0; color: var(--ink); }
.rsvp-form fieldset { border: 1px solid rgba(255,255,255,.35); padding: 1rem; margin: .7rem 0; display: grid; gap: .7rem; }
.rsvp-form legend { padding: 0 .4rem; }
.radio-option { display: flex; gap: .6rem; align-items: center; font-size: .86rem; }
.radio-option input, .consent input { accent-color: var(--sage-deep); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .72rem !important; color: #e3e8dc; margin: .7rem 0; }
.consent input { margin-top: .35rem; flex-shrink: 0; }
.form-status { min-height: 1.5rem; font-size: .85rem; }
.demo-note { color: #e3e8dc; font-size: .72rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; }
.closing { background: var(--paper); }
.closing-flower { color: var(--sage); font-size: 2rem; margin-bottom: 1rem; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.site-footer { padding: 2rem 1.5rem; text-align: center; background: var(--sage-deep); color: white; font-size: .8rem; }
.site-footer p { margin: .2rem; }
.footer-tagline { color: #d4dccb; font-size: .7rem; }
.music-button { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .7rem 1rem; display: flex; align-items: center; gap: .55rem; background: rgba(62,73,58,.94); color: white; box-shadow: 0 5px 20px rgba(0,0,0,.12); cursor: pointer; font-size: .72rem; }
.music-icon { font-size: 1.1rem; }
.lightbox { width: min(92vw, 1100px); max-height: 90vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20,25,19,.9); }
.lightbox img { max-height: 85vh; width: 100%; object-fit: contain; }
.lightbox-close { position: absolute; right: -10px; top: -45px; border: 0; background: transparent; color: white; font-size: 2rem; cursor: pointer; }
@media (max-width: 800px) {
  .site-header { height: 68px; }
  .menu-toggle { display: block; z-index: 52; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 25px; height: 1px; background: var(--sage-deep); position: relative; transition: transform .2s; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -7px; }
  .menu-lines::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 68px 0 auto; background: var(--paper); padding: 1.4rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-rsvp { text-align: center; margin-top: .8rem; border: 1px solid var(--sage-dark); }
  .hero { min-height: calc(100svh - 68px); }
  .hero-image { background-position: 58% center; }
  .hero-content { padding: 4rem 1.2rem; }
  .story { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-photo { min-height: 380px; }
  .story-copy { padding: 0; }
  .details-grid { grid-template-columns: 1fr; max-width: 460px; margin-bottom: 4rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 170px 170px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: 1 / 3; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-date { font-size: .64rem; }
  .countdown { gap: .2rem; }
  .countdown strong { font-size: 1.8rem; }
  .countdown span { font-size: .56rem; letter-spacing: .08em; }
  .story-photo { min-height: 300px; }
  .schedule-item { grid-template-columns: 90px 1fr; gap: .7rem; font-size: .82rem; }
  .gallery { grid-template-rows: 170px 140px 140px; gap: 7px; }
  .gallery-note { font-size: .66rem; }
  .music-button { right: .7rem; bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.story-photo {
  min-height: 580px;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
 
}



@media (prefers-reduced-motion: reduce) {
  .story-photo {
    clip-path: none;
    transition: none;
  }
}


/* Our Story photo reveal */
.story-photo {
  animation: story-photo-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes story-photo-reveal {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-photo {
    animation: none;
  }
}


/* Wedding Day scroll reveal */
.details .detail-card,
.details .schedule-block {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.details .detail-card.is-revealed,
.details .schedule-block.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .details .detail-card,
  .details .schedule-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* Wedding Day botanical corner artwork */
.details {
  position: relative;
  isolation: isolate;
}

.details::before,
.details::after {
  content: "";
  position: absolute;
  top: 0;
  width: min(26vw, 330px);
  height: 320px;
  background-image: url("images/wedding-botanical.png");
  background-repeat: no-repeat;
  background-size: 200% auto;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
}

.details::before {
  left: 0;
  background-position: left top;
}

.details::after {
  right: 0;
  background-position: right top;
}

@media (max-width: 700px) {
  .details::before,
  .details::after {
    width: 42vw;
    height: 240px;
    opacity: 0.28;
  }
}


/* Garden Formal background illustration */
.attire {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("images/garden-formal.png");
  background-size: auto 100%;
background-position: center bottom;
background-color: #eef0e5;
  background-repeat: no-repeat;
  min-height: 650px;
}

.attire > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .attire {
    background-size: auto;
    min-height: 580px;
  }
}


/* Elegant monetary gift section */
.gift-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 90px 24px 100px;
  background-color: #f8f6ef;
  background-image: url("images/gift-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 650px;
}

.gift-section > * {
  position: relative;
  z-index: 1;
}

.gift-section h2 {
  max-width: 950px;
  margin: 18px auto 24px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.1;
}

.gift-message {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
  color: #77796d;
  font-size: 1.05rem;
}

.gift-signature {
  margin: 28px 0 0;
  color: #5d6654;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .gift-section {
    padding: 70px 22px 76px;
    background-position: center;
  }

  .gift-section h2 {
    font-size: 2.6rem;
  }

  .gift-message {
    font-size: 0.98rem;
  }
}
