/* ============================================================
   Gizem & Orkun — Düğün Davetiyesi
   Boho / doğal / nötr toprak tonları — botanik motifler
   ============================================================ */

:root {
  --bg:          #F2EBDD;
  --bg-soft:     #EDE4D3;
  --ink:         #2E2A24;
  --ink-soft:    #6B6052;
  --accent:      #B08D5B;
  --accent-soft: #C9A878;
  --line:        #D8CBB3;
  --white:       #FBF7EF;

  --serif:  "Cormorant Garamond", Georgia, serif;
  --body:   "EB Garamond", Georgia, serif;
  --script: "Dancing Script", cursive;

  --maxw: 1080px;
  --pad:  clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 1rem + .25vw, 1.15rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sabit flat-lay arka plan (palmiye gölgesi + keten + kuru palmiye + kabuk) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg) url("../assets/bg.jpg") center center / cover no-repeat;
}

a { color: inherit; }

.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;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
  margin: 0 0 .5rem;
  color: var(--ink);
}

.section__lead {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: .5rem auto 0;
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.center { text-align: center; }
.narrow { max-width: 60ch; margin-inline: auto; }

/* ---------- Divider (ince çizgi + ortada yaprak) ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 280px;
  color: var(--accent);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.divider__leaf {
  width: 26px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 28' fill='none' stroke='%23B08D5B' stroke-width='1.4'%3E%3Cpath d='M26 4 V24'/%3E%3Cpath d='M26 9 C20 7 14 9 11 13 C16 15 22 14 26 11Z' fill='%23C9A878' fill-opacity='.5'/%3E%3Cpath d='M26 9 C32 7 38 9 41 13 C36 15 30 14 26 11Z' fill='%23C9A878' fill-opacity='.5'/%3E%3Cpath d='M26 15 C21 13 16 15 13 18 C17 20 22 19 26 17Z' fill='%23C9A878' fill-opacity='.5'/%3E%3Cpath d='M26 15 C31 13 36 15 39 18 C35 20 30 19 26 17Z' fill='%23C9A878' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: .08em;
  text-decoration: none;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn--solid { background: var(--accent); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--white); }
.btn--block { display: block; width: 100%; }
.btn--text {
  background: none; border: none; color: var(--accent);
  padding: .4rem 0; letter-spacing: .04em;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn--text:hover { color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }

/* ============================================================
   HERO / KAPAK (Görsel 2 — iki sütun + dikey çizgi)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem var(--pad) 4rem;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.9rem, 4vw, 3.5rem);
  max-width: 980px;
  width: 100%;
}
.hero__names { text-align: left; align-self: start; }
.hero__names .eyebrow { margin-bottom: 1.6rem; }

.couple {
  font-family: var(--serif);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  margin: 0;
  line-height: 1.02;
}
.couple__name {
  font-size: clamp(1.4rem, .8rem + 4.4vw, 4.6rem);
  letter-spacing: .06em;
  color: var(--ink);
}
.couple__and {
  font-family: var(--script);
  font-size: clamp(1.6rem, 1rem + 4vw, 3rem);
  color: var(--accent);
  font-weight: 600;
  margin: -.1em 0 -.1em .5em;
  align-self: flex-start;
}

.hero__rule {
  width: 1px;
  align-self: center;
  height: clamp(240px, 42vh, 320px);
  background: linear-gradient(var(--line), var(--line));
}

.hero__body {
  text-align: left;
  min-width: 0;
  align-self: start;
  margin-top: clamp(4rem, 11vw, 8rem);
}
.hero__facts {
  margin: 2rem 0 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.hero__fact {
  font-family: var(--serif);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem);
  margin: .25rem 0;
  color: var(--ink);
}
.hero__tags {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 2rem 0 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}

/* ============================================================
   GERİ SAYIM (deniz temalı bant)
   ============================================================ */
.countdown-band {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem) var(--pad);
  text-align: center;
  /* arka plan rengi yok — flat-lay zemin devam eder */
}
.countdown__eyebrow {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(1.5rem, 1.25rem + 1.4vw, 2.2rem);
  color: var(--ink);
  margin: 0 0 1.8rem;
}
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(.6rem, 2vw, 1.2rem);
  max-width: 720px;
  margin: 0 auto;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: clamp(68px, 18vw, 120px);
  padding: clamp(.9rem, 2.5vw, 1.6rem) clamp(.5rem, 2vw, 1.2rem);
  background: rgba(251, 247, 239, .45);
  border: 1px solid rgba(176, 141, 91, .25);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 8px 24px rgba(46, 42, 36, .06);
}
.countdown__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: .04em;
}
.countdown__label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(.6rem, .5rem + .4vw, .8rem);
  color: var(--ink-soft);
}

