/* sarlahmacun.com — main.css
   Tailwind utility'lerin yetmediği yerler için custom CSS. */

* { -webkit-font-smoothing: antialiased; }

html, body { margin: 0; padding: 0; }
body { overflow-x: clip; }

a { text-decoration: none; }
@font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ortak sağ kenar — top bar, header ve hero slider aynı sağ hizada biter */
.edge-r {
  padding-right: 100px;
}
@media (max-width: 1280px) { .edge-r { padding-right: 80px; } }
@media (max-width: 1024px) { .edge-r { padding-right: 60px; } }
@media (max-width: 900px)  { .edge-r { padding-right: 5%; } }
@media (max-width: 480px)  { .edge-r { padding-right: 16px; } }

/* ---------- NAV LINK + DALGA ANİMASYONU ---------- */
.nav-link {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  padding: 8px 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #cd1018;
}

.nav-link.is-active {
  color: #cd1018;
}

.nav-link > svg {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 26px;
  height: 8px;
  color: #cd1018;
  pointer-events: none;
  overflow: visible;
}

.nav-link > svg path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  fill: none;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover > svg path,
.nav-link.is-active > svg path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nav-link > svg path {
    transition: none;
  }
}

/* =========================================================
   LOGO (header)
   ========================================================= */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 220px;
  height: 96px;
  overflow: visible;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .logo {
  max-width: 130px;
}

/* Yatay LOGO (img) — default görünür, scroll'da kaybolur */
.logo-wide {
  height: 72px;
  width: auto;
  display: block;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .logo-wide {
  opacity: 0;
  transform: scale(0.6) translateX(-30px);
  pointer-events: none;
}

/* Yuvarlak amblem (img) — default gizli, scroll'da pop ile gelir.
   Header'dan aşağı taşar (header 96px, amblem 120px) */
.logo-mark {
  position: absolute;
  left: 0;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(205, 16, 24, 0.28);
}

body.scrolled .logo-mark {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

/* Footer logo */
.footer-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* =========================================================
   HEADER ARKA PLAN — 3 TİP
   - body.header-transparent : default hero üzerinde başlar (transparan)
   - body.header-white       : her zaman beyaz
   - body.header-dark        : her zaman koyu siyah
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Tip 1 — Transparent (hero üzerinde başlar, scroll'da beyaza döner) */
body.header-transparent .site-header { background: transparent; }
body.header-transparent.scrolled .site-header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Tip 2 — Her zaman beyaz */
body.header-white .site-header { background: #ffffff; }
body.header-white.scrolled .site-header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Tip 3 — Her zaman koyu siyah */
body.header-dark .site-header { background: #000000; }
body.header-dark.scrolled .site-header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Header-white ve header-dark: sticky layout'ta yer kapladığı için padding gerekmez */

/* ----- Nav-link renkleri body class'a göre -----
   header-transparent & header-white: default SİYAH yazı, hover KIRMIZI (base)
   header-dark:                       default BEYAZ yazı, hover SARI */
body.header-dark .nav-link { color: #ffffff; }
body.header-dark .nav-link:hover,
body.header-dark .nav-link.is-active { color: #fec703; }
body.header-dark .nav-link > svg { color: #fec703; }

/* ----- Hamburger rengi body class'a göre ----- */
body.header-dark #hamburger { color: #ffffff; }

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1.5px dashed currentColor;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: height var(--transition-base), color var(--transition-base);
}

/* =========================================================
   FOOTER (tüm sayfalarda)
   ========================================================= */
.site-footer {
  background: #000000;
  color: #ffffff;
  position: relative;
}

/* Üstte 4px sarı + kırmızı şerit */
.footer-strip {
  height: 4px;
  background: linear-gradient(to right, #fec703 0%, #fec703 50%, #cd1018 50%, #cd1018 100%);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px 36px;
}

/* Üst kısım: logo + menü */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-logo .logo-placeholder {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  height: 48px;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fec703;
}

/* Alt kısım: copyright + linkler + sosyal */
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.footer-copyright { line-height: 1.5; }

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.25);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.3s, transform 0.2s;
}

.footer-social a:hover {
  background: #cd1018;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; align-items: flex-start; padding-bottom: 32px; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 24px; }
  .footer-bottom-right { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* =========================================================
   MOBİL MENÜ (sağdan kayan tam ekran overlay)
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: #cd1018;
  z-index: 100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.45s;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Açıkken sayfa scroll kilidi */
body.menu-open {
  overflow: hidden;
}

/* Desktop'ta mobil menü yok */
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* Üst: logo + kapat butonu */
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mobile-menu-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.mobile-menu-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mobile-menu-close:active {
  transform: scale(0.92);
}

.mobile-menu-close svg {
  width: 22px;
  height: 22px;
}

/* Linkler */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-link {
  font-family: "Gilroy", Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 8vw, 2.75rem);
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 0;
  line-height: 1.1;
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-link:last-of-type {
  border-bottom: none;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  padding-left: 14px;
  color: #fec703;
}

/* Sipariş Ver */
.mobile-menu-order {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fec703;
  color: #000000;
  font-family: "Gilroy", Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 8px 8px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.mobile-menu-order:hover {
  background: #ffffff;
}

.mobile-menu-order span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000000;
  color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu-order:hover span {
  transform: translateX(3px);
}

.mobile-menu-order svg {
  width: 16px;
  height: 16px;
}

/* İletişim */
.mobile-menu-contact {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.mobile-menu-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu-contact a:hover {
  color: #fec703;
}





/* =========================================================
   PAGE HEADER (tüm iç sayfalar için ortak)
   ========================================================= */
.page-header {
  position: relative;
  background: #cd1018;
  color: #ffffff;
  border-bottom-left-radius: 60px;
  padding: 60px 50px 70px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

@media (max-width: 1280px) { .page-header { padding: 56px 48px 64px; } }
@media (max-width: 1024px) { .page-header { padding: 52px 40px 60px; border-bottom-left-radius: 50px; } }
@media (max-width: 768px)  { .page-header { padding: 44px 24px 52px; border-bottom-left-radius: 40px; } }
@media (max-width: 480px)  { .page-header { padding: 40px 20px 44px; border-bottom-left-radius: 32px; min-height: 180px; } }

.page-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb-sep { width: 14px; height: 14px; opacity: 0.5; }
.breadcrumb-current { color: #ffffff; font-weight: 600; }

/* Başlık */
.page-title {
  font-family: "Gilroy", Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0;
}

/* =========================================================
   PAGE HEADER DEKORATİF PNG
   Sabit yükseklik (px), oranlı genişlik (auto), sabit konum.
   Window resize'da KIPIRDMAZ. Sadece breakpoint'te değer değişir.
   ========================================================= */
.page-header-decor {
  position: absolute;
  right: 60px;
  bottom: 100px;
  height: 100%;
  width: auto;
  transform: translateY(50%);
  pointer-events: none;
  z-index: 1;
  display: block;
}

@media (max-width: 1280px) {
  .page-header-decor { right: 48px; height: 100px; }
}

@media (max-width: 1024px) {
  .page-header-decor { right: 36px; height: 85px; }
}

@media (max-width: 768px) {
  .page-header-decor { right: 24px; height: 65px; }
}

@media (max-width: 480px) {
  .page-header-decor { height: auto; position:absolute}
}
