/* V&S Freight Management — site styles */
:root {
  --teal: #3f7474;
  --teal-mid: #507c7d;
  --teal-dark: #1f3a3a;
  --teal-light: #c3dcdc;
  --orange: #ff842b;
  --orange-dark: #aa581d;
  --ink: #070707;
  --grey: #626366;
  --grey-light: #ebeef9;
  --white: #ffffff;
  --radius: 14px;
  --container: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: var(--white); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font: 600 .9rem/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--orange); transform: translateY(-2px); }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover, .btn--teal:focus-visible { color: var(--teal); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--white); color: var(--teal-dark); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand img { height: 62px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 6px 0;
  background: var(--teal-dark); transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 36px;
}
.main-nav a {
  text-decoration: none; font-weight: 400; font-size: .95rem;
  color: var(--teal-dark); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange); transition: width .25s;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.main-nav .nav-cta {
  background: var(--teal); color: var(--white); padding: 10px 26px; border-radius: 999px;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--orange); }
.main-nav a.nav-cta[aria-current="page"] { color: var(--white); background: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - 84px), 820px);
  display: flex; align-items: center;
  color: var(--white);
  background: var(--teal-dark) url("../assets/images/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,32,32,.85) 0%, rgba(31,58,58,.55) 55%, rgba(31,58,58,.15) 100%);
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 600; letter-spacing: -.01em; margin-bottom: .3em;
}
.hero h1 .accent { color: var(--orange); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 560px; margin-bottom: 2em; }

.page-hero {
  position: relative; color: var(--white);
  padding: 120px 0 100px;
  background: var(--teal-dark) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(15,32,32,.6); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.page-hero h1 span { display: block; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--grey-light); }
.section--teal { background: var(--teal); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--teal-dark); }
.section--teal .section-head h2 { color: var(--white); }
.section-head p { color: var(--grey); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; color: var(--orange); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px;
}

/* Numbered services list (home) */
.services-list {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
.services-list li {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: 0 10px 30px rgba(31,58,58,.08);
  transition: transform .25s, box-shadow .25s;
}
.services-list li:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,58,58,.14); }
.services-list .num { display: block; font-size: 2.2rem; font-weight: 600; color: var(--orange); line-height: 1; margin-bottom: 14px; }
.services-list h3 { font-size: 1.2rem; color: var(--teal-dark); }
.services-list p { color: var(--grey); margin: 0; }

/* Split feature (home "Easy. Fast. Secure.") */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.split h2 .accent { color: var(--orange); }
.split p { font-size: 1.1rem; margin-bottom: 2em; }
.split-media img { border-radius: var(--radius); width: 100%; height: 440px; object-fit: cover; }

/* Carriers */
.carriers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.carrier {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(31,58,58,.08);
}
.carrier img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carrier-body { padding: 26px 28px 30px; }
.carrier h3 { color: var(--teal); font-size: 1.35rem; margin-bottom: .35em; }
.carrier p { color: var(--grey); margin: 0; }

/* Services page detail blocks */
.service-detail {
  display: grid; grid-template-columns: 120px 1fr; gap: 40px;
  padding: 56px 0; border-bottom: 1px solid #dde3e3;
}
.service-detail:last-child { border-bottom: 0; }
.service-detail img { width: 110px; height: 110px; }
.service-detail h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--teal-dark); }
.service-detail p { color: var(--grey); }
.modes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.modes li {
  padding: 18px 22px; border-left: 4px solid var(--orange);
  background: var(--grey-light); border-radius: 0 10px 10px 0; color: var(--grey);
}
.modes strong { color: var(--teal-dark); font-weight: 600; }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* About */
.about-video {
  position: relative; min-height: 70vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--teal-dark);
}
.about-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.about-video::before { content: ""; position: absolute; inset: 0; background: rgba(15,32,32,.55); z-index: 1; }
.about-video .container { position: relative; z-index: 2; }
.about-video h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.about-video h1 span { color: var(--orange); }
.prose { max-width: 820px; font-size: 1.12rem; }
.prose p { margin-bottom: 1.4em; }
.prose p:first-child { font-size: 1.35rem; color: var(--teal-dark); font-weight: 400; }

/* ---------- Forms ---------- */
.form-layout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(31,58,58,.12); background: var(--white);
}
.form-layout .form-media { background: center / cover no-repeat; min-height: 420px; }
.form-panel { padding: 56px 48px; }
.form-panel h2 { color: var(--teal-dark); font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.form-panel > p { color: var(--grey); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--teal-dark); }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  font: 300 1rem var(--font); color: var(--ink);
  padding: 12px 14px; border: 1px solid #c5c6cc; border-radius: 8px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63,116,116,.2);
}
.hp { position: absolute; left: -9999px; }
.form-actions { grid-column: 1 / -1; margin-top: 6px; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 400; }
.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: #b3261e; }

.contact-details { display: grid; gap: 22px; margin-top: 8px; }
.contact-details h3 { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.contact-details p { margin: 0; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.85); padding: 72px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo { width: 170px; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem;
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found .container { width: 100%; }
.not-found h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--orange); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .form-layout { grid-template-columns: 1fr; }
  .form-layout .form-media { min-height: 260px; }
  .carriers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .main-nav { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid #eef0f0; }
  .main-nav .nav-cta { text-align: center; margin-top: 16px; border-bottom: 0; }
  .main-nav a::after { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .brand img { height: 50px; }
  .site-header .container { min-height: 70px; }
  .hero { min-height: min(calc(100vh - 70px), 680px); }
  .carriers, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .service-detail img { width: 80px; height: 80px; }
  .form-panel { padding: 36px 22px; }
  .split-media img { height: 280px; }
}
