/* =========================
   Bouwservice Diamond - styles.css (FINAL - cleaned + stable)
   - Header conflicts fixed (single header__inner)
   - Gallery thumbnails stabilized
   - Lightbox navigation buttons added
   ========================= */

/* ===== Reset / Base ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;
  background:#f6f4ef;     /* tüm site açık krem */
  line-height:1.45;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
.container{ width:min(1140px, calc(100% - 32px)); margin:0 auto; }
.section{ padding:28px 0; }
.muted{ opacity:.78; }
.no-scroll{ overflow:hidden; }

/* ===== Topbar (always black) ===== */
.topbar{
  background:#111 !important;
  color:#fff !important;
  font-size:14px;
}
.topbar__inner{
  display:flex; justify-content:space-between; gap:12px;
  padding:10px 0; align-items:center; flex-wrap:wrap;
}
.topbar a{ color:#fff !important; text-decoration:none; opacity:.95; }
.topbar a:hover{ opacity:1; text-decoration:underline; }

/* ===== Buttons / Chips ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 14px; border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  text-decoration:none; font-weight:800;
  background:#fff; cursor:pointer;
}
.btn--primary{ background:#111; color:#fff; border-color:rgba(0,0,0,.2); }
.btn--ghost{ background:#fff; }

.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:9px 12px; border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  text-decoration:none; font-weight:800;
  background:#fff;
}
.chip--ghost{ opacity:.9; }

/* ===== Header (always white) ===== */
.header{
  position:sticky; top:0;
  z-index:9998;
  background:#fff !important;
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* ✅ SINGLE header__inner (no duplicates) */
.header__inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:8px 0;
  min-height:72px;
}
.brand{ display:flex; align-items:center; text-decoration:none; gap:14px; justify-self:start; }
.nav{ display:flex; gap:10px; align-items:center; white-space:nowrap; justify-self:center; }
.header__actions{
  display:flex; gap:10px; align-items:center;
  justify-self:end;
  position:relative;
  z-index:9999;
}

/* FIX: UNIFY LOGO SIZES */
.brand__logo,
.brand__mark{
  height:56px;
  width:auto;
  max-width:240px;
  object-fit:contain;
}

/* Brand text */
.brand__text{ display:flex; flex-direction:column; line-height:1; }
.brand__top{
  font-weight:900;
  letter-spacing:.22em;
  font-size:13px;
  opacity:.95;
}
.brand__bottom{
  font-weight:900;
  font-size:26px;
  letter-spacing:.06em;
}

/* Nav links */
.nav__link{
  padding:8px 10px; border-radius:10px;
  text-decoration:none; font-weight:800;
}
.nav__link:hover{ background:rgba(0,0,0,.06); }

/* Burger */
.burger{
  width:44px; height:40px; border-radius:12px;
  border:1px solid rgba(0,0,0,.15); background:#fff;
  display:none; align-items:center; justify-content:center; gap:4px;
  cursor:pointer;
  position:relative;
  z-index:9999;
  pointer-events:auto;
}
.burger span{ width:18px; height:2px; background:#111; display:block; }

/* Mobile menu */
.mobile{ background:#fff; border-top:1px solid rgba(0,0,0,.08); }
.mobile[hidden]{ display:none; }
.mobile__inner{ padding:14px 0 18px; display:grid; gap:10px; }
.mobile__link{
  text-decoration:none; font-weight:900;
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.mobile__link:hover{ background:rgba(0,0,0,.06); }
.mobile__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

/* ===== Hero ===== */
.hero{ padding:28px 0; }
.hero__inner{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  align-items:center;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  font-weight:900;
  font-size:13px;
  background:#fff;
}
.hero__text h1{
  margin:10px 0 10px;
  line-height:1.05;
  font-size:clamp(26px,4vw,44px);
}
.hero__cta{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:10px;
}
.hero__media img{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  width:100%;
  height:auto;
  background:#fff;
}

/* ===== Cards ===== */
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.card{
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  transition:transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(0,0,0,.10);
}
.card img{ height:160px; width:100%; object-fit:cover; }
.card__body{ padding:12px 12px 14px; }
.card__body h2{ margin:0 0 6px; font-size:18px; }

/* ===== Slider ===== */
.slider{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.slider__track{
  display:flex;
  transition:transform .45s ease;
  will-change:transform;
}
.slider__slide{ flex:0 0 100%; }
.slider__slide img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
}
.slider__btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  background:rgba(255,255,255,.92);
  cursor:pointer;
  font-size:26px;
  line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
}
.slider__btn--prev{ left:10px; }
.slider__btn--next{ right:10px; }
.slider__dots{
  position:absolute; left:0; right:0; bottom:10px;
  display:flex; justify-content:center; gap:8px;
}
.slider__dot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  background:rgba(255,255,255,.9);
  cursor:pointer;
}
.slider__dot.is-active{ background:#111; border-color:#111; }

/* ===== CTA ===== */
.cta{
  display:flex; justify-content:space-between; align-items:center;
  gap:14px; padding:16px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  background:#fff;
}
.cta__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== Footer ===== */
.footer{
  border-top:1px solid rgba(0,0,0,.08);
  padding:18px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================
   Gallery
   ========================= */
.galleryCats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.catCard{
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  transition:transform .12s ease, box-shadow .12s ease;
}
.catCard:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(0,0,0,.10);
}
.catCard img{
  width:100%;
  height:180px;
  object-fit:cover;
}
.catCard__body{ padding:12px 12px 14px; }
.catCard__body h2{ margin:0 0 6px; font-size:18px; }

.pageHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.pageHead__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Media grids */
.mediaGrid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.mediaItem{
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  display:block;
}
.mediaItem img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  background:#fff;
}

/* Videos */
.videoGrid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
.videoCard{
  width:100%;
  height:320px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:#000;
  overflow:hidden;
  display:block;
}
.iframeWrap iframe{
  width:100%;
  height:320px;
  border:0;
  display:block;
}

/* ===== Home project highlight ===== */
.projectHighlight{
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #000;
  text-decoration: none;
}
.projectHighlight img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.projectHighlight__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15), transparent);
  color: #fff;
}
.projectHighlight__overlay h3{ margin: 0 0 4px; font-size: 20px; }
.projectHighlight__overlay span{ font-size: 14px; opacity: .9; }
.projectHighlight:hover img{
  transform: scale(1.03);
  transition: transform .25s ease;
}

