/* ============================================================
   Mišić Recikliraj Pametno — style.css
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary:        #16A34A;
  --primary-dark:   #15803D;
  --primary-xdark:  #166534;
  --primary-light:  #DCFCE7;
  --dark:           #0F172A;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --border:         #E2E8F0;
  --bg:             #FFFFFF;
  --bg-alt:         #F8FAFC;
  --bg-green:       #F0FDF4;
  --bg-dark:        #0A1F12;

  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:  1260px;
  --pad:    2rem;

  --r-sm:  6px;
  --r:     12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.08);
  --sh:    0 4px 16px rgba(0,0,0,.08);
  --sh-lg: 0 12px 32px rgba(0,0,0,.1);

  --t: .2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img     { max-width: 100%; height: auto; display: block; }
a       { text-decoration: none; color: inherit; }
ul, ol  { list-style: none; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section        { padding: 5rem 0; }
.section--alt   { background: var(--bg-alt); }
.section--green { background: var(--bg-green); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r);
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary-dark);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-xdark);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--primary-dark);
}
.btn--white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  letter-spacing: -.01em;
}
.nav__logo img {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--t);
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn).active {
  color: var(--primary-dark);
}
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn).active::after {
  width: 100%;
}
/* Ensure nav CTA button always shows white text */
.nav__links a.btn--primary,
.nav__links a.btn--primary:hover {
  color: #fff;
}
.nav__cta { margin-left: .25rem; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.nav__toggle:hover { background: var(--bg-alt); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-green) 0%, #fff 65%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.hero__title {
  margin-bottom: 1.25rem;
}
.hero__title span { color: var(--primary); }
.hero__subtitle {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__image-wrap { position: relative; }
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  object-fit: cover;
  background: #dde8e0;
  box-shadow: var(--sh-lg);
}
.hero__badge-card {
  position: absolute;
  bottom: 1.5rem;
  left: -1rem;
  background: #fff;
  border-radius: var(--r);
  padding: .75rem 1.2rem;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.hero__badge-card .badge-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--primary-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.hero__badge-card .badge-icon svg { width: 18px; height: 18px; }
.hero__badge-card .badge-text {
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.hero__badge-card .badge-text span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: .74rem;
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-header .label,
.page-hero .label,
.about-logo .label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-bottom: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { font-size: .95rem; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features { padding: 5rem 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.feature-card:hover {
  border-color: rgba(22,163,74,.25);
  box-shadow: var(--sh-lg);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--bg-green);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: background var(--t);
}
.feature-card:hover .feature-card__icon { background: var(--primary-light); }
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.feature-card p  { font-size: .875rem; line-height: 1.65; }

/* ============================================================
   TESTIMONIAL SECTION
   ============================================================ */
.testimonial {
  background: var(--bg-dark);
  padding: 6rem 0;
  text-align: center;
}
.testimonial__inner {
  max-width: 780px;
  margin: 0 auto;
}
.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: .2rem;
  margin-bottom: 1.75rem;
  color: #FBBF24;
  font-size: 1.15rem;
}
.testimonial__quote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2.5rem;
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after  { content: '\201D'; }
.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
}
.testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}
.testimonial__info .name {
  font-weight: 600;
  color: #fff;
  font-size: .95rem;
}
.testimonial__info .role {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-top: .1rem;
}

/* ============================================================
   CONTACT CTA SECTION
   ============================================================ */
.contact-cta {
  background: var(--primary);
  padding: 5rem 0;
  text-align: center;
}
.contact-cta h2   { color: #fff; margin-bottom: .75rem; }
.contact-cta > .container > p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.contact-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: color var(--t);
}
.contact-cta__phone:hover { color: rgba(255,255,255,.85); }
.contact-cta__phone svg { width: 22px; height: 22px; }
.contact-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  padding: 4.5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer__brand .logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.footer__brand .logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  padding: 3px;
  flex-shrink: 0;
}
.footer__brand p {
  font-size: .87rem;
  color: rgba(255,255,255,.70);
  max-width: 280px;
  line-height: 1.75;
}
.footer__col-title {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer__col ul a {
  font-size: .87rem;
  color: rgba(255,255,255,.70);
  transition: color var(--t);
}
.footer__col ul a:hover { color: var(--primary); }
.footer__social {
  display: flex;
  gap: .65rem;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  transition: background var(--t), color var(--t);
}
.footer__social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.60);
}

