/* ==========================================================================
   AKS MOTORS KAVAKLI - MOBİL OPTİMİZASYON
   Tüm ekran boyutları için kapsamlı responsive düzeltmeler
   ========================================================================== */

/* --- GENEL MOBİL TEMELLERİ --- */
@media (max-width: 768px) {

  /* Container padding artırıldı */
  .container {
    padding: 0 16px;
  }

  /* --- MOBİL HERO SLIDE GÖRSELLERİ --- */
  /* Mevcut landscape görseller (kaydirma1/2.png) telefonda düzgün görünmediği için
     mobilde düz renk arka plan kullanılıyor.
     mobilslide-1.png ve mobilslide-2.png hazır olduğunda aşağıdaki
     yorum satırlarını açın (background-image satırlarını aktif edin). */

  .slide-1 {
    background-image: linear-gradient(135deg, rgba(12,40,60,0.45) 0%, rgba(12,40,60,0.2) 100%), url('../images/mobilslide-2.png') !important;
    background-color: #1e3a5f;
    background-size: cover;
    background-position: center center;
  }

  .slide-2 {
    background-image: linear-gradient(135deg, rgba(12,40,60,0.45) 0%, rgba(12,40,60,0.2) 100%), url('../images/mobilslide-1.png') !important;
    background-color: #0c2840;
    background-size: cover;
    background-position: center center;
  }

  /* --- TOPBAR: Mobilde gizle --- */
  .topbar {
    display: none;
  }

  /* --- NAVBAR --- */
  .header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .navbar {
    padding: 12px 0;
  }

  .brand-logo-text .main-title {
    font-size: 1.2rem;
  }

  .brand-logo-text .sub-title {
    font-size: 0.62rem;
  }

  /* WhatsApp butonundaki yazıyı gizle, sadece ikon kalsın */
  .header-actions .btn-whatsapp span {
    display: none;
  }

  .header-actions .btn-whatsapp {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  /* Mobil menü */
  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border-light);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #f1f5f9;
  }

  /* --- HERO SECTION --- */
  .hero-dual-section {
    padding: 30px 0 40px 0;
  }

  .hero-intro-box {
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 14px;
  }

  /* Mobilde <br> tag'ini kaldır */
  .hero-title br {
    display: none;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  /* Dual portal grid tek sütun */
  .dual-portal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portal-img-wrap {
    height: 200px;
  }

  .portal-content {
    padding: 20px;
  }

  .portal-header h2 {
    font-size: 1.35rem;
  }

  .portal-header p {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  /* Features: 1 sütuna düşür */
  .portal-features-list {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
  }

  /* Butonlar tam genişliğe yay */
  .portal-btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .portal-btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- BRAND STRIP --- */
  .brand-strip-section {
    padding: 20px 0;
  }

  .brand-strip-grid {
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .brand-badge-item {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  /* --- STATS BAR --- */
  .stats-bar-section {
    padding: 30px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* --- SHOWROOM / HİZMETLER --- */
  .showroom-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-desc {
    font-size: 0.93rem;
  }

  .section-title-wrap {
    margin-bottom: 28px;
  }

  /* Tab butonları wrap olsun, scroll edilebilsin */
  .showroom-tabs {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
  }

  .showroom-tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* Filtre */
  .filter-wrapper {
    padding: 12px;
    margin-bottom: 20px;
  }

  /* Hizmet kartları tek sütun */
  .vehicles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vehicle-thumb {
    height: 180px;
  }

  .vehicle-info {
    padding: 16px;
  }

  .vehicle-title {
    font-size: 1.08rem;
  }

  /* --- APPOINTMENT SECTION --- */
  .calculator-section {
    padding: 40px 0;
  }

  .calculator-box {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 24px;
    border-radius: var(--radius-lg);
  }

  /* --- WHY AKS SECTION --- */
  .services-section {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px 18px;
  }

  /* --- CTA BANNER --- */
  .cta-banner-section {
    padding: 36px 0;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-text h2 {
    font-size: 1.5rem;
  }

  .cta-text p {
    font-size: 0.9rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- FOOTER --- */
  .footer-main {
    padding: 40px 0 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    font-size: 0.8rem;
  }

  .footer-bottom > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* --- MODAL --- */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(30px);
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

  /* Modal içeriği tek sütun */
  #modalServiceBody {
    padding: 16px !important;
  }

  .modal-grid-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Modal kapat butonu büyüt */
  .modal-close-btn {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
    font-size: 1.1rem;
  }

  /* --- FLOATING ACTIONS --- */
  .floating-actions {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* --- TABLET (768px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {

  .container {
    padding: 0 24px;
  }

  .dual-portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portal-features-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-box {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --- KÜÇÜK TELEFONLAR (max 400px) --- */
@media (max-width: 400px) {

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .showroom-tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .brand-logo-text .main-title {
    font-size: 1.05rem;
  }

  .portal-btn-group .btn {
    font-size: 0.88rem;
    padding: 11px 16px;
  }
}