/* ============================================================
   STORY
   ============================================================ */
.story__lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.8rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.story__lead--end { margin-bottom: 0; }
.story__invite { color: var(--ink-soft); margin: 0 auto; max-width: 50ch; }
.story__families { color: var(--ink-soft); font-style: italic; margin-top: 1.2rem; }

/* ============================================================
   DETAILS CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(46,42,36,.08); }
.card__icon { font-size: 1.8rem; margin-bottom: .8rem; }
.card__title {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 .8rem;
}
.card__line { font-size: 1.2rem; margin: 0; }
.card__sub { color: var(--ink-soft); margin: .2rem 0 0; }

/* ============================================================
   TIMELINE (Görsel 1 — dikey zikzak + akan noktalı çizgi)
   ============================================================ */
.timeline {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 760px;
  position: relative;
}
.tl-stop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2vw, 2rem) 0;
}
.tl-stop__text { text-align: right; padding-right: 1rem; }
.tl-stop__art  { text-align: left; }

/* reversed rows: illustration on the left, text on the right */
.tl-stop--rev .tl-stop__text { order: 2; text-align: left; padding-right: 0; padding-left: 1rem; }
.tl-stop--rev .tl-stop__art  { order: 1; text-align: right; }

.tl-stop__time {
  font-family: var(--serif);
  letter-spacing: .22em;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  margin: 0;
}
.tl-stop__title {
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  color: var(--ink-soft);
  margin: .1rem 0 0;
}
.tl-stop__art img {
  width: clamp(150px, 30vw, 220px);
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* dotted flowing S-curve behind the stops */
.timeline::before {
  content: "";
  position: absolute;
  top: 6%; bottom: 6%;
  left: 50%;
  width: clamp(120px, 26vw, 200px);
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 600' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M50 0 C20 70 80 130 50 200 C20 270 80 330 50 400 C20 470 80 530 50 600' stroke='%23C9A878' stroke-width='1.5' stroke-dasharray='2 7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: .8;
  z-index: 0;
}

/* ============================================================
   MAP
   ============================================================ */
.map {
  margin: 2.5rem auto 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(46,42,36,.08);
}
.map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 45vw, 440px);
  border: 0;
  filter: sepia(.12) saturate(.92);
}
.map__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.map__addr { text-align: center; color: var(--ink-soft); letter-spacing: .06em; }

/* ============================================================
   FORMS
   ============================================================ */
.form { max-width: 620px; margin: 2rem auto 0; }
.field-wrap { margin-bottom: 1.6rem; }
.field__label {
  display: block;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.form__heading {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 .3rem;
}
.form__hint { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .9rem; }

.field {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,141,91,.15);
}
textarea.field { resize: vertical; }
.muted { color: var(--line); text-transform: none; letter-spacing: 0; }

/* status — full-width stacked rounded cards (Görsel 3) */
.status-group { border: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .9rem; }
.status-card input { position: absolute; opacity: 0; pointer-events: none; }
.status-card__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .03em;
  color: var(--ink);
}
.status-card__mark { color: var(--accent-soft); transition: color .2s ease; font-size: 1.1rem; }
.status-card__inner:hover { border-color: var(--accent-soft); }
.status-card input:checked + .status-card__inner {
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: 0 0 0 2px rgba(176,141,91,.18);
}
.status-card input:checked + .status-card__inner .status-card__mark { color: var(--accent); }
.status-card input:focus-visible + .status-card__inner { box-shadow: 0 0 0 3px rgba(176,141,91,.3); }

/* guests */
.guests { margin-bottom: 1.8rem; }
.guest-list { display: grid; gap: .7rem; }
.guests__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.guest-count { color: var(--ink-soft); font-size: .9rem; }

