/* ==========================================================================
   NAM VIET LOGISTICS — MASTER STYLESHEET
   Design system: design-system/nam-viet-logistics/MASTER.md
   Style: Trust & Authority / Enterprise Gateway
   Fonts: Lexend (headings) + Source Sans 3 (body)

   STRUCTURE (for future WordPress theme conversion):
   1. Design tokens (:root)              -> theme.json / variables
   2. Reset & base                       -> base styles
   3. Layout utilities                   -> reusable utility classes
   4. Typography                          -> headings, text helpers
   5. Buttons & badges                    -> components/buttons.php
   6. Topbar + Navbar                     -> template-parts/header.php
   7. Footer                              -> template-parts/footer.php
   8. Hero (home)                         -> front-page hero block
   9. Page hero (sub-pages)               -> page header block
   10. Sections: intro / services / routes / stats / projects
   11. Partners & testimonials
   12. CTA band
   13. About page sections (timeline, values, offices, team, certs, fleet)
   14. Services page sections
   15. Contact page sections
   16. Blog page sections
   17. Responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #0F172A;        /* heading / dark text */
  --color-secondary: #334155;      /* body text */
  --color-cta: #D32F2F;            /* CTA chinh - Goi Hotline */
  --color-cta-dark: #B22424;
  --color-accent: #1E6FB8;         /* accent phu - icon, link, so lieu */
  --color-highlight: #F5A623;      /* badge "Sap trien khai" */
  --color-background: #FFFFFF;
  --color-background-alt: #F8FAFC;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: #E2E8F0;

  /* Typography */
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.15);

  /* Layout */
  --container-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 124px;
  --header-height-scrolled: 76px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-secondary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

main { display: block; padding-top: var(--header-height); }

/* anchor jumps (e.g. mobile CTA bar -> #contact-form) land below the fixed header */
[id] { scroll-margin-top: calc(var(--header-height) + var(--space-md)); }

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }
.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-accent, .icon-accent { color: var(--color-accent); }
.text-cta { color: var(--color-cta); }
.text-highlight { color: var(--color-highlight); }
.text-muted { color: var(--color-muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 200;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-cta);
}

.section__header {
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}
.section__header.text-center { margin-inline: auto; }
.section__subtitle { font-size: 1.0625rem; color: var(--color-muted); }

