/* =====================================================================
   Panagiotis & Rafaella — Wedding Invitation
   Palette:  Ivory #FBF5EC · Espresso #3E2E27 · Dusty Rose #C98B7B
             Antique Gold #AD8A4E · Sage #7C8B6F
   Typeface: EB Garamond (display + body)
===================================================================== */

:root{
  --ivory:#FBF5EC;
  --paper:#FFFFFF;
  --deep:#3E2E27;
  --deep-soft:#7A6B5F;
  --rose:#C98B7B;
  --rose-light:#F1DFD6;
  --gold:#AD8A4E;
  --gold-light:#E4D3B4;
  --sage:#7C8B6F;
  --line:rgba(62,46,39,.16);
  --shadow:0 24px 55px rgba(62,46,39,.12);
  --radius:2px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--deep);
  font-family:'Noto Sans', sans-serif;
  font-weight:400;
  font-size:18px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Noto Sans', sans-serif;
  font-weight:500;
  margin:0;
  color:var(--deep);
}
p{margin:0;}
a{color:inherit;}
img{max-width:100%;display:block;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}

/* Subtle paper-grain texture overlay for warmth */
.grain-overlay{
  position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family:'Noto Sans', sans-serif;
  font-style:italic;
  font-size:1.05rem;
  letter-spacing:.06em;
  color:var(--rose);
  margin:0 0 14px;
}
.eyebrow--center{text-align:center;}
.section-title{
  font-size:clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom:36px;
  font-weight:500;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 36px;
  font-family:'Noto Sans', sans-serif;
  font-size:.95rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:var(--radius);
  cursor:pointer;
  border:1px solid transparent;
  transition:all .25s ease;
}
.btn-primary{background:var(--deep);color:var(--ivory);}
.btn-primary:hover{background:var(--rose);}
.btn-outline{background:transparent;border-color:var(--deep);color:var(--deep);}
.btn-outline:hover{background:var(--deep);color:var(--ivory);}

/* ---------------- HERO ---------------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(160deg, #EADFC8 0%, #E7C9B9 45%, #D9AE9B 100%);
  color:var(--ivory);
  text-align:center;
  overflow:hidden;
}
.hero-media{
  position:absolute;inset:0;z-index:0;
}
.hero-photo{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(30,20,15,.45) 0%, rgba(30,20,15,.68) 100%);
}
.hero-inner{position:relative;z-index:2;padding:32px;max-width:720px;}
.hero-eyebrow{
  font-family:'Noto Sans', sans-serif;
  font-style:italic;
  font-size:1.15rem;letter-spacing:.08em;color:var(--gold-light);margin-bottom:20px;
  text-shadow:0 2px 18px rgba(0,0,0,.55);
}
.hero-names{
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:clamp(2rem, 8vw, 6rem);
  display:flex;align-items:center;justify-content:center;gap:.3em;
  flex-wrap:nowrap;
  white-space:nowrap;
  line-height:1.1;
  font-weight:400;
  color:#FFFFFF;
  text-shadow:0 2px 8px rgba(0,0,0,.35), 0 8px 32px rgba(0,0,0,.4);
}
.hero-amp{color:var(--gold-light);font-style:italic;font-size:.65em;}
.hero-rule{
  width:1px;height:44px;background:var(--gold-light);margin:28px auto;
  position:relative;
}
.hero-rule::before, .hero-rule::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  width:6px;height:6px;border-radius:50%;background:var(--gold-light);
}
.hero-rule::before{top:-3px;}
.hero-rule::after{bottom:-3px;}
.hero-date{font-size:1.25rem;letter-spacing:.06em;margin-bottom:8px;font-style:italic;text-shadow:0 2px 18px rgba(0,0,0,.55);}
.hero-venue{font-size:1rem;letter-spacing:.06em;color:var(--gold-light);text-shadow:0 2px 18px rgba(0,0,0,.55);}

[data-reveal]{opacity:0;transform:translateY(16px);animation:reveal .9s ease forwards;}
.hero-eyebrow{animation-delay:.15s;}
.hero-names{animation-delay:.35s;}
.hero-rule{animation-delay:.65s;}
.hero-date{animation-delay:.8s;}
.hero-venue{animation-delay:.95s;}
@keyframes reveal{to{opacity:1;transform:translateY(0);}}

.scroll-cue{
  position:absolute;bottom:34px;left:50%;transform:translateX(-50%);
  background:none;border:1px solid rgba(251,245,236,.5);border-radius:50%;
  width:38px;height:38px;cursor:pointer;
  z-index:2;
}
.scroll-cue span{
  display:block;width:1px;height:12px;background:var(--gold-light);margin:6px auto 0;
  animation:cueMove 1.6s ease-in-out infinite;
}
@keyframes cueMove{
  0%,100%{transform:translateY(0);opacity:.4;}
  50%{transform:translateY(6px);opacity:1;}
}

/* ---------------- Reveal-on-scroll sections ---------------- */
[data-animate]{opacity:0;transform:translateY(24px);transition:opacity .8s ease, transform .8s ease;}
[data-animate].in-view{opacity:1;transform:translateY(0);}

/* ---------------- TIMELINE ---------------- */
.timeline{
  background:var(--paper);
  padding:100px 32px 120px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.timeline .eyebrow--center{margin-bottom:44px;}

.amphitheatre{
  max-width:640px;margin:0 auto;position:relative;
  padding-left:48px;
}
.amphitheatre::before{
  content:"";position:absolute;left:11px;top:8px;bottom:8px;width:1px;
  background:linear-gradient(180deg, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
}
.tier{
  position:relative;
  display:flex;align-items:flex-start;gap:26px;
  padding-bottom:52px;
}
.tier:last-child{padding-bottom:0;}
.tier-marker{
  position:absolute;left:calc(-48px + 12px - (var(--ring) / 2));
  top:0;
  width:var(--ring);height:var(--ring);
  border-radius:50%;
  border:1px solid var(--gold);
  background:var(--paper);
}
.tier--highlight .tier-marker{background:var(--rose);border-color:var(--rose);}
.tier-content{padding-left:12px;}
.tier-time{
  display:block;font-family:'Noto Sans',sans-serif;font-style:italic;color:var(--rose);font-size:1.15rem;margin-bottom:4px;letter-spacing:.02em;
}
.tier-content h3{font-size:1.35rem;margin-bottom:4px;font-weight:500;}
.tier-content p{color:var(--deep-soft);font-size:1rem;letter-spacing:.02em;}
.tier--highlight .tier-content h3{color:var(--deep);}
.tier--highlight .tier-time{font-size:1.25rem;color:var(--rose);}

/* ---------------- LOCATION ---------------- */
.location{
  display:grid;grid-template-columns:1fr 1fr;
  min-height:560px;
}
.location-info{
  padding:100px 60px;display:flex;flex-direction:column;justify-content:center;
  background:var(--ivory);
}
.location-address{
  font-family:'Noto Sans',sans-serif;font-style:italic;font-size:1.3rem;margin:6px 0 22px;line-height:1.6;
}
.location-copy{color:var(--deep-soft);margin-bottom:32px;max-width:420px;font-size:1.05rem;}
.location-info .btn{align-self:flex-start;}
.location-map{min-height:340px;}
.location-map iframe{width:100%;height:100%;border:0;filter:sepia(.12) saturate(1.05) contrast(1.02);}

/* ---------------- RSVP ---------------- */
.rsvp{
  padding:110px 32px 130px;
  background:var(--paper);
  text-align:center;
  border-top:1px solid var(--line);
}
.rsvp .section-title{text-align:center;}
.rsvp-copy{color:var(--deep-soft);max-width:480px;margin:0 auto 44px;font-size:1.05rem;}
.rsvp-card{
  max-width:460px;margin:0 auto;
  background:var(--ivory);
  border:1px solid var(--line);
  padding:44px 38px;
  text-align:left;
  box-shadow:var(--shadow);
}
.rsvp-step label{
  display:block;font-size:.95rem;letter-spacing:.04em;font-style:italic;
  color:var(--deep-soft);margin-bottom:10px;
}
.rsvp-input-row{display:flex;gap:10px;}
.rsvp-input-row input, #attendCount{
  flex:1;
  font-family:'Noto Sans',sans-serif;
  font-size:1.05rem;
  padding:14px 16px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--deep);
  border-radius:var(--radius);
}
#attendCount{width:100%;margin-bottom:24px;}
.rsvp-input-row input:focus, #attendCount:focus{outline:2px solid var(--gold-light);outline-offset:1px;}
.rsvp-input-row .btn{white-space:nowrap;padding:14px 24px;}

.rsvp-message{min-height:20px;font-size:.95rem;margin-top:14px;color:var(--sage);font-style:italic;}
.rsvp-message.is-error{color:#A8503C;}

.rsvp-step--hidden{display:none;}
.rsvp-greeting{font-family:'Noto Sans',sans-serif;font-style:italic;font-size:1.35rem;margin-bottom:22px;}

.rsvp-guestlist{display:flex;flex-direction:column;gap:10px;margin-bottom:8px;}
.guest-check{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  background:var(--paper);
  font-size:1.05rem;
  cursor:pointer;
}
.guest-check input{width:16px;height:16px;accent-color:var(--rose);}
.guest-check.is-disabled{opacity:.45;cursor:not-allowed;}

.rsvp-actions{display:flex;justify-content:space-between;margin-top:26px;gap:12px;}
.rsvp-thankyou{
  font-family:'Noto Sans',sans-serif;font-style:italic;font-size:1.4rem;text-align:center;line-height:1.7;
}

/* ---------------- FOOTER / CONTACT ---------------- */
.site-footer{
  background:var(--deep);color:var(--ivory);
  padding:100px 32px 60px;
  text-align:center;
}
.site-footer .eyebrow{color:var(--gold-light);}
.contact-grid{
  display:flex;justify-content:center;gap:60px;flex-wrap:wrap;margin-bottom:70px;
}
.contact-card h3{color:var(--ivory);font-size:1.25rem;margin-bottom:10px;font-weight:500;}
.contact-card a{
  font-size:1.15rem;letter-spacing:.02em;color:var(--gold-light);text-decoration:none;
  border-bottom:1px solid rgba(228,211,180,.4);padding-bottom:2px;
}
.contact-card a:hover{color:var(--ivory);border-color:var(--ivory);}

.footer-note{font-size:.95rem;letter-spacing:.03em;color:rgba(251,245,236,.65);font-style:italic;}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px){
  .location{grid-template-columns:1fr;}
  .location-info{padding:80px 32px;}
  .location-map{min-height:320px;}
}
@media (max-width: 560px){
  .rsvp, .timeline{padding-left:20px;padding-right:20px;}
  .amphitheatre{padding-left:38px;}
  .tier-marker{left:calc(-38px + 10px - (var(--ring) / 2));}
  .rsvp-card{padding:32px 22px;}
  .contact-grid{gap:36px;}
  .rsvp-input-row{flex-direction:column;}
  body{font-size:17px;}
  .hero-inner{padding:24px 12px;}
  .hero-names{font-size:clamp(1.6rem, 8vw, 6rem);gap:.22em;}
}
