/* =========================================================
   US Cement Enterprises — v3
   Colors sampled from the company logo
   ========================================================= */
:root {
  --navy: #14386F;          /* logo navy */
  --red: #D3151E;           /* logo red, deepened slightly for text contrast */
  --red-logo: #ED1C24;      /* exact logo red, used for graphics only */
  --red-dark: #B01018;
  --ink: #132440;
  --text: #43536A;
  --muted: #6A7890;
  --line: #DCE2EA;
  --mist: #F2F5F8;
  --white: #FFFFFF;

  --font-display: 'Barlow Semi Condensed', 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;

  --header-h: 84px;
  --container: 1200px;
  --emblem: clamp(150px, 22vh, 220px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 700;
}
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: 1.4rem; font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

:focus-visible { outline: 3px solid var(--red-logo); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* Kicker: short red rule + label */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 3px; background: var(--red-logo); border-radius: 2px; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-sub { margin-top: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(19, 36, 64, 0.07);
}

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 36px; }

.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.brand-emblem { width: 48px; height: 48px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.1em; color: var(--navy);
}
/* On landing the big centered lockup is the logo; the header brand appears once it scrolls away */
.js .site-header:not(.show-brand) .brand { opacity: 0; visibility: hidden; }

.site-nav { display: flex; gap: 34px; margin-left: auto; }
.site-nav a {
  font-weight: 500; font-size: 1rem; color: var(--ink);
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red-logo); }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Landing: emblem centered about one third down the page ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  /* padding places the emblem's center at ~1/3 of the viewport height */
  padding-top: max(calc(var(--header-h) + 24px), calc(33.33vh - 68px - (var(--emblem) / 2)));
  padding-bottom: 96px;
  background: radial-gradient(ellipse 90% 70% at 50% 32%, var(--white) 55%, var(--mist) 100%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.lockup { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0.14em;
  padding-left: 0.14em;      /* balances the trailing letter-spacing so it centers optically */
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-emblem { width: var(--emblem); height: var(--emblem); }

.hero .kicker { justify-content: center; }

.slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero-lead { font-size: 1.15rem; max-width: 52ch; margin-bottom: 34px; }

/* ===== Spec sheet (four-column terminal snapshot) ===== */
.specs { background: var(--mist); padding: 30px 0 88px; }

.spec-sheet {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1.25fr 1fr 1fr;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid #C9D2DE;
}

.spec-col {
  min-width: 0;
  padding: 24px 28px 26px;
}

.spec-col:first-child { padding-left: 0; }
.spec-col:last-child { padding-right: 0; }

.spec-col + .spec-col {
  border-left: 1px solid #C9D2DE;
}

.spec-col dt {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-col dd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--navy);
}

.spec-item {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.25;
}

.spec-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);
}

.spec-sub i {
  padding: 0 5px;
  color: #AEBACB;
  font-style: normal;
}

/* ===== About ===== */
.about { padding: 104px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.about-grid h2 { max-width: 16ch; }
.about-copy p { font-size: 1.15rem; max-width: 60ch; }
.about-copy p + p { margin-top: 18px; }

/* ===== Route: Mill > Terminal > Truck ===== */
.route { padding: 104px 0 112px; background: var(--mist); }

.route-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.route-line::before,
.route-line::after {
  content: ''; position: absolute; top: 35px;
  left: calc(100% / 6); right: calc(100% / 6);
  height: 3px; border-radius: 2px;
}
.route-line::before { background: var(--line); }
.route-line::after {
  background: var(--red-logo);
  transform-origin: left center; transform: scaleX(1);
  transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
}

.stop { position: relative; text-align: center; padding: 0 8px; }
.stop-node {
  position: relative; z-index: 1;
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); border: 3px solid var(--navy);
  box-shadow: 0 0 0 8px var(--mist);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.stop-node svg { width: 30px; height: 30px; }
.stop-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--red); margin-bottom: 6px; }
.stop h3 { font-size: 1.5rem; margin-bottom: 10px; }
.stop p:last-child { max-width: 34ch; margin: 0 auto; }

.js .route-line:not(.is-visible)::after { transform: scaleX(0); }
.js .route-line:not(.is-visible) .stop-node { background: var(--white); color: var(--navy); border-color: var(--line); }
.js .route-line.is-visible .stop:nth-child(1) .stop-node { transition-delay: .05s; }
.js .route-line.is-visible .stop:nth-child(2) .stop-node { transition-delay: .7s; }
.js .route-line.is-visible .stop:nth-child(3) .stop-node { transition-delay: 1.35s; }

