/* Mississippi Electrical Transformer Buyer
   Static, mobile-first design system. No external fonts or image URLs. */

:root {
  color-scheme: light;
  --ink: #191b1a;
  --ink-soft: #303330;
  --muted: #5b625d;
  --paper: #f7f6f2;
  --white: #fff;
  --mist: #eeeee9;
  --rule: #cfd1ca;
  --orange: #f1672c;
  --orange-light: #ff9b6b;
  --orange-ink: #a7370b;
  --container: 76rem;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --sticky-space: 9.5rem;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  padding-bottom: calc(var(--sticky-space) + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

p, ul, ol, blockquote {
  margin: 0 0 1.25rem;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 7.3vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.125rem; }

a {
  color: var(--orange-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover { text-decoration-thickness: 0.14em; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff914f;
  outline-offset: 3px;
}

button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Utility masthead */
.topbar {
  position: relative;
  z-index: 5;
  background: #171918;
  color: #fff;
  border-bottom: 1px solid #444743;
}

.topbar-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.8rem 0.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: #fff;
  font-family: var(--display-font);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  background: var(--orange);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.brand-text {
  display: block;
  max-width: 15rem;
  font-size: 0.93rem;
}

.brand-text small,
.brand-text span {
  display: block;
}

.brand-text small {
  margin-top: 0.2rem;
  color: #c6c9c4;
  font-family: var(--body-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.nav {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #777c75 transparent;
  -webkit-overflow-scrolling: touch;
}

.nav-links li { flex: 0 0 auto; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #f4f4f1;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--orange-light); }

.nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.nav-cta:hover { background: #ff9a67; border-color: #ff9a67; }

/* Hero: the HTML supplies the real image; the gradient preserves readability. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 36rem;
  overflow: hidden;
  background: #202421;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 17, 15, 0.95) 0%, rgba(14, 17, 15, 0.82) 42%, rgba(14, 17, 15, 0.32) 100%),
    linear-gradient(0deg, rgba(14, 17, 15, 0.5), transparent 50%);
}

.hero-inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: 5rem 6rem;
}

.eyebrow,
.kicker {
  display: block;
  margin: 0 0 1rem;
  color: var(--orange-ink);
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.65rem;
  height: 0.2rem;
  margin: 0 0.65rem 0.2rem 0;
  background: var(--orange);
}

.hero .eyebrow,
.section-dark .kicker { color: var(--orange-light); }

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: clamp(2.7rem, 5.7vw, 4.75rem);
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 39rem;
  margin-bottom: 1.7rem;
  color: #f1f1ed;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #171918;
}
.button-primary:hover { border-color: #ff9a67; background: #ff9a67; color: #171918; }

.button-outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .button-outline:hover,
.section-dark .button-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero-note {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: #e1e3de;
  font-size: 0.875rem;
  line-height: 1.5;
}
.hero-note a, .hero-credit a { color: #fff; }
.hero-note a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.hero-credit {
  position: absolute;
  left: var(--gutter);
  bottom: 0.7rem;
  z-index: 1;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0;
  padding: 0.2rem 0.45rem;
  background: rgba(18, 20, 19, 0.8);
  color: #f0f0ec;
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: left;
}

/* A consistent two-by-two promise strip, even on a phone. */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.promise-card {
  position: relative;
  min-height: 7rem;
  padding: 1.4rem 1rem 1.2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
  font-family: var(--display-font);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.promise-card::before {
  content: "";
  display: block;
  width: 1.4rem;
  height: 0.22rem;
  margin-bottom: 0.85rem;
  background: var(--orange);
}
.promise-card p, .promise-card h2, .promise-card h3 { margin: 0; font: inherit; }

/* Editorial sections and content patterns */
.section { padding-block: clamp(4rem, 7.5vw, 7rem); }
.section-dark { background: #1d201e; color: #f8f8f4; }
.section-muted { background: var(--mist); }
.section-dark a:not(.button) { color: #ffb18b; }
.section-dark a:not(.button):hover { color: #ffd4bd; }
.section-heading { max-width: 49rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-heading h2:last-child,
.section-heading p:last-child { margin-bottom: 0; }
.lead { max-width: 46rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.copy { max-width: 46rem; }
.copy > :last-child,
.panel > :last-child,
.card > :last-child { margin-bottom: 0; }
.copy p, .panel p, .card p { line-height: 1.7; }

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #d5d8d1;
  border-top: 4px solid var(--orange);
  background: #fff;
  color: var(--ink);
}
.section-dark .panel a:not(.button) { color: var(--orange-ink); }

.list-check { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.list-check li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.8rem;
  border-bottom: 1px solid #d9dbd5;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-ink);
  font-weight: 900;
}
.section-dark .list-check li { border-color: #4b504b; }
.section-dark .list-check li::before { color: var(--orange-light); }
.section-dark .panel .list-check li { border-color: #d9dbd5; }
.section-dark .panel .list-check li::before { color: var(--orange-ink); }

.cards, .number-grid, .link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #d8dad4;
  background: #fff;
  color: var(--ink);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--orange-ink); text-decoration: underline; }
.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.35rem;
  background: #d8dad4;
  object-fit: cover;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.section-dark .card a:not(.button) { color: var(--orange-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--orange-ink);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.link-arrow::after { content: "→"; font-size: 1.2em; }
.link-arrow:hover { text-decoration: underline; }

.number-step {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.number {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--orange-ink);
  font-family: var(--display-font);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-dark .number-step { border-color: #62665f; }
.section-dark .number { color: var(--orange-light); }

.link-grid { gap: 0; border-top: 1px solid var(--rule); }
.link-grid > a,
.link-grid > li > a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.link-grid > a:hover,
.link-grid > li > a:hover { color: var(--orange-ink); text-decoration: underline; }
ul.link-grid { padding: 0; list-style: none; }
.section-dark .link-grid { border-color: #62665f; }
.section-dark .link-grid > a,
.section-dark .link-grid > li > a { border-color: #62665f; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
  padding-block: 1rem;
  color: #555b55;
  font-size: 0.8rem;
  line-height: 1.45;
}
.breadcrumbs a { color: inherit; }
.hero .breadcrumbs { padding-top: 0; color: #f0f1ed; }
.hero .breadcrumbs a { color: #fff; }

/* Quote form */
.form-section { padding-block: clamp(4rem, 7.5vw, 7rem); background: #e9ebe5; }
.form-panel {
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid #d2d5cd;
  border-top: 5px solid var(--orange);
  background: #fff;
  color: var(--ink);
}
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.field { min-width: 0; }
.field label,
.field > span:first-child {
  display: block;
  margin-bottom: 0.4rem;
  color: #232724;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}
.field small, .field .help { display: block; margin-top: 0.35rem; color: #4d554e; font-size: 0.8rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #939b92;
  border-radius: 0;
  background: #fff;
  color: #191b1a;
  line-height: 1.4;
}
textarea { min-height: 9rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #626a63; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus { border-color: #a7370b; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--orange-ink); }
input[type="hidden"] { display: none; }
input[type="submit"], button[type="submit"] { min-height: 3.25rem; }

/* FAQ disclosure without JavaScript */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  min-height: 3.5rem;
  padding: 1.15rem 2.5rem 1.15rem 0;
  list-style: none;
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  color: var(--orange-ink);
  font-family: var(--body-font);
  font-size: 1.5rem;
  font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details > :not(summary) { max-width: 52rem; }
.faq details > :last-child { margin-bottom: 1.35rem; }
.section-dark .faq, .section-dark .faq details { border-color: #62665f; }
.section-dark .faq summary::after { color: var(--orange-light); }

/* Footer and always-available contact controls */
.footer { padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.5rem; background: #151715; color: #e7e9e4; }
.footer a { color: #f3f4f0; }
.footer a:hover { color: var(--orange-light); }
.footer h2, .footer h3, .footer h4 { color: #fff; }
.footer p { max-width: 38rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-grid ul { padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 0.6rem; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.2rem; }

.sticky-call {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.7rem;
  min-height: 4.25rem;
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 3px solid var(--orange);
  background: #171918;
  color: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.sticky-call p { margin: 0; }
.sticky-call a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  color: #fff;
  text-decoration-thickness: 0.08em;
}
.sticky-call a[href^="tel:"] { background: var(--orange); color: #171918; font-weight: 850; text-decoration: none; }
.sticky-call a[href^="tel:"]:hover { background: #ff9a67; }

.floating-stack {
  position: fixed;
  z-index: 29;
  right: 0;
  bottom: calc(var(--sticky-space) + env(safe-area-inset-bottom, 0px) + 0.4rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  max-width: min(34vw, 8.4rem);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}
.float-quote, .float-call, .float-sms {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #fff;
  background: #222522;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.float-quote { border-color: var(--orange); background: var(--orange); color: #171918; }
.float-quote:hover { background: #ff9a67; color: #171918; }
.float-call:hover, .float-sms:hover { background: #424842; color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 40rem) {
  .cards, .number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 56rem) {
  :root { --sticky-space: 6rem; }
  .topbar-inner { flex-wrap: nowrap; padding-block: 0.75rem; }
  .nav { flex: 1 1 auto; justify-content: flex-end; }
  .nav-links { flex: 0 1 auto; }
  .hero { min-height: 42rem; }
  .hero-inner { padding-block: 4.5rem 5.5rem; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .cards, .number-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .sticky-call { font-size: 0.9rem; }
  .floating-stack { max-width: 11rem; }
  .float-quote, .float-call, .float-sms { font-size: 0.8rem; padding-inline: 0.9rem; }
}

@media (max-width: 39.99rem) {
  :root { --sticky-space: 3.75rem; }
  .hero { min-height: 34rem; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(14, 17, 15, 0.91), rgba(14, 17, 15, 0.58)),
      linear-gradient(0deg, rgba(14, 17, 15, 0.55), transparent 70%);
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { width: min(14rem, 100% - min(34vw, 8.4rem) - 0.5rem); }
  .hero-note { max-width: calc(100% - min(34vw, 8.4rem) - 0.5rem); }
  .sticky-call { flex-wrap: nowrap; min-height: 3.5rem; padding: 0.2rem 0.5rem calc(0.2rem + env(safe-area-inset-bottom, 0px)); }
  .sticky-call p, .sticky-call a[href="#quote"] { display: none; }
  .sticky-call a { min-height: 2.65rem; font-size: 0.72rem; }
  .floating-stack { max-width: 7.5rem; }
  body:has(#quote:target) .floating-stack,
  body:has(.form-section:focus-within) .floating-stack { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { padding-bottom: 0; background: #fff; color: #000; }
  .topbar, .sticky-call, .floating-stack { display: none; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero-image, .hero-overlay, .hero-credit { display: none; }
  .hero-inner { padding-block: 1rem; }
  .hero h1, .hero-copy, .hero-note, .hero .eyebrow { color: #000; }
  .section, .form-section { padding-block: 1.5rem; }
  .section-dark, .footer { color: #000; background: #fff; }
  .section-dark a:not(.button), .footer a { color: #000; }
}
