/* ============================================
   ÇENGELKÖY BÖREKÇİSİ — Design System
   ============================================ */

:root {
  /* Oven tones — baker's palette */
  --ink: #2A1A0E;            /* darkest, for text */
  --coffee: #3D2817;          /* brand primary (logo) */
  --espresso: #4E3424;
  --crust: #8B5A3C;           /* warm medium */
  --butter: #E8B842;          /* butter yellow accent */
  --butter-deep: #C99325;
  --ember: #8B2E1F;           /* warm red-brown accent */
  --cream: #F5EFE6;           /* page background warm */
  --cream-2: #FBF7F0;         /* lighter cream */
  --bone: #FFFDF8;            /* near-white */
  --beige: #E8DCC4;
  --beige-2: #D9C9A8;
  --line: rgba(61, 40, 23, 0.12);
  --line-strong: rgba(61, 40, 23, 0.24);

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;

  /* Shape */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(42, 26, 14, 0.06), 0 4px 12px rgba(42, 26, 14, 0.04);
  --shadow-2: 0 8px 24px rgba(42, 26, 14, 0.10), 0 2px 6px rgba(42, 26, 14, 0.06);
  --shadow-3: 0 24px 60px rgba(42, 26, 14, 0.16), 0 6px 16px rgba(42, 26, 14, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Yatay scroll engelleme — absolute-positioned elementlerin (rozet, rotate vb.)
   viewport dışına taşmasını önler. Dikey scroll normal çalışır.
   NOT: `overflow-x: clip` kullanıyoruz (hidden değil) çünkü hidden, position: sticky'yi
   bozar (sticky en yakın scroll ancestor'a bağlanır, body/html scroll container olur
   ve element sayfa scroll'undan kopar). `clip` taşmayı engeller ama yeni scroll
   container yaratmaz → sticky doğru çalışır. (Safari 16+, Chrome 90+, Firefox 81+) */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ Typography utilities ============ */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.sans { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crust);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--coffee);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* ============ Layout ============ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 80px 0; }

/* Responsive — padding'ler küçük ekranlarda azalır */
@media (max-width: 900px) {
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  section { padding: 48px 0; }
  .container, .container-narrow { padding: 0 16px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--coffee);
  color: var(--cream-2);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-ghost {
  background: transparent;
  color: var(--coffee);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--coffee);
  color: var(--cream-2);
  border-color: var(--coffee);
}
.btn-butter {
  background: var(--butter);
  color: var(--coffee);
  font-weight: 600;
}
.btn-butter:hover {
  background: var(--butter-deep);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 32px; font-size: 15px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Top Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo img {
  height: 80px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--espresso);
  border-radius: var(--r-pill);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.nav-link:hover { background: rgba(61, 40, 23, 0.07); color: var(--coffee); }
.nav-link.active { color: var(--coffee); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--butter);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 16px;
}
.nav-mobile-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: var(--coffee);
    color: var(--cream);
  }
}

/* Top marquee strip */
.marquee-bar {
  background: var(--coffee);
  color: var(--cream-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 42s linear infinite;
  padding-left: 48px;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--butter);
  border-radius: 50%;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ Hero (shared) ============ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

/* Editorial ornament */
.ornament {
  position: absolute;
  pointer-events: none;
  color: var(--butter);
  opacity: 0.9;
}

/* Börek "card" illustration — stylized CSS */
.boerek-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 30%, #E3A14A 0%, #B8702A 40%, #6B3A15 95%),
    #6B3A15;
  box-shadow: var(--shadow-3);
}
.boerek-art::before {
  /* flaky layers */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(78deg,
      rgba(255, 220, 150, 0.18) 0px,
      rgba(255, 220, 150, 0.18) 2px,
      transparent 2px,
      transparent 9px),
    repeating-linear-gradient(100deg,
      rgba(80, 30, 0, 0.12) 0px,
      rgba(80, 30, 0, 0.12) 1px,
      transparent 1px,
      transparent 6px);
  mix-blend-mode: overlay;
}
.boerek-art::after {
  /* glossy highlight */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 240, 200, 0.5), transparent 60%),
    radial-gradient(ellipse 80% 50% at 70% 90%, rgba(0,0,0,0.35), transparent 70%);
  mix-blend-mode: soft-light;
}
.boerek-art.square { aspect-ratio: 1 / 1; }
.boerek-art.wide { aspect-ratio: 16 / 10; }

