/* =========================================================
   RESPONSIVE.CSS – MODERNIZED VERSION
   ========================================================= */

/* ---------- GENERAL LAYOUT IMPROVEMENTS ---------- */
html {
  font-size: 16px;
}

@media (max-width: 1600px) {
  body {
    font-size: 0.95rem;
  }
  section {
    padding: 100px 50px;
  }
}

/* =========================================================
   LARGE LAPTOPS / TABLETS LANDSCAPE (≤1200px)
   ========================================================= */
@media (max-width: 1200px) {
  /* Navbar */
  .navbar {
    padding: 18px 35px;
  }
  .navbar-title {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
  }

  /* Hero */
  .hero-content h1,
  .servis-content h1,
  .location-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .thumbnail-description {
    max-width: 360px;
    font-size: 0.95rem;
  }

  /* Features */
  .features-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .features-bike img {
    width: 80%;
    margin: 0 auto;
  }

  .bike-vertical-text {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 15px;
  }

  /* Pricing */
  .pricing-section {
    padding: 90px 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* Explore */
  .explore-stats {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer {
    padding: 80px 40px;
  }
}

/* =========================================================
   TABLETS & SMALL LAPTOPS (≤900px)
   ========================================================= */
@media (max-width: 900px) {
  /* Navbar */
  .navbar {
    padding: 15px 25px;
  }
  .lang-buttons {
    gap: 15px;
  }

  /* Hero */
  .hero,
  .servis-hero,
  .location-hero {
    height: auto;
    min-height: 70vh;
    padding: 100px 30px 80px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
  }

  .cta-btn {
    padding: 12px 34px;
    font-size: 0.9rem;
  }

  /* Service Info / Location Info */
  .servis-info,
  .location-info {
    flex-direction: column;
    align-items: center;
    padding: 80px 35px;
    gap: 50px;
  }

  .servis-contact,
  .address-info {
    width: 100%;
    padding: 30px;
  }

  /* Features */
  .features-light {
    padding: 80px 35px;
  }

  .features-info h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  /* Explore Section */
  .explore {
    flex-direction: column;
    height: auto;
    padding: 80px 35px;
  }
  .explore-outline {
    display: none;
  }
  .explore-stats {
    grid-template-columns: 1fr;
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    gap: 2rem;
  }

  /* Pricing */
  .pricing-section {
    padding: 80px 35px;
  }
  .pricing-card {
    grid-template-columns: 1fr;
  }

  /* Brands */
  .brands-hero {
    height: 60vh;
  }
  .hero-quote .quote {
    font-size: 1.3rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================================================
   PHONES (≤700px)
   ========================================================= */
@media (max-width: 700px) {
  /* Navbar */
  .navbar {
    padding: 12px 20px;
  }
  .navbar-right {
    top: 10px;
    right: 20px;
  }
  .lang-buttons {
    gap: 8px;
  }
  .navbar-title {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
  }

  /* Hero Sections */
  .hero,
  .servis-hero,
  .location-hero {
    padding: 80px 20px;
    text-align: center;
  }
  .hero-content h1,
  .servis-content h1,
  .location-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }
  .hero-content p,
  .servis-content p,
  .location-content p {
    font-size: 1rem;
  }

  .thumbnail-description {
    display: none;
  }

  /* Features */
  .features-light {
    padding: 60px 20px;
  }
  .features-info h2 {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }
  .feature-item {
    padding: 40px 20px;
  }

  /* Explore */
  .explore {
    padding: 60px 20px;
  }
  .explore-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Service & Location */
  .servis-info,
  .location-info {
    padding: 60px 20px;
  }
  .servis-text h2,
  .address-info h2 {
    font-size: 1.6rem;
  }
  .service-list li {
    font-size: 0.9rem;
  }

  /* Brands */
  .brands-hero {
    height: 50vh;
  }
  .hero-quote .quote {
    font-size: 1rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer {
    padding: 60px 20px 30px;
  }
  .footer-column {
    margin-bottom: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

/* =========================================================
   EXTRA SMALL DEVICES (≤450px)
   ========================================================= */
@media (max-width: 450px) {
  .navbar {
    padding: 10px 15px;
  }

  .hero-content h1,
  .servis-content h1,
  .location-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .cta-btn {
    padding: 10px 26px;
    font-size: 0.8rem;
  }

  .servis-contact,
  .address-info {
    padding: 20px;
  }

  .footer {
    padding: 50px 15px;
  }
}
/* ---------- NAVBAR FIX FOR SMALL SCREENS ---------- */
@media (max-width: 700px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-title {
    position: static;
    transform: none;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    text-align: center;
    flex: 1;
  }

  .lang-buttons {
    gap: 6px;
  }

  .navbar-right {
    position: static;
  }
}

@media (max-width: 450px) {
  .navbar-title {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}
/* ===== Globalna sanacija za mobile ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { width: 100%; overflow-x: hidden; }

img, video { max-width: 100%; height: auto; display: block; }

:root {
  /* malo manj agresiven letter-spacing za meste kjer se preliva */
  --tight-ls: 0.08em;
}

/* Sekcije: na mobitelih še malo manj paddinga */
@media (max-width: 700px) {
  section,
  .features-light,
  .pricing-section,
  .explore,
  .servis-info,
  .location-info,
  .footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ===== Navbar robustnost (≤700px) ===== */
@media (max-width: 700px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;            /* omogoči malo diha med elementi */
    flex-wrap: nowrap;    /* ne lomi brez potrebe */
  }
  .navbar > * { min-width: 0; }  /* da se lahko širi/skrči brez overflowa */

  .navbar-title {
    position: static !important;  /* razveljavi kakršenkoli absolute/fixed drugje */
    transform: none !important;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    letter-spacing: var(--tight-ls);
    font-size: 0.9rem;            /* čitljivo a kompaktno */
    white-space: nowrap;          /* če ti rado lomi, odstrani to vrstico */
    overflow: hidden;
    text-overflow: ellipsis;      /* če je res predolgo */
  }

  .navbar-right {
    position: static !important;  /* odpravi morebiten absolute */
    flex: 0 0 auto;
  }

  .lang-buttons {
    gap: 6px;
    flex: 0 0 auto;
  }
}

/* Manjši telefoni */
@media (max-width: 450px) {
  .navbar-title {
    font-size: 0.8rem;
    letter-spacing: var(--tight-ls);
  }
}

/* ===== Hero višina (varno za iOS) ===== */
@media (max-width: 700px) {
  .hero,
  .servis-hero,
  .location-hero {
    /* namesto fiksnih vh višin – bolj robustno */
    min-height: 60svh;  /* podpira “safe viewport height” na iOS/Android */
    height: auto;
  }
}

/* ===== Gridi in overflow varovalke ===== */
@media (max-width: 700px) {
  .features-top,
  .pricing-grid,
  .explore-stats,
  .footer-container {
    /* če se kje zatakne z minimalnimi širinami, dovoli krčenje */
    min-width: 0;
  }
  .feature-item,
  .pricing-card {
    min-width: 0;
    overflow: hidden;  /* prepreči, da notranji content razširi kartico čez ekran */
  }
}

/* ===== Tipografija: malo mehkejši clamp na telefonu ===== */
@media (max-width: 700px) {
  .hero-content h1,
  .servis-content h1,
  .location-content h1 {
    /* zmanjšaj minimum in maximum da manj rine layout */
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    line-height: 1.15;
    word-break: break-word;
  }

  .hero-content p,
  .servis-content p,
  .location-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ===== Brands hero: izogni se trdemu 50vh ===== */
@media (max-width: 700px) {
  .brands-hero {
    min-height: 45svh;  /* ali kar height:auto; če se reže ozadje/tekst */
    height: auto;
  }
}
