/* ===========================================
   CURSA FUEL CO. — shared.css
   All pages import this file
   =========================================== */

:root {
  --black:  #111111;
  --orange: #e8571a;
  --cream:  #F0EAE0;
  --gray:   #888884;
  --white:  #FFFFFF;
  --d: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --b: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: 64px;
  --max:    1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--b); background: var(--white); color: var(--black); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── LAYOUT ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }

/* ─── TYPE ─── */
.eyebrow {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.section-h2 {
  font-family: var(--d);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.section-h2--white { color: var(--white); }
.body-text { font-size: 16px; line-height: 1.8; color: #555; }
.body-text--white { color: rgba(255,255,255,0.65); }

/* ─── BUTTONS ─── */
.btn {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 36px;
  display: inline-block;
  transition: opacity 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { opacity: 0.88; }
.btn--ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.15s;
}
.btn--ghost-white:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--ghost-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.25);
  transition: all 0.15s;
}
.btn--ghost-dark:hover { border-color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { opacity: 0.88; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  background: var(--black);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 28px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-btn {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 12px 26px;
  transition: opacity 0.15s;
}
.nav-btn:hover { opacity: 0.88; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}
@media (max-width: 860px) {
  .nav-mobile-btn { display: flex; }
}

/* ─── TICKER ─── */
.ticker {
  background: var(--orange);
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track span {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 28px;
}
.ticker-mark { height: 12px; width: auto; opacity: 0.55; flex-shrink: 0; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  padding-top: 72px;
  background: var(--black);
  padding-bottom: 80px;
}
.page-hero .wrap { padding-top: 72px; }
.page-hero-label {
  font-family: var(--d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--d);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ─── FOOTER ─── */
footer { background: #0a0a0a; padding: 64px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.footer-logo { height: 96px; width: auto; }
footer h5 {
  font-family: var(--d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 18px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer li a { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.55; transition: color 0.15s; display: inline-block; }
footer li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.16); }
.footer-mark { font-family: var(--d); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.12); }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: var(--d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.form-group label.dark { color: rgba(0,0,0,0.45); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--b);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  border-radius: 0;
}
.form-group input.light,
.form-group select.light,
.form-group textarea.light {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--black);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--black); }



.hcwsy-arrow {
  font-size: 13px;
  color: var(--orange);
  transition: transform 0.2s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) { :root { --gutter: 32px; } }

@media (max-width: 860px) {
  /* Nav */
  .nav-right .nav-link { display: none !important; }
  .nav-btn { display: none !important; }
  .nav-mobile-btn { display: flex !important; }

  /* Footer two-column on mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-bottom: 8px;
  }
  .footer-logo { height: 56px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── MOBILE NAV OVERLAY ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay-top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--cream);
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
.nav-overlay-logo img { height: 26px; width: auto; }
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.nav-close span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.nav-close span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-close span:nth-child(2) { opacity: 0; }
.nav-close span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }



.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  margin-top: 48px;
}
.nav-overlay-links a {
  font-family: var(--d);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.15s;
}
.nav-overlay-links a:last-child { border-bottom: none; }
.nav-overlay-links a:hover { color: var(--orange); }
.nav-overlay.open .nav-overlay-links a {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay.open .nav-overlay-links a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open .nav-overlay-links a:nth-child(2) { transition-delay: 0.16s; }
.nav-overlay.open .nav-overlay-links a:nth-child(3) { transition-delay: 0.22s; }
.nav-overlay.open .nav-overlay-links a:nth-child(4) { transition-delay: 0.28s; }
.nav-overlay.open .nav-overlay-links a:nth-child(5) { transition-delay: 0.34s; }

.nav-overlay-cta {
  padding: 32px 0 40px;
}
.nav-overlay-cta a {
  display: block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.38s, transform 0.35s ease 0.38s;
}
.nav-overlay.open .nav-overlay-cta a {
  opacity: 1;
  transform: translateY(0);
}


/* ─── HCWSY STRIP ─── */
.hcwsy-strip {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 11px 0;
}
.hcwsy-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hcwsy-left {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.hcwsy-left:hover { color: rgba(0,0,0,0.65); }
.hcwsy-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hcwsy-right a {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.hcwsy-right a:hover { color: rgba(0,0,0,0.65); }
.hcwsy-arrow {
  color: var(--orange);
  font-size: 12px;
  transition: transform 0.2s;
  display: inline-block;
}
.hcwsy-right a:hover + .hcwsy-arrow,
.hcwsy-right:hover .hcwsy-arrow { transform: translateX(3px); }

/* ─── MOBILE FIXES ─── */
@media (max-width: 860px) {

  /* ── Hero ── */
  .hero-bg,
  .page-hero {
    background-attachment: scroll !important;
    background-size: cover !important;
  }
  /* Show more of trucks — position top of image */
  .hero-bg { background-position: center 30% !important; }
  .page-hero { background-position: center center !important; min-height: 420px; }

  /* Hero height shorter on mobile so ticker shows above fold */
  .hero { height: 72vh !important; min-height: 400px !important; }

  /* ── Buttons — all full width, consistent ── */
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn--orange,
  .btn--ghost-white,
  .btn--ghost-dark,
  .btn--dark,
  .nav-btn {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  .btn-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-row .btn,
  .btn-row a {
    width: 100%;
    text-align: center;
  }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a { width: 100%; text-align: center; }

  /* ── CTA sections ── */
  .cta-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .cta-right { text-align: left; }
  .cta-stack { align-items: stretch; width: 100%; }
  .cta-stack a { width: 100%; text-align: center; }
  .cta-phone { font-size: 28px; }

  /* ── Photo grid ── */
  .photo-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 180px 180px 180px !important;
  }
  .cell { grid-row: span 1 !important; }
  .cell.tall { grid-row: span 2 !important; height: auto !important; }

  /* ── Grids ── */
  .serve-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tier-grid { grid-template-columns: 1fr !important; }
  .ppp-row { grid-template-columns: 1fr !important; }
  .sit-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── Typography — prevent awkward single-word wrapping ── */
  .hero-h1 { font-size: clamp(32px, 8vw, 52px) !important; line-height: 1.05 !important; }
  .section-h2 { font-size: clamp(24px, 6vw, 40px) !important; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 48px) !important; line-height: 1.05 !important; max-width: 100% !important; }
  .certainty h2 { font-size: clamp(28px, 7vw, 48px) !important; }
}

@media (max-width: 480px) {
  .hero { height: 70vh !important; min-height: 380px !important; }
  .photo-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
  .cell { height: 200px !important; }
  .cell.tall { height: 260px !important; }
}

/* iPhone 15 Pro and similar tall phones */
@media (max-width: 430px) and (min-height: 800px) {
  .hero { height: 68vh !important; min-height: 360px !important; }
}
