/* ============================================================
   Samsun Boyacılık — tasarım sistemi (mobile-first)
   Az token, tutarlı tipografi, ikon yalnız işlevsel yerde.
   Sayfa arkasındaki "duvar" scroll ilerledikçe boyanır (--p, js/main.js).
   ============================================================ */

/* ---------- Yazı tipi (self-host Inter, değişken ağırlık) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Renk */
  --ink: #17202a;
  --ink-soft: #33404e;
  --muted: #5b6673;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --plaster: #efece6;          /* boyanmamış sıva */
  --paint: #1b4f8a;            /* boya rengi */
  --paint-deep: #123a66;
  --paint-tint: #e8f0f9;
  --wall-paint: #3d7fcb;       /* duvara sürülen boya (panellerden açık ton) */
  --wall-paint-2: #2a5f9e;
  --accent: #e8611a;           /* rulo sapı / vurgu */
  --accent-dark: #c94f12;
  --accent-text: #b5450f;      /* metin/buton zemini için koyu turuncu (AA) */
  --wa: #137a40;             /* beyaz metinle 5.4:1 */
  --wa-dark: #0e6b35;

  /* Tipografi */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(1.85rem, 1.15rem + 3.2vw, 3.1rem);
  --fs-h2: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);

  /* Boşluk & köşe */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: 3.5rem;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(18, 58, 102, 0.14);
  --shadow-sm: 0 2px 10px rgba(18, 58, 102, 0.08);

  --container: 1120px;
  --gutter: 16px;              /* panel ile duvar arası (mobil) */
  --gap: 14px;                 /* paneller arası (duvar görünür) */
  --header-h: 64px;
  --bar-h: 64px;               /* mobil alt aksiyon çubuğu */

  --p: 0.06;                   /* boyama ilerlemesi 0–1 (JS) */
  --rx: 50;                    /* rulonun yatay konumu, % (JS) */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--plaster);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.55em; letter-spacing: -0.015em; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--paint); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--paint-deep); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Duvar (arka plan) ve rulo ---------- */
.wall { position: fixed; inset: 0; z-index: -1; background: var(--plaster); overflow: hidden; pointer-events: none; }
.wall::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.016) 0 1px, transparent 1px 4px);
}
.wall-paint {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--wall-paint) 0%, var(--wall-paint-2) 100%);
  transform-origin: top; transform: scaleY(var(--p));
  will-change: transform;
}
.wall-edge {
  position: absolute; left: 0; width: 100%; height: 12px; top: calc(var(--p) * 100%);
  background: radial-gradient(circle at 9px -1px, var(--wall-paint-2) 8px, transparent 9px) 0 0 / 18px 12px repeat-x;
  opacity: 0.95;
}
.roller {
  position: absolute; top: calc(var(--p) * 100%); left: calc(var(--rx) * 1%);
  width: 92px; height: 34px; margin: -20px 0 0 -46px;
  will-change: top, left;
}
.roller-body {
  position: absolute; inset: 0; border-radius: 17px;
  background: linear-gradient(180deg, #fbfbfb 0%, #dfe3e8 55%, #c7cdd5 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.roller-body::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 12px; border-radius: 6px;
  background: var(--wall-paint-2); opacity: 0.92;
}
.roller-handle {
  position: absolute; left: 50%; top: 22px; width: 7px; height: 46px; margin-left: -3px;
  background: linear-gradient(180deg, #aeb6bf, #8e97a2); border-radius: 4px;
  transform: rotate(-26deg); transform-origin: top center;
}
.roller-grip {
  position: absolute; left: 50%; top: 58px; width: 18px; height: 34px; margin-left: -9px;
  background: var(--accent); border-radius: 9px;
  transform: rotate(-26deg); transform-origin: 9px -36px;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent-text); color: #fff; }
.btn-primary:hover { background: #a03c0c; color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline-dark:hover { border-color: var(--paint); color: var(--paint); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo svg { height: 38px; width: auto; display: block; flex: none; }
.logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
  color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em;
}
.logo-text small {
  font-weight: 500; font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta { display: none; }
.header-cta .btn { min-height: 42px; padding: 9px 18px; font-size: 0.94rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

/* Mobil menü: tam ekran panel */
.nav {
  position: fixed; inset: 0; z-index: 200;
  background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 76px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform 0.25s ease; visibility: hidden;
}
.nav.open { transform: translateX(0); visibility: visible; box-shadow: var(--shadow); }
.nav > ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 14px 6px; color: var(--ink);
  font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line);
}
.nav a:hover { text-decoration: none; color: var(--paint); }
.nav a[aria-current="page"] { color: var(--paint); }
.nav .sub { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.nav .sub a { font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); padding: 11px 6px; }
.nav-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.nav-contact { margin-top: var(--sp-3); display: grid; gap: 10px; }
.nav-contact .btn { width: 100%; }

/* ---------- Paneller (bölümler duvarın üstünde durur) ---------- */
main { display: block; }
.section, .hero, .page-hero, .cta-band {
  margin: var(--gap) var(--gutter) 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.section { padding: var(--sp-4) 0; }
.section-alt { background: var(--bg-alt); }
.section > .container, .hero > .container, .page-hero > .container, .cta-band > .container {
  padding-left: var(--sp-3); padding-right: var(--sp-3);
}
main > :last-child { margin-bottom: var(--gap); }

/* ---------- Hero (ana sayfa) ---------- */
.hero {
  background: linear-gradient(160deg, var(--paint-deep) 0%, var(--paint) 100%);
  color: #fff; padding: var(--sp-4) 0 var(--sp-3);
}
.hero .container { display: grid; gap: var(--sp-3); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero .lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.9); max-width: 36em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--sp-3) 0; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-trust {
  display: grid; gap: 6px; margin: 0; padding: 0; list-style: none;
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.88);
}
.hero-trust li { position: relative; padding-left: 22px; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent);
}