/* ============================================================
   PAGE HERO (About, Contact pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-green) 0%, #fff 65%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero > .container > p {
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { padding: 5rem 0; }
.about-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-intro__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  object-fit: cover;
  background: #dde8e0;
  box-shadow: var(--sh-lg);
}
.about-intro__content h2 { margin-bottom: 1.25rem; }
.about-intro__content p {
  margin-bottom: 1rem;
  font-size: .95rem;
  line-height: 1.75;
}
.about-intro__content .btn { margin-top: .75rem; }

.about-logo {
  padding: 5rem 0;
  background: var(--bg-alt);
}
.about-logo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-logo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.about-logo__content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.about-logo__content p  { font-size: .95rem; line-height: 1.75; }
.about-logo__image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-logo__img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--sh-lg);
  border: 1.5px solid var(--border);
}

.services-section { padding: 5rem 0; background: var(--bg-green); }

/* Services cards — single horizontal row on desktop */
.services-section .container {
  max-width: 1500px;
}
.services-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.service-card:hover {
  border-color: rgba(22,163,74,.3);
  box-shadow: var(--sh);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.service-card__icon svg { width: 34px; height: 34px; }
.service-card p {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}

/* Trucks section with description text */
.trucks-section { padding: 5rem 0; background: var(--bg-alt); }
.trucks-section__text {
  max-width: 740px;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.trucks-section__text p { font-size: .95rem; line-height: 1.8; }
.trucks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.truck-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow var(--t);
}
.truck-card:hover {
  box-shadow: var(--sh-lg);
}
.truck-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dde8e0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 5rem 0; }
.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4.5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: .85rem; }
.contact-info > p {
  font-size: .95rem;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-detail__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--bg-green);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-detail__icon svg { width: 20px; height: 20px; }
.contact-detail__text .label-sm {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .15rem;
}
.contact-detail__text .value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-form-wrap {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.75rem;
  box-shadow: var(--sh);
}
.contact-form-wrap h3 {
  font-size: 1.35rem;
  margin-bottom: .4rem;
}
.contact-form-wrap > p {
  font-size: .9rem;
  margin-bottom: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
}
.form-control {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  outline: none;
  resize: vertical;
  width: 100%;
}
.form-control::placeholder { color: var(--text-muted); opacity: .65; }
.form-control:focus {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
textarea.form-control { min-height: 145px; }
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: .9rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   HERO LOAD ANIMATIONS
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-hero-animate] {
  animation: heroFadeUp .7s cubic-bezier(.25,.46,.45,.94) both;
  animation-delay: var(--hero-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-animate] { animation: none; }
}

/* ============================================================
   SCROLL ENTRANCE ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.25,.46,.45,.94),
              transform .65s cubic-bezier(.25,.46,.45,.94);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   INVALID FIELD STATE
   ============================================================ */
.form-control.is-invalid {
  border-color: #DC2626;
  background: #FFF5F5;
}
.form-control.is-invalid:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