/* =========================
   Contact (modern hierarchy)
   ========================= */
.contactHero{ padding: 28px 0; }
.contactHero__inner{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  align-items:center;
}
.contactHero__text h1{
  margin:10px 0 10px;
  line-height:1.05;
  font-size: clamp(26px, 4vw, 44px);
}
.contactHero__media img{
  width:100%;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}

/* Quick cards */
.contactQuick{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.contactQuick__item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  text-decoration:none;
  background:#f3efe6;
  transition: transform .12s ease, box-shadow .12s ease;
}
.contactQuick__item:hover{
  box-shadow:0 18px 34px rgba(0,0,0,.08);
  transform:translateY(-2px);
}
.contactQuick__icon{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:#fff;
}

.contactInfoGrid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
.infoBox{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  background:#f3efe6;
}
.infoBox h2{ margin:0 0 8px; font-size:20px; }

.contactFormWrap{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:16px;
  align-items:start;
}
.contactFormWrap__note{
  margin-top:10px;
  padding:12px;
  border-radius:18px;
  border:1px dashed rgba(0,0,0,.18);
  background:#fff;
}

/* Form */
.form{
  border:1px solid rgba(0,0,0,.06);
  border-radius:22px;
  padding:20px;
  background:#fff;
  box-shadow:0 30px 60px rgba(0,0,0,.08);
}
.form__row{ display:grid; gap:8px; margin-bottom:12px; }
.form label, .form legend{ font-weight:800; font-size:14px; }

