/* Trilogy Trucking Inc — site stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ink: oklch(13% 0 0);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(97% 0 0);
  --brand-red: oklch(52% .21 27);
  --brand-red-bright: oklch(60% .23 27);
  --muted-foreground: oklch(45% 0 0);
  --border: oklch(90% 0 0);
  --gradient-hero: linear-gradient(135deg, oklch(8% 0 0) 0%, oklch(18% .05 27) 60%, oklch(45% .2 27) 100%);
  --gradient-red: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-bright) 100%);
  --shadow-elevated: 0 30px 80px -20px oklch(0% 0 0 / .4);
  --shadow-red: 0 20px 60px -15px oklch(55% .22 27 / .5);
  --font-display: "Anton", "Impact", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.text-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: .92;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .wrap { padding: 0 2.5rem; } }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brand-red-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.solid,
.site-header.scrolled {
  background: oklch(13% 0 0 / .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.5);
}
.site-header .wrap {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 2.5rem; width: auto; background: #fff; border-radius: 2px; padding: .25rem; }
.brand-name { line-height: 1.15; }
.brand-name .name { color: #fff; font-size: 1.25rem; letter-spacing: .05em; }
.brand-name .sub { font-size: .625rem; letter-spacing: .3em; color: var(--brand-red-bright); font-weight: 600; }

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  position: relative;
  padding-bottom: .25rem;
  transition: color .2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--brand-red-bright);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: none; align-items: center; gap: .5rem; color: #fff; font-size: .875rem; font-weight: 600; }
@media (min-width: 768px) { .header-phone { display: inline-flex; } }
.header-actions .btn-primary { display: none; }
@media (min-width: 640px) { .header-actions .btn-primary { display: inline-flex; padding: .7rem 1.4rem; font-size: .8rem; } }

.nav-toggle {
  display: inline-flex;
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .5rem; border-radius: 2px;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 5rem 0 0 0; z-index: 49;
  background: oklch(10% 0 0 / .98);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav a { color: #fff; font-size: 1.1rem; font-weight: 600; }
.mobile-nav .btn { margin-top: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(8% 0 0 / .55) 0%, oklch(8% 0 0 / .75) 55%, oklch(8% 0 0 / .95) 100%), var(--gradient-hero);
  mix-blend-mode: multiply;
  background-color: oklch(8% 0 0 / .6);
}
.hero-content { position: relative; z-index: 1; padding: 6.5rem 0 3rem; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: .4rem; height: .4rem; border-radius: 50%; background: #4ade80; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); max-width: 18ch; }
.hero h1 .accent { color: var(--brand-red-bright); }
.hero p.lede { margin-top: 1.5rem; max-width: 40rem; font-size: 1.125rem; color: rgba(255,255,255,.75); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.stats-bar {
  position: relative; z-index: 1;
  background: oklch(8% 0 0 / .55);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stats-bar .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
  padding: 2.5rem 1.5rem;
}
@media (min-width: 1024px) { .stats-bar .wrap { grid-template-columns: repeat(4, 1fr); padding: 2.5rem; } }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); color: #fff; }
.stat .label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* Generic section rhythm */
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .75rem; }
.section-head h2 .accent { color: var(--brand-red); }
.section-dark .section-head h2 .accent { color: var(--brand-red-bright); }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* About */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-item .label { font-weight: 700; font-size: 1rem; }
.value-item .desc { font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }
.about-media { position: relative; }
.about-media .frame { position: relative; z-index: 1; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-elevated); border: 1px solid var(--border); }
.about-media .accent-block { position: absolute; top: -1rem; left: -1rem; width: 6rem; height: 6rem; background: var(--brand-red); z-index: 0; }
.about-banner {
  margin-top: 4rem; padding: 2rem; border-radius: 2px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.about-banner .num { font-family: var(--font-display); font-size: 3rem; color: var(--brand-red-bright); }
.about-banner .txt { color: rgba(255,255,255,.75); max-width: 30rem; }

/* Pillars / Services / Careers grids */
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--brand-red); transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.card .icon-badge {
  width: 3rem; height: 3rem; border-radius: 2px;
  background: var(--gradient-red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.1rem; font-weight: 700; }
.card p { margin-top: .5rem; font-size: .9rem; color: var(--muted-foreground); }

.section-dark .card {
  background: oklch(18% 0 0 / .6);
  border-color: rgba(255,255,255,.1);
}
.section-dark .card p { color: rgba(255,255,255,.6); }
.section-dark .card h3 { color: #fff; }

/* Services */
.service-card { position: relative; }
.service-card .idx { font-family: var(--font-display); font-size: 2.25rem; color: var(--border); }
.service-card .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; font-size: .85rem; font-weight: 600; color: var(--brand-red); }

/* Careers */
.careers-section { background: var(--ink); color: #fff; }
.career-card {
  background: oklch(18% 0 0 / .6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px; padding: 2rem;
  transition: border-color .2s ease, transform .2s ease;
}
.career-card:hover { border-color: var(--brand-red-bright); transform: translateY(-4px); }
.career-card h3 { font-size: 1.1rem; color: #fff; }
.career-card p { margin-top: .5rem; font-size: .9rem; color: rgba(255,255,255,.6); }
.career-card .more { display: inline-flex; margin-top: 1.25rem; font-size: .85rem; font-weight: 600; color: var(--brand-red-bright); }
.benefits-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; justify-content: center; }
.benefit-chip {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .55rem 1.1rem;
  font-size: .8rem; color: rgba(255,255,255,.85);
}

/* Owner operators */
.owner-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .owner-grid { grid-template-columns: 1fr 1fr; } }
.owner-media { position: relative; }
.owner-media img { border-radius: 2px; box-shadow: var(--shadow-elevated); border: 1px solid var(--border); }
.owner-perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 2rem 0; }
.perk { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; }
.perk .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand-red); flex-shrink: 0; }

