/* ═══════════════════════════════════════════════════════════
   Davet — düğün davetiyesi stilleri
   Palet: fildişi zemin, sıcak antrasit metin, altın + adaçayı vurgu
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #3d3831;
  --muted: #8a8175;
  --gold: #b3905f;
  --gold-dark: #96784a;
  --gold-soft: #ece2cd;
  --sage: #7c8b6f;
  --line: #e5ddcf;
  --danger: #b3564e;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(61, 56, 49, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(179, 144, 95, 0.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 72px 20px 40px;
}

.ornament { color: var(--gold); }
.ornament svg { width: 220px; max-width: 60vw; height: 24px; }

.eyebrow {
  margin-top: 26px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.names {
  margin: 14px 0 8px;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 4.6rem);
  line-height: 1.15;
  color: var(--ink);
}

.date-line {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 26px;
}

/* ── Geri sayım ───────────────────────────────────────── */

.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(10px, 4vw, 26px);
  margin: 18px 0 46px;
}

.cd-cell { text-align: center; min-width: 56px; }

.cd-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-sep { color: var(--gold); font-size: 1.6rem; }

/* ── Kartlar ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 46px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Butonlar kartlar arasında aynı hizada dursun */
.card .btn { margin-top: auto; }

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 12px;
}

.card h2,
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-big {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.card-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 6px 0 16px;
}

/* ── Butonlar ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
}
.btn-outline:hover { background: var(--gold-soft); }

.btn-gold {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 15px 26px;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(179, 144, 95, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(179, 144, 95, 0.45); }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }

/* ── Program ──────────────────────────────────────────── */

.program { text-align: center; margin-bottom: 46px; }
.section-title { margin-bottom: 22px; }

.timeline {
  list-style: none;
  position: relative;
  display: inline-block;
  text-align: left;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--gold-soft);
}

.timeline li {
  position: relative;
  padding: 6px 0;
  font-size: 1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
}

/* ── Harita ───────────────────────────────────────────── */

.map { margin-bottom: 46px; }

.map iframe {
  width: 100%;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── LCV Formu ────────────────────────────────────────── */

.rsvp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(26px, 6vw, 44px);
}

.rsvp-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

fieldset {
  border: none;
  margin-bottom: 20px;
  min-width: 0;
}

legend {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.pills { display: flex; gap: 10px; flex-wrap: wrap; }

.pill { flex: 1; min-width: 140px; }

.pill input { position: absolute; opacity: 0; pointer-events: none; }

.pill span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill input:checked + span {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 500;
}

.pill input:checked + span::before {
  content: "✓";
  margin-right: 7px;
  font-weight: 600;
}

.pill-yes input:checked + span {
  border-color: var(--sage);
  background: #eef2e9;
  color: #55634c;
}

.pill-no input:checked + span {
  border-color: #c8beb2;
  background: #f3efe8;
  color: var(--muted);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: block; margin-bottom: 16px; }

.field span {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field em {
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 300;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 144, 95, 0.15);
}

.field textarea { resize: vertical; }

/* Beraberindekiler — yetişkin/çocuk stepper satırları */
.party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.party-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.party-name { font-size: 0.92rem; font-weight: 400; color: var(--ink); }

.stepper { display: flex; align-items: center; gap: 10px; }

.step-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.step-btn:hover { border-color: var(--gold); }
.step-btn:disabled { opacity: 0.35; cursor: default; }

.step-num {
  min-width: 20px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.party-total {
  margin: 10px 2px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.party-note {
  margin: 10px 2px 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.form-error {
  background: rgba(179, 86, 78, 0.1);
  color: var(--danger);
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* ── Teşekkür ─────────────────────────────────────────── */

.thanks {
  text-align: center;
  padding: 30px 10px 10px;
}

.thanks svg {
  width: 52px;
  height: 52px;
  color: var(--sage);
  margin-bottom: 14px;
}

.thanks p {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ── Yüzen LCV dock ───────────────────────────────────── */

.rsvp-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 900;
  width: min(92vw, 460px);
  padding: 10px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(61, 56, 49, 0.24);
}

.dock-btn {
  font: inherit;
  flex: 1;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.dock-btn:active { transform: scale(0.97); }

/* Seçim yapılmadan önce iki buton aynı — nabız Katılacağım'da döner */
.rsvp-dock:not(.answered) .dock-yes {
  animation: dockPulse 2.6s ease-in-out infinite;
}

/* Seçilince buton kendi rengine döner */
.dock-btn.is-yes {
  border-color: var(--sage);
  background: #eef2e9;
  color: #55634c;
}

.dock-btn.is-no {
  border-color: #c8beb2;
  background: #f3efe8;
  color: var(--muted);
}

@keyframes dockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 144, 95, 0.42); }
  50% { box-shadow: 0 0 0 9px rgba(179, 144, 95, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-dock:not(.answered) .dock-yes { animation: none; }
}

/* ── Footer ───────────────────────────────────────────── */

footer { text-align: center; padding: 10px 20px 110px; }

.foot-script {
  font-family: "Dancing Script", cursive;
  font-size: 1.7rem;
  color: var(--gold-dark);
}

.foot-small {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 6px;
}

.powered-by {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.powered-by:hover { opacity: 1; color: var(--gold-dark); }

.deadline-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

/* ── Dil seçici + kapak fotoğrafı ─────────────────────── */

.langswitch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 30;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.langswitch:hover { color: var(--gold-dark); border-color: var(--gold); }

.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 241, 231, 0.78) 0%,
    rgba(246, 241, 231, 0.9) 60%,
    rgba(246, 241, 231, 0.96) 100%
  );
}

.hero { position: relative; overflow: hidden; }
.hero > *:not(.hero-cover) { position: relative; z-index: 1; }

/* ── Reveal animasyonu ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .party { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}

@media (max-width: 380px) {
  .hero { padding-left: 12px; padding-right: 12px; }
  .cd-cell { min-width: 46px; }
  .cd-sep { font-size: 1.1rem; }
  .cd-num { font-size: 1.7rem; }
  .countdown { gap: 8px; }
  .card { padding: 24px 18px; }
  .rsvp { padding: 22px 16px; }
}

/* hidden özniteliği display ile ezilmesin */
[hidden] { display: none !important; }