/* ==========================================================================
   5. BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn--primary {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}
.btn--primary:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--on-dark:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-background-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.badge--anniversary {
  background: var(--color-highlight);
  color: var(--color-primary);
  border-color: var(--color-highlight);
}
.badge--soon {
  background: rgba(245, 166, 35, 0.12);
  color: #B0750F;
  border-color: rgba(245, 166, 35, 0.4);
}
.badge--accent {
  background: rgba(30, 111, 184, 0.1);
  color: var(--color-accent);
  border-color: rgba(30, 111, 184, 0.25);
}

/* ==========================================================================
   6. TOPBAR + NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.topbar {
  background: var(--color-primary);
  color: #CBD5E1;
  font-size: 0.875rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: var(--space-lg);
}
.topbar__contact { display: flex; gap: var(--space-lg); align-items: center; }
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
}
.topbar__contact a:hover { color: #fff; }
.topbar__contact svg { width: 16px; height: 16px; color: var(--color-highlight); }
.topbar__hours { color: #94A3B8; }

.navbar { padding-block: var(--space-md); transition: padding 200ms ease; }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.navbar__logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.navbar__logo-text { font-family: var(--font-heading); line-height: 1.15; }
.navbar__logo-text strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.navbar__logo-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-cta);
  text-transform: uppercase;
}

.navbar__nav ul {
  display: flex;
  gap: var(--space-xl);
}
.navbar__nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-secondary);
  padding: 8px 2px;
  position: relative;
  transition: color 200ms ease;
}
.navbar__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-cta);
  transition: width 200ms ease;
}
.navbar__nav a:hover,
.navbar__nav a.is-active { color: var(--color-primary); }
.navbar__nav a:hover::after,
.navbar__nav a.is-active::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: var(--space-md); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.navbar__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-primary);
  transition: transform 200ms ease, opacity 200ms ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: #CBD5E1;
}
.footer__top { padding-block: var(--space-3xl) var(--space-2xl); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
}
.footer__brand .navbar__logo-text strong { color: #fff; }
.footer__brand .navbar__logo-text span { color: var(--color-highlight); }
.footer__brand p { margin-top: var(--space-md); color: #94A3B8; max-width: 320px; }

.footer__heading {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__links li { margin-bottom: var(--space-sm); }
.footer__links a { color: #94A3B8; transition: color 200ms ease; }
.footer__links a:hover { color: #fff; }

.footer__contact li {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-md);
  color: #94A3B8;
}
.footer__contact svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.footer__contact a { color: #CBD5E1; transition: color 200ms ease; }
.footer__contact a:hover { color: #fff; }

.footer__socials { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  transition: all 200ms ease;
  cursor: pointer;
}
.social-link:hover { background: var(--color-cta); border-color: var(--color-cta); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: #64748B;
}
.footer__bottom a { color: #94A3B8; }
.footer__bottom a:hover { color: #fff; }
.footer__legal { display: flex; gap: var(--space-lg); }

/* ==========================================================================
   8. HERO (HOME)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.78) 42%, rgba(15,23,42,0.45) 100%);
  z-index: -1;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
  max-width: 760px;
}
.hero .eyebrow { color: var(--color-highlight); }
.hero .eyebrow::before { background: var(--color-highlight); }
.hero__title { color: #fff; margin-bottom: var(--space-lg); }
.hero__title .text-cta { color: #FF8A80; }
.hero__subtitle {
  font-size: 1.125rem;
  color: #E2E8F0;
  max-width: 560px;
  margin-bottom: var(--space-xl);
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-2xl); }

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stats-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
}
.hero__stats-item span {
  font-size: 0.875rem;
  color: #94A3B8;
}

/* ==========================================================================
   9. PAGE HERO (SUB-PAGES)
   ========================================================================== */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-3xl);
  display: flex;
  align-items: center;
  min-height: 360px;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.92), rgba(15,23,42,0.68));
  z-index: -1;
}
.page-hero__content { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-sm); }
.page-hero p { color: #CBD5E1; font-size: 1.0625rem; }
.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: #CBD5E1; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   10. SECTIONS — INTRO / SERVICES / ROUTES / STATS / PROJECTS
   ========================================================================== */
.section { padding-block: var(--space-3xl); }
.section--alt { background: var(--color-background-alt); }
.section--dark {
  background: var(--color-primary);
  color: #CBD5E1;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__subtitle { color: #94A3B8; }

/* Intro */
.intro { align-items: center; }
.intro__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.intro__list { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.intro__list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  font-weight: 500;
  color: var(--color-primary);
}
.intro__list svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--color-cta);
}

/* Services grid */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all 200ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-accent); }
.service-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-background-alt);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card--soon .service-card__icon { background: rgba(245,166,35,0.12); color: var(--color-highlight); }
.service-card__title { margin-bottom: var(--space-sm); }
.service-card__desc { color: var(--color-muted); font-size: 0.9375rem; flex-grow: 1; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.875rem;
  color: var(--color-accent);
  transition: gap 200ms ease;
}
.service-card__link svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

.support-services {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.support-services__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-background-alt);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
}
.support-services__item svg { width: 24px; height: 24px; color: var(--color-accent); flex-shrink: 0; }

/* Routes */
.routes { align-items: center; }
.routes__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.routes__list { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.routes__item { display: flex; gap: var(--space-md); align-items: flex-start; }
.routes__item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-background-alt);
  color: var(--color-cta);
}
.routes__item-icon svg { width: 22px; height: 22px; }
.routes__item h4 { margin-bottom: 4px; }
.routes__item p { color: var(--color-muted); font-size: 0.9375rem; }

