:root {
  --navy: #12263a;
  --navy-2: #18344f;
  --charcoal: #202326;
  --ink: #24313c;
  --muted: #65717d;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --white: #ffffff;
  --copper: #c87539;
  --copper-dark: #9a5128;
  --sea: #1f6f78;
  --green: #2f5d50;
  --border: #dcd6c9;
  --shadow: 0 18px 48px rgba(18, 38, 58, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 184px; height: 48px; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav a,
.header-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
}
.site-nav a:hover,
.header-phone:hover { color: #ffd3ad; }
.header-phone {
  background: var(--copper);
  padding: 12px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-phone:hover { color: var(--white); background: var(--copper-dark); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  content: "";
}
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(5px); }

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(18,38,58,.94) 0%, rgba(18,38,58,.76) 38%, rgba(18,38,58,.20) 72%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: 72px 0;
}
.hero-copy.narrow { max-width: 790px; }
.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.15rem, 7vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: 0;
}
.hero-copy p,
.article-header .lead {
  font-size: 1.18rem;
  max-width: 650px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.button-row.centered { justify-content: center; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 18px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.button.primary { background: var(--copper); color: var(--white); }
.button.primary:hover { background: var(--copper-dark); color: var(--white); }
.button.secondary { background: rgba(255,255,255,.10); color: var(--white); border-color: rgba(255,255,255,.45); }
.button.secondary:hover { background: var(--white); color: var(--navy); }
.button.light { border-color: rgba(255,255,255,.74); }
.button.full { width: 100%; }

.trust-bar { background: var(--cream); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-grid span {
  padding: 16px 10px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}
.section { padding: 72px 0; }
.band { background: var(--cream); }
.resource-band { background: var(--navy); color: var(--white); }
.resource-band h2,
.resource-band p { color: var(--white); }
.section h2,
.side-panel h2,
.info-card h3,
.article-body h2,
.article-aside h2 {
  margin: 0 0 14px;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: 0;
}
.section h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); }
.section-lead { max-width: 780px; color: var(--muted); font-size: 1.06rem; }
.content-grid,
.quote-grid,
.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 36px;
  align-items: start;
}
.readable { max-width: 820px; }
.side-panel,
.article-aside {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(18,38,58,.08);
}
.check-list,
.step-list {
  padding-left: 1.1rem;
  margin: 16px 0;
}
.check-list li,
.step-list li { margin: 8px 0; }
.small,
.form-note,
.byline { color: var(--muted); font-size: .93rem; }
.notice {
  border-left: 5px solid var(--copper);
  background: #fff7ed;
  padding: 14px 16px;
  font-weight: 700;
  color: #4f321f;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
}
.info-card h3 { font-size: 1.1rem; }
.info-card p { color: var(--muted); margin-top: 0; }
.text-link {
  margin-top: auto;
  font-weight: 800;
}

.compact-hero,
.article-header {
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(18,38,58,.96), rgba(24,52,79,.92)),
    url('/assets/images/hero-oil-tank-st-johns.webp') center right / cover;
}
.legal-hero { background: var(--navy); }
.breadcrumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: .9rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--navy); }

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}
details p { margin-bottom: 0; color: var(--muted); }

.official-links {
  display: grid;
  gap: 12px;
}
.official-links a {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,.06);
}
.official-links strong,
.official-links span { display: block; }
.official-links span { color: rgba(255,255,255,.78); margin-top: 4px; }

.quote-section { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-row,
.radio-group,
.consent { margin-bottom: 15px; }
label,
legend {
  display: block;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 6px;
}
label span { color: var(--copper-dark); }
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdc7cf;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
input:focus,
select:focus,
textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31,111,120,.15); outline: none; }
.radio-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.radio-group label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 6px 14px 4px 0;
  font-weight: 700;
}
.radio-group input,
.consent input { width: auto; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 800;
}
.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f4b6b6;
}
.form-status.is-success {
  display: block;
  background: #eaf6ef;
  color: #1f5f39;
  border: 1px solid #abd6bb;
}

.article-header { padding: 72px 0; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  padding: 56px 0;
}
.article-body section + section { margin-top: 34px; }
.article-body p { font-size: 1.05rem; }
.article-aside {
  position: sticky;
  top: 96px;
}
.article-aside ul { padding-left: 1.1rem; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.contact-cards a {
  display: block;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  background: rgba(255,255,255,.08);
}
.contact-cards span,
.contact-cards strong { display: block; overflow-wrap: anywhere; }
.final-cta {
  padding: 72px 0;
  text-align: center;
  color: var(--white);
  background: var(--green);
}
.final-cta h2 {
  margin: 0 auto 12px;
  max-width: 760px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
}
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.78);
  padding: 54px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
}
.footer-logo { margin-bottom: 14px; }
.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.mobile-call-bar { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--navy-2);
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .header-phone { display: none; }
  .content-grid,
  .quote-grid,
  .resource-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .card-grid.three,
  .card-grid.four,
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside { position: static; }
}

@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  .container { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 64px; }
  .brand img { width: 156px; height: auto; }
  .site-nav { inset: 64px 0 auto 0; }
  .hero {
    min-height: 620px;
    align-items: end;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(18,38,58,.18) 0%, rgba(18,38,58,.92) 52%, rgba(18,38,58,.98) 100%);
  }
  .hero-media img { object-position: 68% center; }
  .hero-copy { padding: 150px 0 42px; }
  .hero h1,
  .page-hero h1,
  .article-header h1 { font-size: clamp(2rem, 12vw, 3.1rem); }
  .hero-copy p { font-size: 1.03rem; }
  .button-row,
  .contact-cards { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .section,
  .article-header { padding: 48px 0; }
  .card-grid,
  .card-grid.three,
  .card-grid.four,
  .trust-grid { grid-template-columns: 1fr; }
  .info-card { min-height: auto; }
  .quote-form,
  .side-panel { padding: 20px; }
  .footer-bottom { display: block; }
  .mobile-call-bar {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--copper);
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(0,0,0,.25);
  }
}
