@media (max-width: 900px) {
  .hero-img {
    object-fit: contain;
  }
}

@media (max-width: 1200px) {
  .slider {
    height: auto;              /* sabit yüksekliği kaldır */
    aspect-ratio: 16 / 9;      /* oranı koru */
    min-height: 260px;         /* asla sıfırlanmasın */
  }

  .slider-img {
    object-fit: contain;       /* 🔹 mobilde kırpmasın */
  }
}

@media (max-width: 1024px) {
    /* DÜZELTME: Menü kırılma noktası 1500px'den 1024px'e çekildi. */
    .contact-btn {
        display: none; /* 'Bize Ulaşın' butonu menünün içine gireceği için burada gizlenir */
    }
    .mobile-menu-toggle {
        display: block; /* Hamburger ikon görünür olur */
    }
    .main-nav {
        display: none; /* Navigasyon varsayılan olarak gizlenir */
        position: absolute;
        top: 100%; /* Header yüksekliğine göre ayarlayın */
        left: 0;
        width: 100%;
        background-color: #f2f3f4;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: flex; /* JS ile active class gelince görünür olur */
    }
    .nav-left, .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .nav-btn {
        text-align: center;
        padding: 12px;
    }
    .nav-right {
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    .split-home {
        flex-direction: column; /* İçerik ve slider alt alta gelir */
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 0.75em; /* Şirket ismi küçülür */
    }
    .logo {
        height: 25px;
    }
    .header-main {
        padding-top: 10px;
    }
    .hero-banner {
        border-radius: 10px;
        padding-bottom: 60%; /* Mobil için biraz daha yüksek olabilir */
    }
    #welcome-text {
        font-size: 32px;
    }
    .split-home {
        padding: 30px;
    }
    .slider {
        height: 250px; /* Mobil için slider yüksekliği azaltıldı */
    }

}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card img {
    height: 170px; /* küçük ekranda daha alçak */
  }
}

@media (max-width: 1024px) {
  .hero2-banner {
    border-radius: 20px;
  }
  .about-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .hero2-banner {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
  }
  .hero2-slogan h2 {
    font-size: 2rem;
  }
  .about-content {
    margin-top: 20px;
    padding: 0 15px;
  }
}

@media (max-width: 900px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipment-card img {
    height: 170px; /* küçük ekranda daha alçak */
  }
}