.boerek-art .plate-label {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(42, 26, 14, 0.55);
  backdrop-filter: blur(10px);
  color: var(--cream-2);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Alternative börek card - paper/parchment style */
.boerek-art.kol {
  background:
    radial-gradient(ellipse 140% 90% at 50% 50%, #D89449 0%, #8B5A2B 55%, #4A2612 100%);
}
.boerek-art.su {
  background:
    radial-gradient(ellipse 140% 90% at 50% 50%, #F0C874 0%, #A67628 55%, #5C3812 100%);
}
.boerek-art.sigara {
  background:
    linear-gradient(135deg, #C98140 0%, #7A431C 70%, #4A2612 100%);
}

/* ============ Shared cards / chips ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--espresso);
}
.chip .dot {
  width: 6px; height: 6px;
  background: var(--butter);
  border-radius: 50%;
}

.card {
  background: var(--bone);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

/* ============ Footer ============ */
.footer {
  background: var(--coffee);
  color: var(--cream-2);
  padding: 96px 0 32px;
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--butter), transparent);
  opacity: 0.4;
}
.footer a:hover { color: var(--butter); }

/* ============ Animation helpers ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.d-1 { animation-delay: 0.08s; }
.d-2 { animation-delay: 0.16s; }
.d-3 { animation-delay: 0.24s; }
.d-4 { animation-delay: 0.32s; }
.d-5 { animation-delay: 0.40s; }

@keyframes steam {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  30% { opacity: 0.55; }
  100% { transform: translateY(-60px) scale(1.4); opacity: 0; }
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coffee);
  background: #fff;
}

/* Divider with label */
.rule-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--crust);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.rule-label::before, .rule-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--bone);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 18px;
  z-index: 100;
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--coffee);
}
.tweaks-panel .muted {
  font-size: 11px;
  color: var(--crust);
  margin-bottom: 14px;
}
.tweaks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.tweaks-row button {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream-2);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;
}
.tweaks-row button.active {
  border-color: var(--coffee);
  background: var(--coffee);
  color: var(--cream);
}

/* Utility */
.grid { display: grid; }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.muted { color: var(--crust); }

/* ============================================
   Goreel Form Builder — frontend stilleri
   cms_form() çıktısını Çengelköy markasıyla uyumlu hale getirir
   ============================================ */
.goreel-form {
  width: 100%;
}
.goreel-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.goreel-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.goreel-form-field-half {
  /* Form Builder'da col_span=6 olanlar (2 sütun grid için) */
  grid-column: span 1;
}
@media (min-width: 640px) {
  .goreel-form-grid { grid-template-columns: 1fr 1fr; }
  .goreel-form-field { grid-column: span 2; }
  .goreel-form-field-half { grid-column: span 1; }
}
.goreel-form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--espresso);
  text-transform: uppercase;
}
.goreel-form-required {
  color: var(--ember);
  margin-left: 2px;
}
.goreel-form input[type="text"],
.goreel-form input[type="email"],
.goreel-form input[type="tel"],
.goreel-form input[type="url"],
.goreel-form input[type="number"],
.goreel-form input[type="date"],
.goreel-form input[type="datetime-local"],
.goreel-form input[type="file"],
.goreel-form select,
.goreel-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.goreel-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.goreel-form input:focus,
.goreel-form select:focus,
.goreel-form textarea:focus {
  outline: none;
  border-color: var(--coffee);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 40, 23, 0.08);
}
.goreel-form-help {
  font-size: 11px;
  color: var(--crust);
  margin-top: 2px;
}
.goreel-form-field-error {
  font-size: 12px;
  color: var(--ember);
  margin-top: 2px;
  font-weight: 500;
}
.goreel-form-field.has-error input,
.goreel-form-field.has-error select,
.goreel-form-field.has-error textarea {
  border-color: var(--ember);
  background: rgba(139, 46, 31, 0.04);
}

/* Radio / checkbox grupları */
.goreel-form-radio-group,
.goreel-form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.goreel-form-radio-group label,
.goreel-form-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--espresso);
  cursor: pointer;
}
.goreel-form-radio-group input[type="radio"],
.goreel-form-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--coffee);
}