/* Fleet */
.fleet-stats { text-align: center; }
.fleet-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .fleet-gallery { grid-template-columns: repeat(4, 1fr); } }
.fleet-gallery figure { margin: 0; border-radius: 2px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3/4; }
.fleet-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fleet-gallery a:hover img { transform: scale(1.05); }

/* Testimonials */
.testimonial-card { padding: 2.25rem; }
.testimonial-card .quote { font-size: 1.05rem; line-height: 1.6; }
.testimonial-card .quote::before { content: '\201C'; color: var(--brand-red); font-size: 1.5rem; }
.testimonial-person { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.testimonial-person img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.testimonial-person .name { font-weight: 700; }
.testimonial-person .role { font-size: .8rem; color: var(--muted-foreground); }
.avatar-fallback {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--gradient-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Process */
.process-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; position: relative; }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-left: 3.5rem; }
@media (min-width: 1024px) { .process-step { padding-left: 0; text-align: center; } }
.process-step .step-num {
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--gradient-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
@media (min-width: 1024px) { .process-step .step-num { position: static; margin: 0 auto 1.25rem; } }
.process-step h3 { font-size: 1rem; font-weight: 700; }
.process-step p { margin-top: .4rem; font-size: .875rem; color: var(--muted-foreground); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-info-item .icon-badge {
  width: 2.75rem; height: 2.75rem; border-radius: 2px; background: var(--gradient-red);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.contact-info-item .value { font-weight: 600; margin-top: .15rem; }
.contact-form {
  background: #fff; color: var(--ink);
  border-radius: 4px; padding: 2.25rem;
  box-shadow: var(--shadow-elevated);
}
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font-size: .9rem;
  border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-red);
  box-shadow: 0 0 0 3px oklch(52% .21 27 / .15);
}
.field textarea { resize: vertical; min-height: 7rem; }
.form-note { font-size: .8rem; color: var(--muted-foreground); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: .875rem; font-weight: 600; padding: .75rem 1rem; border-radius: 2px; }
.form-status.success { background: oklch(90% .1 145); color: oklch(30% .1 145); }
.form-status.error { background: oklch(90% .1 27); color: oklch(35% .18 27); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; font-size: .9rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover { border-color: var(--brand-red-bright); color: var(--brand-red-bright); }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .75rem; }
.footer-col a { font-size: .9rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Icons */
.icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Legal / simple content pages */
.legal-page { padding-top: 8rem; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.legal-page .updated { color: var(--muted-foreground); font-size: .9rem; margin: .75rem 0 3rem; }
.legal-page h2 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; margin: 2.5rem 0 1rem; }
.legal-page p, .legal-page li { color: oklch(30% 0 0); font-size: .98rem; line-height: 1.75; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.legal-page li { margin-bottom: .5rem; }
.legal-page a.inline-link { color: var(--brand-red); font-weight: 600; text-decoration: underline; }
.legal-page .contact-block {
  margin-top: 3rem; padding: 1.75rem; background: var(--surface-2); border-radius: 4px; border: 1px solid var(--border);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: #fff;
  border-radius: 6px; box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
}
.cookie-banner p { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.cookie-banner h2 { font-size: 1rem; margin-bottom: .5rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.cookie-actions .btn { padding: .65rem 1.2rem; font-size: .8rem; }
.cookie-prefs { display: none; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.cookie-prefs.open { display: block; }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cookie-cat .meta strong { font-size: .85rem; display: block; }
.cookie-cat .meta span { font-size: .78rem; color: rgba(255,255,255,.55); }
.switch { position: relative; width: 2.5rem; height: 1.4rem; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; background: rgba(255,255,255,.2); border-radius: 999px; transition: background .2s ease;
}
.switch .thumb {
  position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fff; transition: transform .2s ease;
}
.switch input:checked ~ .track { background: var(--brand-red); }
.switch input:checked ~ .thumb { transform: translateX(1.1rem); }
.switch input:disabled ~ .track { opacity: .5; }
.cookie-settings-link {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 150;
  background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .6rem 1rem; font-size: .78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }
