/* Site fixes, November 2026. Loaded last on every page, after the original stylesheets.
   1. mobile navbar   2. footer alignment   3. quote form (contact fields, states) */

/* ---------- 1. Mobile navbar ---------- */
@media (max-width: 900px) {
  /* page behind the open menu no longer scrolls */
  html:has(#mobile-nav:not([hidden])) { overflow: hidden; }
  /* menu never runs off screen (landscape phones): it scrolls inside itself */
  .mobile-nav {
    max-height: calc(100svh - var(--header));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 31;
  }
  /* one line under each link: the active one turns red instead of getting a second underline */
  .mobile-nav > a.nav-link::after { display: none; }
  .mobile-nav > a.nav-link { color: #e4e4e4; transition: color .2s, border-color .2s; }
  .mobile-nav > a.nav-link.is-active { color: #fff; border-bottom-color: var(--red); }
  .mobile-nav > a.nav-link:active { color: #fff; }
  .mobile-nav .button { display: flex; width: 100%; max-width: 340px; }
  .mobile-nav .mobile-phone { display: block; padding: 16px 0 4px; border-bottom: 0 !important; }
}
@media (max-width: 900px) and (max-height: 500px) {
  .mobile-nav { padding-top: 8px; padding-bottom: 16px; }
  .mobile-nav > a:not(.button) { padding: 10px 0; font-size: 1.1rem; }
  .mobile-nav .button { margin-top: 12px; min-height: 46px; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* ---------- 2. Footer ---------- */
.ft-col ul { gap: 12px; }
.ft-col li { display: flex; align-items: center; min-height: 24px; }
.ft-col a { display: inline-flex; align-items: center; gap: 10px; line-height: 1.5; }
.ft-col .icon { width: 18px; height: 18px; flex: 0 0 18px; }
/* touch screens: keep icon and text on one line, same row height for links and plain items */
@media (pointer: coarse) {
  .ft-col ul { gap: 0; }
  .ft-col li { min-height: 44px; }
  .ft-col li a { display: inline-flex; padding-block: 10px; }
}
/* tablets / small laptops: three evenly spread columns under the brand */
@media (max-width: 1100px) and (min-width: 701px) {
  .ft-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 40px; }
  .ft-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: start; }
  .ft-brand .ft-logo { grid-row: span 2; }
  .ft-brand .ft-tagline { margin-top: 4px; }
  .ft-brand .ft-about { margin-top: 8px; }
}
@media (max-width: 700px) {
  .ft-grid { gap: 36px; }
  .ft-label { margin-bottom: 10px; }
  .ft-bottom { gap: 4px; }
}

/* ---------- 3. Quote form (homepage + services page) ---------- */
.sp-quote #quote-form > .form-field.qf-half { grid-column: auto; }
.qf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-quote .quote-failure {
  grid-column: 1 / -1; margin: 4px 0 14px; padding: 12px 14px; border-left: 3px solid var(--red);
  background: rgba(189, 32, 38, .07); font-size: .95rem; line-height: 1.5; color: var(--ink);
}
.sp-quote .quote-failure a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sp-quote .submit-quote[disabled] { opacity: .7; cursor: progress; }
.sp-quote .quote-sent { padding: 8px 0; }
.sp-quote .quote-sent-icon { width: 44px; height: 44px; color: var(--red); stroke-width: 1.8; margin-bottom: 14px; }
.sp-quote .quote-sent h4 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; margin: 0; outline: none; }
.sp-quote .quote-sent p { margin: 12px 0 22px; color: #3c3f42; font-size: 1rem; line-height: 1.55; }
@media (max-width: 700px) {
  .sp-quote #quote-form > .form-field.qf-half { grid-column: 1 / -1; }
}

/* ---------- 4. Fleet list (homepage "Mjeti i duhur"): every row full width so all arrows line up on the right ---------- */
.fleet-list-item { flex: 1 1 auto; width: 100%; }
.fleet-list-arrow { margin-left: auto; }

/* ---------- 5. Design review fixes (Nov 2026) ---------- */
/* readable red on dark backgrounds (was #bd2026 on near-black = 2.9:1; this is about 5:1) */
.routes-countries span:nth-child(2n) { color: #ef5257; }
.journey-timeline li { --red: #ef5257; }
.fp-featured .eyebrow, .fp-featured .fp-eyebrow { color: #ef5257; }
.sp-statement-label { color: #fbe4e5; }
/* form privacy note was too light on cream (2.5:1) */
.cp-form-privacy { color: #5f6266; }
/* "Zonat e mbuluara": on small tablets keep photo beside the text instead of a half-width block with empty space */
@media (max-width: 900px) and (min-width: 701px) {
  .routes-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .routes-photo { order: 0; max-width: none; }
}
/* on phones the photo spans the full width */
@media (max-width: 700px) {
  .routes-photo { max-width: none; }
  .routes-photo img { aspect-ratio: 16 / 10; }
}
/* fleet page: the big "SCANIA" watermark ran behind the vehicle list on phones/tablets */
@media (max-width: 900px) {
  .fp-featured-watermark { color: rgba(255, 255, 255, .03); }
}
