/* ==========================================================================
   Babil Village — tanıtım sitesi
   Bağımlılık yok: Bootstrap / jQuery kullanılmıyor.
   ========================================================================== */

:root {
  --green-900: #16301f;
  --green-800: #1f3d2b;
  --green-700: #2d5240;
  --green-100: #e4ece5;
  --sand:      #c2a06a;
  --sand-dark: #a8874f;
  --cream:     #faf7f2;
  --paper:     #ffffff;
  --ink:       #1c1c19;
  --muted:     #6f6f66;
  --line:      #e6e1d8;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 18px 45px -25px rgba(22, 48, 31, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--sand-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--green-900);
}

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--paper); }

/* ---------- Bölüm başlığı ---------- */
.sec-head { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.sec-head .eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 1rem;
}
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.sec-head p { color: var(--muted); margin-bottom: 0; }

.rule {
  width: 54px; height: 1px; margin: 1.4rem auto 0;
  background: var(--sand); border: 0;
}

/* ---------- Buton ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--sand); color: #fff; }
.btn--solid:hover { background: var(--sand-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-900); }
.btn--green { background: var(--green-800); color: #fff; }
.btn--green:hover { background: var(--green-900); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .96);
  padding: .55rem 0;
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }

.brand { margin-right: auto; display: block; }
.brand img { height: 58px; width: auto; transition: height .35s var(--ease); }
.site-header.is-stuck .brand img { height: 44px; }

.nav ul {
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  padding: .35rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--sand);
  transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.site-header.is-stuck .nav a { color: var(--green-800); text-shadow: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; padding: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.site-header.is-stuck .nav-toggle span { background: var(--green-800); box-shadow: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 17, .55) 0%, rgba(12, 26, 17, .3) 45%, rgba(12, 26, 17, .7) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 7rem 1.25rem 5rem; }
.hero__inner .eyebrow {
  display: block;
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, .85);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--sand); }
.hero__lead {
  max-width: 34rem;
  margin: 0 auto 2.4rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 52px;
  background: rgba(255, 255, 255, .45);
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: var(--sand);
  animation: scrollhint 2.1s var(--ease) infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(290%); }
}

/* ---------- Tanıtım ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.intro__media img + img {
  position: absolute;
  right: -2.5rem; bottom: -3rem;
  width: 52%;
  border: 8px solid var(--cream);
}
.intro h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.intro .eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 1rem;
}
.intro p { color: var(--muted); }

/* ---------- Özellikler ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature svg { width: 34px; height: 34px; stroke: var(--sand-dark); margin: 0 auto 1rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Galeri ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filters button {
  padding: .6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filters button:hover { border-color: var(--sand); color: var(--green-800); }
.filters button.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--green-100);
}
.grid figure.is-hidden { display: none; }
.grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.grid figure:hover img { transform: scale(1.07); }
.grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 48, 31, .55));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.grid figure:hover::after { opacity: 1; }

.gallery-more { text-align: center; margin-top: 2.5rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(11, 22, 15, .96);
  padding: 3.5rem 1rem;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  letter-spacing: .1em;
}

/* ---------- Misafir yorumları ---------- */
.reviews[hidden] { display: none; }

.reviews__score {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .75rem;
  font-size: .95rem;
  color: var(--muted);
}
.reviews__score strong { font-size: 1.5rem; color: var(--green-900); font-family: var(--serif); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: var(--sand); }
.stars svg.is-empty { fill: var(--line); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.review__head { display: flex; align-items: center; gap: .85rem; }
.review__avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 500;
  font-size: .95rem;
}
.review__who { min-width: 0; }
.review__name {
  display: block;
  font-weight: 500;
  color: var(--green-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review__when { font-size: .82rem; color: var(--muted); }

.review__text {
  margin: 0;
  font-size: .96rem;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}
.review__text.is-open { -webkit-line-clamp: unset; }

.review__toggle {
  align-self: flex-start;
  margin-top: -.4rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .85rem;
  color: var(--sand-dark);
  cursor: pointer;
  text-decoration: underline;
}

.reviews__more { text-align: center; margin: 2.5rem 0 0; }

/* ---------- Rezervasyon ---------- */
.booking { background: var(--green-800); color: rgba(255, 255, 255, .85); }
.booking h2, .booking .sec-head h2 { color: #fff; }
.booking .sec-head p { color: rgba(255, 255, 255, .72); }
.booking .eyebrow { color: var(--sand); }
.booking .rule { background: var(--sand); }
.booking__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 1rem;
  align-items: end;
  max-width: 62rem;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.booking__field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.booking__field--dar { width: 6.5rem; }
.booking__field label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.booking__field input,
.booking__field select {
  width: 100%;
  min-height: 48px;
  padding: .6rem .85rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.booking__field input:focus-visible,
.booking__field select:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}
.booking__field input.is-error { border-color: #ff8f7a; box-shadow: 0 0 0 2px rgba(255, 143, 122, .35); }

.booking__submit { min-height: 48px; justify-content: center; white-space: nowrap; }

.booking__hint {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
}
.booking__hint.is-error { color: #ffb3a3; }

.booking__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- İletişim ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__item { display: flex; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact__item:first-child { padding-top: 0; }
.contact__item svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--sand-dark); margin-top: .35rem; }
.contact__item h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.contact__item p { margin: 0; color: var(--muted); font-size: .96rem; }
.contact__map {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  filter: grayscale(.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .68);
  padding: 4.5rem 0 0;
  font-size: .93rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--sand); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .6rem; }
.socials { display: flex; gap: .75rem; margin-top: 1.2rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.socials a:hover { background: var(--sand); border-color: var(--sand); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- WhatsApp yüzen buton ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Görünürlük animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .booking__form { grid-template-columns: 1fr 1fr; }
  .booking__field--dar { width: auto; }
  .booking__submit { grid-column: 1 / -1; }
  .intro__grid, .contact__grid { grid-template-columns: 1fr; }
  .intro__media img + img { position: static; width: 100%; border: 0; margin-top: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__map { min-height: 320px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .booking__form { grid-template-columns: 1fr; padding: 1.2rem; }

  /* Dokunma hedefleri en az 44px (mobil kullanilabilirlik) */
  .filters button { min-height: 44px; padding: .7rem 1.5rem; }
  .contact__item a,
  .footer__grid a:not(.socials a) { display: inline-block; padding: .35rem 0; }
  .footer__grid li { margin-bottom: .3rem; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--paper);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 1.4rem; }
  .nav a, .site-header.is-stuck .nav a { color: var(--green-800); text-shadow: none; font-size: .95rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
