/* ===== Nathan T. Deacon Trucking, LLC ===== */
:root {
  --navy: #0f2a44;
  --navy-2: #163a5c;
  --navy-3: #0a1d30;
  --amber: #f2a516;
  --amber-dark: #d68d06;
  --ink: #1c2530;
  --muted: #5b6672;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 68, .12);
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; color: var(--navy); }
h3 { font-size: 1.5rem; color: var(--navy); }
p { margin: 0 0 1em; }
.center { text-align: center; margin-top: 40px; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--amber-dark); margin-bottom: .6em; }

/* Buttons */
.btn { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: 14px 28px; border-radius: 4px; border: 2px solid var(--amber); transition: background .2s, color .2s, transform .2s; cursor: pointer; font-size: .95rem; font-family: var(--body); }
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-full { width: 100%; }
.link-arrow { color: var(--amber-dark); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .05em; }
.link-arrow:hover { color: var(--navy); }

/* Top utility bar */
.topbar { background: var(--navy-3); color: rgba(255,255,255,.85); font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--amber); }
.topbar svg { width: 15px; height: 15px; fill: var(--amber); }
.topbar-apply { background: var(--amber); color: var(--navy) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; padding: 6px 14px; border-radius: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { white-space: nowrap; font-family: var(--head); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.brand-text small { font-size: .72rem; color: rgba(255,255,255,.7); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; color: rgba(255,255,255,.88); padding: 8px 7px; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--amber); }
.site-nav a.active { color: var(--amber); border-bottom-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }

/* Hero (photo is set in each page's HTML: style="background-image: url(...)") */
.hero { position: relative; color: #fff; min-height: 82vh; display: flex; align-items: center; text-align: center; background-color: var(--navy); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,42,.55) 0%, rgba(10,25,42,.75) 100%); }
.hero-inner { position: relative; padding: 110px 20px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); text-transform: uppercase; margin-bottom: .25em; text-shadow: 0 3px 20px rgba(0,0,0,.35); }
.hero-tag { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 500; color: rgba(255,255,255,.92); }
.hero-tag span { display: block; color: var(--amber); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 1.1rem; margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; }

/* Inner page banner */
.page-banner { position: relative; color: #fff; padding: 110px 0 90px; background-color: var(--navy); background-size: cover; background-position: center; text-align: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10,25,42,.72); }
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); text-transform: uppercase; margin-bottom: .2em; }
.crumbs { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
.crumbs a { color: var(--amber); text-decoration: none; }

/* Highlights */
.highlights { background: var(--amber); color: var(--navy); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlight { padding: 26px 20px; text-align: center; display: flex; flex-direction: column; }
.highlight + .highlight { border-left: 1px solid rgba(15,42,68,.2); }
.highlight-num { font-family: var(--head); font-size: 2.2rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.highlight-label { font-size: .92rem; font-weight: 500; margin-top: 6px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p:last-child { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy-2); }
.card-body { padding: 22px; border-top: 4px solid var(--amber); }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 10 / 11; object-fit: cover; background: var(--navy-2); }
.about-badge { position: absolute; right: -18px; bottom: 30px; background: var(--navy); color: #fff; padding: 18px 24px; border-radius: var(--radius); border-left: 5px solid var(--amber); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.about-badge strong { font-family: var(--head); font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.about-badge span { font-size: .85rem; color: rgba(255,255,255,.75); }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 10px; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f2a44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { background: #fff; padding: 30px 24px; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 4px solid var(--amber); }
.value-icon { font-family: var(--head); font-size: 2.6rem; font-weight: 800; color: var(--amber); line-height: 1; margin-bottom: 12px; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Services rows */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--navy-2); }
.svc-row.reverse img { order: 2; }
.svc-row h3 { font-size: 2rem; text-transform: uppercase; }
.svc-row p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-box { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--amber); }
.info-box h3 { font-size: 1.8rem; text-transform: uppercase; }
.info-box a { color: var(--amber-dark); font-weight: 600; }

/* Split CTA (quote / drive for us) */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; }
.split-cta-item { padding: 80px 8%; background: var(--amber); color: var(--navy); }
.split-cta-item h2 { color: var(--navy); }
.split-cta-item .eyebrow { color: var(--navy); opacity: .7; }
.split-cta-item .btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.split-cta-item .btn:hover { background: var(--navy-3); }
.split-cta-item.dark { background: var(--navy); color: rgba(255,255,255,.85); }
.split-cta-item.dark h2 { color: #fff; }
.split-cta-item.dark .eyebrow { color: var(--amber); opacity: 1; }
.split-cta-item.dark .btn { background: transparent; border-color: var(--amber); color: var(--amber); }
.split-cta-item.dark .btn:hover { background: var(--amber); color: var(--navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-item.wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(5,12,20,.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-info h3 { margin-top: 26px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid #e3e7eb; display: flex; flex-direction: column; }
.ci-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-dark); }
.contact-list a { font-size: 1.15rem; font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--amber-dark); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--navy); color: #fff; padding: 34px 28px; border-radius: var(--radius); text-decoration: none; border-bottom: 5px solid var(--amber); display: flex; flex-direction: column; gap: 8px; transition: transform .2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card .ci-label { color: var(--amber); }
.contact-card strong { font-size: 1.1rem; word-break: break-word; }

.mail-form { background: var(--bg-alt); padding: 34px; border-radius: var(--radius); border-top: 5px solid var(--amber); }
.mail-form.white { background: #fff; box-shadow: var(--shadow); }
.form-title { font-size: 1.8rem; text-transform: uppercase; }
.mail-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; color: var(--navy); }
.mail-form input, .mail-form textarea, .mail-form select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cdd4db; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.mail-form input:focus, .mail-form textarea:focus, .mail-form select:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.mail-form .invalid { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

/* Footer */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.75); padding: 60px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.2rem; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.brand-footer { margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.credits { opacity: .6; }

/* Responsive */
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; display: none; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a.active { border-bottom-color: rgba(255,255,255,.08); }
  .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; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 1000px) {
  .cards, .values { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .svc-row, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .svc-row.reverse img { order: 0; }
  .about-badge { right: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split-cta { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar-contacts a:nth-child(2) { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 70px 16px; }
  .page-banner { padding: 70px 0 56px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid rgba(15,42,68,.2); }
  .cards, .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-item.wide { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .mail-form, .info-box { padding: 24px; }
  .split-cta-item { padding: 60px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.35rem; }
}

/* ===== Services & Rates page ===== */
.rate-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 40px; position: sticky; top: 78px; z-index: 5; background: #fff; padding: 14px 0; border-bottom: 1px solid #e3e7eb; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid #cdd4db; background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--amber); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rate-search { font: inherit; padding: 10px 14px; border: 1px solid #cdd4db; border-radius: 6px; min-width: 240px; }
.rate-search:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.rate-group { margin-bottom: 56px; }
.rate-group-title { font-size: 2rem; display: flex; align-items: baseline; gap: 12px; border-left: 5px solid var(--amber); padding-left: 14px; }
.rate-group-title span { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rate-card { background: #fff; border: 1px solid #e3e7eb; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.rate-card:hover { box-shadow: var(--shadow); border-color: var(--amber); }
.rate-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.rate-top h3 { font-size: 1.35rem; margin: 0; }
.rate-price { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--navy); white-space: nowrap; line-height: 1; text-align: right; }
.rate-price small { font-family: var(--body); font-size: .72rem; font-weight: 600; color: var(--muted); }
.rate-price small:first-child { display: block; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.rate-card > p { color: var(--muted); font-size: .93rem; margin: 12px 0 16px; flex: 1; }
.rate-card .link-arrow { font-size: .8rem; }
.rate-empty { text-align: center; color: var(--muted); }
.rate-empty a { color: var(--amber-dark); }
.rate-note { background: var(--bg-alt); border-left: 5px solid var(--amber); padding: 20px 24px; border-radius: 6px; color: var(--muted); font-size: .93rem; }
.rate-note strong { color: var(--navy); }
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.center .btn { margin: 6px; }
@media (max-width: 1000px) { .rate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1180px) { .rate-tools { top: 78px; } }
@media (max-width: 600px) {
  .rate-grid { grid-template-columns: 1fr; }
  .rate-tools { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .chip { flex: none; }
  .rate-search { width: 100%; min-width: 0; }
}
.rate-card[hidden], .rate-group[hidden], .rate-empty[hidden] { display: none; }