@media (max-width: 768px) {
  .gender-askerlik-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .gender-group label {
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column; /* yan yana yerine alt alta geçsin */
    gap: 30px;
  }

  .contact-map {
    min-height: 350px;
  }

  .contact-info h2 {
    font-size: 26px;
  }

  .contact-text,
  .contact-details li {
    font-size: 15px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .contact-container {
    padding: 0 15px;
  }

  .contact-map {
    min-height: 300px;
  }

  .contact-info h2 {
    font-size: 24px;
  }

  .contact-text,
  .contact-details li {
    font-size: 14px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .hero-tus-banner {
    height: 45vh;
    min-height: 320px;
    border-radius: 24px;
  }
  .about-content {
    max-width: 90%;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .hero-tus-banner {
    width: 100%;
    margin: 10px auto 20px auto;
    height: 38vh;
    min-height: 260px;
    border-radius: 16px;
  }
  .about-content {
    padding: 0 18px;
    line-height: 1.6;
  }
  .about-content h2 {
    font-size: 1.6em;
  }
  .about-content p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .hero-tus-banner {
    height: 34vh;
    min-height: 200px;
    border-radius: 10px;
  }
  .about-content {
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .sym3d-grid {
    grid-template-columns: 1fr;
  }
  .sym3d-item img,
  .sym3d-item video {
    height: 220px;
  }
}

@media (max-width: 1024px) {
  .agrotod-section {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .agrotod-title {
    font-size: 2rem;
  }

  .agrotod-card {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display:block; background:none; border:0; font-size:28px; }
  .main-nav { display:none; }                 /* kapalıyken gizli */
  .main-nav.active {
    display:flex; flex-direction:column;
    position:absolute; left:0; right:0; top:100%;
    background:#1b3a56; z-index:100; animation:slideDown .25s ease;
  }
  .main-nav a { color:#fff; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.1); }

  /* Başlık ve tipografi oranları */
  h1, .equipment-title, .services-title, .career-title { font-size:1.8rem; }
  .site-header .header-main { padding:8px 16px; }
  .logo { width:46px; height:auto; }
  .contact-btn { display:none; }

  /* Gridler tek sütun */
  .equipment-grid, .services-grid { grid-template-columns:1fr !important; gap:24px; }
  .equipment-card, .service-card { max-width:95%; margin:0 auto; }

  /* Hero & Slider */
  .hero-banner, .hero2-banner { aspect-ratio:4/3; border-radius:20px; }
  .slider { aspect-ratio:4/3; min-height:360px; }
  .slider-img { object-fit:cover; }

}

@media (max-width: 1024px) {

  /* ✅ GENEL */
  html, body {
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* ====================== */
  /* 🔹 HEADER & LOGO ALANI */
  /* ====================== */
  .site-title {
    display: block;
    text-align: center;
    font-size: 1rem;
    line-height: 1.3;
    white-space: pre-line;
    margin-top: 6px;
  }

  /* “Candal Harita” üstte, “Mühendislik Bürosu” altta */
  .site-title br {
    display: block;
  }
    
  .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .header-main .logo-area {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 80%;
    justify-content: flex-start;
    text-align: left;
    flex-direction: column; /* sadece mobilde aktif */
    justify-content: center;
    text-align: center;
  }
  

  .header-main .logo-area .logo {
    width: 130px !important;
    height: auto;
    align-items: flex-start;
    text-align: left;
  }

  .header-main .site-title {
    font-size: 0.85rem;
    line-height: 1.1;
    text-align: left;
    white-space: normal; /* taşma engeli */
  }

  .contact-btn {
    font-size: 0.85rem;
    padding: 7px 10px;
    flex-shrink: 0;
  }

  /* 🔹 Header pozisyon referansı olsun */
  .site-header {
    position: relative;
    z-index: 1000;
  }

  /* 🔹 Menü kapalıyken gizli */
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* 🔥 Artık header’ın hemen altı */
    left: 0;
    width: 100%;
    background: #1b3a56;
    border-top: 1px solid rgba(255,255,255,0.2);
    z-index: 999;
  }

  /* 🔹 Menü açıkken görünür */
  .main-nav.active {
    display: flex;
  }

  /* 🔹 Menü bağlantıları */
  .main-nav a {
    color: white;
    padding: 16px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  /* 🔹 Menü butonu menünün üstünde kalsın */
  .mobile-menu-toggle {
    position: relative;
    z-index: 1100;
  }

  /* ====================== */
  /* 🏔️ HERO BÖLÜMÜ         */
  /* ====================== */
  .hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    background: none !important; /* 🔥 siyah arka plan kaldırıldı */
    padding: 12px 14px;
  }

  .hero-slogan h2 {
    color: #2C5C84;
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  }

  .hero-slogan p {
    color: #2C5C84;
    font-size: 0.95rem;
    margin-top: 6px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  }

  /* ====================== */
  /* 📄 SPLIT HOME ALANI    */
  /* ====================== */
  .split-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    gap: 24px;
    overflow: hidden;
  }

  .split-left {
    width: 100%;
    text-align: justify;
  }

  .split-left h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1b3a56;
  }

  .split-left p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 12px;
  }

  .split-right {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .slider {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px;
    position: relative;
  }

  .slider-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  /* 🔹 SLIDER BUTONLARI */
  .slider-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    z-index: 5;
  }

  .slider-controls button {
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .slider-controls button:hover {
    background: rgba(0, 0, 0, 0.75);
  }

}

@media (max-width: 1024px) {
  .site-header-inner {
    justify-content: flex-start;
  }

  .logo-wrap {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .nav-right a i {
    font-size: 24px !important;
  }
}

@media (max-width: 1024px) {

  .services-grid {
    align-items: stretch;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .service-card img {
    height: 220px;        /* 🔥 SABİT GÖRSEL ALANI */
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .service-card h2 {
    flex-grow: 1;         /* 🔥 metin alanı esner */
  }

}

@media (max-width: 1024px) {

  .equipment-grid {
    align-items: stretch;
  }

  .equipment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .equipment-card img {
    height: 220px;        /* 🔥 HİZMETLERLE AYNI ORAN */
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .equipment-card h2 {
    flex-grow: 1;
  }

}

@media (max-width: 1200px) {

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2C5C84;
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-col {
    width: 100%;
  }
}
@media (max-width: 768px) {

  .logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
    height: auto;              /* 🔥 artık 2 satıra izin veriyoruz */
  }

  .logo-area .logo {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;            /* 🔥 logo küçülmesin */
  }

  .logo-area .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;      /* 🔥 SADECE 2 SATIR */
    -webkit-box-orient: vertical;

    overflow: hidden;
    white-space: normal;
    max-width: 300px;           /* 🔥 KRİTİK: 2 satırı garantiler */
  }

  .header-main {
    padding: 12px 16px;
    align-items: center;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .logo-area .site-title {
    display: block;           /* line-clamp kapansın */
    white-space: nowrap;      /* TEK SATIR */
    overflow: hidden;
    text-overflow: ellipsis;  /* Taşarsa … */
    max-width: none;          /* genişliği serbest */
    font-size: 1.25rem;
    font-weight: 700;
  }
}
/* =========================
   SLIDER – TEK OTORİTE
========================= */

/* Masaüstü */
.slider {
  position: relative;
  width: 100%;
  height: 550px;               /* 🔹 masaüstü için sabit yükseklik */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.11);
  background: transparent;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;     /* 🔥 tamamını gösterir */
    object-position: center;
    background: transparent;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-controls {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
}

.slider-controls button {
    background: rgba(46,101,138,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6em;
    cursor: pointer;
    transition: background 0.15s;
}

.slider-controls button:hover {
    background: #17405e;
}

/* Tablet */
@media (max-width: 1200px) {
  .slider {
    position: relative;
    width: 100%;
    height: 320px;               /* 🔹 masaüstü için sabit yükseklik */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.11);
    background: transparent;
    margin-bottom: 50px;
  }
  
  .slider-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;     /* 🔥 tamamını gösterir */
      object-position: center;
      background: transparent;
      display: none;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
  }

  /* Aktif olan görseli ortalanmış şekilde göster */
  .slider-img.active {
    display: block;
    opacity: 1;
  }

  .slider-controls {
    bottom: 8px;
    gap: 14px;
  }

  .slider-controls button {
    width: 34px;
    height: 34px;
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {

  .slider {
    position: relative;
    width: 100%;
    height: 320px;               /* 🔹 masaüstü için sabit yükseklik */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.11);
    background: transparent;
    margin-bottom: 75px;
  }
  
  .slider-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;     /* 🔥 tamamını gösterir */
      object-position: center;
      background: transparent;
      display: none;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
  }

  /* Aktif olan görseli ortalanmış şekilde göster */
  .slider-img.active {
    display: block;
    opacity: 1;
  }

  .slider-controls {
    bottom: 8px;
    gap: 14px;
  }

  .slider-controls button {
    width: 34px;
    height: 34px;
    font-size: 1.2em;
  }
}


