/*
Theme Name: GM Vitrin Pro V33
Theme URI: https://example.com
Author: Özel Tasarım
Description: Tümü, E.C.A ve DemirDöküm filtre sekmeleri, üst logo ve GM Yapı Mühendislik başlığı, banner yazıları ve Harita Embed URL/kod desteği eksiksiz çalışan, mobil/tablet/PC uyumlu kombi vitrin teması.
Version: 33.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gm-vitrin-pro-v33
*/

:root {
  --bg-page: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --whatsapp: #16a34a;
  --whatsapp-hover: #15803d;
  --border: #e2e8f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px 0;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bg-dark);
  min-width: 0;
}

.brand-logo {
  max-height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.25;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--bg-dark);
  font-size: 1.35rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.25;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

/* Hero Section + [E.C.A] [YETKİLİ BAYİ] [DemirDöküm] */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 28px 0 56px;
}

.hero-brand-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.hero-brand-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 12px 22px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-brand-box img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-center-dealer-badge {
  background-color: #ffffff;
  color: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 10px 18px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-content-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(234, 88, 12, 0.2);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 auto 14px;
  font-size: 2.25rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.hero-desc {
  margin: 0 auto 24px;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 210px;
  padding: 13px 24px;
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-call-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}

.btn-call {
  background-color: #0284c7;
  color: #ffffff;
  min-width: 220px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-call:hover {
  background-color: #0369a1;
}

/* Sections */
.section-block {
  padding: 52px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* Products Grid - Masaüstünde 3 Sütun Yan Yana Kompakt */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-thumb-wrap {
  width: 100%;
  height: 195px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 14px;
}

.product-brand {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 5px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.35;
}

.product-summary {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-specs {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.product-specs li {
  margin-bottom: 4px;
}

.product-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Custom Homepage Info Cards (Konum & İletişim Üzerinde) */
.custom-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.custom-note-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.custom-note-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--bg-dark);
}

.custom-note-card p {
  margin: 0;
  color: var(--text-main);
}

/* SEO & Hizmet Bölgesi Bloğu */
.seo-local-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.seo-local-box h2 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  color: var(--bg-dark);
}

.seo-local-box p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.97rem;
}

/* Contact & Location */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.contact-list li {
  margin-bottom: 12px;
  color: var(--text-main);
  word-break: break-word;
}

.map-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 270px;
  background-color: #e2e8f0;
}

.map-box iframe {
  width: 100%;
  height: 270px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #cbd5e1;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: var(--whatsapp);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-actions .btn {
    min-width: 0;
    padding: 11px 16px;
    font-size: 0.88rem;
  }
}

/* Mobil (767px ve altı) - Ferah, Sıkışmayan Tek Sütun Yerleşim */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .header-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 10px;
  }

  .header-right.is-open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav a {
    display: block;
    padding: 6px 0;
    font-size: 1rem;
  }

  .header-right .btn {
    width: 100%;
  }

  /* Mobilde üst banner sade, dengeli ve tam sığan yapıda */
  .hero-section {
    padding: 14px 0 24px;
  }

  .hero-brand-bar {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-brand-box {
    height: 44px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .hero-brand-box img {
    max-height: 28px;
  }

  .hero-center-dealer-badge {
    height: 44px;
    padding: 6px 10px;
    font-size: 0.66rem;
    font-weight: 800;
    border-radius: 8px;
    letter-spacing: 0.03em;
  }

  .hero-content-wrap {
    text-align: center;
  }

  .hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.32rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.48;
    font-weight: 400;
    margin-bottom: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
    padding: 10px 8px;
    font-size: 0.76rem;
    line-height: 1.25;
    font-weight: 700;
    border-radius: 7px;
    white-space: normal;
    word-break: keep-all;
  }

  .hero-call-row {
    margin-top: 8px;
  }

  .btn-call {
    min-width: 0;
    width: auto;
    min-width: 170px;
    padding: 9px 18px;
    font-size: 0.8rem;
    border-radius: 7px;
  }

  /* Alt bölümler (Ürünler, Bilgi Kartları, Konum & İletişim) mobilde ferah tek sütun */
  .products-grid,
  .contact-grid,
  .custom-blocks-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 36px 0;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .filter-bar {
    gap: 8px;
    margin-bottom: 18px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .products-grid {
    gap: 16px;
  }

  .product-thumb-wrap {
    height: 180px;
  }

  .product-body {
    padding: 18px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-footer .btn-whatsapp {
    width: 100%;
  }

  .custom-note-card {
    padding: 18px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card .btn {
    width: 100%;
  }

  .map-box,
  .map-box iframe {
    min-height: 220px;
    height: 220px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 11px 16px;
    font-size: 0.88rem;
  }
}

.hero-call-box {
  display: none;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-call-box.is-visible {
  display: inline-block;
}