/* Tek onay kutusu (KVKK, şartlar vb.) — label ile inline */
.goreel-form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--espresso);
  cursor: pointer;
  padding: 4px 0;
}
.goreel-form-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--coffee);
  flex: none;
}
.goreel-form-checkbox-label a {
  color: var(--coffee);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.goreel-form-checkbox-label a:hover {
  color: var(--ink);
}

/* Gönder butonu */
.goreel-form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 640px) {
  .goreel-form-actions { grid-column: span 2; }
}
.goreel-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  background: var(--coffee);
  color: var(--cream-2);
  border: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.goreel-form-submit:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.goreel-form-submit:active {
  transform: translateY(0);
}

/* Success / error mesajları */
.goreel-form-success {
  padding: 16px 20px;
  background: rgba(139, 46, 31, 0.06);
  border-left: 3px solid var(--butter);
  border-radius: var(--r-md);
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.goreel-form-error {
  padding: 16px 20px;
  background: rgba(139, 46, 31, 0.08);
  border-left: 3px solid var(--ember);
  border-radius: var(--r-md);
  color: var(--ember);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ============================================
   Responsive — Genel mobil fix'ler
   Her sayfa için tek yerden kontrol edilir
   ============================================ */

/* Nav logo mobilde küçülür */
@media (max-width: 768px) {
  .nav-logo img { height: 56px; }
  .nav-inner { padding: 14px 16px; }
}

/* Card padding mobilde azalır */
@media (max-width: 560px) {
  .card { padding: 20px; }
}

/* Footer grid mobilde tek sütun + ortalı */
@media (max-width: 560px) {
  .footer-cols { gap: 32px !important; }
}

/* Form grid (2 sütunlu) — mobilde tek sütun */
@media (max-width: 640px) {
  .goreel-form-grid { grid-template-columns: 1fr !important; }
  .goreel-form-field { grid-column: span 1 !important; }
  .goreel-form-submit { width: 100%; justify-content: center; }
}

/* Hero — mobilde çok uzun olmasın ama absolute-positioned slide'ların görünmesi için min-height gerekir */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh !important;
    height: auto !important;
    max-height: none !important;
  }
  .hero .container {
    padding-top: 80px !important;
    padding-bottom: 100px !important;
  }
}
@media (max-width: 480px) {
  .hero { min-height: 85vh; }
}

/* Hero slider bullet'lar — container ile hizalı */
@media (max-width: 560px) {
  .hero > div[style*="position: absolute"][style*="left: 32px"] {
    left: 16px !important;
    bottom: 20px !important;
  }
}

/* Timeline mobilde */
@media (max-width: 640px) {
  .timeline-wrapper .timeline-line { left: 24px !important; }
  .timeline-item { padding-left: 60px !important; padding-bottom: 40px !important; }
  .timeline-year {
    position: static !important;
    width: auto !important;
    text-align: left !important;
    padding: 0 0 6px 0 !important;
  }
  .timeline-year > div { font-size: 22px !important; line-height: 1.2 !important; }
}

