/* ===========================================================================
   TCB Gas Services LLC — bold industrial theme
   Palette pulled from the logo: deep navy, steel blue, light-blue flame.
   =========================================================================== */

:root {
  --navy-950: #14222f;
  --navy-900: #1b2c3d;
  --navy-800: #22384c;
  --navy-700: #2c4868; /* primary navy from logo wordmark */
  --steel-600: #3b6b9a; /* secondary blue */
  --steel-400: #5a8bbd;
  --flame-300: #7fb8dd; /* light-blue flame */
  --flame-200: #a9d3eb;
  --ink: #16212b;
  --paper: #f4f6f9;
  --paper-2: #e8edf3;
  --white: #ffffff;
  --muted: #5d6b7a;
  --line: #d7dee7;
  --danger: #b3331f;
  --danger-bg: #fbe8e4;
  --ok: #1f6b46;
  --ok-bg: #e3f3ea;
  --shadow: 0 14px 40px rgba(20, 34, 47, 0.18);
  --radius: 10px;
  --maxw: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

a { color: var(--steel-600); text-decoration: none; }
a:hover { color: var(--navy-700); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--navy-700);
  box-shadow: 0 2px 10px rgba(20, 34, 47, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 66px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--navy-800); font-weight: 600; padding: 10px 14px;
  border-radius: 6px; letter-spacing: 0.02em;
}
.nav-link:hover { background: var(--paper-2); color: var(--navy-900); }
.nav-link.is-active { color: var(--steel-600); }
.nav-cta {
  margin-left: 8px; background: var(--navy-700); color: #fff !important;
  font-weight: 700; padding: 10px 18px; border-radius: 6px;
  border: 2px solid var(--navy-700);
}
.nav-cta:hover { background: var(--steel-600); border-color: var(--steel-600); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy-800); border-radius: 2px; }

/* ---- Flash --------------------------------------------------------------- */
.flash { font-weight: 600; }
.flash > .container { padding-top: 12px; padding-bottom: 12px; }
.flash-notice { background: var(--ok-bg); color: var(--ok); border-bottom: 2px solid var(--ok); }
.flash-alert { background: var(--danger-bg); color: var(--danger); border-bottom: 2px solid var(--danger); }
.flash-hide { display: none; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; font-weight: 700; cursor: pointer;
  padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
  font-size: 1.05rem; letter-spacing: 0.02em; transition: all 0.15s ease;
}
.btn-primary { background: var(--flame-300); color: var(--navy-950); border-color: var(--flame-300); }
.btn-primary:hover { background: var(--flame-200); border-color: var(--flame-200); color: var(--navy-950); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-dark { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn-dark:hover { background: var(--steel-600); border-color: var(--steel-600); color: #fff; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; color: #eaf2fa; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(127,184,221,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-950) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,0.6) 40px 41px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.6) 40px 41px);
}
.hero-inner { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 96px; max-width: 760px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 700; color: var(--flame-300);
  border: 1px solid rgba(127,184,221,0.5); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-centered { text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--flame-300); }
.hero p.lead { font-size: 1.2rem; color: #c6d6e6; margin-bottom: 30px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
  color: #bcd0e2; font-weight: 600; font-size: 0.95rem;
}
.hero-badges span::before { content: "\2713  "; color: var(--flame-300); font-weight: 800; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: #dce7f1; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  font-weight: 700; color: var(--steel-600); margin-bottom: 10px;
}
.section-navy .section-head .kicker { color: var(--flame-300); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #aebfd0; }

/* ---- Trust bar ----------------------------------------------------------- */
.trustbar { background: var(--navy-700); color: #fff; }
.trustbar .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 40px; padding-top: 18px; padding-bottom: 18px; text-align: center;
}
.trustbar strong { color: var(--flame-200); }

/* ---- Service cards ------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--flame-300); border-radius: var(--radius) 0 0 var(--radius);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Cards are always on a light surface, so keep their text dark even when the
   surrounding section is navy (which otherwise forces h3 to white). */
.card h3 { font-size: 1.2rem; color: var(--navy-900); }
.card p { color: var(--muted); margin: 0; }
.section-navy .card h3 { color: var(--navy-900); }
.section-navy .card p { color: var(--muted); }

/* ---- Steps --------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--flame-300); color: var(--navy-950);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---- Certifications ------------------------------------------------------ */
.cert-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cert-card {
  flex: 1 1 240px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 26px; display: flex; align-items: center; gap: 18px;
}
.cert-card img { height: 46px; width: auto; }
.cert-card .cert-text strong { display: block; color: var(--navy-900); }
.cert-card .cert-text span { color: var(--muted); font-size: 0.92rem; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(800px 300px at 90% 10%, rgba(127,184,221,0.18), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color: #fff; border-radius: 14px; padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d6e6; max-width: 560px; margin: 0 auto 26px; }

/* ---- About --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.facts dt { font-weight: 700; color: var(--navy-800); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--steel-600); font-weight: 800;
}

/* ---- Contact ------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .contact-item { margin-bottom: 22px; }
.contact-info .contact-item strong { display: block; color: var(--navy-800); margin-bottom: 2px; }
.contact-info a { font-size: 1.1rem; font-weight: 600; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--steel-600); box-shadow: 0 0 0 3px rgba(59,107,154,0.15); }
textarea.form-control { resize: vertical; min-height: 140px; }
.help-text { color: var(--muted); font-size: 0.85rem; }
.field-error { color: var(--danger); font-size: 0.88rem; margin-top: 5px; font-weight: 600; }
.form-control.has-error { border-color: var(--danger); }
.error-summary {
  background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 22px;
}
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #b6c6d6; padding-top: 40px; }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  padding-top: 52px; padding-bottom: 30px;
}
.footer-name { color: #fff; font-weight: 800; font-size: 1.25rem; margin: 0 0 6px; }
.footer-tagline { margin: 0; color: #8ea3b6; }
.footer-contact { text-align: right; }
.footer-contact p { margin: 0 0 6px; }
.footer-contact a { color: var(--flame-200); font-weight: 600; }
.footer-areas { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; padding-bottom: 10px; }
.footer-areas-title { color: #fff; font-weight: 700; margin: 0 0 14px; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-areas ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px;
}
.footer-areas a { color: #93a8bc; font-size: 0.9rem; }
.footer-areas a:hover { color: var(--flame-200); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; padding-bottom: 30px; margin-top: 20px; }

@media (max-width: 860px) { .footer-areas ul { grid-template-columns: repeat(2, 1fr); } }
.footer-bottom p { margin: 0; font-size: 0.9rem; color: #7e93a6; }
.footer-credit { color: var(--flame-200); font-weight: 600; }
.footer-credit:hover { color: #fff; text-decoration: underline; }

/* ---- Responsive ---------------------------------------------------------- */
/* Guard against any stray horizontal overflow on small screens. */
html, body { overflow-x: hidden; }
h1, h2, h3 { overflow-wrap: break-word; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .split, .contact-layout { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 3px solid var(--navy-700);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; text-align: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .header-inner { min-height: 64px; }
  .brand-logo { height: 54px; }

  .section { padding: 52px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 60px; }
  .hero p.lead { font-size: 1.05rem; }

  /* Stack call-to-action buttons full width and tappable. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .trustbar .container { flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; }

  .card, .facts, .cert-card { padding: 22px; }
  .cta-band { padding: 32px 22px; }
  .cta-band .btn { width: 100%; }
  .form-card { padding: 22px; }

  .section-head { margin-bottom: 32px; }
  .section-head h2, .hero h1 { letter-spacing: -0.02em; }
}
