/* ============================================================
   layout.css — Header, Footer, Container, Section Scaffolding
   ============================================================ */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  background: rgba(238, 217, 164, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200, 25, 42, 0.12);
  transition: height 0.3s var(--ease-smooth),
              background 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}


/* Nav — sol taraf */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.3s var(--ease-smooth);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Nav CTA — "İletişim" linkinin görsel olarak buton kıvamında durması */
.site-nav a.nav-cta {
  border: 1.5px solid var(--border-strong);
  padding: 0.55rem 1.1rem;
  padding-bottom: 0.55rem;
  transition: border-color 0.25s var(--ease-smooth),
              background 0.25s var(--ease-smooth),
              color 0.25s var(--ease-smooth);
}

.site-nav a.nav-cta::after {
  display: none; /* alt çizgi yerine border kullanıyor */
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--cream);
}

/* Logo — sağ taraf */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  justify-self: end;
}

.site-logo__icon {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
}

.site-logo:hover .site-logo__icon {
  transform: scale(1.08);
}

.site-logo__text {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Hamburger — yalnızca mobilde görünür */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 600;
  position: relative;
  order: -1;
}

.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FOOTER — Sitemap layout ===== */
.site-footer {
  background: var(--surface-inverse-deep);
  padding: var(--section-py-sm) var(--section-px) 2rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-contact {
  text-align: right;
}

.footer-contact__list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-contact__list a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-on-inverse-muted);
  transition: color 0.25s var(--ease-smooth);
}

.footer-contact__list a:hover {
  color: var(--text-on-inverse);
}

.footer-col__title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-inverse);
  margin-bottom: 1.25rem;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col__list a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-on-inverse-muted);
  transition: color 0.25s var(--ease-smooth);
}

.footer-col__list a:hover {
  color: var(--text-on-inverse);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 280px;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.footer-brand__name {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-on-inverse);
  letter-spacing: -0.01em;
}

.footer-brand__sub {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgba(238, 217, 164, 0.7);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 300;
  color: var(--text-on-inverse-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-on-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-fineprint {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(238, 217, 164, 0.6);
  letter-spacing: 0.04em;
}

.footer-fineprint {
  display: flex;
  gap: 1.5rem;
}

.footer-fineprint a {
  color: rgba(238, 217, 164, 0.6);
  transition: color 0.25s;
}

.footer-fineprint a:hover {
  color: var(--text-on-inverse);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== SECTION SHARED ===== */
.section {
  padding: var(--section-py) var(--section-px);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--navy);
}

.section-title strong {
  font-weight: 700;
}

.section--navy .section-title {
  color: var(--cream);
}

.section-divider {
  width: 48px; height: 2px;
  background: var(--red);
  margin: 1.5rem auto 0;
}

.section-lead {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section--navy .section-lead {
  color: rgba(238, 217, 164, 0.7);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Header: hamburger sol, logo ortada, lang-switch sağda */
  .site-header {
    position: fixed;
    z-index: 500;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 700;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .menu-toggle span {
    background: var(--navy);
  }

  .site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-self: unset;
  }

  .site-logo__icon {
    height: 44px;
  }

  /* Mobil nav: tam ekran navy overlay */
  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-door);
    z-index: 600;
    pointer-events: none;
    overflow-y: auto;
  }

  .site-nav.open {
    transform: translateX(0);
    pointer-events: all;
  }

  .site-nav a {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--cream);
    padding: 1.1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(238, 217, 164, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--red);
    background: rgba(238, 217, 164, 0.05);
  }

  .site-nav a.nav-cta {
    border: none;
    border-bottom: 1px solid rgba(238, 217, 164, 0.08);
    color: var(--cream);
    padding: 1.1rem 2rem;
    margin-top: 0;
    border-radius: 0;
  }

  .site-nav a.nav-cta:hover {
    background: rgba(200, 25, 42, 0.15);
    color: var(--red);
  }

  /* Hamburger çizgileri açıkken cream rengi */
  .menu-toggle.open span {
    background: var(--cream);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* Tablet: footer 2 kolon → zaten yukarıda var */

/* Mobil dar: footer 1 kolon */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: 1.5px solid rgba(26, 43, 107, 0.25);
  overflow: hidden;
  justify-self: start;
}

.lang-switch__active {
  padding: 0.4rem 0.75rem;
  background: var(--navy);
  color: var(--cream);
  cursor: default;
}

.lang-switch__btn {
  padding: 0.4rem 0.75rem;
  color: var(--navy);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  border-left: 1.5px solid rgba(26, 43, 107, 0.25);
}

.lang-switch__btn:hover {
  background: var(--navy);
  color: var(--cream);
}

@media (max-width: 768px) {
  .lang-switch {
    position: absolute;
    top: 50%;
    left: auto;
    right: 1.25rem;
    transform: translateY(-50%);
    z-index: 700;
    justify-self: unset;
  }
}