/* Hijyen adımları — 4 col → 2 col mobile-md → 1 mobile-sm */
@media (max-width: 900px) {
  .hygiene-steps { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Certificate grid — 6 col → 3 → 2 */
@media (max-width: 800px) {
  .certs-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .cert-cell { border-right: 0 !important; }
}
@media (max-width: 480px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Product/press detay grid'leri mobilde tek sütun */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .branches-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .products-full-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .press-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .similar-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .related-news-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .products-grid,
  .branches-grid,
  .products-full-grid,
  .press-grid,
  .similar-grid { grid-template-columns: 1fr !important; }
}

/* Process/Values/Corporate-tiles 3-col → 1-col */
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .corporate-tiles { grid-template-columns: 1fr !important; }
  .career-values { grid-template-columns: 1fr !important; }
  .franchise-criteria { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr !important; }
  .franchise-criteria { grid-template-columns: 1fr !important; }
  .platforms-grid { grid-template-columns: 1fr !important; }
}

/* Long heading'lerde kelime kopma (çok büyük font + dar ekran) */
@media (max-width: 480px) {
  .display { word-break: normal; overflow-wrap: break-word; }
}

/* Breadcrumb mobilde satır atar */
@media (max-width: 560px) {
  .page-body, .container-narrow { font-size: 15px !important; }
}

/* ============================================
   Overflow Safety — specific cases
   ============================================ */

/* Franchise banner badge — rotate + negative position parent'tan taşar */
.franchise-grid {
  position: relative;
  overflow: visible;
}
.franchise-grid > div:last-child {
  position: relative;
}

/* Final CTA kartı — rounded ve pad iç — dış taşma yok */
.final-cta-card {
  position: relative;
  overflow: hidden;
}

/* Görseller hiçbir zaman parent'tan taşmasın */
img, video, iframe, svg {
  max-width: 100%;
}

/* Absolute gradient overlay'lerin parent'ı overflow:hidden yoksa taşmasın */
.hero, .hero > div,
section[style*="overflow: hidden"] {
  overflow: hidden;
}

/* Marquee'nin parent'ına güvenlik */
.marquee-bar { overflow: hidden; max-width: 100vw; }

/* Butonlar mobilde tam genişlik (hero + banner CTA grupları) */
@media (max-width: 560px) {
  .hero .btn,
  .final-cta-card .btn,
  .franchise-grid .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Bilgi kartları ve 3-col info grid mobilde tek sütun */
@media (max-width: 900px) {
  .contact-info-grid { grid-template-columns: 1fr !important; }
}

/* Franchise rozet — mobilde taşmasın */
@media (max-width: 768px) {
  .franchise-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .franchise-grid > div:last-child > div:last-child {
    /* Döndürülmüş badge'ı mobilde kart-içi ve daha küçük */
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 16px auto 0 !important;
  }
}

/* Locations — mobilde harita sabit-olmayan ve kısa */
@media (max-width: 900px) {
  .locations-grid > div:first-child {
    position: static !important;
  }
  .locations-grid > div:first-child > div {
    height: 320px !important;
  }
  .locations-list { max-height: none !important; overflow: visible !important; }
}

/* Büyük gap'ler mobilde azalır (genel kural) */
@media (max-width: 640px) {
  .intro-story-grid,
  .contact-form-grid,
  .career-form-grid,
  .franchise-form-grid,
  .branch-detail-grid,
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ==========================================================================
   Performans — below-the-fold render atlatma + image lazy optimizasyonu
   ========================================================================== */

/* Below-the-fold section'lar: viewport dışında render edilmez, scroll yaklaşınca
   oluşturulur. İlk section (hero) hariç tut — LCP etkilenmesin. */
main > section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px; /* layout shift'i önlemek için tahmini min yükseklik */
}

/* Görsellerin aspect-ratio'ları CLS'i azaltır. cms_picture/cms_image
   width/height attr yazmıyorsa aspect-ratio CSS'te tanımlı olmalı. */
img, picture img {
  max-width: 100%;
  height: auto;
}

/* Font yükleme esnasında görünmez metin (FOIT) yerine sistem fontu (FOUT) */
html { font-display: swap; }

/* ==========================================================================
   CMS helper'larının default stilleri — cms_content_card(), cms_button()
   Bu class'lar Goreel CMS core helper'ları tarafından üretilir; proje
   tasarımı burada override edilir. Başka müşteriye taşırken bu blok
   müşterinin brand paletine göre yeniden yazılır.
   ========================================================================== */

/* İçerik kartı — cms_content_card() output'u için */
.cms-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cms-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.cms-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--beige);
}
.cms-card__thumb img,
.cms-card__thumb picture,
.cms-card__thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-card__body {
  padding: 20px 24px;
}
.cms-card__title {
  font-family: var(--serif, serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--coffee);
  margin: 0 0 8px;
}
.cms-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--espresso);
  margin: 0;
}

/* Buton — cms_button() output'u için; mevcut .btn stilleriyle benzer ama
   tema-agnostik class ismi, override kolay. */
.cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill, 999px);
  font-family: var(--sans, inherit);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.cms-button:hover { transform: translateY(-1px); }

.cms-button--primary {
  background: var(--butter);
  color: var(--coffee);
  border-color: var(--butter);
}
.cms-button--primary:hover {
  background: var(--butter-dark, #d4a74e);
  border-color: var(--butter-dark, #d4a74e);
}

.cms-button--secondary {
  background: transparent;
  color: var(--coffee);
  border-color: var(--coffee);
}
.cms-button--secondary:hover {
  background: var(--coffee);
  color: var(--cream-2);
}

.cms-button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.cms-button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.cms-button--link {
  background: transparent;
  color: var(--coffee);
  border: 0;
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
}
.cms-button--link:hover {
  color: var(--crust);
}
