/* ==========================================================================
   1. Genel Reset, Font ve Animasyonlar
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navbarDrop {
  from {
    opacity: 0;
    transform: translateY(-20px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }
}

/* ==========================================================================
   2. Genel Stiller ve Renk Paleti (Teal & Altın)
   ========================================================================== */
:root {
  --primary-color: #2c3e50; /* Koyu Mavi/Gri */
  --secondary-color: #1abc9c; /* Teal */
  --secondary-color-dark: #16a085;
  --accent-color: #f39c12; /* Altın/Sarı */
  --accent-color-dark: #e67e22;
  --background-color: #ecf0f1; /* Açık Gri */
  --text-color: #34495e; /* Koyu Gri */
  --light-text-color: #ecf0f1;
  --card-background: #ffffff;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografi */
h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color-dark);
}

/* Butonlar ve CTAs (Harekete Geçirici Mesajlar) */
.cta-button,
.quick-quote-button,
.secondary-button,
.btn-details {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.cta-button,
.quick-quote-button {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  border-color: var(--secondary-color);
}

.cta-button:hover,
.quick-quote-button:hover {
  background-color: var(--secondary-color-dark);
  border-color: var(--secondary-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.secondary-button {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: var(--card-background);
  transform: translateY(-2px);
}

.btn-details {
  padding: 8px 15px;
  background-color: var(--accent-color);
  color: var(--card-background);
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-details:hover {
  background-color: var(--accent-color-dark);
}

/* ==========================================================================
   3. Header, Navigasyon ve Footer
   ========================================================================== */

header {
  background-color: var(--card-background);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;

  /* gölge + geçiş + animasyon */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: navbarDrop 0.6s ease-out;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link img {
  height: 40px; /* Logo yüksekliği */
  display: block;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

header nav ul li a {
  color: var(--primary-color);
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
  width: 100%;
}

/* Footer Stilleri */
footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 25px 0;
  margin-top: 3rem;
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

footer .footer-nav a {
  color: var(--light-text-color);
  margin-left: 15px;
  opacity: 0.8;
}

footer .footer-nav a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

/* ==========================================================================
   4. Ana Bölümler ve Düzenler
   ========================================================================== */

main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

section {
  padding: 4rem 0;
  animation: fadeIn 0.8s ease-out;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ============================================================
   HERO SLIDER (Anasayfa)
   ============================================================ */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--light-text-color, #ffffff);
  background-color: #000;
}

/* Slaytlar konteyneri */
.hero-slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* Her slayt tam ekran genişliğinde */
.hero-slide {
  position: relative;
  flex: 0 0 100%;
}

/* Arka plan görseli */
.hero-slide-image {
  display: block;
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75);
}

/* Yazı katmanı */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.1) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--accent-color, #f39c12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 2.6rem;
  line-height: 1.25;
  max-width: 640px;
  color: #ffffff;
}

.hero-text {
  max-width: 560px;
  font-size: 1rem;
  color: #f4f6f8;
}

.hero-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Ok butonları */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  font-size: 32px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 5;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.06);
}

/* Tablet */
@media (max-width: 992px) {
  .hero-slide-image {
    height: 520px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-headline {
    font-size: 2.1rem;
    max-width: 520px;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .hero-slide-image {
    height: 420px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.75) 40%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .hero-content {
    padding: 0 16px;
    text-align: center;
    align-items: center;
  }

  .hero-headline {
    font-size: 1.8rem;
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-slider-arrow {
    font-size: 26px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   6. Kart Düzenleri (Anasayfa Modelleri, Özellikler, Blog)
   ========================================================================== */

/* Genel Grid Stilleri */
.models-grid,
.features-grid,
.about-cards-container,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Model Kartları (Anasayfa) */
.model-card,
.blog-post-card {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Sadece model kartları için ortalama ayarları */
.model-card {
  align-items: center; /* İçerikleri yatayda ortaya al */
  text-align: center; /* Metinleri ortala */
}

.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.model-card h3 {
  margin-top: 20px;
  font-size: 1.4rem;
}

.model-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-top: 8px;
}

.model-card .btn-details {
  margin-top: 20px;
  margin-bottom: 20px;
  align-self: center; /* Butonu da tam ortaya al */
}

/* Kart içi padding */
.model-card > * {
  padding-left: 20px;
  padding-right: 20px;
}

/* Özellikler Grid (Features Grid) */
.feature-item {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.feature-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Hakkımızda Kartları */
.about-cards-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-card {
  padding: 30px;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  text-align: center;
}

.about-card h4 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* ==========================================================================
   7. Blog Stilleri
   ========================================================================== */

.blog-post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-post-card .post-content {
  padding: 20px;
  flex-grow: 1; /* İçeriğin kartta esnemesini sağla */
  display: flex;
  flex-direction: column;
}

.blog-post-card .post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-post-card .post-content p {
  flex-grow: 1; /* Paragrafın esneyerek butonun alta itilmesini sağla */
  margin-bottom: 15px;
}

.blog-post-card .category {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* ==========================================================================
   Blog Yazısı Detay Sayfası – Kapak + Kart Düzeni
   ========================================================================== */

.single-post-container {
  max-width: 960px;
  margin: 3rem auto 4rem auto;
  padding: 0 16px;
}

/* Kapak fotoğrafı KART DIŞINDA, üstte tek başına */
/* Kapak fotoğrafı KART DIŞINDA, üstte tek başına */
.post-header-image {
  width: 100%;
  height: auto; /* Oranını kendi belirlesin, kırpma olmasın */
  max-height: 480px; /* Çok uzun görselleri biraz sınırlamak için */
  display: block;
  margin: 0 auto 1.8rem auto;
  border-radius: 18px;
  box-shadow: var(--shadow-light);
  object-fit: contain; /* Taşma olmasın, gerekirse biraz boşluk kalsın */
}

/* Kart sadece yazı için */
.post-full-content {
  background-color: var(--card-background);
  padding: 32px 28px;
  border-radius: 18px;
  box-shadow: var(--shadow-light);
}

/* Başlık ve meta bilgisi */
.post-full-content h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color-dark);
}

.post-full-content .post-meta {
  font-size: 0.9rem;
  color: #7a8699;
  margin-bottom: 1.25rem;
}

/* İç başlıklar ve metinler */
.post-full-content h2 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--background-color);
  padding-bottom: 6px;
}

.post-full-content p,
.post-full-content li {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-top: 0.75rem;
  text-align: justify;
}

/* blog-yazisi-3’teki Sonuç başlığı h6 ile yazılmış */
.post-full-content h6 {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Mobil / tablet uyumu */
@media (max-width: 768px) {
  .single-post-container {
    padding: 0 12px;
  }

  .post-header-image {
    margin-bottom: 1.4rem;
    border-radius: 14px;
  }

  .post-full-content {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .post-full-content h1 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   8. İletişim ve Formlar
   ========================================================================== */

.contact-info,
.contact-form-container {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.contact-info h3,
.contact-info h4 {
  color: var(--secondary-color);
  border-bottom: 1px solid var(--background-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-info a i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.map-container {
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Stilleri */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

/* Honeypot Alanı (Bot Tuzağı) */
.honeypot-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Fiyat Hesaplama Aracı Stilleri (fiyat-hesapla.html) */
.calculator-wrapper {
  max-width: 600px;
  margin: 3rem auto;
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.calculator-wrapper input[type="number"] {
  width: calc(100% - 100px); /* Label'a yer açmak için */
  display: inline-block;
  text-align: right;
  margin-right: 10px;
}

.calculator-wrapper .unit {
  font-weight: 600;
}

.form-group.options {
  border-top: 1px solid var(--background-color);
  padding-top: 20px;
}

.form-group.options label {
  font-weight: normal;
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
}

.form-group.options input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.result-area {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--secondary-color-dark);
  color: var(--light-text-color);
  border-radius: 4px;
  text-align: center;
}

.result-area h3 {
  color: var(--light-text-color);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.result-area span {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* ==========================================================================
   9. Modeller Sayfası Stilleri
   ========================================================================== */

/* Filtre Butonları */
.filter-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Çatı tipi dropdown filtresi */
.roof-filter-select-wrapper {
  position: relative;
  margin: 0 auto 30px auto;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.roof-filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color-dark);
}

.roof-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 36px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(44, 62, 80, 0.3);
  background-color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  color: var(--text-color);
}

/* Özel ok ikonu (Font Awesome ile) */
.roof-filter-select-wrapper::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--secondary-color-dark);
  position: absolute;
  right: 14px;
  pointer-events: none;
}

/* Mobil uyumu */
@media (max-width: 768px) {
  .roof-filter-select-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .roof-filter-select {
    width: 100%;
  }
}

/* Modeller Grid */
.models-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.model-item-card {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0; /* Model card'ın içindeki padding'i sıfırla */
  text-align: center;
}

.model-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.model-item-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.model-item-card h3 {
  margin-top: 15px;
  font-size: 1.4rem;
}

.model-item-card .features {
  color: var(--secondary-color-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.model-item-card .btn-details {
  margin-bottom: 20px;
}

/* ============================================================
   MODEL DETAY SAYFALARI (model-detay-1..6)
   ============================================================ */

/* Genel grid yerleşimi */
.model-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

/* Sol taraf: galeri alanı */
.model-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Büyük görsel alanı */
.gallery-main-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  background-color: #000;
}

/* Daha önce tanımlanan #main-gallery-image’ı override ediyoruz */
#main-gallery-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Thumbnail container (yeni kullandığımız sınıf) */
.gallery-thumbnails-new {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

/* Thumbnail boyutlarını biraz daha orantılı yapalım */
.gallery-thumbnails-new .thumbnail {
  flex: 0 0 auto;
  width: 90px;
  height: 70px;
}

/* Sağ taraf: model bilgi kartı */
.model-info {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

.model-info h3 {
  margin-bottom: 0.75rem;
}

.model-info h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--secondary-color-dark);
}

/* Teknik özellikler ve standart donanımlar listesi */
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.specs-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.specs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1;
}

/* Detay sayfası buton alanı */
.model-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.model-detail-actions .cta-button,
.model-detail-actions .secondary-button {
  flex: 1 1 180px;
  text-align: center;
}

/* =========================
   RESPONSIVE AYARLAR
   ========================= */

@media (max-width: 992px) {
  .model-detail-grid {
    grid-template-columns: 1fr;
  }

  .model-info {
    padding: 1.5rem;
  }

  #main-gallery-image {
    height: 360px;
  }
}

@media (max-width: 768px) {
  #main-gallery-image {
    height: 260px;
  }

  .gallery-thumbnails-new .thumbnail {
    width: 80px;
    height: 60px;
  }

  .model-detail-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  #main-gallery-image {
    height: 220px;
  }
}

/* ==========================================================================
   11. Diğer Sayfa Stilleri (Hakkımızda, Galeri, Politikalar)
   ========================================================================== */

.page-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.page-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 3rem;
}

/* Hakkımızda Sayfası */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  margin-bottom: 3rem;
}

.about-intro img {
  width: 75%;
  height: auto;
  border-radius: 8px;
  margin-left: 40px;
}

.about-intro h2 {
  color: var(--secondary-color);
  font-size: 2rem;
}

/* 3D Galeri Sayfası */
.gallery-3d-wrapper {
  position: relative;
  height: 550px; /* Sketchfab iframe yüksekliği */
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.gallery-3d-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Whatsapp Butonu */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: background-color 0.3s, transform 0.3s;
}

.whatsapp-button:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

/* ==========================================================================
   12. Responsive Tasarım (Mobil Cihazlar için) - 768px ve altı
   ========================================================================== */

@media (max-width: 992px) {
  /* Orta boyutlu tabletler için */
}

@media (max-width: 768px) {
  /* Mobil Cihazlar ve Küçük Tabletler */

  /* === NAVBAR & MOBİL MENÜ === */

  /* Hamburger buton (varsayılan: desktop'ta gizli) */
  .nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    position: relative;
    z-index: 1200;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 999px;
    margin: 5px auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Açıkken X ikonuna dönüşsün */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Desktop nav normal davransın */
  .main-nav {
    /* desktop'ta mevcut header nav davranışı devam eder */
  }

  @media (max-width: 768px) {
    /* Header üstte sabit kalsın */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    header .container {
      display: flex;
      flex-direction: row; /* Logo solda, hamburger sağda */
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
    }

    /* Hamburger mobilde görünsün */
    .nav-toggle {
      display: block;
    }

    /* Ana nav tam ekran overlay şeklinde */
    .main-nav {
      position: fixed;
      inset: 0;
      background-color: #ffffff;
      display: none; /* Başta kapalı */
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 90px; /* Logo + status bar aşağısından başlasın */
      z-index: 1100;
    }

    .main-nav.is-open {
      display: flex;
    }

    .main-nav ul {
      flex-direction: column;
      gap: 24px;
      align-items: center;
    }

    .main-nav ul li a {
      font-size: 1.2rem;
    }

    /* Menü açıkken sayfa kaymasın */
    body.nav-open {
      overflow: hidden;
    }
  }

  /* Genel Bölüm Başlıkları */
  .cta-button,
  .quick-quote-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  .secondary-button {
    padding: 10px 26px;
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.8rem;
  }
  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  /* YENİ: Blog Kartı Düzenlemesi */
  .blog-post-card img {
    height: 200px; /* Görüntü yüksekliğini sabitle */
    object-fit: cover;
  }

  .blog-post-card .post-content {
    padding: 1.2rem;
  }

  /* İletişim, Randevu, Hakkımızda Düzenleri */
  .about-intro,
  .model-detail-container {
    /* Model detayı da tek sütuna iner */
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 2.5rem;
  }

  /* Form Düzenleri */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form-container {
    padding: 2rem;
  }
  .post-full-content {
    padding: 25px;
  }

  /* YENİ: Fiyat Hesaplama Formu Düzenlemesi */
  .calculator-wrapper {
    padding: 1.5rem; /* İç dolguyu küçült */
    margin: 2rem auto;
  }

  .calculator-wrapper input[type="number"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: left;
  }

  .calculator-wrapper .unit {
    display: none; /* Ünite bilgisini mobil'de kaldırarak yer aç */
  }

  .form-group.options {
    padding-top: 1rem; /* Üst boşluğu ayarla */
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  /* Footer Düzenlemesi */
  footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  footer .footer-nav a {
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  /* Ekstra küçük cihazlar için */
  .cta-button,
  .secondary-button,
  .quick-quote-button {
    width: 100%;
  }

  .slide-content {
    padding: 15px;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    bottom: 15px;
    right: 15px;
  }
}

/* ==========================================================================
   10. Preloader (Giriş Animasyonu)
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Beyaz arka plan */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Tüm diğer elementlerin üzerinde görünmesini sağlar */
  transition: opacity 0.8s ease-out; /* Animasyon bittikten sonra kaybolma efekti */
}

#preloader.hidden {
  opacity: 0; /* Gizlendiğinde şeffaf olsun */
  visibility: hidden; /* Tamamen kaybolduğunu garanti eder */
  pointer-events: none; /* Tıklamaları engeller */
}

.loader-content {
  text-align: center;
  color: #333; /* Yükleniyor metni rengi */
  font-size: 1.2rem;
  font-weight: 600;
}

/* İnşaat Animasyonu - Ana Konteyner */
.construction-loader {
  position: relative;
  width: 120px; /* Animasyonun genişliği */
  height: 120px; /* Animasyonun yüksekliği */
  margin: 0 auto 20px auto; /* Ortala ve alttan boşluk bırak */
  overflow: hidden; /* Taşmaları gizle */
}

/* Vinç (Crane) */
.crane {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 80px; /* Vinç gövde yüksekliği */
  background-color: var(--primary-color); /* Turuncu vinç */
  border-radius: 2px 2px 0 0;
  animation: craneMove 4s infinite ease-in-out; /* Vinç hareket animasyonu */
}

.crane::before {
  /* Vinç kolu */
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  width: 100px;
  height: 10px;
  background-color: var(--primary-color);
  transform-origin: 0% 100%;
  transform: rotate(-20deg);
  border-radius: 2px;
}

.crane::after {
  /* Vinç kancası */
  content: "";
  position: absolute;
  top: 5px;
  left: 90px;
  width: 5px;
  height: 15px;
  background-color: #555;
  transform: rotate(20deg);
}

/* Bina (Building) */
.building {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 40px;
  height: 0; /* Başlangıçta sıfır yükseklik */
  background-color: #ddd; /* Bina rengi */
  border-radius: 3px 3px 0 0;
  animation: buildUp 4s infinite ease-out; /* Binanın yükselme animasyonu */
}

/* Zemin (Ground) */
.ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ccc; /* Zemin rengi */
  border-radius: 0 0 5px 5px;
}

/* Anahtar Kare Animasyonları */
@keyframes craneMove {
  0% {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    left: 70%;
    transform: translateX(-50%) rotate(10deg);
  }
  50% {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
  75% {
    left: 30%;
    transform: translateX(-50%) rotate(-10deg);
  }
  100% {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes buildUp {
  0% {
    height: 0;
  }
  20% {
    height: 0;
  }
  50% {
    height: 70px;
  } /* Binanın maksimum yüksekliği */
  80% {
    height: 70px;
  }
  100% {
    height: 0;
  }
}

/* ==========================================================================
   13. Fotoğraf Galerisi Sayfası
   ========================================================================== */

.gallery-page {
  max-width: 1200px;
}

/* Ana grid: tablo gibi düzenli kutular */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}

/* Her fotoğraf için "çerçeve" efekti */
.photo-card {
  position: relative;
  background-color: var(--card-background);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* İç çerçeve (tablo efekti) */
.photo-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

/* Görselin kendisi */
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* kareye yakın oran */
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

/* Hover efekti */
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.photo-card:hover img {
  transform: scale(1.06);
}

/* Üstte hafif bilgi overlay'i */
.photo-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.photo-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.photo-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Küçük ekranlar için grid ayarı */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Ek Hizmetler sayfası spacing */
.extra-services-intro {
  margin-bottom: 3rem;
}

.extra-services-flow {
  margin-top: 3rem;
}

.extra-services-cta {
  margin-top: 1.5rem;
}

.extra-services-cta-secondary {
  margin-top: 1rem;
}

/* ==========================================================================
   13. Anasayfa Özel Bölümleri
   ========================================================================== */

/* Ortak bölüm başlığı satırı */
.home-section-header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.home-section-header p {
  margin-top: 0.5rem;
  max-width: 520px;
}

.home-section-header .see-all-link {
  font-weight: 600;
  color: var(--secondary-color-dark);
}

.home-section-header .see-all-link:hover {
  color: var(--accent-color-dark);
}

/* Öne çıkan avantajlar */
.home-highlights {
  padding: 4rem 0 3rem 0;
}

.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.highlight-card {
  background-color: var(--card-background);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: rgba(26, 188, 156, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.highlight-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.highlight-content p {
  font-size: 0.95rem;
}

/* Hakkımızda kısa tanıtım */
.home-about {
  padding: 3rem 0 4rem 0;
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.home-about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color-dark);
}

.home-about-list {
  list-style: none;
  margin: 1.5rem 0 0.5rem 0;
  padding: 0;
}

.home-about-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.96rem;
}

.home-about-list i {
  color: var(--secondary-color);
}

.home-about-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Medya tarafı */
.home-about-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-about-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.home-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  flex: 1 1 120px;
  min-width: 120px;
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-light);
  text-align: center;
}

.badge-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.about-badge strong {
  font-size: 1.1rem;
  color: var(--secondary-color-dark);
}

/* Model kartı üstüne küçük etiket */
.model-card-image-wrapper {
  position: relative;
}

.model-card-image-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.model-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(243, 156, 18, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Rakamlarla bölüm */
.home-numbers {
  background: linear-gradient(
    135deg,
    var(--secondary-color-dark),
    var(--secondary-color)
  );
  color: var(--light-text-color);
  padding: 3rem 0;
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  text-align: center;
}

.stats-item strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.stats-item span {
  font-size: 0.95rem;
}

/* Blog önizleme */
.home-blog-preview {
  padding: 4rem 0;
}

/* Alt CTA şeridi */
.home-cta-strip {
  background: linear-gradient(
    120deg,
    var(--accent-color),
    var(--accent-color-dark)
  );
  color: #ffffff;
  padding: 2.6rem 0;
}

.home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.home-cta-text h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.home-cta-text p {
  margin-bottom: 0;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive ayarlar */
@media (max-width: 992px) {
  .home-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-about-actions,
  .home-cta-actions {
    width: 100%;
  }

  .home-cta-inner {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Modellerimiz Sayfası – Geliştirilmiş Tasarım
   ========================================================================== */

.models-page {
  max-width: 1200px;
}

/* Filtre alanı */
.models-page .models-filters {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Modeller grid’i – masaüstü: 3, tablet: 2, mobil: 1 sütun */
.models-page .models-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Büyük tablet / küçük laptop */
@media (max-width: 1200px) {
  .models-page .models-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Telefon / küçük tablet */
@media (max-width: 768px) {
  .models-page .models-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.models-page .filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.models-page .filter-group {
  flex: 1 1 260px;
}

.models-page .filter-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--secondary-color-dark);
  margin-bottom: 0.4rem;
  text-align: center;
}

.models-page .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Filtre butonları – pill görünüm */
.models-page .filter-btn {
  background-color: transparent;
  border: 1px solid rgba(44, 62, 80, 0.2);
  color: var(--text-color);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease;
}

.models-page .filter-btn.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Modeller grid’i */

/* Kart tasarımı */
.models-page .model-item-card {
  background-color: var(--card-background);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.models-page .model-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Görsel alanı */
.models-page .model-media {
  position: relative;
  overflow: hidden;
}

.models-page .model-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 220px;
}

/* Çatı tipi etiketi */
.models-page .roof-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(243, 156, 18, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Kart gövdesi */
.models-page .model-body {
  padding: 16px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.models-page .model-body h3 {
  font-size: 1.25rem;
  color: var(--secondary-color-dark);
}

.models-page .model-meta {
  font-size: 0.9rem;
  color: #7a8699;
}

.models-page .model-features {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.models-page .model-features li {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.models-page .model-features i {
  color: var(--secondary-color);
}

/* Kart alt kısmı */
.models-page .model-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.models-page .model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.models-page .model-tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: rgba(26, 188, 156, 0.08);
  color: var(--secondary-color-dark);
  font-weight: 600;
}

.models-page .model-tag.outline {
  background-color: transparent;
  border: 1px solid rgba(26, 188, 156, 0.4);
}

/* Detay butonu kart içinde sağda dursun */
.models-page .model-footer .btn-details {
  margin: 0;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .models-page .filters-row {
    flex-direction: column;
  }

  .models-page .model-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .models-page .model-footer .btn-details {
    width: 100%;
    text-align: center;
  }
}

.models-page {
  max-width: 1200px;
}

.models-page .models-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ==========================================================================
   İletişim Sayfası (yeni layout)
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px;
  margin-top: 2rem;
  align-items: flex-start;
}

.contact-info-card,
.contact-form-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 24px 24px 26px 24px;
  box-shadow: var(--shadow-light);
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 1.4rem;
  color: var(--secondary-color-dark);
  margin-bottom: 0.75rem;
}

.contact-info-card p,
.contact-form-card p {
  font-size: 0.95rem;
}

/* Sol taraftaki liste */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-info-list i {
  margin-top: 2px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #7a8699;
}

/* Form layout */
.contact-form {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0.75rem;
}

/* Form durum mesajları */
.form-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.form-message.success {
  background-color: rgba(46, 204, 113, 0.08);
  border-color: #2ecc71;
  color: #276749;
}

.form-message.error {
  background-color: rgba(231, 76, 60, 0.08);
  border-color: #e74c3c;
  color: #8c2f23;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Lightbox – Galeri ve Model Detay Fotoğraf Büyütme
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none; /* JS ile .open class'ı eklendiğinde flex olacak */
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Kapatma butonu (X) */
.close-btn {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Lightbox içindeki ileri / geri okları */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
  padding: 0 12px;
  user-select: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.prev-btn {
  left: 24px;
}

.next-btn {
  right: 24px;
}

/* Küçük ekranlar için lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 100%;
    max-height: 75%;
  }

  .prev-btn,
  .next-btn {
    font-size: 2rem;
  }

  .close-btn {
    font-size: 1.8rem;
    top: 12px;
    right: 16px;
  }
}

/* Modeller filtresi – gizlenen kartlar */
.model-item-card.model-hidden {
  display: none !important;
}

.buderus {
  width: 80%;
  height: auto;
  border-radius: 8px;
}

/* ============================================================
   EK HİZMETLER – Buderus GE 315 Alanı
   ============================================================ */

.ekhizmet-buderus {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f4f7f9 0%, #e9f2f4 40%, #f8fbfc 100%);
}

.ekhizmet-buderus-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* Sol taraf: metin */
.ekhizmet-buderus-text h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color-dark);
}

.ekhizmet-buderus-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ekhizmet-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ekhizmet-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.ekhizmet-list li {
  margin-bottom: 0.35rem;
}

/* Sağ taraf: Buderus görsel kartı */
.ekhizmet-buderus-media {
  display: flex;
  justify-content: center;
}

.ekhizmet-buderus-frame {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  background-color: #0f172a;
}

.ekhizmet-buderus-frame img {
  display: block;
  width: 100%;
  height: auto; /* Görselin oranı bozulmasın */
  object-fit: cover;
}

.ekhizmet-buderus-frame figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #e2e8f0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
}

/* Responsive */
@media (max-width: 992px) {
  .ekhizmet-buderus-inner {
    grid-template-columns: 1fr;
  }

  .ekhizmet-buderus-media {
    order: -1; /* Mobilde önce görsel gelsin istiyorsan bunu bırak,
                  istemezsen bu satırı sil */
  }
}

/* =======================
   MOBİL NAVBAR DÜZENİ
   ======================= */
@media (max-width: 768px) {
  /* Üst bar (header) daha ince olsun */
  .navbar {
    padding: 8px 16px; /* üst–alt küçüldü */
  }

  /* Logo boyutu */
  .navbar-logo img {
    height: 28px; /* çok büyükse 24px de yapabilirsin */
  }

  /* Açılan mobil menü kartı */
  .mobile-menu {
    max-height: 65vh; /* tüm ekranı yemesin */
    overflow-y: auto; /* fazla ise içinde scroll olsun */
    padding: 16px 24px 20px; /* iç boşlukları daralt */
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px; /* satırlar arası boşluk */
  }

  .mobile-menu a {
    font-size: 1.05rem; /* masaüstüne göre biraz küçük */
    padding: 4px 0; /* satır yüksekliği daha dar */
  }
}

/* ==========================================
   EK HİZMETLER – Buderus kartı
   ========================================== */

/* Masaüstü: iki kolon (görsel + metin) */
.buderus-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
}

.buderus-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* kırpmadan göster */
}

/* Mobil: tek kolon, görsel üstte ortalı */
@media (max-width: 768px) {
  .buderus-card {
    grid-template-columns: 1fr;
  }

  .buderus-card-image {
    max-width: 260px; /* istersen 300 yap */
    margin: 0 auto 1.5rem; /* ortala ve altta boşluk bırak */
  }

  .buderus-card-image img {
    width: 100%;
    height: auto;
  }
}

/* =====================================
   MODELLERİMİZ – Mobil düzen
   ===================================== */
@media (max-width: 768px) {
  /* Kartları alt alta sırala */
  .models-page .models-gallery-grid {
    display: flex; /* grid yerine flex kullan */
    flex-direction: column;
    gap: 20px;
  }

  /* Her kart ekran genişliğine göre ortalansın */
  .models-page .model-item-card {
    width: 100%;
    max-width: 420px; /* istersen 380–440 arası oynatabilirsin */
    margin: 0 auto; /* yatayda ortalar */
  }

  /* Kart içi tipografi ve boşlukları biraz sıkılaştır */
  .models-page .model-item-card h3 {
    font-size: 1.25rem;
  }

  .models-page .model-meta {
    font-size: 0.9rem;
  }

  .models-page .model-features {
    font-size: 0.9rem;
  }
}

/* ==========================================
   Ek Hizmetler – Buderus mini slider
   ========================================== */

.buderus-card-image {
  /* Halihazırda verdiğimiz margin / width ayarları varsa kalsın */
}

/* Kartın içindeki slider çerçevesi */
.buderus-slider {
  position: relative;
  max-width: 380px;
  margin: 0 auto 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f7fa;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* Slaytları yana yana dizeriz */
.buderus-slides {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

/* Her slayt tam genişlik */
.buderus-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.buderus-slide img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain; /* kazan kesilmesin, tamamı görünsün */
}

/* Ok butonları */
.buderus-prev,
.buderus-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 999px;
  z-index: 2;
}

.buderus-prev {
  left: 10px;
}

.buderus-next {
  right: 10px;
}

.buderus-prev:hover,
.buderus-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Alttaki küçük noktalar */
.buderus-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 12px;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.9),
    rgba(241, 245, 249, 1)
  );
}

.buderus-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background-color: #cbd5e1;
  padding: 0;
  cursor: pointer;
}

.buderus-dot.is-active {
  width: 18px;
  background-color: var(--secondary-color);
}

/* Mobil ince ayar */
@media (max-width: 768px) {
  .buderus-slider {
    max-width: 100%;
  }

  .buderus-slide {
    padding: 18px;
  }

  .buderus-slide img {
    max-height: 210px;
  }
}
