/*
 * Fuel Express AEO homepage styles (fx- namespace).
 * Ported from the approved mock (fuel-express-homepage.html) with the mock's
 * CSS custom properties remapped to the site's existing brand values:
 *   --fx-navy    #042148  (theme's dominant navy; mock used #022348)
 *   --fx-orange  #EC5A25  (exact match with theme)
 *   --fx-orange-dark #CC4411 (theme hover orange; mock used #d24a19)
 *   fonts: inherited — the theme already loads Montserrat sitewide.
 * Neutrals (--fx-ink/slate/line/bg-*) keep the mock's values: the theme has
 * no equivalent tokens and these harmonize with the brand navy.
 * Loaded only on the front page (see inc/fx-aeo-home.php).
 */

.fx-section {
  --fx-navy: #042148;
  --fx-navy-90: #0a2f5c;
  --fx-orange: #EC5A25;
  --fx-orange-dark: #CC4411;
  --fx-ink: #1c2733;
  --fx-slate: #4a5568;
  --fx-line: #e2e8f0;
  --fx-bg-soft: #f5f8fc;
  --fx-bg-band: #eef3f9;
  --fx-white: #ffffff;
  --fx-radius: 12px;

  /* full-bleed inside the theme's #container without stretch-row JS */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 66px 0;
  background: var(--fx-white);
  font-family: 'Montserrat', sans-serif; /* theme brand font, already loaded */
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fx-ink);
  box-sizing: border-box;
}
.fx-section *, .fx-section *::before, .fx-section *::after { box-sizing: border-box; }
.fx-section p { margin: 0 0 1rem; font-size: inherit; line-height: inherit; }
.fx-section a { color: var(--fx-orange-dark); text-decoration: none; }
.fx-section a:hover { text-decoration: underline; }

.fx-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.fx-section h1, .fx-section h2, .fx-section h3 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.18; color: var(--fx-navy); margin: 0 0 .5em; padding: 0;
}
.fx-section h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); font-weight: 800; letter-spacing: -0.02em; }
.fx-section h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.015em; }
.fx-section h3 { font-size: 1.22rem; font-weight: 700; }

.fx-band { background: var(--fx-bg-band); }
.fx-soft { background: var(--fx-bg-soft); }

.fx-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--fx-orange); margin-bottom: .9rem;
}

/* answer-first lead paragraph directly under each H2 */
.fx-answer { font-size: 1.18rem; font-weight: 500; color: var(--fx-ink); max-width: inherit; margin-bottom: 1.6rem; }

