/* =========================================================
   Ekcan Grup — static page kit
   Styles for hand-authored pages (new sitemap tree). Relies on
   the compiled Next.js CSS for the shared design language.
   ========================================================= */

/* Fallback: burger overlay open state (matches compiled behaviour) */
.menu-overlay.is-open .menu-panel { transform: translate(0); }

/* Full-width section container (no sidebar layout on new pages) */
.pg-wrap {
  width: min(calc(100% - 72px), var(--content, 1160px));
  margin: 0 auto;
}
.pg-section { padding: 96px 0 0; }
.pg-section:last-of-type { padding-bottom: 110px; }
/* Yukarıdaki kural pratikte hiç tutmuyordu: .inner-cta da bir <section>
   olduğu için kardeşler arasındaki "son section" o oluyor ve sayfa içeriği
   kırmızı şeride yapışık bitiyordu. Bu dosya yalnızca statik sayfalarda
   yüklendiği için şeridin üstüne doğrudan nefes payı veriyoruz. */
.inner-cta { margin-top: 72px; }
@media (max-width: 768px) {
  .inner-cta { margin-top: 44px; }
}
.pg-section .overline { display: block; margin-bottom: 14px; }

/* ---------------- Haber sayfalari ----------------
   Sayfa hero'sundaki h1 tek kelimelik sayfa adlari icin olceklenmis;
   haber basliklari tam cumle oldugu icin kendi tipografisini kullanir. */
.inner-hero.hero-news h1 {
  font-size: clamp(27px, 3.3vw, 46px);
  line-height: 1.12;
  max-width: 940px;
}
/* .pg-section h2 ile ayni ozgulluge sahip olmamasi icin bir seviye daha dar */
.pg-section .news-article h2 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}
.pg-section .news-article p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: #3a4a44;
  margin: 0 0 18px;
}
.news-back { margin: 44px 0 0; }

/* ---------------- Fa Yapı marka kartları ----------------
   fayapi.com.tr'deki 8 marka görseli; portre kartlar, altında marka adı. */