/* ===== Supply options ===== */
.supply { padding: 104px 0; background: var(--white); }
.supply-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 72px; align-items: start; }
.supply-head h2 { margin-bottom: 16px; }
.supply-head p:last-child { max-width: 34ch; }
.options { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--navy); }
.option { padding: 32px 36px 8px; display: flex; flex-direction: column; }
.option:first-child { padding-left: 0; }
.option + .option { border-left: 1px solid var(--line); }
.option h3 { font-size: 1.7rem; margin-bottom: 12px; }
.option p { margin-bottom: 22px; flex: 1; }
.option-link {
  align-self: flex-start; font-weight: 600; color: var(--red);
  border-bottom: 2px solid var(--red-logo); padding-bottom: 2px; transition: color .2s ease;
}
.option-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ===== Credentials ===== */
.credentials { padding: 88px 0; background: var(--mist); }
.cred {
  display: flex; align-items: center; gap: 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 36px 44px;
}
.cred-logo { flex-shrink: 0; width: 230px; padding-right: 44px; border-right: 1px solid var(--line); }
.cred-logo img { width: 100%; height: auto; }
.cred-text h3 { font-size: 1.65rem; margin-bottom: 8px; }
.cred-text p { max-width: 62ch; }

/* ===== Contact form ===== */
.contact { padding: 104px 0 112px; background: var(--white); }
.contact-inner { max-width: 860px; }
.contact .section-head { margin-bottom: 44px; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 8px; padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #CBD3DE; border-radius: 6px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 56, 111, 0.14);
}
.form-note { margin-top: 14px; font-size: 0.95rem; text-align: center; min-height: 1.4em; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-panel button:disabled { opacity: 0.68; cursor: wait; }
.form-note.is-error { color: var(--red); }
.form-note.is-success { color: var(--navy); font-weight: 500; }

/* ===== Footer: all contact information ===== */
.site-footer { background: var(--navy); color: #C3CFE3; padding: 72px 0 28px; }

.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: center;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-emblem { width: 88px; height: 88px; flex-shrink: 0; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.1em; color: var(--white); }
.footer-slogan { font-size: 1.02rem; margin-top: 2px; }

.site-footer h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.footer-address p { line-height: 1.7; }

.depts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 44px 0; }
.dept { padding: 0 36px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.dept:first-child { padding-left: 0; border-left: 0; }
.dept h4 { display: flex; align-items: center; gap: 10px; }
.dept h4::before { content: ''; width: 18px; height: 3px; background: var(--red-logo); border-radius: 2px; }
.dept-phone {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.9rem; line-height: 1.2; color: var(--white); margin: 4px 0 6px;
}
.dept-email { color: #C3CFE3; font-size: 1rem; word-break: break-word; }
.dept a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.88rem; color: #93A5C4; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .site-nav { gap: 24px; }
}

@media (max-width: 920px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 4px 24px 16px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(19, 36, 64, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { border-bottom-color: var(--line); }
  .site-header.menu-open { background: var(--white); border-bottom-color: var(--line); }

  .about-grid, .supply-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid h2 { max-width: none; }
  .about, .supply, .contact, .route { padding: 80px 0; }
  .credentials { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .spec-sheet { grid-template-columns: 1fr 1fr; }
  .spec-col { padding: 22px 24px; }
  .spec-col:first-child { padding-left: 24px; }
  .spec-col:last-child { padding-right: 24px; }
  .spec-col + .spec-col { border-left: 1px solid #C9D2DE; }
  .spec-col:nth-child(3) { border-left: 0; }
  .spec-col:nth-child(n+3) { border-top: 1px solid #C9D2DE; }

  .route-line { grid-template-columns: 1fr; gap: 36px; }
  .route-line::before, .route-line::after { display: none; }
  .stop:not(:last-child)::after {
    content: ''; position: absolute; left: 34.5px; top: 72px; bottom: -36px; width: 3px;
    background: var(--red-logo); transform-origin: center top; transition: transform .6s ease;
  }
  .js .route-line:not(.is-visible) .stop::after { transform: scaleY(0); }
  .js .route-line.is-visible .stop:nth-child(2)::after { transition-delay: .6s; }
  .stop { text-align: left; padding: 0 0 0 100px; min-height: 72px; }
  .stop-node { position: absolute; left: 0; top: 0; margin: 0; }
  .stop p:last-child { margin: 0; }

  .options { grid-template-columns: 1fr; }
  .option, .option:first-child { padding: 28px 0 8px; }
  .option + .option { border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }

  .cred { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; }
  .cred-logo { width: 180px; padding-right: 0; border-right: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .depts { grid-template-columns: 1fr; gap: 28px; }
  .dept, .dept:first-child { padding: 0; border-left: 0; }
  .dept + .dept { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
}

@media (max-width: 560px) {
  :root { --emblem: clamp(140px, 21vh, 180px); }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-col,
  .spec-col:first-child,
  .spec-col:last-child { padding: 18px 0; }
  .spec-col + .spec-col,
  .spec-col:nth-child(3) { border-left: 0; border-top: 1px solid #C9D2DE; }
  .container { padding: 0 20px; }
  .brand-name { display: none; }
  .brand-emblem { width: 44px; height: 44px; }
  .header-cta { padding: 11px 16px; font-size: 0.95rem; }
  .wordmark { letter-spacing: 0.09em; padding-left: 0.09em; }
  .hero .btn-lg { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-panel { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-emblem { width: 72px; height: 72px; }
  .footer-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
