/* ==========================================================================
   Nicolau Transport — Design tokens
   ========================================================================== */
:root {
  /* No dark theme is designed for this site — this, plus the matching
     <meta name="color-scheme"> tag on every page, tells browsers not to
     apply their own automatic dark-mode inversion (Android/Chrome's "force
     dark" in particular reads this and backs off; without it, sites with
     no explicit opinion are fair game for that override). */
  color-scheme: light;

  /* Brand colours, sourced from the supplied logo (teal/emerald gradient + dark navy) */
  --color-teal-light: #34D399;
  --color-teal:       #14B8A6;
  --color-teal-dark:  #0D9488;
  --color-navy:       #0B1437;
  --color-navy-soft:  #1B2A52;

  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F3F7F8;
  --color-surface:    #FFFFFF;
  --color-foreground: #0B1437;
  --color-muted:      #4B5768;
  --color-border:     #E2E8ED;
  --color-danger:     #DC2626;
  --color-focus:      #0D9488;

  --gradient-brand: linear-gradient(135deg, var(--color-teal-light), var(--color-teal-dark));

  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 55, 0.06), 0 1px 3px rgba(11, 20, 55, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 20, 55, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 20, 55, 0.12);

  --header-height: 76px;
  --max-width: 1180px;

  --transition-fast: 180ms ease;
  --transition-base: 260ms ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* Belt-and-suspenders: no single element (a header row that refuses to
   shrink, a wide table, etc.) should ever be able to stretch the whole page
   wider than the viewport on a phone — anything that wide should scroll in
   its own container instead (see .dhl-table-scroll), never the page itself. */
html { overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--space-3); color: var(--color-muted); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  /* No border: a transparent border under a gradient leaves a visible seam
     where the pill's rounded caps meet the body. Rings are drawn with an
     inset shadow instead, which follows the radius cleanly. */
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  box-shadow: inset 0 0 0 2px var(--color-border);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--color-teal-dark);
  color: var(--color-teal-dark);
}

.btn-lg { min-height: 54px; padding: 0 var(--space-5); font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 var(--space-3); font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Icons
   ========================================================================== */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 30px; height: 30px; color: var(--color-teal-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
/* backdrop-filter lives on a pseudo-element (not .site-header itself) so it doesn't
   become the containing block for the fixed-position mobile nav panel below */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.brand-logo { height: 42px; width: auto; }

.main-nav ul {
  display: flex;
  gap: var(--space-4);
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy-soft);
  padding: var(--space-2) 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  margin-inline: auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: var(--space-7) var(--space-8);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(52, 211, 153, 0.12), transparent 70%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-2);
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-top: var(--space-3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.hero-tags li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-navy-soft);
}
.hero-tags .icon { color: var(--color-teal-dark); }

/* Approved-provider credential */
.approved {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.approved-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--color-muted);
  padding-right: var(--space-3);
  border-right: 1px solid var(--color-border);
}
.approved-logo { height: 42px; width: auto; }

.hero-visual { justify-self: center; width: 100%; }
.van-illustration { width: 100%; height: auto; max-width: 580px; }
.van-side { width: 100%; height: auto; }

/* ==========================================================================
   Section shells
   ========================================================================== */
.section { padding-block: var(--space-8); }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-lede { font-size: 1.05rem; margin-top: var(--space-3); }

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

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.25);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(13, 148, 136, 0.15));
  color: var(--color-teal-dark);
  margin-bottom: var(--space-3);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { margin: 0; font-size: 0.95rem; }

.value-card { text-align: left; }
.value-card h3 { margin: var(--space-3) 0 var(--space-2); }
.value-card p { font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Fleet
   ========================================================================== */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
.check-list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--color-navy-soft);
  font-weight: 500;
}
/* Check is a centred background image rather than a second, separately
   positioned pseudo-element - so it cannot drift off the disc's centre. */
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    var(--gradient-brand);
}
.fleet-visual { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Coverage
   ========================================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-content: flex-start;
}
.area-chips li {
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-navy-soft);
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 11;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Careers
   ========================================================================== */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.form-fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  padding: 0;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy-soft);
  cursor: pointer;
  min-height: 44px;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--color-teal-dark);
  cursor: pointer;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.contact-list {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-navy-soft);
}
.contact-list .icon { color: var(--color-teal-dark); margin-top: 2px; }
.placeholder-text {
  font-style: italic;
  color: var(--color-muted);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--space-4); }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}
.form-row .optional { font-weight: 400; color: var(--color-muted); }
.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--color-foreground);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-teal-dark);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
}
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.field-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin: var(--space-1) 0 0;
  min-height: 1.2em;
}
.form-status {
  margin: var(--space-3) 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-teal-dark);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: #C6CEDD;
  padding-top: var(--space-6);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-footer .brand-logo { height: 46px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-nav a {
  color: #C6CEDD;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--color-teal-light); }
.footer-note { margin: 0; font-size: 0.9rem; color: #8792A6; }
.footer-bottom {
  padding-block: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #6E7A93; }
.header-staff-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}
.header-staff-link:hover { color: var(--color-teal-dark); text-decoration: underline; }
/* The primary nav CTA already competes for space at narrow widths; keep this
   link icon-free and hidden below the breakpoint where header-actions has
   room for it, rather than letting it wrap or crowd the CTA button. Mobile
   visitors reach it instead via .main-nav-staff-link in the menu below. */
@media (max-width: 639px) {
  .header-staff-link { display: none; }
}

/* Duplicate of .header-staff-link, shown only inside the collapsed mobile
   menu so narrow screens still have a way to reach it. */
.main-nav-staff-link { display: none; }
@media (max-width: 639px) {
  .main-nav-staff-link {
    display: block;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
  }
  .main-nav-staff-link a { border-bottom: none !important; color: var(--color-muted) !important; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .careers-grid { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 1023px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-bg);
    padding: var(--space-5) var(--space-4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-1);
  }
  .main-nav a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-toggle { display: flex; }
}