.fx-btn {
  display: inline-block; background: var(--fx-orange); color: var(--fx-white) !important;
  font-weight: 700; font-size: 1rem; padding: 15px 30px; border-radius: 8px;
  border: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.fx-btn:hover { background: var(--fx-orange-dark); text-decoration: none; transform: translateY(-1px); }
.fx-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); }
.fx-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- hero ---------- */
.fx-hero { background: linear-gradient(160deg, var(--fx-navy) 0%, var(--fx-navy-90) 100%); color: var(--fx-white); padding: 78px 0 70px; }
.fx-hero h1 { color: var(--fx-white); max-width: 15ch; }
.fx-hero .fx-lead { font-size: 1.24rem; color: #d6e0ee; font-weight: 400; max-width: 54ch; margin-bottom: 2rem; }
.fx-hero .fx-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fx-hero .fx-cta-note { font-size: .9rem; color: #9fb3cc; margin-top: 1.4rem; }
.fx-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.fx-hero-stats .fx-stat { border-left: 3px solid var(--fx-orange); padding-left: 16px; }
.fx-hero-stats .fx-num { font-size: 2rem; font-weight: 800; color: var(--fx-white); line-height: 1.1; }
.fx-hero-stats .fx-lbl { font-size: .9rem; color: #b8c6da; }
@media (max-width: 680px) { .fx-hero-stats { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- definition callout ---------- */
.fx-definition-box {
  background: var(--fx-white); border: 1px solid var(--fx-line);
  border-left: 5px solid var(--fx-orange); border-radius: var(--fx-radius);
  padding: 30px 34px; max-width: 820px;
}
.fx-definition-box p { margin: 0; font-size: 1.12rem; }
.fx-definition-support { margin-top: 1.2rem !important; max-width: 820px; color: var(--fx-slate); }

/* ---------- comparison table ---------- */
.fx-table-scroll { overflow-x: auto; border-radius: var(--fx-radius); border: 1px solid var(--fx-line); }
table.fx-compare { width: 100%; border-collapse: collapse; background: var(--fx-white); min-width: 680px; margin: 0; }
table.fx-compare th, table.fx-compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--fx-line); font-size: .97rem; vertical-align: top; }
table.fx-compare thead th { background: var(--fx-navy); color: var(--fx-white); font-weight: 700; font-size: .9rem; }
table.fx-compare thead th.fx-us { background: var(--fx-orange); }
table.fx-compare tbody th { font-weight: 700; color: var(--fx-navy); background: var(--fx-bg-soft); }
table.fx-compare td.fx-us { background: #fff5f0; font-weight: 600; color: var(--fx-ink); }
table.fx-compare tr:last-child td, table.fx-compare tr:last-child th { border-bottom: none; }
.fx-table-note { font-size: .82rem; color: var(--fx-slate); margin-top: 1.2rem !important; }

/* ---------- calculator ---------- */
.fx-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 820px) { .fx-calc { grid-template-columns: 1fr; } }
.fx-calc-inputs { background: var(--fx-white); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 28px; }
.fx-field { margin-bottom: 18px; }
.fx-field label { display: block; font-weight: 600; font-size: .92rem; color: var(--fx-navy); margin-bottom: 6px; }
.fx-field input {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--fx-line); border-radius: 8px; color: var(--fx-ink); background: var(--fx-white);
}
.fx-field input:focus { outline: 2px solid var(--fx-orange); border-color: var(--fx-orange); }
.fx-field .fx-hint { font-size: .8rem; color: var(--fx-slate); margin-top: 5px; }
.fx-calc-result { background: var(--fx-navy); color: var(--fx-white); border-radius: var(--fx-radius); padding: 30px; }
.fx-calc-result .fx-big { font-size: 2.6rem; font-weight: 800; color: var(--fx-white); line-height: 1.1; }
.fx-calc-result .fx-big-lbl { color: #b8c6da; font-size: .95rem; margin-bottom: 22px; }
.fx-calc-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .96rem; }
.fx-calc-line span:last-child { font-weight: 700; }
.fx-calc-method { font-size: .8rem!important; color: #9fb3cc; margin-top: 18px!important; line-height: 1.5; }
/* context sub-header inside the result panel (fuel-budget block) */
.fx-calc-subhead { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb3cc; margin: 4px 0 6px; }
/* rebate callout — rep-routed hook, no number */
.fx-rebate-note { background: rgba(255,255,255,.06); border-left: 4px solid var(--fx-orange); border-radius: 8px; padding: 18px 20px; margin-top: 22px; }
.fx-rebate-note .fx-rn-title { font-weight: 700; color: var(--fx-white); font-size: 1rem; margin-bottom: 6px; }
.fx-rebate-note p { color: #d6e0ee; font-size: .92rem; margin: 0 0 14px; line-height: 1.55; }
.fx-rebate-note .fx-btn { padding: 11px 22px; font-size: .92rem; }
.fx-rebate-note .fx-rn-phone { display: block; margin-top: 10px; font-size: .85rem; color: #9fb3cc; }
.fx-rebate-note .fx-rn-phone a { color: #d6e0ee; }

/* ---------- card grids ---------- */
.fx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .fx-grid-2 { grid-template-columns: 1fr; } }
.fx-card { background: var(--fx-white); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 26px; }
.fx-card h3 { margin-top: 0; }
.fx-card p { font-size: .97rem; color: var(--fx-slate); margin-bottom: 0; }

/* ---------- industry tabs (dark hero-style band, changed 2026-07-14) ----------
   The industries section uses the homepage-hero treatment: solid navy
   gradient by default, or a full-width image under the semi-transparent
   navy overlay when a background image is set on the element. Panels stay
   white cards; tabs go ghost-style with an orange active state. */
.fx-industries { background: linear-gradient(160deg, var(--fx-navy) 0%, var(--fx-navy-90) 100%); color: #d6e0ee; }
.fx-industries h2 { color: var(--fx-white); }
.fx-industries .fx-eyebrow { color: var(--fx-orange); }
.fx-industries .fx-answer { color: #d6e0ee; }
.fx-industries .fx-tab-btn { background: transparent; border-color: rgba(255,255,255,.5); color: var(--fx-white); }
.fx-industries .fx-tab-btn:hover { background: rgba(255,255,255,.12); }
.fx-industries .fx-tab-btn[aria-selected="true"] { background: var(--fx-orange); border-color: var(--fx-orange); color: var(--fx-white); }
.fx-industries :focus-visible { outline-color: var(--fx-white); }

.fx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fx-tab-btn {
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: 10px 18px; border: 1px solid var(--fx-line); background: var(--fx-white);
  color: var(--fx-navy); border-radius: 30px;
}
.fx-tab-btn[aria-selected="true"] { background: var(--fx-navy); color: var(--fx-white); border-color: var(--fx-navy); }
.fx-tab-panel { display: none; background: var(--fx-white); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 28px 30px; }
.fx-tab-panel.fx-active { display: block; }
.fx-tab-panel h3 { margin-top: 0; }
.fx-tab-panel { color: var(--fx-slate); } /* panels are white cards — never inherit the dark band's light text */
.fx-tab-text { color: var(--fx-slate); font-size: .97rem; }
.fx-tab-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .92rem; }

/* scrollable tab strip with cycle arrows (23 industries won't fit one row) */
.fx-tabs-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.fx-tabs-nav .fx-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; margin-bottom: 0; scrollbar-width: none; -ms-overflow-style: none; }
.fx-tabs-nav .fx-tabs::-webkit-scrollbar { display: none; }
.fx-tabs-nav .fx-tab-btn { flex: 0 0 auto; }
.fx-tabs-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--fx-white);
  font-size: 1.5rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.fx-tabs-arrow:hover { background: rgba(255,255,255,.12); }

/* ---------- steps ---------- */
.fx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .fx-steps { grid-template-columns: 1fr; } }
.fx-step { position: relative; padding-top: 8px; }
.fx-step .fx-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--fx-orange);
  color: var(--fx-white); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.fx-step h3 { margin: 0 0 .4rem; }
.fx-step p { color: var(--fx-slate); font-size: .97rem; margin: 0; }
.fx-steps-cta { margin-top: 34px; }

/* ---------- FAQ accordion ---------- */
.fx-faq-list { max-width: 900px; }
.fx-faq-item { border-bottom: 1px solid var(--fx-line); }
.fx-faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.08rem; font-weight: 700; color: var(--fx-navy);
  padding: 22px 40px 22px 0; position: relative;
}
.fx-faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--fx-orange); font-weight: 700; }
.fx-faq-q[aria-expanded="true"]::after { content: "\2212"; }
.fx-faq-a { display: none; padding: 0 0 22px; color: var(--fx-slate); max-width: 900px; }
.fx-faq-a.fx-open { display: block; }

