/* Bakkaloğlu İnşaat Malzemeleri, Kayışdağı
   Renkler logodan: kırmızı yazı ve iç çatı çizgisi, siyah dış çatı çizgisi ve kapı.
   Fayans grisi mağazanın zemininden. */

:root {
  --red: #D5262E;
  --red-dark: #B21D24;
  --ink: #1A1A1A;
  --muted: #4A4A4A;
  --line: #D6D6D2;
  --tile: #EFEFEC;
  --white: #FFFFFF;

  --font-head: "Fira Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --header-h: 96px;

  /* Hero: kırpım ve beyaz bloğun taşma payı buradan ayarlanır */
  --hero-h: clamp(460px, 66vh, 700px);
  --hero-pos: 50% 58%;
  --hero-pos-m: 50% 40%;
  --card-w: min(600px, 46vw);
  --card-drop: 132px;

  --logo-line: var(--ink);
  --logo-bg: var(--white);
  --logo-door: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Butonlar ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1;
  text-decoration: none; border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn--call { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--call:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--route { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--route:hover { background: #333; border-color: #333; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.logo { display: block; height: 76px; width: auto; aspect-ratio: 290 / 172; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 19px; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red); }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 26px; text-decoration: none;
  padding: 8px 0 8px 28px; border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.header-phone .ico { color: var(--red); width: 22px; height: 22px; }
.header-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__media { height: var(--hero-h); overflow: hidden; background: #c9d3dd; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos); }
.hero__wrap { position: relative; height: 0; }
.hero__card {
  position: absolute; left: var(--gutter); bottom: calc(-1 * var(--card-drop));
  width: var(--card-w);
  background: var(--white);
  padding: 42px 44px 38px;
  border-top: 7px solid var(--ink);
  z-index: 2;
}
/* logodaki gibi: siyah çizginin altında ince kırmızı çizgi */
.hero__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: var(--red);
}
.hero__card h1 { font-size: clamp(42px, 3.7vw, 58px); line-height: 1.0; }
.hero__lead { margin-top: 18px; font-size: 20px; color: var(--muted); }
.big-phone {
  display: inline-block; margin-top: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 3.3vw, 50px); line-height: 1;
  text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.big-phone:hover { color: var(--red); }
.hero__card .actions { margin-top: 22px; }
.hero__card .btn { flex: 1 1 180px; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 500; font-size: 18px; }
.status[hidden] { display: none; }
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: #1F8A4C; flex: none; }
.status.is-closed .status__dot { background: var(--red); }

/* Kısa bilgiler: hero kartının sağında, taşan kısmın yanında */
.facts { background: var(--tile); border-bottom: 1px solid var(--line); }
.facts .container { padding-left: calc(var(--gutter) + var(--card-w) + 56px); }
.facts__list { margin: 0; padding: 30px 0 34px; min-height: calc(var(--card-drop) + 40px); }
.facts__list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.facts__list > div + div { border-top: 1px solid var(--line); }
.facts__list dt { font-weight: 600; font-size: 17px; color: var(--muted); padding-top: 2px; }
.facts__list dd { margin: 0; font-size: 19px; line-height: 1.45; }
.facts__list strong { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1; }

/* ---------- Ürünler: logodaki ev ---------- */
.products { padding: 104px 0 96px; }
.house { --wall: 6px; --gap: 8px; --inner: 3px; position: relative; }
.house__roof { position: relative; }
.roof { display: block; width: 100%; height: 222px; overflow: visible; }
.roof path { fill: none; stroke-linejoin: miter; stroke-linecap: butt; }
.roof__outer { stroke: var(--ink); stroke-width: 6; }
.roof__inner { stroke: var(--red); stroke-width: 3; }
.roof.is-drawing path { transition: stroke-dashoffset 1.3s cubic-bezier(.45, 0, .2, 1); }
.roof.is-drawing .roof__inner { transition-delay: .18s; }

.house__title {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  text-align: center; width: max-content; max-width: 60%;
}
.house__title h2 { font-size: clamp(40px, 4vw, 56px); }
.house__title p { margin-top: 6px; font-size: 20px; color: var(--muted); }

.house__body {
  border: var(--wall) solid var(--ink); border-top: 0;
  padding: 0 var(--gap) var(--gap);
}
.house__inner { border: var(--inner) solid var(--red); border-top: 0; }

.rooms {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--ink);
  border-top: 2px solid var(--ink);
}
.room { background: var(--white); padding: 28px 28px 32px; display: flex; flex-direction: column; }
.room__photo {
  display: block; width: 100%; padding: 0; border: 0; background: var(--tile); cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px;
}
.room__photo img { width: 100%; height: 100%; object-fit: cover; }
.room h3 { font-size: 32px; }
.room p { margin-top: 10px; }
.room .room__brands { margin-top: auto; padding-top: 14px; font-size: 17px; color: var(--muted); }

.room--door { position: relative; min-height: 360px; }
.room__text { flex: 1; display: flex; flex-direction: column; }
.room__phone {
  margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.1;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.room__phone:hover { color: var(--red); }
.link-route { align-self: flex-start; margin-top: auto; padding-top: 16px; margin-right: 140px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.door { position: absolute; right: 28px; bottom: 0; width: 112px; line-height: 0; }
.door svg { width: 100%; height: auto; display: block; }
.door__leaf { transition: fill .2s ease; }
.door:hover .door__leaf { fill: var(--red); }

/* ---------- Markalar ---------- */
.brands { background: var(--tile); padding: 72px 0 80px; }
.brands h2 { font-size: clamp(34px, 3.2vw, 46px); }
.brands__list {
  list-style: none; margin: 28px 0 0 -24px; padding: 0; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 14px 0;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15;
}
/* her satırın ilk markasındaki çizgi listenin sol kenarında kırpılır */
.brands__list li { padding: 0 24px; margin-left: -2px; border-left: 2px solid var(--ink); }

/* ---------- Yorumlar ---------- */
.reviews { padding: 96px 0 96px; }
.section-head h2 { font-size: clamp(34px, 3.2vw, 46px); }
.section-head p { margin-top: 10px; font-size: 20px; color: var(--muted); }
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
.quote { margin: 0; padding: 4px 36px 0; border-left: 2px solid var(--line); }
.quote:first-child { padding-left: 0; border-left: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 22px; line-height: 1.45; }
.quote blockquote p::before { content: "“"; display: block; font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: 64px; line-height: .7; margin-bottom: 10px; }
.quote figcaption { margin-top: 16px; font-weight: 600; color: var(--muted); }
.link-more { display: inline-block; margin-top: 40px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--red); }

/* ---------- Konum ---------- */
.location { background: var(--tile); padding: 96px 0; border-top: 1px solid var(--line); }
.location__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.location h2 { font-size: clamp(34px, 3.2vw, 46px); }
.address { font-style: normal; margin-top: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 20px; }
.address__street { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 3vw, 42px); line-height: 1.05; }
.location .actions { margin-top: 26px; }
.location h3 { font-size: 26px; margin-top: 44px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::after { content: "bugün"; margin-left: 10px; font-size: 15px; font-weight: 600; color: var(--white); background: var(--ink); padding: 2px 8px; vertical-align: 2px; }

.distances { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.distances dl { margin: 12px 0 0; }
.distances dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.distances dt { font-weight: 400; }
.distances dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { margin-top: 14px; font-size: 16px; color: var(--muted); }

.location__map { position: sticky; top: calc(var(--header-h) + 24px); }
.location__map iframe { display: block; width: 100%; height: 640px; border: 0; background: #e3e3df; outline: 6px solid var(--ink); outline-offset: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 28px; --logo-line: var(--white); --logo-bg: var(--ink); --logo-door: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { height: 96px; }
.site-footer__brand p { margin-top: 14px; font-size: 16px; color: #CFCFCF; }
.site-footer__h { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: #CFCFCF; margin-bottom: 8px; line-height: 1.3; }
.site-footer p { font-size: 18px; }
.site-footer a { text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer__base { margin-top: 48px; }
.site-footer__base p { padding-top: 20px; border-top: 1px solid #3A3A3A; font-size: 15px; color: #BDBDBD; }

/* ---------- Mobil alt çubuk ---------- */
.sticky-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 15, 15, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(15, 15, 15, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 96px; max-width: 100%; max-height: 100%; }
.lightbox__fig img { max-width: min(1200px, 100%); max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; }
.lightbox__fig figcaption { font-size: 18px; text-align: center; max-width: 60ch; }
.lightbox__btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; background: var(--white); color: var(--ink); border: 0; cursor: pointer; border-radius: 2px; }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.lightbox__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ================= Duyarlı ================= */
@media (max-width: 1180px) {
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 18px; }
  .header-phone { font-size: 23px; padding-left: 22px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .facts__list > div { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .header-phone { margin-left: auto; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map { position: static; }
  .location__map iframe { height: 440px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  :root { --gutter: 16px; --header-h: 68px; }
  body { font-size: 18px; }
  .logo { height: 54px; }
  .header-phone { font-size: 21px; padding: 6px 0; border-left: 0; gap: 8px; }
  .header-phone .ico { width: 20px; height: 20px; }

  .hero__media { height: auto; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; }
  .hero__media img { object-position: var(--hero-pos-m); }
  .hero__wrap { height: auto; }
  .hero__card { position: relative; left: auto; bottom: auto; width: auto; margin: 0 calc(-1 * var(--gutter)); padding: 26px var(--gutter) 30px; }
  .hero__card h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero__lead { margin-top: 12px; font-size: 18px; }
  .big-phone { margin-top: 16px; font-size: 40px; }
  .hero__card .actions { margin-top: 16px; flex-direction: column; }
  .hero__card .btn { flex: none; width: 100%; }
  .status { margin-top: 16px; font-size: 17px; }

  .facts .container { padding-left: var(--gutter); }
  .facts__list { padding: 18px 0 20px; min-height: 0; }
  .facts__list > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }

  .products { padding: 64px 0 56px; }
  .house { --wall: 5px; --gap: 6px; --inner: 2.5px; }
  .roof { height: 96px; }
  .roof__outer { stroke-width: 5; }
  .roof__inner { stroke-width: 2.5; }
  .house__title { position: static; transform: none; width: auto; max-width: none; text-align: left; margin-bottom: 18px; order: -1; }
  .house__roof { display: flex; flex-direction: column; }
  .house__title h2 { font-size: 38px; }
  .house__title p { font-size: 18px; }
  .rooms { grid-template-columns: 1fr; }
  .room { padding: 20px 16px 24px; }
  .room__photo { margin-bottom: 16px; }
  .room h3 { font-size: 28px; }
  .room--door { min-height: 0; }
  .door { right: 16px; width: 84px; }
  .link-route { margin-right: 100px; }
  .room__phone { font-size: 30px; }

  .brands { padding: 56px 0 60px; }
  .brands__list { font-size: 24px; gap: 10px 0; }
  .brands__list { margin-left: -16px; }
  .brands__list li { padding: 0 16px; }

  .reviews { padding: 64px 0; }
  .reviews__list { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .quote, .quote:first-child { padding: 0 0 0 18px; border-left: 3px solid var(--red); }
  .quote blockquote p { font-size: 20px; }
  .quote blockquote p::before { display: none; }

  .location { padding: 64px 0; }
  .address__street { font-size: 32px; }
  .location .actions .btn { flex: 1 1 100%; }
  .location h3 { margin-top: 36px; font-size: 24px; }
  .hours { max-width: none; }
  .distances { grid-template-columns: 1fr; }
  .location__map iframe { height: 360px; outline-width: 4px; }

  .site-footer { padding: 48px 0 calc(28px + 76px); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .logo { height: 80px; }

  .sticky-book {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
  }
  .sticky-book.is-visible { transform: none; visibility: visible; }
  .sticky-book .btn { min-height: 56px; padding: 0 12px; }

  .lightbox__fig { padding: 72px 12px 84px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 380px) {
  .header-phone span { font-size: 19px; }
  .logo { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .roof path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .site-header { position: static; }
  .sticky-book, .lightbox { display: none !important; }
}