/* ---------- Alt sayfa hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--paint-deep) 0%, var(--paint) 100%);
  color: #fff; padding: var(--sp-3) 0 var(--sp-4);
}
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-lead); max-width: 46em; margin-bottom: 0; }

.breadcrumbs { font-size: 0.84rem; margin-bottom: var(--sp-2); color: rgba(255, 255, 255, 0.78); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.92); }

/* ---------- Bölüm başlıkları (fırça alt çizgisi görünür olunca boyanır) ---------- */
.section-head { max-width: 720px; margin-bottom: var(--sp-3); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block; color: var(--accent-text); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%;
  border-radius: 3px; background: var(--paint);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section-head.center h2::after { transform-origin: center; }
.section-head.in h2::after { transform: scaleX(1); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 0; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-2); }

/* ---------- Kartlar ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-columns: 112px 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: 100%; }
.card-body { padding: 14px 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-body h3 { margin: 0; font-size: 1rem; }
.card-body p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.card-link { font-weight: 600; font-size: 0.92rem; }
.card-link::after { content: " \2192"; }
.card:not(:has(img)) { grid-template-columns: 1fr; }
.card:not(:has(img)) .card-body { padding: var(--sp-3); }

/* ---------- Numaralı bloklar ---------- */
.num-item { padding: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section-alt .num-item { background: #fff; }
.num-item .num {
  display: inline-block; font-weight: 800; font-size: 0.95rem; color: var(--paint);
  border: 2px solid var(--paint); border-radius: 8px; width: 34px; height: 34px;
  text-align: center; line-height: 30px; margin-bottom: var(--sp-2);
}
.num-item h3 { margin-bottom: 6px; }
.num-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Kontrol listesi ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--paint);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 12px no-repeat, linear-gradient(#000 0 0);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.25s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { font-size: 0.82rem; color: var(--muted); padding: 6px 10px; }

/* ---------- Yorumlar ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2);
}
.quote blockquote { margin: 0; font-size: 0.97rem; color: var(--ink-soft); flex: 1; }
.quote cite { font-style: normal; font-weight: 600; font-size: 0.9rem; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; }

/* ---------- SSS ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  padding: 15px 46px 15px 18px; font-weight: 600; cursor: pointer; list-style: none;
  position: relative; font-size: 0.98rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Bölge etiketleri ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
}
.chips a:hover { border-color: var(--paint); color: var(--paint); text-decoration: none; }

/* Mahalle listesi (ilçe sayfaları) */
.mahalle-list { columns: 2; column-gap: 20px; list-style: none; padding: 0; margin: 0 0 1em; font-size: 0.93rem; }
.mahalle-list li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- CTA bandı ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--paint-deep) 0%, var(--paint) 100%);
  color: #fff; padding: var(--sp-4) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 40em; margin: 0 auto 1.4em; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* ---------- İçerik (uzun metin) ---------- */
.prose { max-width: 780px; min-width: 0; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--radius-lg); margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose .note { font-size: 0.87rem; color: var(--muted); }
.article-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: var(--sp-3); }