/* note with leaf motif */
.note-wrap { position: relative; }
.note-leaf {
  position: absolute;
  right: 14px; bottom: 12px;
  width: 56px; height: 56px;
  pointer-events: none;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23B08D5B' stroke-width='1.3'%3E%3Cpath d='M20 70 C40 50 52 30 56 10'/%3E%3Cpath d='M50 22 C44 18 36 20 32 26 C38 30 46 28 50 22Z' fill='%23C9A878' fill-opacity='.4'/%3E%3Cpath d='M46 34 C40 30 32 32 28 38 C34 42 42 40 46 34Z' fill='%23C9A878' fill-opacity='.4'/%3E%3Cpath d='M42 46 C36 42 28 44 24 50 C30 54 38 52 42 46Z' fill='%23C9A878' fill-opacity='.4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.form__status {
  text-align: center;
  margin: 1rem 0 0;
  min-height: 1.4em;
  font-size: .95rem;
}
.form__status.ok { color: #5a7d4f; }
.form__status.err { color: #b1543f; }

/* contact phone */
.contact__phone { text-align: center; margin-top: 2rem; font-size: 1.2rem; }
.contact__phone a { text-decoration: none; color: var(--accent); }
.contact__phone a:hover { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer__couple { font-family: var(--serif); font-size: 1.8rem; letter-spacing: .12em; margin: 0 0 .5rem; }
.footer__line { margin: .15rem 0; color: var(--ink-soft); }
.footer__line a { text-decoration: none; }
.footer__tag { font-family: var(--script); font-size: 1.4rem; color: var(--accent); margin: .6rem 0; }
.footer__note { margin: 1rem 0 0; color: var(--ink-soft); font-size: .9rem; }

/* ============================================================
   DİJİTAL ALBÜM — STICKY BUTON (sağ üst köşe)
   ============================================================ */
@keyframes albumPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(176, 141, 91, .35), 0 0 0 0 rgba(176, 141, 91, .25); }
  50%       { box-shadow: 0 6px 24px rgba(176, 141, 91, .50), 0 0 0 7px rgba(176, 141, 91, 0); }
}

.album-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: .55rem;

  font-family: var(--body);
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--white);

  background: rgba(176, 141, 91, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .65rem 1.35rem .65rem 1.05rem;

  cursor: pointer;
  animation: albumPulse 3.2s ease-in-out infinite;
  transition: background .25s ease, transform .2s ease, color .25s ease;

  /* İnce gölge katmanı */
  filter: drop-shadow(0 2px 6px rgba(46, 42, 36, .18));
}

.album-btn:hover {
  background: var(--ink);
  border-color: transparent;
  transform: translateY(-2px) scale(1.03);
  animation: none;
  box-shadow: 0 8px 28px rgba(46, 42, 36, .22);
}

.album-btn:active {
  transform: translateY(0) scale(.98);
}

.album-btn__icon {
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.album-btn__label {
  font-weight: 500;
  white-space: nowrap;
}

/* Küçük ekranlarda sadece emoji göster, yazıyı gizle */
@media (max-width: 400px) {
  .album-btn {
    padding: .7rem;
    border-radius: 50%;
    aspect-ratio: 1;
  }
  .album-btn__label { display: none; }
  .album-btn__icon { font-size: 1.2rem; }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  /* hero → iki sütun korunur, sadece sıkışır (isim sol üst · şiir sağ alt) */
  .hero { padding-left: clamp(1rem, 4vw, 2rem); padding-right: clamp(1rem, 4vw, 2rem); }
  .hero__grid { gap: clamp(.7rem, 3vw, 1.5rem); }
  .hero__rule { min-height: 200px; }
  .couple__name { letter-spacing: .02em; }
  .couple__and { margin-left: .3em; }
  .hero__names .eyebrow { margin-bottom: 1rem; font-size: .62rem; letter-spacing: .25em; }
  .hero .story__lead { font-size: clamp(.85rem, .6rem + 1.7vw, 1.3rem); line-height: 1.45; }
  .hero .story__lead--end { margin-top: .8rem; }
  .hero__facts { margin: 1.2rem 0 .8rem; padding: .7rem 0; }
  .hero__fact { font-size: clamp(.85rem, .65rem + 1vw, 1.3rem); letter-spacing: .18em; }
  .hero__tags { font-size: .62rem; letter-spacing: .18em; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }

  /* timeline → single column, icon left + text right */
  .timeline { max-width: 420px; }
  .timeline::before { left: 58px; width: 60px; transform: none; }
  .tl-stop,
  .tl-stop--rev {
    grid-template-columns: 116px 1fr;
    gap: 1rem;
    align-items: center;
    text-align: left;
  }
  .tl-stop__art, .tl-stop--rev .tl-stop__art { order: 1; text-align: center; }
  .tl-stop__text, .tl-stop--rev .tl-stop__text {
    order: 2; text-align: left; padding: 0;
  }
  .tl-stop__art img, .tl-stop--rev .tl-stop__art img {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
