/* ═══════════════════════════════════════════════
   Tuğba & Ozan — Villa Grabau, Lucca · 11.09.2026
   Aesthetic: Tuscan dusk luxury — ivory paper,
   forest green, antique gold. Cormorant + Great Vibes.
   ═══════════════════════════════════════════════ */

:root {
  --ivory: #f4efe4;
  --paper: #efe8d8;
  --ink: #23301f;
  --forest: #17200f;
  --forest-2: #1d2a16;
  --gold: #c2a15c;
  --gold-soft: #d8c294;
  --cream-text: #ece5d3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ══════════ PRELOADER ══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem;
  transition: opacity .9s ease, visibility .9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex; align-items: baseline; gap: .9rem;
  color: var(--gold-soft);
}
.pre-letter {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: .12em;
  opacity: 0; animation: preFade 1.1s ease forwards;
}
.pre-letter:last-child { animation-delay: .35s; }
.pre-amp {
  font-family: var(--script);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold);
  opacity: 0; animation: preFade 1.1s ease forwards .18s;
}
.pre-line {
  height: 1px; width: 0; background: var(--gold);
  animation: preLine 1.4s cubic-bezier(.6,0,.2,1) forwards .3s;
}
@keyframes preFade { to { opacity: 1; } }
@keyframes preLine { to { width: min(220px, 40vw); } }

/* ══════════ LANG TOGGLE ══════════ */
.lang-toggle {
  position: fixed; top: 1.4rem; right: 1.6rem; z-index: 300;
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  background: rgba(23, 32, 15, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(194, 161, 92, .35);
  border-radius: 999px;
}
.lang-btn {
  font-family: var(--serif); font-size: .82rem;
  letter-spacing: .2em; cursor: pointer;
  background: none; border: none;
  color: rgba(236, 229, 211, .55);
  padding: .1rem .15rem;
  transition: color .3s;
}
.lang-btn.active { color: var(--gold-soft); }
.lang-btn:hover { color: var(--cream-text); }
.lang-sep { color: rgba(194,161,92,.5); font-size: .8rem; }

/* ══════════ ENVELOPE INTRO ══════════ */
.intro { height: 320vh; background: var(--forest); position: relative; }
.intro-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(70, 92, 48, .35), transparent 70%),
    var(--forest);
}
.envelope-scene { position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; }

