/* =========================================================
   Elvin & Mustafa — Wedding Invitation
   Renk paleti:
     --cream:   #F8F4EE
     --sage:    #A8B5A0
     --gold:    #C9A961
     --gold-d:  #B0902F
     --ink:     #3A3A3A
   Fontlar:
     Başlık: 'Playfair Display' / 'Cormorant Garamond'
     Gövde:  'Montserrat'
   ========================================================= */

:root {
  --cream: #F8F4EE;
  --cream-2: #F1EBE0;
  --sage: #A8B5A0;
  --sage-d: #8A9A82;
  --gold: #C9A961;
  --gold-d: #B0902F;
  --ink: #3A3A3A;
  --ink-soft: #6B6B6B;
  --white: #ffffff;

  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(58, 58, 58, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ DİL DEĞİŞTİRİCİ ============ */
.lang-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.lang-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  padding: 2px 4px;
  letter-spacing: 0.12em;
  transition: color .2s ease;
}
.lang-btn.active { color: var(--gold-d); font-weight: 600; }
.lang-btn:hover { color: var(--gold-d); }
.lang-divider { color: var(--gold); opacity: .6; }

/* ============ SCROLL DOTS (right-side nav) ============ */
.scroll-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px 10px;
}
.scroll-dots .dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: block;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
}
.scroll-dots .dot::after {
  /* hover halkası */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .3s ease;
}
.scroll-dots .dot:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.scroll-dots .dot:hover::after {
  border-color: rgba(201, 169, 97, 0.55);
}
.scroll-dots .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}
/* Açık zeminli bölümlerde dot rengini koyu yap */
.scroll-dots.is-light .dot {
  background: rgba(58, 58, 58, 0.25);
  border-color: rgba(58, 58, 58, 0.5);
}
.scroll-dots.is-light .dot.active,
.scroll-dots.is-light .dot:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.dot-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(28, 28, 28, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.scroll-dots .dot:hover .dot-label,
.scroll-dots .dot.show-label .dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.scroll-dots.is-light .dot-label {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

@media (max-width: 760px) {
  .scroll-dots { right: 12px; gap: 16px; padding: 10px 6px; }
  .scroll-dots .dot { width: 8px; height: 8px; }
  .dot-label { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  /*
    NOT: Hero arka plan fotoğrafı. Değiştirmek için aşağıdaki URL'yi
    kendi fotoğrafınla değiştir (ör: assets/img/hero.jpg).
  */
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(28,28,28,0.55) 0%,
    rgba(28,28,28,0.62) 50%,
    rgba(28,28,28,0.70) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: heroFade 1.6s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.9;
  margin: 0 0 18px;
  font-weight: 400;
}

.hero-names {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 10vw, 110px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.hero-names .name { display: block; }
.hero-names .amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 0.7em;
  line-height: 1;
  margin: 4px 0;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin: 24px 0 6px;
}
.hero-place {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0;
}

/* ============ ORTAK BÖLÜM ============ */
.section {
  position: relative;
  min-height: 100vh;
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section > .container { width: 100%; }
.section-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: var(--gold-d);
  text-align: center;
  margin: 0 0 12px;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  margin: 0 0 44px;
  color: var(--ink);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 0;
}

/* ============ COUNTDOWN ============ */
/*
  NOT: Countdown bölümünün arka plan fotoğrafı.
  Değiştirmek için aşağıdaki URL'yi güncelle.
*/
.countdown-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1457301547464-91995555cd25?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}
.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(248, 244, 238, 0.85) 0%,
    rgba(248, 244, 238, 0.90) 100%);
  z-index: -1;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.cd-box {
  background: var(--white);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius);
  padding: 28px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cd-box:hover { transform: translateY(-4px); box-shadow: 0 14px 50px rgba(58,58,58,0.12); }
.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.cd-label {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.countdown-done {
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  margin-top: 28px;
  color: var(--gold-d);
}

/* ============ EVENT CARD ============ */
/*
  NOT: Event bölümünün arka plan fotoğrafı.
  Değiştirmek için aşağıdaki URL'yi kendi görselinle güncelle.
*/
.event-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}
.event-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 28, 28, 0.70) 0%,
    rgba(28, 28, 28, 0.75) 100%);
  z-index: -1;
}
.event-section .section-eyebrow { color: var(--gold); }
.event-section .section-title { color: var(--white); }
.event-section .section-title::after { background: var(--gold); }
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,169,97,0.18);
}
.event-photo {
  position: relative;
  min-height: 380px;
  background: var(--cream);
}
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.event-details {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}
.event-key {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 10px;
  color: var(--gold-d);
  font-weight: 600;
}
.event-val {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.event-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.4), transparent);
}

/* ============ MAP ============ */
.map-section {
  background: var(--cream);
  padding: 80px 0;
}
.map-address {
  text-align: center;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: -24px 0 28px;
}
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  height: clamp(260px, 48vh, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,169,97,0.25);
  background: #eee;
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }

.map-cta {
  text-align: center;
  margin-top: 28px;
}
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--gold);
  padding: 16px 38px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  transition: all .25s ease;
  box-shadow: 0 6px 20px rgba(201,169,97,0.35);
}
.btn-gold:hover {
  background: var(--gold-d);
  border-color: var(--gold-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(176,144,47,0.45);
}

/* ============ FOOTER ============ */
/*
  NOT: Footer arka plan fotoğrafı + üstünde overlay.
  Değiştirmek için aşağıdaki URL'yi kendi görselinle güncelle.
*/
.footer {
  position: relative;
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 28, 28, 0.55) 0%,
    rgba(28, 28, 28, 0.65) 100%);
  z-index: -1;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
  margin-top: -0.5px;
  z-index: 1;
}
.footer .container { position: relative; z-index: 1; }
.footer-msg,
.footer-hashtag,
.footer-sign,
.footer-date,
.footer-ornament {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 0, 0, 0.45);
}
.footer-ornament {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  max-width: 620px;
  margin: 0 auto 28px;
  font-weight: 400;
  line-height: 1.6;
}
.footer-hashtag {
  font-family: var(--sans);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 32px;
  opacity: 0.95;
}
.footer-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 6px;
}
.footer-date {
  font-family: var(--sans);
  letter-spacing: 0.35em;
  font-size: 12px;
  margin: 0;
  opacity: 0.85;
}

/* ============ REVEAL / FADE-IN ANIMASYONLARI ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  /* Mobil cihazlarda fixed-attachment performans/buglarına karşı kapat */
  .hero,
  .countdown-section,
  .event-section,
  .footer {
    background-attachment: scroll;
  }
  .section { padding: 70px 0; min-height: 100svh; }
  .section-title { margin-bottom: 32px; }

  .hero { min-height: 100svh; height: auto; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 360px;
  }
  .cd-box { padding: 22px 10px; }

  .event-card { grid-template-columns: 1fr; }
  .event-photo { min-height: 220px; }
  .event-details { padding: 28px 24px; }

  .lang-switch { top: 12px; right: 12px; padding: 6px 12px; }

  .map-wrap { height: clamp(280px, 45vh, 380px); }

  .footer { min-height: auto; padding: 70px 0; }
}

@media (max-width: 380px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .hero-names { font-size: 44px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