/* Stats */
.stats__grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-lg); text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat__value .icon-accent, .stat__value .text-accent { color: var(--color-highlight); }
.stat__label { font-size: 0.9375rem; color: #94A3B8; margin-top: var(--space-xs); }

/* Recent projects */
.projects-grid { grid-template-columns: repeat(4, 1fr); }
.project-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
  transition: all 200ms ease;
  cursor: pointer;
}
.project-card:nth-child(even) { border-left-color: var(--color-cta); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card__value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.project-card__title { font-size: 1rem; margin-bottom: var(--space-sm); }
.project-card__desc { font-size: 0.875rem; color: var(--color-muted); }

/* ==========================================================================
   11. PARTNERS & TESTIMONIALS
   ========================================================================== */
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl) var(--space-3xl);
  padding-top: var(--space-xl);
}
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.7;
  transition: opacity 250ms ease, transform 250ms ease;
}
.partner-logo:hover { opacity: 1; transform: translateY(-2px); }
.partner-logo img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 250ms ease;
}
.partner-logo:hover img { filter: grayscale(0%); }
.partner-logo span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.testimonials { position: relative; max-width: 800px; margin: var(--space-2xl) auto 0; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 400ms ease; }
.testimonial {
  flex: 0 0 100%;
  padding: var(--space-2xl);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }
.testimonial__author { font-weight: 700; color: var(--color-cta); font-family: var(--font-heading); }

.slider__controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.slider__dot.is-active { background: var(--color-cta); transform: scale(1.2); }

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-3xl);
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.93), rgba(211,47,47,0.55));
  z-index: -1;
}
.cta-band__content {
  position: relative; z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-sm); max-width: 520px; }
.cta-band p { color: #E2E8F0; max-width: 480px; }
.cta-band__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ==========================================================================
   13. ABOUT PAGE
   ========================================================================== */
/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 90px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-cta);
  text-align: right;
  position: relative;
}
.timeline__year::after {
  content: '';
  position: absolute;
  right: -25px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-cta);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-cta);
}
.timeline__content h3 { margin-bottom: var(--space-xs); }
.timeline__content p { color: var(--color-muted); }

/* Values */
.values-grid { grid-template-columns: repeat(3, 1fr); }
.value-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all 200ms ease;
  cursor: pointer;
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-background-alt);
  color: var(--color-cta);
}
.value-card__icon svg { width: 30px; height: 30px; }

/* Offices */
.offices-grid { grid-template-columns: repeat(2, 1fr); }
.office-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.office-card__media { aspect-ratio: 16/10; overflow: hidden; }
.office-card__body { padding: var(--space-xl); }
.office-card__body h3 { display: flex; align-items: center; gap: var(--space-sm); }
.office-card__body h3 svg { width: 22px; height: 22px; color: var(--color-cta); }
.office-card__body p { color: var(--color-muted); margin-bottom: var(--space-sm); }
.office-card__body a { color: var(--color-accent); font-weight: 600; }

/* Team */
.team-grid { grid-template-columns: repeat(3, 1fr); justify-content: center; }
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}
.team-card__name { margin-bottom: 2px; }
.team-card__role { color: var(--color-cta); font-weight: 600; font-size: 0.9375rem; }

/* Certifications */
.certs-grid { grid-template-columns: repeat(3, 1fr); }
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-background-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.cert-badge__icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.cert-badge__icon svg { width: 30px; height: 30px; }
.cert-badge h4 { margin-bottom: 4px; }
.cert-badge p { font-size: 0.875rem; color: var(--color-muted); margin: 0; }

/* Fleet */
.fleet-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.fleet-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.fleet-table caption { display: none; }
.fleet-table th, .fleet-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.fleet-table th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  background: var(--color-background-alt);
}
.fleet-table td { font-weight: 500; color: var(--color-primary); }
.fleet-table tr:last-child td { border-bottom: none; }
.fleet-table .text-cta { font-weight: 700; }