/* İçerik + yan kutu: mobilde alt alta */
.layout-side { display: grid; gap: var(--sp-3); align-items: start; }
.side-box { background: var(--bg-alt); border-radius: var(--radius-lg); padding: var(--sp-3); }
.side-box h3 { margin-bottom: 10px; }
.side-box p { font-size: 0.93rem; color: var(--muted); }
.side-box .btn { width: 100%; margin-bottom: 10px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box ul a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.side-box ul li:last-child a { border-bottom: 0; }

/* ---------- İletişim ---------- */
.contact-item { padding: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-item h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.contact-item p { margin: 0; font-size: 1rem; }
.contact-item a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin: var(--gap) var(--gutter) 0; border-radius: var(--radius-lg);
  background: var(--paint-deep); color: rgba(255, 255, 255, 0.8); font-size: 0.93rem;
}
.site-footer > .container { padding-left: var(--sp-3); padding-right: var(--sp-3); }
.footer-grid { display: grid; gap: var(--sp-3); padding: var(--sp-4) 0 var(--sp-3); }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.footer-brand svg { height: 36px; width: auto; margin-bottom: 12px; }
.footer-brand p { max-width: 32em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--sp-2) 0 var(--sp-3); font-size: 0.82rem;
}
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; padding: 0; }

/* ---------- Mobil alt aksiyon çubuğu ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.bottom-bar .btn { min-height: 44px; padding: 10px 12px; font-size: 0.95rem; }
.wa-float { display: none; }

/* ---------- Görünüm geçişleri ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-head h2::after { transition: none; transform: scaleX(1); }
  .wall-paint { transform: scaleY(1); }
  .wall-edge, .roller { display: none; }
  .card, .gallery-grid img { transition: none; }
}

/* ---------- Çok dar ekran ---------- */
@media (max-width: 359px) {
  .logo-text small { display: none; }
  .nav-toggle { padding: 0 10px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; --gap: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { grid-template-columns: repeat(3, auto); gap: 0 var(--sp-3); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; }
  .mahalle-list { columns: 3; }
  .card { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 4 / 3; height: auto; }
  .card-body { padding: var(--sp-3); gap: 8px; }
  .card-body h3 { font-size: var(--fs-h3); }
  .card-body p { font-size: 0.95rem; }
  .card:hover { transform: translateY(-3px); }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; --gap: 22px; --header-h: 72px; }
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #fff; box-shadow: var(--shadow);
    transition: background-color 0.18s, transform 0.18s;
  }
  .wa-float:hover { background: var(--wa-dark); transform: scale(1.06); }
  .wa-float svg { width: 28px; height: 28px; }

  .section, .hero, .page-hero, .cta-band, .site-footer { width: min(100% - 2 * var(--gutter), var(--container) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
  .section > .container, .hero > .container, .page-hero > .container, .cta-band > .container, .site-footer > .container {
    padding-left: var(--sp-4); padding-right: var(--sp-4);
  }
  .section { padding: var(--sp-5) 0; }
  .hero { padding: var(--sp-5) 0; }
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-4); }
  .hero-actions { margin: var(--sp-3) 0; }
  .page-hero { padding: var(--sp-4) 0 var(--sp-5); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
  .grid-2 { gap: var(--sp-3); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .layout-side { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-4); }
  .side-box { position: sticky; top: calc(var(--header-h) + 16px); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: var(--sp-4); padding: var(--sp-5) 0 var(--sp-4); }
  .mahalle-list { columns: 4; }
  .section-head { margin-bottom: var(--sp-4); }
}

/* ---------- Geniş masaüstü: yatay menü ---------- */
@media (min-width: 1024px) {
  .logo svg { height: 42px; }
  .logo-text { font-size: 1.2rem; }
  .nav-toggle, .nav-close, .nav-contact { display: none; }
  .header-cta { display: block; }
  .nav {
    position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible;
    box-shadow: none; display: flex; align-items: center;
  }
  .nav > ul { display: flex; align-items: center; gap: 2px; }
  .nav a { padding: 10px 12px; font-weight: 500; font-size: 0.95rem; border: 0; border-radius: 8px; color: var(--ink-soft); }
  .nav a:hover { color: var(--paint); background: var(--bg-alt); }
  .nav a[aria-current="page"] { color: var(--paint); font-weight: 600; }
  .nav .has-sub { position: relative; }
  .nav .has-sub > a::after {
    content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
    border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
  }
  .nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px; margin: 4px 0 0; display: none; z-index: 110;
  }
  .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
  .nav .sub a { padding: 9px 12px; font-size: 0.93rem; color: var(--ink-soft); }

  .nav > ul > li > a { white-space: nowrap; }
}

/* ---------- Yazdırma ---------- */
@media print {
  .site-header, .wall, .bottom-bar, .wa-float, .cta-band, .site-footer { display: none; }
  body { background: #fff; padding: 0; }
  .section, .page-hero { box-shadow: none; margin: 0; }
}
