/* ═══════════════════════════════════════════════════════
   Tataroğlu Gıda — Layout CSS
   Navbar, footer, hero, sayfa düzeni kalıpları
═══════════════════════════════════════════════════════ */

/* ══════════════ SCROLL PROGRESS ══════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(10,132,255,0.6);
}

/* ══════════════ NAVBAR ══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--navbar-h);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(7,13,24,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar.scrolled {
  background: rgba(7,13,24,0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.35);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--content-max);
  margin: 0 auto;
  gap: 1rem;
}

/* ── Brand ── */
.navbar-brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 1.0625rem; font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-primary);
}
.navbar-brand-icon {
  width: 2.125rem; height: 2.125rem;
  background: linear-gradient(135deg, #0A84FF 0%, #5e6ad2 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(10,132,255,0.3), 0 4px 12px rgba(10,132,255,0.25);
  flex-shrink: 0;
}
.navbar-brand-icon svg { display: block; }
.navbar-brand-dot { color: var(--primary); }

/* ── Desktop nav ── */
.navbar-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: nowrap;
}
@media (min-width: 900px) { .navbar-nav { display: flex; } }
.navbar-nav > li { display: flex; flex-shrink: 0; }

.nav-link {
  position: relative;
  padding: 0.4375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s, background 0.18s;
  display: flex; align-items: center; gap: 0.3rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-link svg { opacity: 0.65; transition: opacity 0.18s; flex-shrink: 0; }
.nav-link:hover  { color: var(--text-primary); background: rgba(255,255,255,0.055); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { color: var(--primary); }
.nav-link.active svg { opacity: 1; color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(10,132,255,0.5);
}

/* ── Actions ── */
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.navbar-phone {
  display: none;
  align-items: center; gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 6px;
  border: 1px solid rgba(52,211,153,0.2);
  font-size: 0.8125rem; font-weight: 600;
  color: #34d399;
  background: rgba(52,211,153,0.06);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 640px) { .navbar-phone { display: flex; } }
.navbar-phone:hover {
  border-color: rgba(52,211,153,0.45);
  background: rgba(52,211,153,0.1);
  box-shadow: 0 0 14px rgba(52,211,153,0.12);
}
.navbar-phone svg { flex-shrink: 0; }

/* ── Hamburger ── */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 2.25rem; height: 2.25rem; gap: 4.5px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.menu-toggle span {
  display: block; height: 1.5px; width: 16px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  position: fixed; top: var(--navbar-h); left: 0; right: 0; z-index: 850;
  background: rgba(9,15,26,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(calc(-100% - var(--navbar-h)));
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; gap: 0.125rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.mobile-nav.open { transform: translateY(0); }

.mobile-nav .nav-link {
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.7);
}
.mobile-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.07); }
.mobile-nav .nav-link.active { color: var(--primary); background: rgba(10,132,255,0.08); }

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.5rem 0;
}
.mobile-nav-footer {
  display: flex; gap: 0.5rem;
  padding-top: 0.25rem;
}
.mobile-nav-footer a,
.mobile-nav-footer button {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.18s, box-shadow 0.18s;
}
.mobile-nav-call {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2) !important;
  color: #34d399 !important;
}
.mobile-nav-call:hover { opacity: 0.85; }
.mobile-nav-order {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(10,132,255,0.35);
}
.mobile-nav-order:hover { opacity: 0.9; }

/* ══════════════ HERO SECTION ══════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -10%, rgba(10,132,255,0.12), transparent),
              radial-gradient(ellipse 60% 60% at 90% 80%, rgba(99,102,241,0.08), transparent);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content { position: relative; z-index: 1; }

/* ══════════════ PAGE HERO (inner pages) ══════════════ */
.page-hero {
  padding: calc(var(--navbar-h) + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(10,132,255,0.1), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1   { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p    { font-size: 1.0625rem; color: var(--text-secondary); max-width: 40rem; }

/* ══════════════ SECTION PATTERNS ══════════════ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.875rem;
}
.section-header p { font-size: 1.0625rem; color: var(--text-secondary); max-width: 36rem; margin: 0 auto; }

/* Grid helpers */
.grid-2  { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.grid-3  { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.grid-4  { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }

/* ══════════════ FOOTER ══════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: rgba(0,0,0,0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; max-width: 22rem; }
.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-links   { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; width: 1rem; height: 1rem; color: var(--primary); margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--text-faint); }
.footer-legal-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red);
  font-size: 0.75rem; font-weight: 700;
}
.footer-legal-warning {
  font-size: 0.75rem; color: var(--text-faint);
  border-top: 1px solid var(--border);
  margin-top: 1.25rem; padding-top: 1rem;
  line-height: 1.6; text-align: center;
}

/* ══════════════ COOKIE BANNER ══════════════ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: rgba(14,22,35,0.97);
  border-top: 1px solid var(--border-strong);
  padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 0.875rem; color: var(--text-secondary); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--primary); text-decoration: underline; }

/* ══════════════ STATS BAR ══════════════ */
.stats-bar {
  background: linear-gradient(135deg, rgba(10,132,255,.12), rgba(99,102,241,.08));
  border: 1px solid var(--primary-border);
  padding: 2.5rem 2rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; }
.stat-item  { text-align: center; }
.stat-value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .375rem; font-weight: 500; }

/* ══════════════ PARTNER LOGOS ══════════════ */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; height: 5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  font-size: .875rem; font-weight: 600;
  text-align: center;
  transition: var(--transition);
}
.partner-logo:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-subtle); }

/* Partner card logo box (index.php İş Ortaklarımız) */
.partner-logo-box {
  width: 3.5rem; height: 3.5rem;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .2s ease;
}
.partner-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .35rem;
  display: block;
}
.partner-logo-fb {
  display: none;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 1.25rem; font-weight: 900;
  background: rgba(0,0,0,.25);
}

/* ══════════════ 404 PAGE ══════════════ */
.page-404 {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.page-404 h1 { font-size: clamp(5rem, 15vw, 10rem); font-weight: 900; line-height: 1; color: var(--primary); }
.page-404 h2 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.page-404 p  { color: var(--text-secondary); margin-bottom: 2rem; }

/* ══════════════ WHATSAPP FLOAT BTN ══════════════ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-ring 3s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: #fff; }
