/* Black Crest Cargo website. Brand colors from the logo, Open Sans throughout. */
:root {
  --charcoal: #312F30;
  --charcoal-dark: #252324;
  --orange: #F68711;
  --orange-hover: #E07A0C;
  --text: #4A4748;
  --muted: #777273;
  --light: #F4F4F4;
  --border: #E1E1E1;
  --white: #FFFFFF;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-hover); text-decoration: none; }
h1, h2, h3, h4 { color: var(--charcoal); margin: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1170px; margin: 0 auto; padding-inline: 15px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* buttons */
.btn { display: inline-block; font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 15px 30px; border-radius: 3px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* utility strip */
.utility { background: var(--charcoal); color: #CFCBC9; font-size: 13px; }
.util-row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 9px; }
.util-row > span { display: inline-flex; align-items: center; gap: 7px; }
.util-row a { color: #CFCBC9; }
.util-row a:hover { color: var(--white); }
.ic { width: 14px; height: 14px; fill: var(--orange); flex: none; }
@media (max-width: 767px) { .utility { display: none; } }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--charcoal); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; }
.nav a:hover { color: var(--orange); }
.nav .nav-cta { background: var(--orange); color: var(--white); border-radius: 3px; margin-left: 10px; padding: 11px 20px; }
.nav .nav-cta:hover { background: var(--orange-hover); color: var(--white); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 3px; padding: 9px 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; }
.menu-btn b { position: absolute; left: -9999px; }
@media (max-width: 991px) {
  .head-row { min-height: 70px; }
  .brand img { height: 42px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--border); box-shadow: 0 6px 12px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin: 12px 20px 16px; text-align: center; }
}

/* hero */
.hero { position: relative; background: var(--charcoal); color: var(--white); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37,35,36,.85) 0%, rgba(37,35,36,.6) 45%, rgba(37,35,36,.1) 80%); z-index: 1; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-block: 60px; }
.hero h1 { color: var(--white); font-size: 40px; font-weight: 800; max-width: 560px; }
.hero-copy p { font-size: 17px; max-width: 520px; margin-top: 16px; color: #EDE9E7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 767px) {
  .hero { min-height: 440px; }
  .hero::before { background: rgba(37,35,36,.7); }
  .hero h1 { font-size: 28px; }
  .hero-copy p { font-size: 15px; }
  .hero-btns .btn { flex: 1 1 140px; text-align: center; }
}

