/* Cargofornia Express, LLC — shared design system */

:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3fa;
  --text: #16202e;
  --muted: #51617a;
  --brand: #0a58ca;
  --brand-dark: #083b86;
  --brand-light: #e8f0fe;
  --accent: #f5a623;
  --border: #dbe4f0;
  --success-bg: #ecfdf3;
  --success-border: #9adcb8;
  --success-text: #1c5636;
  --shadow-sm: 0 1px 2px rgba(16, 34, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 34, 64, 0.09);
  --shadow-lg: 0 20px 45px rgba(16, 34, 64, 0.14);
  --radius: 0.85rem;
  --radius-sm: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 0.4rem 0;
  font-weight: 700;
  text-decoration: none;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  background: linear-gradient(130deg, #ffffff 5%, #edf4ff 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg,
.brand img {
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand .tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

nav.primary-nav .nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border-bottom: none !important;
}

nav.primary-nav .nav-cta:hover {
  background: var(--brand-dark);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  nav.primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  nav.primary-nav.open {
    display: block;
    padding-bottom: 1rem;
  }

  nav.primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  nav.primary-nav a {
    display: block;
    padding: 0.65rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  nav.primary-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none !important;
  }
}

/* ---------- Consent / Form Note ---------- */

.consent-banner {
  background: #0f2d5f;
  color: #fff;
  padding: 0.8rem 0;
  display: none;
}

.consent-banner.is-visible {
  display: block;
}

.consent-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-banner p {
  margin: 0;
  font-size: 0.96rem;
}

.consent-banner .button.secondary {
  background: #fff;
  color: var(--brand-dark);
  padding: 0.55rem 0.9rem;
}

.form-note {
  margin: -0.2rem 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

.button.accent {
  background: var(--accent);
  color: #3a2600;
}

.button.accent:hover {
  background: #e0961a;
}

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

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.75rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero h1 .accent-text {
  color: var(--brand);
}

.hero p.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.08rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.trust-badge svg {
  color: var(--brand);
  flex-shrink: 0;
}

.hero-visual {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 1.4rem;
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.hero-visual-inner {
  position: relative;
  z-index: 1;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat:last-child {
  border-bottom: none;
}

.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: right;
}

/* ---------- Sections ---------- */

section {
  padding: 3rem 0;
}

.section-header {
  max-width: 68ch;
  margin: 0 0 2rem;
}

.section-header .kicker {
  display: block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.alt-bg {
  background: var(--surface-alt);
}

/* ---------- Cards / grids ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Why choose us */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.value-item .icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  background: var(--brand-light);
  color: var(--brand);
}

.value-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Service area */

.service-area-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--brand);
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact-box,
form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-box .contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-box .contact-line:last-of-type {
  border-bottom: none;
}

.contact-box .contact-line .icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: var(--brand-light);
  color: var(--brand);
}

.contact-box .contact-line strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
}

.contact-box .contact-line a,
.contact-box .contact-line span.value {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.contact-box .contact-line a:hover {
  color: var(--brand);
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

form input,
form textarea,
form select {
  width: 100%;
  margin-bottom: 0.9rem;
  border: 1px solid #b8c4d3;
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  width: 100%;
  justify-content: center;
}

.notice {
  display: block;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.notice.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  font-weight: 600;
}

form.is-success {
  border-color: var(--success-border);
  box-shadow: 0 0 0 1px var(--success-border), var(--shadow-sm);
}

.notice.error {
  background: #fdecec;
  border: 1px solid #f2a7a7;
  color: #7a1f1f;
}

.notice.hidden {
  display: none;
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(16, 34, 64, 0.1);
  padding: 0.6rem 0.9rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}

.mobile-cta-bar .row {
  display: flex;
  gap: 0.6rem;
}

.mobile-cta-bar .button {
  flex: 1;
  padding: 0.7rem 0.6rem;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .mobile-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 4.4rem;
  }
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #0f1824;
  color: #dce6f3;
  padding: 2.4rem 0 1.6rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-grid h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.95rem;
}

.footer-grid p,
.footer-grid a {
  color: #b7c6dd;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.2rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #9fb1cc;
}

.footer-bottom a {
  color: #9fb1cc;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .button {
    transition: none;
  }
}

/* ---------- Simple inner pages (service-area / privacy) ---------- */

.page-hero {
  padding: 2.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.page-hero p {
  color: var(--muted);
  max-width: 65ch;
}

main.simple {
  padding: 1rem 0 2.5rem;
}

.simple .card {
  margin-bottom: 1rem;
}

.simple .card h2 {
  color: var(--brand-dark);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}
