/* ==========================================================================
   Teo's Truck & Transfer, Inc. — exports-r-us.com
   Modern shared stylesheet (English + Spanish pages)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0a224f;
  --navy-800: #0c2f7e;
  --navy-700: #103d9d;
  --navy-600: #1550b5;
  --navy-100: #e3eaf8;
  --navy-050: #f2f5fb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --line: #e4e8f0;
  --card: #ffffff;
  --bg: #f6f8fc;
  --ok: #12734a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-2: 0 10px 28px rgba(12, 47, 126, .14);
  --wrap: 1100px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-900); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin: .3em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
small { color: var(--ink-500); }

/* Centered layout */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber-500); color: #1a1a1a;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-900); color: #cdd9ef; font-size: .85rem; }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.topbar a { color: #e8eefb; text-decoration: none; }
.topbar a:hover { color: #ffffff; text-decoration: underline; }
.topbar .top-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch .lang-active {
  background: var(--amber-500); color: #241a00 !important;
  padding: 2px 10px; border-radius: 999px; font-weight: 700;
}
.lang-switch .lang-other { padding: 2px 10px; border: 1px solid #33507f; border-radius: 999px; }

/* ---------- Masthead ---------- */
.masthead { background: linear-gradient(180deg, #ffffff, #f2f5fb); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem; box-shadow: var(--shadow-1);
}
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--navy-900); line-height: 1.2; }
.brand-tag { font-size: .85rem; color: var(--ink-500); }
.masthead-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Navigation ---------- */
.site-nav { background: var(--navy-800); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-1); }
.site-nav .wrap { display: flex; flex-wrap: wrap; }
.site-nav a.nav-link {
  color: #dbe6fa; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 14px 15px; display: inline-block;
}
.site-nav a.nav-link:hover { background: var(--navy-700); color: #fff; }
.site-nav a.nav-link[aria-current="page"] {
  color: #fff; box-shadow: inset 0 -3px 0 var(--amber-500);
}
.nav-item { position: relative; }
.nav-item.has-sub > .nav-link::after {
  content: "▾"; margin-left: 6px; font-size: .75em; opacity: .8;
}
.nav-sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-2); padding: 6px 0; z-index: 60;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub a {
  display: block; padding: 9px 16px; color: var(--ink-700);
  text-decoration: none; font-size: .93rem; font-weight: 600;
}
.nav-sub a:hover { background: var(--navy-050); color: var(--navy-800); }
@media (max-width: 860px) {
  .site-nav .wrap { flex-direction: column; }
  .site-nav a.nav-link { display: block; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-item:last-child > a.nav-link { border-bottom: 0; }
  .nav-sub {
    display: block; position: static; box-shadow: none; border: 0; border-radius: 0;
    background: var(--navy-900); padding: 0 0 6px 18px;
  }
  .nav-sub a { color: #b9c9e6; padding: 7px 8px; }
  .nav-item.has-sub > .nav-link::after { content: ""; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(10, 34, 90, .96) 0%, rgba(16, 64, 160, .92) 55%, rgba(21, 80, 181, .88) 100%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 24px, transparent 24px 48px);
  color: #fff; padding: 64px 0 68px;
}
.hero .wrap { display: grid; gap: 8px; }
.hero-kicker {
  color: var(--amber-500); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .82rem; margin: 0 0 10px;
}
.hero h1 { color: #fff; max-width: 21ch; margin-bottom: .35em; }
.hero p.lead { color: #d4def2; font-size: 1.12rem; max-width: 62ch; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hero-note { margin-top: 18px; color: #a9bce0; font-size: .9rem; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(115deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 38px 0 34px;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero .page-intro { color: #c9d6ee; max-width: 70ch; margin: 0; }
.page-hero .breadcrumb, .breadcrumb { margin: 0 0 14px; }

/* Breadcrumbs */
.breadcrumb { font-size: .85rem; color: #9fb2d8; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li + li::before { content: "›"; color: #7d92c4; }
.breadcrumb a { color: #cdd9ef; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Main content ---------- */
main { padding: 44px 0 64px; }
.content-narrow { max-width: 78ch; }

.section { margin: 0 0 44px; }
.section-title { margin-bottom: .8em; }
.section-title .rule { display: block; width: 64px; height: 4px; background: var(--amber-500); border-radius: 2px; margin-top: 10px; }
.lead { font-size: 1.08rem; color: var(--ink-700); }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 24px 24px 20px;
}
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 12px;
  background: var(--navy-050); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* Feature split (two divisions) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.stat b { display: block; font-size: 1.5rem; color: #fff; line-height: 1.2; }
.stat span { color: #b7c7e8; font-size: .86rem; }
.hero .stats { margin-top: 30px; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 10px; font-size: .98rem; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-primary { background: var(--amber-500); color: #241a00; }
.btn-primary:hover { background: var(--amber-600); color: #241a00; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-050); color: var(--navy-800); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.chips li {
  background: var(--navy-050); border: 1px solid var(--navy-100); color: var(--navy-800);
  font-size: .84rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin: 0;
}

/* Media card (car photo) */
.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 193 / 103; object-fit: cover; }
.media-card .media-body { padding: 16px 18px 18px; }
.media-card h3 { margin-bottom: .35em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-1); }
table.pricing { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.pricing caption { caption-side: top; text-align: left; font-weight: 700; padding: 14px 16px 10px; color: var(--navy-900); }
table.pricing th, table.pricing td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.pricing thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
table.pricing tbody tr:nth-child(even) { background: var(--navy-050); }
table.pricing tbody tr:hover { background: #e9effb; }
table.pricing .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 30px; position: relative; margin: .45em 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e5f3ec; color: var(--ok); font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: .4em 0; }

/* Callout */
.callout {
  background: var(--navy-050); border: 1px solid var(--navy-100); border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.4em;
}
.callout p:last-child { margin-bottom: 0; }

/* Quote */
.pull-quote {
  border-left: 4px solid var(--amber-500); background: #fffdf5;
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink-700); margin: 1.6em 0;
}

/* FAQ (details/summary) */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700;
  color: var(--navy-900); display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--navy-700); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--navy-050); }
.faq .faq-a { padding: 0 20px 18px; color: var(--ink-700); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Contact cards */
.contact-card { border-top: 4px solid var(--navy-700); }
.contact-card address { font-style: normal; color: var(--ink-700); }
.contact-card .contact-lines { list-style: none; padding: 0; margin: 10px 0 0; }
.contact-card .contact-lines li { margin: .25em 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--navy-900), var(--navy-600));
  color: #fff; border-radius: var(--radius); padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-2);
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: #c9d6ee; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b7c7e8; margin-top: 40px; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 44px 0 34px;
}
@media (max-width: 860px) { .site-footer .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-main { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer a { color: #b7c7e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-note { font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Misc ---------- */
.toc { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .toc { columns: 1; } }
.back-top { text-align: right; margin-top: 30px; }
.pdf-link::before { content: "📄 "; }
.ext::after {
  content: "↗"; font-size: .8em; margin-left: 3px; color: var(--ink-500);
}
@media print {
  .site-nav, .topbar, .hero-actions, .cta-band, .back-top { display: none !important; }
  body { background: #fff; }
}