/* ==========================================================================
   Kutuvera — temel katman: değişkenler, tipografi, header, hero, footer
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --green-900: #10302a;
  --green-800: #183c32;
  --green-700: #234a3d;
  --green-600: #315c4b;
  --cream: #f5f0e5;
  --cream-soft: #faf7ef;
  --beige: #e8ddca;
  --beige-deep: #ded0b8;
  --brown: #795b45;
  --coffee: #44352c;
  --bordo: #803d3a;
  --white: #ffffff;
  --ink: #251d17;
  --muted: #6d5f53;
  --line: rgba(68, 53, 44, 0.14);
  --line-strong: rgba(68, 53, 44, 0.26);
  --whatsapp: #1f7a4d;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Naskh Arabic', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(36, 28, 23, 0.06), 0 8px 24px -16px rgba(36, 28, 23, 0.35);
  --shadow-md: 0 2px 3px rgba(36, 28, 23, 0.05), 0 24px 48px -32px rgba(36, 28, 23, 0.5);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Mobil menü ekran dışına taştığında yatay kaydırma oluşmasını engeller. */
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--green-800);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--green-800);
  color: var(--cream);
}

/* ---------------------------- Yardımcılar ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.25rem, 7vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section--cream {
  background: var(--cream-soft);
}

.section--beige {
  background: var(--beige);
}

.section--dark {
  background: var(--green-800);
  color: var(--beige);
}

.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  margin-bottom: 0;
}

.section--dark .section__head p {
  color: rgba(245, 240, 229, 0.75);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--dark .eyebrow {
  color: #c9b79a;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  border-color: currentColor;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

[dir='rtl'] .link-arrow svg {
  transform: scaleX(-1);
}

.check-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--muted);
}

.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brown);
  transform: rotate(45deg);
}

.empty-state {
  max-width: 60ch;
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--green-800);
  color: var(--cream);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 240, 229, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 240, 229, 0.98);
  box-shadow: 0 10px 30px -26px rgba(36, 28, 23, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  color: var(--green-800);
}

.brand__mark {
  width: 38px;
  height: 38px;
  color: var(--green-800);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}

.brand--light {
  color: var(--cream);
}

.brand--light .brand__mark {
  color: var(--cream);
}

.brand--light .brand__sub {
  color: rgba(232, 221, 202, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.8vw, 0.65rem);
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coffee);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0.55rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--green-800);
}

.nav__link:hover::after,
.nav__item.is-active > .nav__link::after {
  transform: scaleX(1);
}

.nav__item.is-active > .nav__link {
  color: var(--green-800);
  font-weight: 600;
}

.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 230px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 5;
}

.nav__item.has-sub:hover .nav__sub,
.nav__item.has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--coffee);
}

.nav__sub a:hover,
.nav__sub a:focus-visible {
  background: var(--cream);
  color: var(--green-800);
}

.nav__wa {
  display: none;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Dil seçici */
.lang {
  position: relative;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--coffee);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang__button:hover {
  border-color: var(--brown);
  background: var(--cream-soft);
}

.lang__chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.2s var(--ease);
}

.lang.is-open .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 150px;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

.lang__option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  text-align: start;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.lang__option:hover {
  background: var(--cream);
}

.lang__option[aria-selected='true'] {
  background: var(--green-800);
  color: var(--cream);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green-800);
}

.menu-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle__bars i {
  display: block;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.is-open .menu-toggle__bars i:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.site-header.is-open .menu-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle__bars i:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 48, 42, 0.45);
  backdrop-filter: blur(3px);
}

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(232, 221, 202, 0.75) 0%, rgba(245, 240, 229, 0) 60%),
    var(--cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.hero__content {
  max-width: 36rem;
}

.hero h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__text {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--coffee);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__points li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bordo);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-zoom {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -1.4%, 0);
  }
}

.hero__badge {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(24, 60, 50, 0.9);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8b27c;
  box-shadow: 0 0 0 4px rgba(216, 178, 124, 0.25);
}

.hero__note {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Hareketli şerit */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.85rem;
  background: var(--green-800);
  color: var(--beige);
  border-block: 1px solid rgba(245, 240, 229, 0.12);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-inline: clamp(0.6rem, 1.4vw, 1.2rem);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(245, 240, 229, 0.92);
}

.marquee__item svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #c9a97a;
  stroke-width: 1.5;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

[dir='rtl'] .marquee__track {
  animation-direction: reverse;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(245, 240, 229, 0.82);
  padding-top: clamp(2.75rem, 5vw, 4rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer__desc {
  max-width: 34ch;
  margin: 1.1rem 0 1.2rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 229, 0.66);
}

.footer__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9b79a;
}

.footer__list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer__list a {
  transition: color 0.2s var(--ease);
}

.footer__list a:hover {
  color: var(--cream);
}

.footer__contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: start;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  fill: none;
  stroke: #c9b79a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 240, 229, 0.2);
  border-radius: 50%;
  color: var(--beige);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__social a:hover {
  background: rgba(245, 240, 229, 0.1);
  border-color: rgba(245, 240, 229, 0.45);
}

.footer__social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem 1.4rem;
  border-top: 1px solid rgba(245, 240, 229, 0.14);
  font-size: 0.78rem;
}

.footer__rights,
.footer__muted {
  margin: 0;
  color: rgba(245, 240, 229, 0.55);
}

/* ---------------------------- Hareket azaltma --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media img {
    animation: none;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .marquee {
    overflow-x: auto;
  }
}