.fy-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
}
.fy-brands figure {
  margin: 0;
  border: 1px solid var(--line, #152d262b);
  background: #fff;
  overflow: hidden;
}
.fy-brands img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.fy-brands figcaption {
  padding: 14px 16px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #35463f;
}
@media (max-width: 900px) { .fy-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .fy-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------------- İş ortağı logoları ----------------
   Logosu henüz gelmemiş markalar aynı kutuda tipografik olarak görünür. */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 22px 26px;
  border: 1px solid var(--line, #152d262b);
  background: #fff;
}
.partner-tile img {
  max-height: 56px;
  max-width: 76%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Kare kilitli logolar (Getir) genis wordmark'lara gore kucuk kaliyordu. */
.partner-tile img[src*="getir"] { max-height: 84px; }
.partner-tile span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #35463f;
  text-align: center;
}
@media (max-width: 560px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------------- Otomotiv model sayfalari ----------------
   Hero'da video kullanilabilsin diye <img> ile ayni kurallar. */
.inner-hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Model hero'sunda baslik tek kelimelik sayfa adi degil, model adi */
.inner-hero.hero-model h1 { font-size: clamp(40px, 5.4vw, 76px); }

/* Teknik ozellik seridi — .pdet-facts'in 6 kolonlu surumu */
.pg-section-tight { padding-top: 0; }
.mdl-spec {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line, #152d262b);
  border-left: 1px solid var(--line, #152d262b);
  margin-top: 64px;
}
.mdl-spec > div {
  border-right: 1px solid var(--line, #152d262b);
  border-bottom: 1px solid var(--line, #152d262b);
  padding: 22px 20px;
}
.mdl-spec small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink, #152d26);
  margin-bottom: 8px;
}
.mdl-spec strong {
  font-size: 13.5px;
  font-weight: 500;
  color: #6b7a74;
}
@media (max-width: 1000px) { .mdl-spec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mdl-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gorsel + metin blogu */
.mdl-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}
.mdl-split.is-rev > figure { order: 2; }
.mdl-split figure { margin: 0; overflow: hidden; background: var(--cream, #f2efe8); }
.mdl-split img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mdl-split h2 { margin-bottom: 16px; }
@media (max-width: 900px) {
  .mdl-split { grid-template-columns: 1fr; gap: 26px; }
  .mdl-split.is-rev > figure { order: 0; }
}

/* Filtre sekmeleri (model gami + galeri) */
.mdl-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.mdl-tabs button {
  border: 1px solid var(--line, #152d262b);
  background: none;
  color: #47554f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.mdl-tabs button:hover { border-color: var(--ink, #152d26); }
.mdl-tabs button.is-active {
  background: var(--ink, #152d26);
  border-color: var(--ink, #152d26);
  color: #fff;
}
[data-mdl-list] [hidden] { display: none !important; }

/* İçerik altına yerleşen tekil buton satırı (ör. Kariyer Fırsatları) */
.pg-cta-row { margin: 40px 0 0; }
.pg-cta-row .hero-cta { display: inline-flex; }

/* ---------------- Yönetim kurulu kartlari ----------------
   Fotograflar portre; devralinan genis yatay cerceve kafalari kesiyordu.
   Dar, dikey kart: 4:5 gorsel + altinda unvan ve isim. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 236px));
  gap: 26px;
  margin-top: 46px;
}
.team-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
/* Müşteri revizyonu: yönetim kurulu ve vakıf kurucularında fotoğraf
   kullanılmıyor. Görselin yerini kırmızı zeminde beyaz ünvan bloğu aldı. */
.team-card .team-role {
  display: flex;
  align-items: flex-end;
  min-height: 172px;
  padding: 22px;
  background: var(--red, #c9242c);
}
.team-card .team-role span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.team-card > div { padding: 20px 22px 24px; }
.team-card > div > span {
  display: block;
  color: var(--red);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pg-section .team-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.pg-section h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 600;
}
/* Kurum adi gibi uzun, iki satirlik basliklar icin daha dar olcek */
.pg-section h2.pg-h2-name {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.22;
  max-width: 780px;
}

.pg-section p.lede {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: #47554f;
  margin: 0 0 8px;
}

/* Project hub cards (Tamamlanan / Satışı Devam Eden listeleri) */
.phub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.phub-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-deep, #0d261f);
  color: #fff;
  text-decoration: none;
}
.phub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.phub-card:hover img { transform: scale(1.045); }
.phub-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,38,31,0) 40%, rgba(13,38,31,.82) 100%);
}
.phub-card .copy {
  position: absolute;
  left: 22px;
  right: 18px;
  bottom: 20px;
}
.phub-card .copy small {
  display: block;
  color: var(--cream, #f2efe8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.phub-card .copy strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: block;
}
@media (max-width: 900px) { .phub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phub-grid { grid-template-columns: 1fr; } }

/* Taahhüt reference boxes (hausluft-style, Ekcan dilinde) */
.thb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.thb-box {
  border: 1px solid var(--line, #152d262b);
  background: #fff;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.thb-box:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10, 24, 20, .08); }
.thb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thb-cat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red, #c9242c);
  border: 1px solid #c9242c33;
  padding: 6px 12px;
  border-radius: 999px;
}
.thb-city { font-size: 12.5px; color: #6b7a73; font-weight: 600; }
.thb-box h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.thb-box p { margin: 0; font-size: 14px; line-height: 1.6; color: #5b6b64; }
.thb-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line, #152d262b);
  display: flex;
  gap: 22px;
}
.thb-meta div small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a978f; margin-bottom: 3px; font-weight: 700; }
.thb-meta div strong { font-size: 14px; font-weight: 700; }
@media (max-width: 900px) { .thb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .thb-grid { grid-template-columns: 1fr; } }

/* Project detail: facts row + gallery */
.pdet-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line, #152d262b);
  border-left: 1px solid var(--line, #152d262b);
  margin-top: 46px;
}
.pdet-facts > div {
  border-right: 1px solid var(--line, #152d262b);
  border-bottom: 1px solid var(--line, #152d262b);
  padding: 22px 20px;
}
.pdet-facts small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a978f; font-weight: 700; margin-bottom: 6px; }
.pdet-facts strong { font-size: 16.5px; font-weight: 700; }
@media (max-width: 800px) { .pdet-facts { grid-template-columns: repeat(2, 1fr); } }

.pdet-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}
.pdet-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream, #f2efe8);
  cursor: zoom-in;
}
.pdet-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.pdet-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pdet-gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .pdet-gallery { grid-template-columns: repeat(2, 1fr); }
  .pdet-gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
}

/* Shared lightbox */
#pg-lb { position: fixed; inset: 0; z-index: 200; background: rgba(13,38,31,.96); display: none; align-items: center; justify-content: center; }
#pg-lb.is-open { display: flex; }
#pg-lb img { max-width: 88vw; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
#pg-lb .pg-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
#pg-lb .pg-lb-btn:hover { background: var(--red, #c9242c); border-color: var(--red, #c9242c); }
#pg-lb .pg-lb-btn svg { width: 20px; height: 20px; }
#pg-lb .pg-lb-close { top: 26px; right: 30px; }
#pg-lb .pg-lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
#pg-lb .pg-lb-next { right: 30px; top: 50%; transform: translateY(-50%); }
#pg-lb .pg-lb-count { position: absolute; top: 36px; left: 40px; color: #fff; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 640px) { #pg-lb .pg-lb-prev { left: 10px; } #pg-lb .pg-lb-next { right: 10px; } #pg-lb .pg-lb-close { right: 14px; } }

/* Static pages: hide the search button (React-driven feature) */
.pg-static .search-button { display: none; }

/* ---------------- Kimmi model kartları ---------------- */
.km-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.km-card {
  border: 1px solid var(--line, #152d262b);
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.km-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(10, 24, 20, .1); }
.km-img { display: block; position: relative; aspect-ratio: 16/7; overflow: hidden; background: var(--cream, #f2efe8); }
.km-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.km-card:hover .km-img img { transform: scale(1.04); }
.km-body { display: block; padding: 22px 24px 24px; }
.km-body small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red, #c9242c);
  margin-bottom: 8px;
}
.km-body strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.km-body p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #5b6b64; }
.km-spec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.km-spec i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 7px 13px;
  border: 1px solid var(--line, #152d262b);
  border-radius: 999px;
  color: #35463f;
}
@media (max-width: 700px) { .km-grid { grid-template-columns: 1fr; } }

.km-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: 40px; }
.km-two h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.km-two p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #47554f; }
@media (max-width: 800px) { .km-two { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------- İletişim: genel merkez + yerleşke kümeleri ---------------- */
.ct-hq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 42px;
  margin-top: 44px;
  align-items: stretch;
}
.ct-hq-info { display: flex; flex-direction: column; }
.ct-hq-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line, #152d262b);
  border-left: 1px solid var(--line, #152d262b);
  margin: 26px 0 30px;
}
.ct-hq-lines > * {
  border-right: 1px solid var(--line, #152d262b);
  border-bottom: 1px solid var(--line, #152d262b);
  padding: 18px 20px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.ct-hq-lines a:hover { background: #152d260a; }
.ct-hq-lines small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a978f;
  font-weight: 700;
  margin-bottom: 6px;
}
.ct-hq-lines strong { font-size: 16px; font-weight: 700; }
.ct-dir {
  align-self: flex-start;
  margin-top: auto;
  background: var(--red, #c9242c);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s;
}
.ct-dir:hover { background: var(--red-dark, #a91820); }
.ct-hq-map { position: relative; min-height: 420px; background: var(--cream, #f2efe8); }
.ct-hq-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .ct-hq { grid-template-columns: 1fr; gap: 28px; }
  .ct-hq-map { min-height: 320px; }
  .ct-dir { margin-top: 4px; }
}

.ct-cluster { margin-top: 52px; }
.ct-cluster-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line, #152d262b);
  padding-bottom: 14px;
}
.ct-cluster-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ct-cluster-head span { font-size: 13px; color: #6b7a73; font-weight: 600; }
.ct-cluster-head a {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red, #c9242c);
  text-decoration: none;
  border-bottom: 1px solid #c9242c55;
}
.ct-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.ct-card {
  border: 1px solid var(--line, #152d262b);
  background: #fff;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ct-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(10, 24, 20, .08); }
.ct-card > strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ct-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.ct-lines a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  display: block;
  transition: color .18s;
}
.ct-lines a:hover { color: var(--red, #c9242c); }
.ct-lines a span {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a978f;
  font-weight: 700;
  margin-bottom: 2px;
}
@media (max-width: 1100px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-grid { grid-template-columns: 1fr; } }
