/* ============ base ============ */
:root{--ink:#2b2b2b;--accent:#5f7f63;--bg:#fafbf7;--alt:#eaf0e6;--line:#dfe8dc;--brown:radial-gradient(circle at 25% 40%,#86a38a 0,#6a8a6f 55%,#506d56 100%)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;overflow-x:clip;font-family:Lato,sans-serif;font-weight:300;color:var(--ink);background:var(--bg);line-height:1.6}
h1,h2{font-family:'Cormorant Garamond',serif;font-weight:600;text-align:center}
h2{font-size:2.2rem;margin:0 0 1rem}
h2::after{content:"";display:block;height:30px;margin:.4rem auto 0;background:url(/img/divider.svg) center/180px no-repeat}
a{color:var(--accent)}
.lead{font-size:1.1rem}
.hint{margin:.8rem 0 0;font-size:.9rem;opacity:.8}

/* ============ nav ============ */
nav{position:sticky;top:0;z-index:5;display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;padding:.8rem;background:rgba(250,251,247,.95);border-bottom:1px solid #d9e3d5}
nav a{color:var(--ink);text-decoration:none;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase}
nav a.active{color:var(--accent);border-bottom:2px solid var(--accent)}

/* ============ hero (phones first; wide-screen layout is in the media query at the bottom) ============ */
.hero{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:85vh;min-height:85svh;text-align:center;padding:5rem 1.5rem;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.45);background:var(--brown)}
.hero>*{position:relative;z-index:1}
.hero h1{font-size:clamp(2.8rem,9vw,5.5rem);margin:.2rem 0}
.hero .btn{text-shadow:none}
.eyebrow{letter-spacing:.3em;text-transform:uppercase;font-size:.85rem}
.date{font-size:1.4rem}
/* home: photo fills the screen, text sits low so it doesn't cover faces */
.hero.home{justify-content:flex-end;padding-bottom:5.5rem;background:linear-gradient(rgba(30,20,20,.1) 0%,rgba(30,20,20,.15) 40%,rgba(30,20,20,.7) 100%),url(/photos/hero.jpg) center 20%/cover #6a8a6f}
/* other pages: shorter banner */
.hero.short{min-height:44vh;min-height:44svh;padding:4rem 1.5rem}
.hero.maui{background:linear-gradient(rgba(20,40,60,.25),rgba(20,30,40,.5)),url(/photos/maui.jpg) center/cover,linear-gradient(180deg,#f7b267 0%,#f4845f 35%,#4aa3b8 70%,#1d6f8a 100%)}

/* ============ sections & cards ============ */
section{position:relative;max-width:760px;margin:0 auto;padding:3rem 1rem;text-align:center}
section>*{position:relative;z-index:1}
section.alt{max-width:none;background:var(--alt)}
section.alt>*{max-width:900px;margin-left:auto;margin-right:auto}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:2rem 0}
.card{background:#fff;padding:1.2rem;border:1px solid var(--line);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.card h3{margin:0 0 .4rem;font-family:'Cormorant Garamond',serif}
.timeline{list-style:none;padding:0}
.timeline li{padding:.6rem 0;border-bottom:1px solid #cfdccb;font-size:1.1rem}
.timeline b{color:var(--accent);margin-right:.8rem}
.notice{max-width:560px;margin:1rem auto;padding:1rem 1.2rem;background:#fff;border-left:4px solid var(--accent);border-radius:6px;text-align:left;font-size:.98rem;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.notice.center{text-align:center;border-left:0;border-top:4px solid var(--accent)}

/* ============ forms ============ */
form{text-align:left;max-width:520px;margin:1.5rem auto}
label{display:block;margin:.9rem 0;font-size:.95rem}
label.inline{display:inline-block;margin-right:1rem}
input,textarea{width:100%;padding:.65rem;border:1px solid #c9d6c6;border-radius:6px;font:inherit;font-size:16px;background:#fff;margin-top:.25rem} /* 16px stops iOS zooming into fields */
input[type=radio]{width:auto;margin-right:.3rem}
fieldset{border:0;padding:0;margin:1rem 0}
.guests{background:#fff;border:1px solid var(--line);border-radius:8px;padding:.2rem 1rem .5rem;margin:1rem 0}
.guests[hidden]{display:none}
.btn{display:inline-block;min-height:46px;background:var(--accent);color:#fff;border:0;padding:.8rem 2rem;border-radius:999px;font:inherit;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;text-decoration:none;margin-top:1rem}
.btn:hover{opacity:.9}
.btn:disabled{opacity:.5}
form .btn{display:block;margin:1.5rem auto 0}
.msg{text-align:center;min-height:1.4em}
.msg.err{color:#b00020}
.msg.ok{color:#2e7d32}

/* ============ gallery ============ */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;cursor:zoom-in;transition:transform .2s}
.gallery img:hover{transform:scale(1.02)}
#lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;z-index:20;cursor:zoom-out}
#lightbox[hidden]{display:none}
#lightbox img{max-width:94vw;max-height:94vh}

/* ============ FAQ ============ */
.faq{text-align:left;margin:1rem 0 2rem}
.faq details{background:#fff;border:1px solid var(--line);border-radius:8px;margin:.7rem 0;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.faq summary{cursor:pointer;padding:1rem 1.2rem;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.25rem;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-size:1.5rem;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin:0;padding:0 1.2rem 1.1rem}

/* ============ honeymoon: ways to give ============ */
.give{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:2rem 0}
.give .card{display:flex;flex-direction:column;align-items:center;gap:.3rem}
.give .handle{font-size:1.15rem;font-weight:400;word-break:break-all;margin:.2rem 0}
.give .btn{margin-top:.6rem}

/* ============ footer ============ */
footer{background:var(--alt);text-align:center;padding:2rem;font-family:'Cormorant Garamond',serif;font-size:1.3rem}
footer .credit{font-family:Lato,sans-serif;font-size:.8rem;letter-spacing:.08em;opacity:.7;margin:.6rem 0 0}

/* ============ flowers (decorative, behind content) ============ */
.hero::before,.hero::after,section::before,section::after,footer::before,footer::after{content:"";position:absolute;z-index:0;aspect-ratio:1;background:url(/img/floral.svg) center/contain no-repeat;pointer-events:none}
.hero::before,.hero::after{width:clamp(110px,30vw,300px)}
.hero::before{top:0;left:0}
.hero::after{bottom:0;right:0;transform:rotate(180deg)}
.hero.home::before,.hero.home::after{display:none} /* phones: keep the main photo clear */
.hero.maui::before,.hero.maui::after{display:none} /* honeymoon photo: never any flowers */
/* full-width bands so they hug the screen edges even in the narrow centered columns */
section::before,section::after{width:clamp(90px,22vw,200px);opacity:.3}
section::before{top:0;left:calc(50% - 50vw)}
section::after{bottom:0;right:calc(50% - 50vw);transform:rotate(180deg)}
section.alt::before{left:auto;right:calc(50% - 50vw);transform:rotate(90deg)}
section.alt::after{right:auto;left:calc(50% - 50vw);transform:scaleY(-1)}
footer{position:relative;overflow:hidden}
footer>*{position:relative;z-index:1}
footer::before,footer::after{width:clamp(80px,20vw,150px);opacity:.55;bottom:0}
footer::before{left:0}
footer::after{right:0;transform:scaleX(-1)}

/* ============ small phones: nav scrolls sideways instead of wrapping ============ */
@media (max-width:600px){
  nav{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;gap:1rem;padding:.7rem 1rem;scrollbar-width:none}
  nav::-webkit-scrollbar{display:none}
  nav a{white-space:nowrap;font-size:.8rem}
  h2{font-size:1.9rem}
  .date{font-size:1.15rem}
}

/* ============ tablets and up ============ */
@media (min-width:601px){
  section{padding:4rem 1.2rem}
  .gallery{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
}

/* ============ wide screens: show the vertical hero photo whole, beside the text, with flowers ============ */
@media (min-width:800px){
  .hero{min-height:92vh;min-height:92svh}
  .hero::before,.hero::after{width:min(46vw,300px)}
  .hero.home::before,.hero.home::after{display:block}
  .hero.home{min-height:min(92vh,880px);justify-content:center;align-items:flex-start;text-align:left;padding:4rem 6vw 4rem 8vw;
    background:url(/photos/hero.jpg) right 7vw center/auto 88% no-repeat,var(--brown)}
  .hero.home>*{max-width:48%;text-align:left}
  .hero.home::after{right:auto;left:0;transform:scaleY(-1)}
}
