/* Barcenas Transportation — site styles */

/* Self-hosted variable fonts (latin subset, SIL OFL — see /fonts). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette: burnt orange (truck color / UT Austin) + charcoal.
     Contrast (WCAG AA needs 4.5:1 for body text):
     white on --orange 4.6, white on --orange-dark 6.3,
     --orange-dark on white 6.3, --orange-light on --charcoal 5.9. */
  --charcoal: #1A1A1A;
  --charcoal-dark: #0E0E0E;
  --charcoal-soft: #262626;
  --orange: #BF5700;       /* fills; pair with white text */
  --orange-dark: #9C4700;  /* hover fills; orange text on light backgrounds */
  --orange-light: #E57A2E; /* orange text on dark backgrounds */
  --ink: #1C1C1C;
  --gray: #5B6472;
  --text-on-dark: #E4E6EA;
  --muted-on-dark: #BDC1C8;
  --off-white: #F6F7F9;
  --radius: 6px;
  --shadow: 0 6px 24px rgb(0 0 0 / 0.1);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1100;
  background: #fff;
  color: var(--charcoal);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }

.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--charcoal-dark);
  color: var(--text-on-dark);
  font-size: 0.88rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
}

.topbar .phone {
  display: inline-block;
  padding-block: 8px;
  color: var(--orange-light);
  font-weight: 700;
  text-decoration: none;
}

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

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

/* ---------- Header / nav ---------- */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--charcoal);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  flex-shrink: 0;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
}

.brand img { height: 56px; width: auto; }

.main-nav { margin-inline: auto; }

.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }

.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
}

.main-nav a:hover { color: var(--orange-light); }

.header-cta { flex-shrink: 0; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: var(--header-h); }

  .site-header { position: sticky; top: 0; }

  .site-header .wrap { gap: 10px; padding-block: 8px; }

  .brand { padding: 4px 8px; }
  .brand img { height: 44px; }

  .header-cta {
    order: 1;
    margin-left: auto;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .nav-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 2px solid rgb(255 255 255 / 0.35);
    border-radius: 4px;
    cursor: pointer;
  }

  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--charcoal);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 16px 24px rgb(0 0 0 / 0.35);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 20px 12px; }

  .main-nav li + li { border-top: 1px solid rgb(255 255 255 / 0.08); }

  .main-nav a { padding: 13px 0; font-size: 1rem; border-radius: 0; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0;
  color: #fff;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgb(14 14 14 / 0.92) 25%, rgb(14 14 14 / 0.55) 70%, rgb(14 14 14 / 0.4));
}

.hero .wrap { padding-block: 96px 104px; }

.hero-content { max-width: 700px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange-light);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.hero .lede {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text-on-dark);
  font-size: 1.15rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .hero::before { background: rgb(14 14 14 / 0.8); }
  .hero .wrap { padding-block: 56px 64px; }
  .hero .lede { font-size: 1.05rem; }
}

/* ---------- Feature strip ---------- */

.strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.strip > div { padding: 34px 30px; }