.fleet-gallery { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-2xl); }
.fleet-gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }

.fleet-banner-wide { margin: var(--space-2xl) 0 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.fleet-banner-wide img { width: 100%; height: 500px; object-fit: cover; display: block; }
.fleet-banner-wide figcaption { padding: var(--space-md) var(--space-lg); background: #fff; font-size: 0.9375rem; color: var(--color-muted); border: 1px solid var(--color-border); border-top: none; }
.fleet-gallery figcaption {
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  font-size: 0.9375rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-top: none;
}

.fleet-note {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(30,111,184,0.06);
  border: 1px solid rgba(30,111,184,0.2);
  color: var(--color-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   14. SERVICES PAGE
   ========================================================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-block: var(--space-2xl);
}
.service-detail + .service-detail { border-top: 1px solid var(--color-border); }
.service-detail--reverse .service-detail__media { order: 2; }
.service-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.service-detail__content .eyebrow { margin-bottom: var(--space-md); }
.service-detail__tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-lg) 0; }
.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-background-alt);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
}
.service-detail__route {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.service-detail__route svg { width: 20px; height: 20px; color: var(--color-cta); }

.support-grid { grid-template-columns: repeat(4, 1fr); }
.support-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all 200ms ease;
  cursor: pointer;
}
.support-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.support-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-background-alt);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.support-card__icon svg { width: 26px; height: 26px; }
.support-card__price {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.support-card__price strong { color: var(--color-cta); font-family: var(--font-heading); }

/* ==========================================================================
   15. CONTACT PAGE
   ========================================================================== */
.contact-grid { grid-template-columns: 0.9fr 1.1fr; }

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-background-alt);
  color: var(--color-cta);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item h4 { margin-bottom: 4px; }
.contact-info__item p, .contact-info__item a { color: var(--color-muted); }
.contact-info__item a:hover { color: var(--color-accent); }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}
.form-group .required { color: var(--color-cta); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,23,42,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-feedback {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background: rgba(30,111,184,0.08);
  border: 1px solid rgba(30,111,184,0.25);
  color: var(--color-primary);
  font-weight: 500;
  display: none;
}
.form-feedback.is-visible { display: block; }

.map-grid { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-2xl); }
.map-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.map-card__embed { aspect-ratio: 16/10; }
.map-card__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card__title { padding: var(--space-lg); font-family: var(--font-heading); font-weight: 600; }
.map-card__title svg { width: 18px; height: 18px; color: var(--color-cta); margin-right: 6px; vertical-align: -3px; }

/* ==========================================================================
   16. BLOG PAGE
   ========================================================================== */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}
.blog-featured__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 16/10; }
.blog-featured__meta { display: flex; gap: var(--space-md); align-items: center; margin-bottom: var(--space-md); }

.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 200ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card__media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex-grow: 1; }
.blog-card__meta { display: flex; gap: var(--space-sm); align-items: center; font-size: 0.8125rem; color: var(--color-muted); }
.blog-card__meta .badge { padding: 4px 10px; font-size: 0.6875rem; }
.blog-card__title { font-size: 1.125rem; margin: 0; }
.blog-card__excerpt { color: var(--color-muted); font-size: 0.9375rem; flex-grow: 1; }
.blog-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  color: var(--color-accent); margin-top: var(--space-sm);
}
.blog-card__link svg { width: 16px; height: 16px; }

.pagination { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-3xl); }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  transition: all 200ms ease;
}
.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .is-active { background: var(--color-cta); color: #fff; border-color: var(--color-cta); }
.pagination .is-disabled { color: var(--color-border); cursor: not-allowed; }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid, .support-services, .projects-grid,
  .stats__grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl) var(--space-xl); }
  .values-grid, .certs-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-height: 108px; }

  .topbar__hours { display: none; }

  .navbar__nav, .navbar__actions .btn--secondary { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .navbar__nav.is-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__nav ul { flex-direction: column; gap: var(--space-sm); }
  .navbar__nav a { display: block; padding: var(--space-sm) 0; }

  .intro, .routes, .contact-grid,
  .service-detail, .service-detail--reverse .service-detail__media,
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .service-detail--reverse .service-detail__media { order: 0; }
  .offices-grid, .map-grid, .fleet-gallery,
  .values-grid, .certs-grid, .team-grid,
  .services-grid, .support-services, .projects-grid,
  .stats__grid, .support-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 16px 1fr; gap: var(--space-lg); }
  .timeline__year { text-align: left; font-size: 0; }
  .timeline__year::after { right: auto; left: 1px; top: 6px; }

  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  :root { --header-height: 96px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }

  .hero { min-height: 80vh; }
  .hero__stats { gap: var(--space-lg); }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .hero__actions, .cta-band__actions { flex-direction: column; }

  .services-grid, .support-services, .projects-grid,
  .stats__grid, .support-grid, .offices-grid, .map-grid,
  .fleet-gallery, .values-grid, .certs-grid, .team-grid,
  .blog-grid, .footer__grid {
    grid-template-columns: 1fr;
  }
  .stats__grid { gap: var(--space-2xl); }

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

  .cta-band__content { text-align: center; justify-content: center; }
  .cta-band__actions { width: 100%; }

  .section { padding-block: var(--space-2xl); }
}

/* ==========================================================================
   18. MOBILE OPTIMIZATION PASS
   ========================================================================== */

/* ---- Sticky bottom CTA bar (phone/tablet only) ---- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 110;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.12);
}
.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.mobile-cta-bar__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-cta-bar__btn--call { background: var(--color-cta); }
.mobile-cta-bar__btn--contact { background: var(--color-primary); }

@media (max-width: 900px) {
  .mobile-cta-bar { display: flex; }
  /* room for the fixed CTA bar so the footer never sits underneath it */
  body { padding-bottom: 58px; }
}

/* ---- Topbar & navbar — small phones ---- */
@media (max-width: 480px) {
  .topbar__inner { justify-content: center; }
  /* hotline only; email stays available on the contact page */
  .topbar__contact a:nth-child(2) { display: none; }
  /* the new logo badge already carries the brand name, so drop the
     adjacent wordmark in the header to give the nav room to breathe */
  .site-header .navbar__logo-text { display: none; }
}

/* ---- Hero — sized to its content on mobile, not a vh slab ---- */
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__content { padding-block: var(--space-2xl) var(--space-xl); }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.88) 55%, rgba(15, 23, 42, 0.96) 100%);
  }
  .hero__subtitle { font-size: 1rem; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
  }
  .hero__stats-item strong { font-size: 1.5rem; }

  .page-hero { min-height: 0; padding-block: var(--space-2xl); }
}

/* ---- Spacing — tighter cards, form & testimonial ---- */
@media (max-width: 640px) {
  .container { padding-inline: var(--space-md); }

  .service-card, .value-card, .support-card, .cert-badge,
  .office-card__body, .contact-form {
    padding: var(--space-lg);
  }
  .testimonial { padding: var(--space-xl); }
  .section__header { margin-bottom: var(--space-xl); }
}

@media (max-width: 480px) {
  .section { padding-block: var(--space-xl); }
}

/* ---- Form — mobile usability ---- */
@media (max-width: 640px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 1rem; /* keep >=16px to prevent iOS auto-zoom on focus */
  }
  .contact-form .btn { width: 100%; }
}

/* ---- Readability — tracked uppercase text on narrow screens ---- */
@media (max-width: 640px) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; }
  .badge { font-size: 0.6875rem; letter-spacing: 0.04em; }
}

/* ================================================
   LANGUAGE SWITCHER (Polylang)
   ================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-right: 4px;
}
.lang-switcher__item {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--color-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.lang-switcher__item:hover { background: var(--color-background-alt); color: var(--color-primary); }
.lang-switcher__item.is-active {
  background: var(--color-cta);
  color: #fff;
}
@media (max-width: 768px) { .lang-switcher { display: none; } }