/* ---------- final CTA band ----------
   Orange band with navy button: the section sits directly above the navy
   footer, so it inverts the palette for separation (changed 2026-07-13). */
.fx-cta-band { background: linear-gradient(160deg, var(--fx-orange) 0%, var(--fx-orange-dark) 100%); color: var(--fx-white); text-align: center; }
.fx-cta-band h2 { color: var(--fx-white); }
.fx-cta-band p { color: #ffe9df; max-width: 65ch; margin: 0 auto 1.25rem; font-size: 1.12rem; }
.fx-cta-band .fx-btn { background: var(--fx-navy); }
.fx-cta-band .fx-btn:hover { background: var(--fx-navy-90); }
.fx-cta-band :focus-visible { outline-color: var(--fx-white); }

/* ---------- last-updated line ---------- */
.fx-updated { padding: 18px 0 30px; font-size: .82rem; color: var(--fx-slate); }
.fx-updated p { margin: 0; }

/* ---------- contained mode: sidebar layouts ----------
   Sidebar templates render page content in the narrow #content column
   (~620px, sidebar alongside); full-bleed viewport bands cannot work there.
   Inside #content the fx sections become rounded, column-width panels:
   no viewport breakout, single-column grids, tighter padding. Full-width
   templates (#content-full) and the homepage keep the full-bleed band look. */
#content .fx-section {
  width: 100%;
  margin-left: 0;
  border-radius: var(--fx-radius);
  padding: 34px 26px;
  margin-top: 28px;
  margin-bottom: 28px;
}
#content .fx-section .fx-wrap { max-width: none; padding: 0; }
#content .fx-band, #content .fx-soft { border: 1px solid var(--fx-line); }
#content .fx-hero { padding: 44px 30px; }
#content .fx-cta-band { padding: 40px 26px; }
#content .fx-grid-2, #content .fx-calc, #content .fx-steps,
#content .fx-hero-stats { grid-template-columns: 1fr; }
#content .fx-updated { border: none; padding: 0 26px; margin: 0; }

/* ---------- inner-page heading overrides ----------
   The theme's `.innerpage #content-full h2` / `... h3` rules (style.css
   ~line 1629: font-weight 900, color #042148) outrank plain .fx- selectors
   because of the #content-full ID. These matching-context rules restore fx
   section styling wherever the elements are used on inner pages; the CTA
   band and hero keep their white headings. */
.innerpage #content-full .fx-section h2, .innerpage #content .fx-section h2 { color: var(--fx-navy); font-weight: 800; }
.innerpage #content-full .fx-section h3, .innerpage #content .fx-section h3 { color: var(--fx-navy); font-weight: 700; }
.innerpage #content-full .fx-cta-band h2, .innerpage #content .fx-cta-band h2,
.innerpage #content-full .fx-industries h2, .innerpage #content .fx-industries h2,
.innerpage #content-full .fx-hero h1, .innerpage #content .fx-hero h1 { color: var(--fx-white); }

.fx-section :focus-visible { outline: 3px solid var(--fx-orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fx-btn { transition: none; } }