.form input, .form textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  background:#fafafa;
}
.form input:focus, .form textarea:focus{
  background:#fff;
  border-color:#111;
  box-shadow:0 0 0 3px rgba(17,17,17,.08);
}
.form__radios{ display:grid; gap:8px; padding-top:6px; }
.form__radios label{ display:flex; gap:10px; align-items:center; font-weight:700; opacity:.9; }
.form__grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.form__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

.form .btn--primary{
  padding:14px 22px;
  font-size:15px;
}

/* ===== Contact Google Map ===== */
.map{
  width:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.map iframe{
  width:100%;
  height:320px;
  border:0;
  display:block;
}
@media (max-width: 520px){
  .map iframe{ height:240px; }
}

/* Show success message only when URL has ?sent=1 */
.sentMsg { display:none; }
body.sent-ok .sentMsg { display:block; margin-bottom:16px; }

/* =========================
   Lightbox (with nav buttons)
   ========================= */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.lightbox.is-open{ display:flex; }
.lightbox__img{
  max-width:min(1100px, 100%);
  max-height:85vh;
  width:auto;
  height:auto;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.lightbox__close{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__hint{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  color:rgba(255,255,255,.9);
  font-size:13px;
  background:rgba(0,0,0,.35);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
}

/* ✅ Prev/Next buttons */
.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:36px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10000;
}
.lightbox__nav--prev{ left:14px; }
.lightbox__nav--next{ right:14px; }

@media (max-width:520px){
  .lightbox__nav{ width:46px; height:46px; font-size:30px; }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{ display:inline-flex; }

  .hero__inner{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .slider__slide img{ height:260px; }

  .galleryCats{ grid-template-columns:repeat(2, 1fr); }
  .mediaGrid{ grid-template-columns:repeat(2, 1fr); }
  .videoGrid{ grid-template-columns:1fr; }
  .videoCard, .iframeWrap iframe{ height:260px; }
  .pageHead{ flex-direction:column; align-items:stretch; }

  .contactHero__inner{ grid-template-columns:1fr; }
  .contactQuick{ grid-template-columns:1fr; }
  .contactInfoGrid{ grid-template-columns:1fr; }
  .contactFormWrap{ grid-template-columns:1fr; }
  .form__grid2{ grid-template-columns:1fr; }

  .brand__logo,
  .brand__mark{ height:50px; max-width:220px; }
  .brand__bottom{ font-size:23px; }
}

@media (max-width: 520px){
  .cards{ grid-template-columns:1fr; }
  .galleryCats{ grid-template-columns:1fr; }
  .mediaGrid{ grid-template-columns:1fr; }

  .brand__logo,
  .brand__mark{ height:44px; max-width:200px; }
  .brand__bottom{ font-size:21px; }
}
/* ===== Premium Visualizer Teaser ===== */
.vizTeaser{
  align-items:stretch;
}
.vizTeaser__left{
  max-width: 66ch;
}
.vizTeaser__title{
  margin: 8px 0 6px;
  line-height: 1.12;
}
.vizTeaser__desc{
  margin: 0;
}
.vizTeaser__actions{
  margin-top: 12px;
}
.vizTeaser__micro{
  margin: 10px 0 0;
  font-size: 13px;
  opacity: .82;
}

.vizTeaser__right{
  display:flex;
  align-items:stretch;
}
.vizTeaser__card{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  min-width: 240px;
  max-width: 320px;
  box-shadow:0 18px 34px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.vizTeaser__card:hover{
  transform: translateY(-2px);
  box-shadow:0 22px 44px rgba(0,0,0,.12);
}
.vizTeaser__card img{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
}
.vizTeaser__meta{
  padding: 12px;
}
.vizTeaser__meta strong{
  display:block;
  font-size:14px;
  margin-bottom:4px;
}
.vizTeaser__meta span{
  display:block;
  font-size:13px;
  opacity:.78;
}

/* Mobile: stack nicely */
@media (max-width: 980px){
  .vizTeaser{
    flex-direction: column;
    gap: 12px;
  }
  .vizTeaser__card{
    max-width: 100%;
    width: 100%;
  }
  .vizTeaser__card img{
    height: 200px;
  }
}