/* sections */
.section { padding-block: 70px; }
.alt { background: var(--light); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2, .left-title { font-size: 30px; font-weight: 700; }
.section-title h2::after, .left-title::after { content: ""; display: block; width: 50px; height: 3px; background: var(--orange); margin: 14px auto 0; }
.left-title::after { margin-left: 0; }
.section-title p { margin-top: 14px; color: var(--muted); }
@media (max-width: 767px) { .section { padding-block: 50px; } .section-title h2, .left-title { font-size: 25px; } }

/* services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.services:has(> [data-feature]:not([hidden])) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { text-align: center; padding: 10px 6px; }
.service-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.service-icon svg { width: 34px; height: 34px; fill: var(--white); color: var(--white); }
.service h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14px; }
@media (max-width: 991px) { .services, .services:has(> [data-feature]:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .services, .services:has(> [data-feature]:not([hidden])) { grid-template-columns: 1fr; gap: 36px; } }

/* equipment */
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.rig { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--orange); border-radius: 3px; padding: 28px 26px 24px; }
.rig-art { width: 100%; height: 86px; fill: var(--charcoal); margin-bottom: 18px; }
.rig h3 { font-size: 18px; margin-bottom: 12px; }
.rig ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.rig li { padding-left: 18px; position: relative; }
.rig li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 3px; background: var(--orange); }
@media (max-width: 991px) { .fleet { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* tool cards */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tool { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--border); border-radius: 3px; padding: 28px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.tool:hover { border-color: var(--orange); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.tool-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--charcoal); display: grid; place-items: center; }
.tool-icon svg { width: 28px; height: 28px; fill: var(--orange); }
.tool h3 { font-size: 18px; margin-bottom: 8px; }
.tool p { font-size: 14px; color: var(--muted); }
.tool b { display: inline-block; margin-top: 12px; color: var(--orange-hover); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 767px) { .tools { grid-template-columns: 1fr; } .tool { padding: 22px; } }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.about-lead { margin: 22px 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; fill: var(--orange); margin-top: 2px; }
.checks b { color: var(--charcoal); }
@media (max-width: 991px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* numbers */
.numbers { background: var(--charcoal); color: var(--white); padding-block: 44px; }
.numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.numbers strong { display: block; font-size: 42px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.numbers span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #D6D2D0; }
@media (max-width: 767px) { .numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .numbers strong { font-size: 34px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; text-align: center; }
.step-n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0 auto; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* call to action band */
.cta-band { background: var(--orange); color: var(--white); padding-block: 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-row p { font-size: 21px; font-weight: 700; }
@media (max-width: 767px) { .cta-row { justify-content: center; text-align: center; } .cta-row p { font-size: 18px; } }

/* quote */
.quote { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 30px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; align-content: start; }
.lab { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.req { color: var(--orange-hover); font-style: normal; }
input, select, textarea { width: 100%; font: 400 15px var(--font); color: var(--charcoal); background: var(--white); border: 1px solid #CCCCCC; border-radius: 3px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #C0392B; background: #FDF3F2; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: 12px; color: var(--muted); margin: 16px 0 16px; }
.status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.status.ok { color: #2E7D32; }
.status.err { color: #C0392B; }
.contact-box { background: var(--charcoal); color: #D6D2D0; border-radius: 3px; padding: 30px; }
.contact-box h3 { color: var(--white); font-size: 18px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--orange); }
.contact-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-box li { display: flex; gap: 14px; }
.contact-box svg { width: 20px; height: 20px; fill: var(--orange); flex: none; margin-top: 3px; }
.contact-box span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #A9A4A2; }
.contact-box a, .contact-box b { color: var(--white); font-weight: 600; }
@media (max-width: 991px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .grid { grid-template-columns: 1fr; } .form, .contact-box { padding: 20px; } }

/* footer: light, so the logo keeps its colors */
.footer { background: var(--light); border-top: 4px solid var(--orange); color: var(--text); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-block: 50px 40px; }
.foot-about img { height: 56px; width: auto; margin-bottom: 16px; }
.foot-about p { color: var(--muted); max-width: 320px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--orange-hover); }
.copyright { background: var(--charcoal); color: #A9A4A2; font-size: 13px; padding-block: 16px; }
@media (max-width: 991px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 575px) { .foot-cols { grid-template-columns: 1fr; gap: 26px; } .copyright .wrap { text-align: center; } }

/* inner page title band */
.page-hero { background: var(--charcoal); color: #EDE9E7; padding-block: 44px 40px; border-bottom: 4px solid var(--orange); }
.page-hero h1 { color: var(--white); font-size: 34px; font-weight: 800; }
.page-hero p { max-width: 720px; margin-top: 10px; }
@media (max-width: 767px) { .page-hero { padding-block: 32px 28px; } .page-hero h1 { font-size: 26px; } }
.notice { background: #FFF4E6; border: 1px solid var(--orange); border-radius: 3px; padding: 14px 18px; margin-bottom: 24px; }

/* calculators: form on the left, sticky result on the right */
.calc { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.calc-form { display: grid; gap: 14px; padding: 0; border: 0; background: none; }
.step-box { background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 26px 28px 28px; margin: 0; min-width: 0; display: grid; gap: 18px; }
.step-box legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: var(--charcoal); padding: 0; }
.step-box legend small { font-weight: 400; color: var(--muted); font-size: 14px; }
.step-box legend + * { clear: both; }
.step-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 14px; font-weight: 800; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.lab small { font-weight: 400; color: var(--muted); }
.place { font-size: 13px; font-weight: 600; color: #2E7D32; min-height: 1.4em; }
.place.bad { color: #C0392B; }
.credit { font-size: 12px; color: var(--muted); margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-hover); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-tools { display: flex; justify-content: flex-end; gap: 20px; font-size: 14px; }

/* choice cards (styled radios) */
.choices { display: grid; gap: 12px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices-5 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choice { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; border: 2px solid var(--border); border-radius: 3px; padding: 18px 12px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice-sm { padding: 12px 10px; }
.choice:hover { border-color: #C9C4C2; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice svg { width: 34px; height: 34px; fill: var(--charcoal); margin-bottom: 4px; }
.choice b { color: var(--charcoal); font-size: 15px; line-height: 1.3; }
.choice small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--orange); background: #FFF6EC; }
.choice:has(input:checked) svg { fill: var(--orange); }
.choice:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.fill { display: block; width: 100%; height: 12px; border: 1.5px solid var(--charcoal); border-radius: 2px; margin-bottom: 6px; overflow: hidden; }
.fill i { display: block; height: 100%; background: var(--orange); }

/* checkboxes */
.checks-row { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); flex: none; }
.check small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* number stepper and $ / % inputs */
.stepper { display: flex; }
.stepper input { text-align: center; border-radius: 0; border-inline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { flex: none; width: 44px; font: 700 18px var(--font); color: var(--charcoal); background: var(--light); border: 1px solid #CCCCCC; cursor: pointer; }
.stepper button:first-child { border-radius: 3px 0 0 3px; }
.stepper button:last-child { border-radius: 0 3px 3px 0; }
.stepper button:hover { background: #E8E8E8; }
.affix { display: flex; align-items: stretch; }
.affix i { font-style: normal; display: grid; place-items: center; padding: 0 12px; background: var(--light); border: 1px solid #CCCCCC; color: var(--muted); font-weight: 600; }
.affix i:first-child { border-right: 0; border-radius: 3px 0 0 3px; }
.affix input { border-radius: 0 3px 3px 0; min-width: 0; }
.affix-r input { border-radius: 3px 0 0 3px; }
.affix-r i { border-left: 0; border-radius: 0 3px 3px 0; }
details.more { border-top: 1px solid var(--border); padding-top: 14px; }
details.more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--charcoal); }
details.more[open] summary { margin-bottom: 12px; }
details.more .grid { margin-top: 14px; }
.ask { background: var(--light); border-radius: 3px; padding: 16px 18px; display: grid; gap: 12px; font-size: 14px; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.ask-row .btn { padding: 12px 20px; }

/* result panel */
.estimate { position: sticky; top: 104px; background: var(--charcoal); color: #D6D2D0; border-radius: 3px; padding: 28px; }
.estimate h2 { color: var(--white); font-size: 18px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--orange); }
.estimate .rig-art { fill: #5A5657; height: 70px; margin: 0; }
.est-empty { text-align: center; display: grid; gap: 16px; }
.est-empty .link-btn { color: var(--orange); }
.est-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #A9A4A2; }
.est-range { font-size: 34px; font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -.01em; }
.est-sub { font-size: 13px; color: #A9A4A2; margin-top: 6px; }
.est-rig { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 20px 0 16px; padding: 14px 0; border-block: 1px solid #4A4748; }
.est-rig .rig-art { fill: #EDE9E7; height: 48px; }
.est-rig span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #A9A4A2; }
.est-rig b { color: var(--white); }
.est-lines { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 20px; }
.est-lines td { padding: 5px 0; vertical-align: top; }
.est-lines td + td { text-align: right; padding-left: 12px; white-space: nowrap; color: var(--white); }
.est-lines .head td { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #A9A4A2; }
.est-lines .total td { border-top: 1px solid #5A5657; padding-top: 9px; font-weight: 700; color: var(--white); }
.est-note { font-size: 12px; color: #A9A4A2; margin-top: 14px; }
.stack { display: flex; height: 14px; border-radius: 2px; overflow: hidden; margin: 20px 0 12px; background: #4A4748; gap: 2px; }
.stack i { display: block; min-width: 3px; }
.legend { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend b { margin-left: auto; color: var(--white); }
.price-tag { background: #3E3B3C; border-left: 3px solid var(--orange); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.price-tag b { color: var(--white); font-size: 17px; }
.insights { margin: 0 0 20px; padding-left: 18px; font-size: 13px; display: grid; gap: 8px; }
.insights li::marker { color: var(--orange); }

/* phone: the result sits under the form, with a sticky bar at the bottom of the screen */
.est-bar { display: none; }
@media (max-width: 991px) {
  .calc { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .est-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--charcoal); color: #D6D2D0; box-shadow: 0 -4px 12px rgba(0,0,0,.2); }
  .est-bar span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #A9A4A2; }
  .est-bar b { color: var(--white); font-size: 18px; }
  .est-bar .btn { padding: 12px 20px; }
  body:has(.est-bar:not([hidden])) .footer { padding-bottom: 64px; }
}
@media (max-width: 575px) {
  .step-box { padding: 20px 16px 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .ask-row { grid-template-columns: 1fr 1fr; }
  .ask-row .btn { grid-column: 1 / -1; }
  .estimate { padding: 22px 18px; }
  .est-range { font-size: 29px; }
}

[hidden] { display: none !important; }
