/* ====================================================
   Gwynn Logistics — Global Stylesheet
   Design tokens, reset, topbar, header, nav, footer
   ==================================================== */

:root {
  --color-red:          #d71920;
  --color-red-dark:     #b8141a;
  --color-navy:         #0b1f33;
  --color-navy-dark:    #081b2f;
  --color-navy-mid:     #0d2d4d;
  --color-navy-light:   #123b62;
  --color-border:       #dbe4ee;
  --color-border-light: #e4eaf1;
  --color-bg-section:   #f5f7fa;
  --color-bg-input:     #f7f9fc;
  --color-bg-outer:     #eef3f8;
  --color-text:         #0b1f33;
  --color-text-mid:     #52677e;
  --color-text-light:   #64748b;
  --color-text-on-dark: #d9e8f7;
  --color-link-blue:    #0b6ead;
  --page-max:           1440px;
  --page-pad:           56px;
  --section-pad:        70px;
  /* Full-bleed sections: padding grows on wide screens to keep content ≤ 1440px centered */
  --section-px: max(var(--page-pad), calc((100vw - var(--page-max)) / 2 + var(--page-pad)));
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--color-text);
}

.page {
  width: 100%;
  background: #ffffff;
}

/* ---- Topbar ---- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--section-px);
  font-size: 13px;
  background: var(--color-navy-dark);
  color: var(--color-text-on-dark);
}

.topbar a {
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

/* ---- Header / Nav ---- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--section-px);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gwynn-logo {
  width: 175px;
  height: auto;
  display: block;
}

.brand-support {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 18px;
  border-left: 1px solid #d7e0ea;
}

.brand-support-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-support-text strong {
  font-size: 13px;
  color: var(--color-text);
  letter-spacing: .02em;
}

.brand-support-text span {
  font-size: 12px;
  color: var(--color-text-mid);
}

.landstar-logo {
  width: 92px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: #30465d;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

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

.nav .nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-weight: 800;
}

.nav .nav-cta:hover {
  background: var(--color-red-dark);
  color: #ffffff;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  padding: 14px 20px;
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(215,25,32,.28);
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--color-red-dark);
  color: #ffffff;
}

.btn-review {
  padding: 13px 19px;
  background: var(--color-navy-mid);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(13,45,77,.18);
}

.btn-review:hover {
  color: #ffffff;
}

.btn-white {
  padding: 15px 20px;
  background: #ffffff;
  color: var(--color-red);
  font-size: 15px;
}

.btn-white:hover {
  color: var(--color-red-dark);
}

.btn-outline-white {
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,.78);
  color: #ffffff;
  background: transparent;
  font-size: 15px;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
}

.btn-full {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
}

/* ---- Footer CTA Band ---- */
.footer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 68px var(--section-px);
  background: var(--color-red);
  color: #ffffff;
}

.footer-cta h2 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -1px;
}

.footer-cta p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
  margin: 12px 0 0;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Site Footer ---- */
.site-footer {
  padding: 56px var(--section-px) 34px;
  background: var(--color-navy-dark);
  color: var(--color-text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-col p,
.footer-col a {
  margin: 0 0 8px;
  color: var(--color-text-on-dark);
  text-decoration: none;
  line-height: 1.55;
  font-size: 14px;
  display: block;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8fa8bf;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-legal a {
  font-weight: 700;
}

.footer-bottom a {
  color: #8fa8bf;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

/* ---- Section shared styles ---- */
.section-head {
  max-width: 840px;
  margin-bottom: 36px;
}

.section-kicker {
  color: var(--color-red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--color-text);
}

.section-text {
  margin: 14px 0 0;
  color: var(--color-text-mid);
  font-size: 18px;
  line-height: 1.55;
}

/* ---- 404 page ---- */
.not-found {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  padding: 90px var(--section-px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 30%, rgba(12,117,185,.34), transparent 32%),
    linear-gradient(115deg, #071a2d 0%, #0d2d4d 62%, #123b62 100%);
}

.not-found-copy {
  max-width: 760px;
}

.not-found h1 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.not-found p {
  max-width: 680px;
  margin: 0;
  color: #dceaf7;
  font-size: 20px;
  line-height: 1.55;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.not-found-code {
  color: rgba(255,255,255,.08);
  font-size: clamp(150px, 23vw, 330px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.08em;
  user-select: none;
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .brand-support-text {
    display: none;
  }

  .nav {
    gap: 16px;
  }
}

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

@media (max-width: 900px) {
  :root {
    --page-pad: 24px;
  }

  .header {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .footer-cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .not-found {
    min-height: 560px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .not-found-code {
    position: absolute;
    right: 24px;
    font-size: 180px;
  }

  .not-found-copy {
    position: relative;
    z-index: 1;
  }
}

/* ---- Hamburger button (hidden on desktop/tablet) ---- */
.nav-toggle {
  display: none;
}

@media (max-width: 620px) {
  .topbar {
    display: none;
  }

  /* Header: row — logos left, hamburger right */
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 14px var(--section-px);
    position: relative;
    gap: 0;
  }

  /* Logos side by side, smaller */
  .brand-lockup {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .gwynn-logo {
    width: 120px;
  }

  .brand-support {
    padding-left: 10px;
    border-left: 1px solid #d7e0ea;
    border-top: none;
    padding-top: 0;
    gap: 0;
  }

  .brand-support-text {
    display: none;
  }

  .landstar-logo {
    width: 58px;
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--color-text);
    flex-shrink: 0;
    padding: 0;
    transition: background .15s;
  }

  .nav-toggle:hover {
    background: var(--color-bg-section);
  }

  .nav-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  /* Nav: hidden by default, dropdown when open */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 12px var(--section-px) 16px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(8,27,47,.12);
    z-index: 19;
    overflow-x: visible;
    width: auto;
  }

  .nav.nav-open {
    display: flex;
  }

  /* All nav links visible in dropdown */
  .nav a {
    display: block !important;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
    white-space: normal;
    font-size: 16px;
    color: var(--color-text);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .nav-cta {
    margin-top: 10px;
    display: block !important;
    text-align: center;
    border-radius: 10px;
    padding: 14px;
  }

  .section-title,
  .footer-cta h2 {
    font-size: 32px;
  }
}
