/* --------------------------------------------------------------------------
   DK Express Logistics — design tokens (aligned with brand: navy + red)
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #0b1c2e;
  --navy-800: #0d1b2a;
  --navy-700: #1b2631;
  --red-600: #c41e3a;
  --red-700: #a01830;
  --white: #ffffff;
  --gray-50: #f4f6f8;
  --gray-100: #e8ecf0;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(11, 28, 46, 0.12);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 700;
}

.tagline-serif {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red-600);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-600), transparent);
}

/* ---------- Layout ---------- */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-nav {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-inner {
  width: min(1200px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy-900);
  transition: var(--transition);
}

/* Desktop: nav-panel is a flex row — CTA button first, then links */
.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-direction: row-reverse; /* links on right, CTA on left of them */
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #1b2631;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red-600);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--navy-900);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-list a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 0.85rem 0;
    font-weight: 500;
  }

  .nav-list a:hover {
    color: var(--white);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1.25rem;
    width: 100%;
    order: -1; /* CTA appears at top of mobile menu */
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Animated hamburger → X */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(11, 28, 46, 0.92) 0%,
      rgba(11, 28, 46, 0.65) 45%,
      rgba(11, 28, 46, 0.4) 100%
    ),
    linear-gradient(0deg, rgba(11, 28, 46, 0.5), transparent 40%);
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1519003722824-194d4455e60f?auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: 3rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 14ch;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 36rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 520px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections generic ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-visual:hover img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-badge strong {
  display: block;
  font-size: 1.35rem;
  color: var(--red-600);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services ---------- */
.services {
  background: var(--gray-50);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 30, 58, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--red-600);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-500);
}

@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition), background var(--transition);
}

.why-item:hover {
  border-color: rgba(196, 30, 58, 0.25);
  background: rgba(196, 30, 58, 0.03);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.why-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

@media (max-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process (arrow motif) ---------- */
.process {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, 0.85);
}

.process .section-label {
  color: var(--red-600);
}

.process .section-label::before {
  background: linear-gradient(90deg, var(--red-600), transparent);
}

.process .section-head h2 {
  color: var(--white);
}

.process .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), background var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.process-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-600);
  margin-bottom: 0.75rem;
}

.process-card h3 {
  color: var(--white);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.process-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.process-arrow {
  display: none;
}

@media (min-width: 901px) {
  .process-steps {
    gap: 2rem;
  }

}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Quote form ---------- */
.quote-section {
  background: var(--gray-50);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.quote-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.quote-aside h2 {
  margin-top: 0;
}

.quote-aside ul {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.quote-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-aside {
    position: static;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(196, 30, 58, 0.45);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--red-600);
}

.field-error {
  font-size: 0.75rem;
  color: var(--red-600);
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-alert.is-visible {
  display: block;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.form-alert.error {
  background: rgba(196, 30, 58, 0.08);
  color: var(--red-700);
  border: 1px solid rgba(196, 30, 58, 0.25);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  min-height: 280px;
}

.contact-card.map {
  background: var(--gray-100);
}

.contact-card.map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(0.2);
  transition: filter var(--transition);
}

.contact-card.map:hover iframe {
  filter: grayscale(0);
}

.contact-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-row svg {
  flex-shrink: 0;
  color: var(--red-600);
}

.contact-row strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(1.05);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--red-600);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red-600);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Media strip (stock imagery) ---------- */
.media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.media-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .media-strip {
    grid-template-columns: 1fr;
  }
}