/* =========================================================
   TOPRAK ELEKTRONİK — RESPONSIVE CSS
   Mobile / Tablet / Desktop optimizasyonları
   ========================================================= */

/* ---------- Large desktop ---------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
  }

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

/* ---------- Desktop / laptop ---------- */
@media (max-width: 1199.98px) {
  .container {
    width: min(94%, 1140px);
  }

  .topbar {
    gap: 18px;
    font-size: 0.85rem;
  }

  .navbar-nav {
    gap: 10px;
  }

  .navbar-nav a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    max-width: 52%;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
  }

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

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

  .contact-form {
    grid-column: 1 / -1;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }

  .topbar {
    display: none;
  }

  .navbar {
    min-height: 74px;
  }

  .navbar-brand img {
    max-width: 180px;
  }

  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-collapse {
    width: 100%;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 18px;
  }

  .navbar-nav a {
    display: block;
    padding: 13px 10px;
  }

  .navbar-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 70px;
  }

  .hero-content {
    max-width: 65%;
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 6vw, 3.6rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

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

  .service-card {
    min-height: 250px;
  }

  .digitürk-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand-list,
  .brands-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 30px;
  }

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

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

  .map-wrapper {
    min-height: 360px;
  }

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

/* ---------- Mobile landscape / large phones ---------- */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(92%, 680px);
  }

  section {
    padding: 55px 0;
  }

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

  .section-title h2 {
    font-size: 1.9rem;
  }

  .navbar {
    min-height: 66px;
  }

  .navbar-brand img {
    max-width: 155px;
  }

  .hero {
    padding: 90px 0 55px;
    background-position: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 4%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
  }

  .hero-content h1 span {
    display: inline;
  }

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

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-slider-controls {
    display: none;
  }

  .feature-grid,
  .features-grid,
  .service-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  .service-card {
    min-height: 0;
  }

  .service-card img {
    height: 190px;
    object-fit: cover;
  }

  .digitürk-banner {
    padding: 28px 20px;
  }

  .digitürk-banner h2 {
    font-size: 1.8rem;
  }

  .brand-list,
  .brands-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }

  .brand-list img,
  .brands-list img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
  }

  .repair-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 220px;
  }

  .contact-grid {
    gap: 18px;
  }

  .contact-info,
  .contact-form,
  .map-card {
    padding: 20px;
  }

  .map-wrapper {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .floating-whatsapp,
  .floating-phone {
    width: 52px;
    height: 52px;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  .container {
    width: 92%;
  }

  .navbar-brand img {
    max-width: 140px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    min-height: 48px;
  }

  .feature-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  .feature-card .icon {
    flex: 0 0 52px;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

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

  .gallery-card img {
    height: 200px;
  }

  .map-wrapper {
    min-height: 270px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-item {
    align-items: flex-start;
  }

  .floating-whatsapp {
    left: 14px;
    bottom: 14px;
  }

  .floating-phone {
    right: 14px;
    bottom: 14px;
  }
}

/* ---------- Accessibility / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .navbar-nav a,
  .service-card,
  .gallery-card {
    -webkit-tap-highlight-color: transparent;
  }

  .service-card:hover,
  .gallery-card:hover {
    transform: none;
  }
}


@media (max-width: 991.98px) {
  .service-image { height: 125px; }
}
@media (max-width: 575.98px) {
  .service-image { height: 165px; }
  .service-icon { top: 178px; }
}