/* ============================================================
   FORM STATUS OVERLAY
   ============================================================ */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.form-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.form-overlay__card {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
  transform: translateY(20px);
  transition: transform .35s ease;
}
.form-overlay.visible .form-overlay__card { transform: translateY(0); }
.form-overlay__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-overlay__icon svg { width: 30px; height: 30px; }
.form-overlay--success .form-overlay__icon { background: var(--primary-light); color: var(--primary); }
.form-overlay--error   .form-overlay__icon { background: #FEE2E2; color: #DC2626; }
.form-overlay__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}
.form-overlay__message {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.form-overlay__btn { width: 100%; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hamburger → X animation (always active, fires at mobile) */
.nav__toggle span {
  transition: transform .28s ease, opacity .2s ease;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 900px ---- */
@media (max-width: 900px) {
  .hero__inner            { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__image-wrap       { max-width: 560px; margin: 0 auto; width: 100%; }
  .features__grid         { grid-template-columns: 1fr 1fr; }
  .footer__grid           { grid-template-columns: 1fr 1fr; }
  .footer__brand          { grid-column: 1 / -1; }
  .about-intro__inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-intro__image     { max-width: 560px; }
  .about-logo__inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-logo__image-wrap { justify-content: flex-start; }
  .about-logo__img        { max-width: 380px; }
  .services-cards         { grid-template-columns: repeat(3, 1fr); }
  .contact-section__inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- 600px ---- */
@media (max-width: 600px) {
  :root { --pad: 1.25rem; }

  /* Nav */
  .header      { position: relative; }
  .nav         { height: 64px; }
  .nav__toggle { display: flex; }

  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh);
    z-index: 99;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    gap: 0;
    padding: 0 var(--pad);
    transition: max-height .35s ease, opacity .28s ease, padding .35s ease;
    pointer-events: none;
  }
  .nav__links.open {
    max-height: 440px;
    opacity: 1;
    padding: .75rem var(--pad) 1.25rem;
    pointer-events: auto;
  }
  .nav__links li           { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a:not(.btn)  { display: block; padding: .875rem 0; font-size: .95rem; color: var(--text); }
  .nav__links a:not(.btn).active { color: var(--primary); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta {
    margin: .625rem 0 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: .8rem 1.5rem;
    border-radius: var(--r);
  }

  /* Hero — centre-aligned on mobile */
  .hero                { padding: 2.75rem 0 2.25rem; }
  .hero__content       { text-align: center; }
  .hero__subtitle      { font-size: .95rem; margin-left: auto; margin-right: auto; }
  .hero__actions       { flex-direction: column; align-items: center; }
  .hero__actions .btn  { width: 100%; justify-content: center; }

  /* Section padding */
  .features         { padding: 3.5rem 0; }
  .about-intro      { padding: 3.5rem 0; }
  .about-logo       { padding: 3.5rem 0; }
  .services-section { padding: 3.5rem 0; }
  .trucks-section   { padding: 3.5rem 0; }
  .testimonial      { padding: 4rem 0; }
  .contact-cta      { padding: 3.5rem 0; }
  .contact-section  { padding: 3.5rem 0; }
  .page-hero        { padding: 3rem 0 2.5rem; }

  /* Section header */
  .section-header { margin-bottom: 2.5rem; }

  /* Features — centre-aligned cards */
  .features__grid        { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-card          { padding: 1.5rem; text-align: center; }
  .feature-card__icon    { margin: 0 auto 1.25rem; }

  /* Services */
  .services-cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .services-section .container { max-width: 100%; }
  .services-cards .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Trucks */
  .trucks-grid { grid-template-columns: 1fr; }

  /* Testimonial */
  .testimonial__quote { font-size: .95rem; }

  /* Contact CTA */
  .contact-cta__phone { font-size: 1.25rem; }
  .contact-cta__actions .btn { width: 100%; justify-content: center; }

  /* Contact form */
  .contact-section__inner { gap: 2.5rem; }
  .contact-form-wrap      { padding: 1.75rem 1.25rem; }
  .form-row               { grid-template-columns: 1fr; }

  /* Footer — centred on mobile */
  .footer                { padding: 3.5rem 0 2rem; }
  .footer__grid          { grid-template-columns: 1fr; }
  .footer__brand         { text-align: center; }
  .footer__brand .logo   { justify-content: center; }
  .footer__brand p       { max-width: none; }
  .footer__col           { text-align: center; }
  .footer__col ul        { align-items: center; }
  .footer__social        { justify-content: center; }
  .footer__bottom        { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }

  /* About — centre-aligned when stacked */
  .about-intro__content       { text-align: center; }
  .about-intro__content .btn  { margin-left: auto; margin-right: auto; }
  .about-logo__content        { align-items: center; text-align: center; }
  .about-logo__image-wrap     { justify-content: center; }

  /* Contact — heading centred, details stay left-aligned */
  .contact-info { text-align: center; }
  .contact-details { align-items: flex-start; text-align: left; }
}

/* ---- 400px ---- */
@media (max-width: 400px) {
  :root { --pad: 1rem; }

  .nav { height: 60px; }

  /* Single column */
  .features__grid { grid-template-columns: 1fr; }
  .services-cards { grid-template-columns: 1fr; }

  /* Tighter cards */
  .feature-card { padding: 1.25rem; }
  .service-card { padding: 1.5rem 1.1rem; }

  /* Hero */
  .hero { padding: 2.25rem 0 2rem; }

  /* Section spacing */
  .features         { padding: 2.75rem 0; }
  .about-intro      { padding: 2.75rem 0; }
  .about-logo       { padding: 2.75rem 0; }
  .services-section { padding: 2.75rem 0; }
  .trucks-section   { padding: 2.75rem 0; }
  .testimonial      { padding: 3rem 0; }
  .contact-cta      { padding: 2.75rem 0; }
  .contact-section  { padding: 2.75rem 0; }
  .page-hero        { padding: 2.25rem 0 2rem; }

  /* Contact */
  .contact-form-wrap  { padding: 1.25rem 1rem; }
  .contact-cta__phone { font-size: 1.1rem; }

  /* Footer */
  .footer { padding: 2.75rem 0 1.5rem; }
}

/* ============================================================
   LIGHTBOX / GALLERY MODAL
   ============================================================ */

/* Clickable truck cards */
.trucks-grid .truck-card {
  cursor: pointer;
  position: relative;
}
.trucks-grid .truck-card img {
  transition: transform .4s ease;
}
.trucks-grid .truck-card:hover img {
  transform: scale(1.04);
}

/* Overlay */
.lg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lg-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Main image */
.lg-img {
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  transition: opacity .2s ease;
  display: block;
}
.lg-img.is-loading {
  opacity: 0;
}

/* Shared button base */
.lg-close,
.lg-prev,
.lg-next {
  position: fixed;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
  z-index: 2001;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .15);
}
.lg-close:hover,
.lg-prev:hover,
.lg-next:hover {
  background: rgba(255, 255, 255, .24);
}

/* Close */
.lg-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
}
.lg-close svg { width: 18px; height: 18px; }

/* Prev / Next */
.lg-prev,
.lg-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lg-prev { left: 1.5rem; }
.lg-next { right: 1.5rem; }
.lg-prev svg,
.lg-next svg { width: 22px; height: 22px; }
.lg-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lg-next:hover { transform: translateY(-50%) translateX(2px); }

/* Counter */
.lg-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  z-index: 2001;
  background: rgba(0, 0, 0, .35);
  padding: .3rem .9rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Lightbox — nav buttons more visible on touch/mobile */
@media (max-width: 900px) {
  .lg-prev,
  .lg-next {
    background: rgba(0, 0, 0, .55);
    border-color: rgba(255, 255, 255, .3);
  }
  .lg-prev:hover,
  .lg-next:hover {
    background: rgba(0, 0, 0, .75);
  }
}

/* Lightbox — 600px */
@media (max-width: 600px) {
  .lg-img {
    max-width: 95vw;
    max-height: 78vh;
    border-radius: var(--r);
  }
  .lg-prev { left: .6rem; }
  .lg-next { right: .6rem; }
  .lg-prev,
  .lg-next { width: 44px; height: 44px; }
  .lg-close { top: .75rem; right: .75rem; width: 42px; height: 42px; }
}

/* Lightbox — 400px */
@media (max-width: 400px) {
  .lg-prev,
  .lg-next { width: 40px; height: 40px; }
  .lg-prev svg,
  .lg-next svg { width: 18px; height: 18px; }
  .lg-close { width: 38px; height: 38px; }
  .lg-close svg { width: 16px; height: 16px; }
}
