/* ============================================================
   Fuel Oil Express — fueloilexpress.com
   Palette drawn from the wordmark: ink black + express green,
   with a leaf-gold dispatch accent from the autumn hero.
   ============================================================ */

:root {
  --ink: #12160f;          /* green-tinted near-black */
  --ink-soft: #1d241a;
  --green: #4e9b33;        /* logo green */
  --green-deep: #3c7d26;
  --gold: #e8a61a;         /* dispatch / status accent */
  --paper: #f7f6f1;        /* warm off-white */
  --white: #ffffff;
  --text: #24291f;
  --text-muted: #5c6355;
  --line: #e3e1d8;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 18px 45px rgba(18, 22, 15, .22);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-deep); }

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

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

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link { flex-shrink: 0; }

.logo-link img { width: 170px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--gold); }

.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

.phone-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--white) !important;
  background: var(--green);
  padding: 13px 26px 15px !important;
  border-radius: 8px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background .15s ease;
}

.phone-btn:hover { background: var(--green-deep); }

/* Hamburger — hidden on desktop */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.phone-btn .phone-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  opacity: .85;
  margin-bottom: 2px;
  text-transform: uppercase;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-media video { object-fit: cover; object-position: center 65%; }

/* The poster image shows first; the video fades in only once it is
   actually playing, so there is no jump on page load. */
.hero-media video {
  opacity: 0;
  transition: opacity .9s ease;
}

.hero-media video.is-playing { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,22,15,.55) 0%, rgba(18,22,15,.25) 40%, rgba(18,22,15,.78) 100%),
    linear-gradient(100deg, rgba(18,22,15,.72) 0%, rgba(18,22,15,.15) 60%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: .95;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 auto 18px;
  text-wrap: balance;
}

.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 19px;
  max-width: 52ch;
  margin: 0 auto 34px;
}

/* Dispatch console — signature element */

.console {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 560px;
  margin: 0 auto;
  border-top: 5px solid var(--green);
  text-align: left;
}

.console-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.console-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* When #ZipCode is the scroll target, land with the whole hero in view
   (headline + console); the margin clamps to the top of the page. */
#ZipCode { scroll-margin-top: 480px; }

.console input[type="text"] {
  flex: 1 1 200px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
}

.console input[type="text"]::placeholder { color: #9aa091; font-weight: 500; }

.console input[type="text"]:focus {
  border-color: var(--green);
  outline: none;
}

.console button {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .15s ease;
}

.console button:hover { background: var(--green-deep); }

.hero-note {
  margin-top: 18px;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* status chip */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(232,166,26,.14);
  border: 1px solid rgba(232,166,26,.5);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6410;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,166,26,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(232,166,26,0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
}

/* ---------- Interior page hero ---------- */

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 56px;
}

.page-hero .hero-eyebrow { margin-bottom: 8px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }

.section-alt { background: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 42px;
}

/* Steps — a real sequence: enter zip, order, delivery */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.section-alt .step { background: var(--paper); }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.step p { color: var(--text-muted); font-size: 16px; }

/* Service area chips */

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 10px 24px;
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  list-style: none;
}

.features li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 20px 62px;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-height: 68px;
}

.features li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 3px 8px rgba(78, 155, 51, .35);
}

/* CTA band */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 70px 0;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 18ch;
}

.cta-band .btn-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  padding: 16px 34px;
  transition: background .15s ease;
  white-space: nowrap;
}

.cta-band .btn-primary:hover { background: var(--green-deep); }

/* ---------- Content pages (about / faqs / contact) ---------- */

.content { max-width: 780px; }

.content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 14px;
}

.content h2:first-child { margin-top: 0; }

.content p { margin-bottom: 16px; }

.content ul, .content ol { margin: 0 0 16px 22px; }

.content li { margin-bottom: 8px; }

.notice {
  background: rgba(232,166,26,.12);
  border: 1px solid rgba(232,166,26,.5);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}

.notice h2, .notice h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: #8a6410;
  margin: 0 0 10px;
}

/* FAQ accordion */

.faq-list { max-width: 820px; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details[open] summary { border-bottom: 1px solid var(--line); }

.faq-body { padding: 18px 22px 22px; }

.faq-body p { margin-bottom: 14px; }

.faq-body p:last-child { margin-bottom: 0; }

.faq-body ol, .faq-body ul { margin: 0 0 14px 22px; }

.faq-body li { margin-bottom: 8px; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.contact-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin: 10px 0 18px;
  border-bottom: 5px solid var(--green);
  padding-bottom: 6px;
}

.contact-phone:hover { color: var(--green-deep); }

.contact-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 24px;
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.footer-mark span { color: var(--green); }

.footer-tag { font-size: 15px; margin-top: 8px; max-width: 34ch; }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--gold); }

.footer-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
  text-decoration: none;
}

.footer-phone:hover { color: var(--gold); }

.footer-phone .phone-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-call { display: none; }

@media (max-width: 720px) {
  .mobile-call {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(18, 22, 15, .3);
  }

  .mobile-call:active { background: var(--green-deep); }

  body { padding-bottom: 62px; }
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .site-header .wrap { justify-content: space-between; gap: 0; }
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px 0 16px;
  }

  .nav-open .site-nav { display: flex; }

  .site-nav a {
    font-size: 23px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--line); }

  .site-nav .phone-btn {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .hero { min-height: 0; }
  .hero .wrap { padding-top: 72px; padding-bottom: 72px; }
  .section { padding: 56px 0; }
  .console { padding: 20px; }
  .console button { flex: 1 1 auto; }
}