.strip .cell-orange { background: var(--orange); color: #fff; }
.strip .cell-dark { background: var(--charcoal); color: #fff; }
.strip .cell-dark p { color: var(--text-on-dark); }
.strip .cell-light { background: var(--off-white); color: var(--ink); }

.strip h2 { font-size: 1.15rem; margin-bottom: 6px; }

.strip p { font-size: 0.95rem; }

@media (max-width: 780px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div { padding: 26px 20px; }
}

/* ---------- Section shell ---------- */

section { padding-block: 72px; }

@media (max-width: 600px) {
  section { padding-block: 56px; }
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.kicker {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2rem);
  color: var(--charcoal);
}

.section-head p:not(.kicker) {
  margin-top: 12px;
  color: var(--gray);
  font-size: 1.02rem;
}

.bg-light { background: var(--off-white); }

/* ---------- Zoomable photos (open in the lightbox) ---------- */

.zoom {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .zoom img { transition: transform 0.25s ease; }
  .zoom:hover img { transform: scale(1.03); }
}

/* ---------- Service / fleet cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body { padding: 22px 24px 26px; }

.card h3 {
  margin-bottom: 10px;
  color: var(--charcoal);
  font-size: 1.15rem;
}

.card p { color: var(--gray); font-size: 0.96rem; }

/* Single column: lay cards out horizontally so photos don't become huge. */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .card .zoom, .card .zoom img { height: 100%; }
}

@media (max-width: 560px) {
  .card { display: block; }
  .card .zoom, .card .zoom img { height: auto; }
}

/* ---------- Materials gallery ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.product .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 14px 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(0deg, rgb(14 14 14 / 0.9) 30%, rgb(14 14 14 / 0));
  pointer-events: none;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .product .label { padding: 28px 10px 9px; font-size: 0.9rem; }
}

/* ---------- Why us split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}

.panel { padding: 60px 46px; }

.panel-dark {
  color: #fff;
  background-color: var(--charcoal);
  background-image: linear-gradient(120deg, rgb(14 14 14 / 0.9), rgb(14 14 14 / 0.74)), url("../images/city_base_and_road_base1-960.webp");
  background-size: cover;
  background-position: center;
}

.panel-dark .kicker { color: var(--muted-on-dark); }

.split h2 { margin-top: 2px; font-size: clamp(1.45rem, 3vw, 1.7rem); }

.split .body {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--text-on-dark);
}

.panel-orange { background: var(--orange); color: #fff; }

.panel-orange h3 { margin-bottom: 18px; font-size: 1.15rem; }

.checklist { display: grid; gap: 14px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
}

.checklist li::before {
  content: "\2713" / "";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #fff;
  font-size: 0.75rem;
  background: var(--charcoal-dark);
  border-radius: 50%;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .panel { padding: 40px 24px; }
  .panel-dark {
    background-image: linear-gradient(120deg, rgb(14 14 14 / 0.9), rgb(14 14 14 / 0.74)), url("../images/city_base_and_road_base1-480.webp");
  }
}

/* ---------- Careers ---------- */

.hiring { background: var(--charcoal); color: #fff; }

.hiring .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 40px;
}

.hiring .kicker { color: var(--orange-light); }

.hiring h2 { font-size: clamp(1.7rem, 3.5vw, 2rem); }

.hiring .lede {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--text-on-dark);
}

.hiring .ctas { margin-top: 28px; }

.terms { display: grid; gap: 16px; }

.term {
  padding: 16px 20px;
  background: var(--charcoal-soft);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
}

.term h3 { margin-bottom: 2px; font-size: 1.02rem; font-weight: 700; }

.term p { color: var(--muted-on-dark); font-size: 0.92rem; }

@media (max-width: 780px) {
  .hiring .grid-2 { grid-template-columns: 1fr; }
}

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

.site-footer {
  color: var(--muted-on-dark);
  background: var(--charcoal-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding-block: 56px 36px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer .phone-link {
  display: inline-block;
  margin-top: 8px;
  padding-block: 4px;
  color: var(--orange-light);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

.site-footer .phone-link:hover { text-decoration: underline; }

.site-footer ul { font-size: 0.92rem; }

.site-footer li { display: flex; align-items: center; min-height: 32px; }

.site-footer li a { padding-block: 4px; }

.site-footer li a:hover { color: #fff; }

.fine-print {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-block: 18px;
  font-size: 0.82rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 48px 28px; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 24px;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop { background: rgb(10 10 10 / 0.95); }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}

.lightbox-close {
  position: fixed;
  top: 10px;
  right: 12px;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

body:has(.lightbox[open]) { overflow: hidden; }

/* ---------- 404 page ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--charcoal); }

.not-found p:not(.kicker) { margin-top: 12px; color: var(--gray); }

.not-found .ctas { justify-content: center; }

.not-found .btn-outline { color: var(--charcoal); border-color: var(--charcoal); }
.not-found .btn-outline:hover { background: var(--off-white); }

.not-found-header .header-cta { margin-left: auto; }