.envelope {
  position: relative;
  /* büyük ekranda büyük taban: kart büyürken az upscale = net görüntü */
  width: min(48vh, 86vw, 520px);
  aspect-ratio: 0.72;
  perspective: 1400px;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
}
.env-back {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #ece3cf, #ddd2b8);
  border-radius: 3px;
}
.card {
  position: absolute; left: 4.5%; right: 4.5%;
  top: 3.5%; bottom: 3.5%;
  overflow: hidden; border-radius: 2px;
  transform: translateY(0);
  /* will-change yok: scroll durunca tarayıcı kartı güncel ölçekte yeniden rasterize eder = net görüntü */
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  z-index: 2;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.env-sides {
  position: absolute; inset: 0; z-index: 3;
}
.env-sides::before, .env-sides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, #ece2cd 0%, #dfd4b9 100%);
}
.env-sides::before {
  -webkit-clip-path: polygon(0 0, 50% 62%, 0 100%);
  clip-path: polygon(0 0, 50% 62%, 0 100%);
}
.env-sides::after {
  -webkit-clip-path: polygon(100% 0, 50% 62%, 100% 100%);
  clip-path: polygon(100% 0, 50% 62%, 100% 100%);
  background: linear-gradient(210deg, #ece2cd 0%, #dfd4b9 100%);
}
.env-pocket {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(150deg, #efe7d4 0%, #e2d7bd 100%);
  -webkit-clip-path: polygon(0 28%, 50% 62%, 100% 28%, 100% 100%, 0 100%);
  clip-path: polygon(0 28%, 50% 62%, 100% 28%, 100% 100%, 0 100%);
  border-radius: 3px;
  box-shadow: inset 0 -2px 8px rgba(120,100,60,.18);
}
.env-pocket::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 49.7%, rgba(120,100,60,.14) 50%, transparent 50.4%),
              linear-gradient(-115deg, transparent 49.7%, rgba(120,100,60,.14) 50%, transparent 50.4%);
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 63%;
  z-index: 4;
  transform-origin: top center;
  transform: rotateX(0deg);
  will-change: transform;
  transform-style: preserve-3d;
}
.env-flap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #f2ebd9, #e0d5ba);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.env-flap.open { z-index: 1; }
.wax-seal {
  position: absolute; left: 50%; top: 88%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d7345, #34461f 65%, #2b3a19);
  box-shadow: 0 3px 10px rgba(0,0,0,.4), inset 0 1px 3px rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
}
.wax-seal span {
  font-family: var(--serif); font-size: .95rem;
  letter-spacing: .12em; color: var(--gold-soft);
}
.scroll-hint {
  position: absolute; bottom: 4vh; left: 50%;
  transform: translateX(-50%);
  text-align: center; color: rgba(216, 194, 148, .8);
  font-size: .78rem; letter-spacing: .45em; text-transform: uppercase;
  transition: opacity .5s;
}
.scroll-line {
  width: 1px; height: 48px; margin: .8rem auto 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ══════════ SHARED ══════════ */
.section-label {
  font-size: .78rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold); text-align: center;
}
.section-label.light { color: var(--gold-soft); }
.section-title {
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-align: center; margin-top: .7rem;
  letter-spacing: .04em;
}
.section-title.light { color: var(--cream-text); }
.btn-gold, .btn-outline {
  display: inline-block;
  font-family: var(--serif); font-size: .85rem;
  letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  transition: all .35s ease;
}
.btn-gold {
  color: var(--forest);
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  border: 1px solid var(--gold);
}
.btn-gold:hover { filter: brightness(1.08); letter-spacing: .36em; }
.btn-outline {
  color: var(--cream-text);
  border: 1px solid rgba(216,194,148,.6);
  background: transparent;
}
.btn-outline:hover { background: rgba(216,194,148,.12); letter-spacing: .36em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(194,161,92,.10), transparent 60%),
    var(--ivory);
}
.hero-monogram svg { width: 92px; color: var(--gold); }
.mono-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px; letter-spacing: 2px;
  fill: currentColor; font-weight: 400;
}
.hero-kicker {
  margin-top: 2rem;
  font-size: .8rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold);
}
.hero-names {
  margin-top: 1.6rem;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 1.1; color: var(--ink);
}
.hero-names .amp { color: var(--gold); font-size: .55em; vertical-align: .18em; }
.hero-rule {
  width: 90px; height: 1px; background: var(--gold);
  margin: 2.2rem auto;
  position: relative;
}
.hero-rule::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(-50%,-50%) rotate(45deg);
}
.hero-date { font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: .28em; text-transform: uppercase; }
.hero-venue { margin-top: .8rem; font-style: italic; font-size: 1.15rem; color: #5a6350; letter-spacing: .06em; }

.countdown {
  margin-top: 3.4rem;
  display: flex; align-items: center; gap: 1.4rem;
}
.cd-flourish {
  width: clamp(40px, 8vw, 90px); height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.cd-flourish:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
.cd-line { display: flex; align-items: baseline; gap: .8rem; }
.cd-days {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem); font-weight: 300;
  color: var(--ink); line-height: 1;
}
.cd-text {
  font-size: clamp(.8rem, 1.8vw, .95rem);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}

/* ══════════ WORDS ══════════ */
.words {
  padding: 7rem 1.5rem;
  text-align: center;
  background: var(--paper);
}
.words-script {
  font-family: var(--script);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--gold);
}
.words-body {
  max-width: 620px; margin: 1.8rem auto 0;
  font-size: 1.25rem; line-height: 1.85; font-style: italic;
  color: #4a5340;
}

/* ══════════ DESTINATION ══════════ */
.destination {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--ivory);
}
.dest-img {
  overflow: hidden;
  border: 1px solid rgba(194,161,92,.5);
  padding: 10px; background: var(--paper);
  box-shadow: 24px 24px 0 -1px rgba(194,161,92,.16);
}
.dest-img img { transition: transform 1.4s ease; }
.dest-img:hover img { transform: scale(1.045); }
.dest-content { text-align: center; }
.dest-sub { margin-top: .6rem; letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; color: #5a6350; }
.dest-body { max-width: 420px; margin: 1.6rem auto; font-size: 1.15rem; line-height: 1.8; font-style: italic; color: #4a5340; }
.dest-content .btn-gold { margin-top: .4rem; }
.qr-block { margin-top: 2.4rem; }
.qr-frame {
  display: inline-block;
  padding: 14px;
  background: #f7f3e8;
  border: 1px solid rgba(194,161,92,.55);
  box-shadow: 0 6px 24px rgba(35,48,31,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.qr-frame img { width: 128px; height: 128px; display: block; }
.qr-frame:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(35,48,31,.18); }
.qr-caption {
  margin-top: .9rem;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}

/* ══════════ PROGRAM ══════════ */
.program {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  background-size: cover; background-position: center;
  color: var(--cream-text);
}
.prog-date {
  text-align: center; margin-top: 1rem;
  letter-spacing: .4em; text-transform: uppercase; font-size: .8rem;
  color: rgba(236,229,211,.65);
}
.timeline {
  list-style: none;
  max-width: 460px; margin: 3.5rem auto 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(216,194,148,.55), transparent);
}
.tl-item {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.4rem;
  padding: 1.5rem 0;
}
.tl-time { text-align: right; font-size: 1.3rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.tl-dot {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 5px rgba(194,161,92,.18);
}
.tl-name { font-size: 1.25rem; font-style: italic; letter-spacing: .04em; }
.daybefore {
  max-width: 520px; margin: 4.5rem auto 0;
  text-align: center;
  border-top: 1px solid rgba(216,194,148,.35);
  padding-top: 3rem;
}
.daybefore h3 { font-weight: 400; font-size: 1.7rem; letter-spacing: .06em; }
.db-date { margin-top: .6rem; font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(236,229,211,.6); }
.db-body { margin-top: 1.2rem; font-style: italic; font-size: 1.15rem; line-height: 1.75; color: rgba(236,229,211,.85); }
.adults-note {
  max-width: 520px; margin: 3.2rem auto 0;
  text-align: center; font-style: italic;
  font-size: 1rem; line-height: 1.75;
  color: rgba(236,229,211,.6);
}

/* ══════════ DRESS CODE ══════════ */
.dresscode { padding: clamp(5rem, 10vw, 8rem) 1.5rem; background: var(--paper); }
.dc-grid {
  max-width: 900px; margin: 3.5rem auto 0;
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.dc-divider { background: rgba(194,161,92,.4); height: 100%; min-height: 120px; }
.dc-col { text-align: center; }
.dc-col h3 { font-weight: 400; font-style: italic; font-size: 1.8rem; }
.dc-col p { margin-top: 1rem; font-size: 1.1rem; line-height: 1.75; color: #4a5340; }
.swatches { margin-top: 1.6rem; display: flex; justify-content: center; gap: .8rem; }
.swatches span {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
}

/* ══════════ TRAVEL ══════════ */
.travel {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  background-size: cover; background-position: center;
  color: var(--cream-text);
}
.travel-grid {
  max-width: 820px; margin: 3.5rem auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.travel-card {
  border: 1px solid rgba(216,194,148,.35);
  background: rgba(23,32,15,.45);
  backdrop-filter: blur(4px);
  padding: 2.4rem 1.8rem;
  text-align: center;
}
.travel-card h3 {
  font-weight: 400; font-style: italic; font-size: 1.6rem;
  color: var(--gold-soft);
}
.travel-card p { margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.75; color: rgba(236,229,211,.88); }
.hotel-link { color: var(--gold-soft); text-decoration-color: rgba(216,194,148,.5); text-underline-offset: 4px; }
.travel-note {
  margin-top: 2.6rem; text-align: center; font-style: italic;
  color: rgba(236,229,211,.65); font-size: 1rem;
}

/* ══════════ RSVP ══════════ */
.rsvp {
  padding: clamp(6rem, 12vw, 10rem) 1.5rem;
  background-size: cover; background-position: center;
  text-align: center; color: var(--cream-text);
}
.rsvp-script {
  font-family: var(--script);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin-top: 1.4rem;
  color: var(--cream-text);
}
.rsvp-body { margin-top: 1.4rem; font-size: 1.2rem; font-style: italic; color: rgba(236,229,211,.85); }
.rsvp-actions {
  margin-top: 2.8rem;
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
}
.btn-wa { display: inline-flex; align-items: center; gap: .7rem; }
.rsvp-note {
  margin: 1.8rem auto 0; max-width: 520px;
  font-style: italic; font-size: 1rem; line-height: 1.7;
  color: rgba(236,229,211,.7);
}
.rsvp-cal {
  margin-top: 2.6rem;
  display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.cal-link {
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(216,194,148,.85); text-decoration: none;
  border-bottom: 1px solid rgba(216,194,148,.35);
  padding-bottom: .3rem;
  transition: color .3s, border-color .3s;
}
.cal-link:hover { color: var(--cream-text); border-color: var(--cream-text); }
.cal-sep { color: rgba(216,194,148,.5); }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--forest);
  color: var(--cream-text);
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
}
.footer-monogram svg { width: 70px; color: var(--gold); margin: 0 auto; }
.footer-names { font-family: var(--script); font-size: 2rem; margin-top: 1.4rem; }
.footer-date { margin-top: .5rem; letter-spacing: .5em; font-size: .8rem; color: rgba(236,229,211,.6); }
.footer-contact { margin-top: 2.4rem; }
.fc-label {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
}
.fc-line { margin-top: .7rem; font-size: 1.05rem; font-style: italic; }
.fc-line a { color: rgba(236,229,211,.85); text-decoration: none; border-bottom: 1px solid rgba(216,194,148,.3); padding-bottom: .15rem; transition: color .3s, border-color .3s; }
.fc-line a:hover { color: var(--cream-text); border-color: var(--cream-text); }
.footer-maps {
  margin-top: 2.2rem;
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); text-decoration: none;
  border-bottom: 1px solid rgba(216,194,148,.4);
  padding-bottom: .35rem;
  transition: all .3s;
}
.footer-maps:hover { color: var(--cream-text); border-color: var(--cream-text); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 860px) {
  .destination { grid-template-columns: 1fr; }
  .travel-grid { grid-template-columns: 1fr; max-width: 480px; }
  .dc-grid { grid-template-columns: 1fr; }
  .dc-divider { width: 120px; height: 1px; min-height: 1px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .lang-toggle { top: 1rem; right: 1rem; padding: .4rem .75rem; }
  .countdown { gap: .9rem; }
  .cd-line { flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
  .rsvp-actions { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-line { animation: none; }
}
