/*
  North Dakota Electrical Transformer Sellers
  Premium industrial editorial system — no external dependencies.
*/

:root {
  color-scheme: light;
  --ink: #17191a;
  --ink-soft: #363b3d;
  --muted: #6d7474;
  --paper: #f4f1ea;
  --white: #fffdf8;
  --line: #d9d5cc;
  --line-dark: #484d4d;
  --orange: #f36b21;
  --orange-dark: #ba4510;
  --orange-pale: #ffe4d1;
  --steel: #b9c0bd;
  --shadow: 0 1.2rem 3rem rgba(15, 18, 18, .10);
  --radius-sm: .2rem;
  --radius: .55rem;
  --max: 76rem;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --ease: 180ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--ink); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 11vw, 6.5rem); max-width: 11ch; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 13ch; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: .55rem; }
p { max-width: 68ch; }

.topbar {
  min-height: 2rem;
  padding: .35rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  background: var(--orange);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.topbar a { font-weight: 900; text-underline-offset: .18em; }
.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.site-header > * { max-width: var(--max); margin-inline: auto; }
.site-header { padding: .95rem var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-mark {
  width: 2.35rem; height: 2.35rem; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  border: 2px solid var(--orange);
  font-size: 1.2rem; font-weight: 950; line-height: 1;
  transform: skew(-8deg);
}
.brand-copy { display: grid; gap: .05rem; }
.brand-copy strong { font-size: .86rem; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.brand-copy span { color: var(--steel); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { margin-top: 1rem; display: flex; align-items: center; gap: .9rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #ebe8df; font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--orange); }

.hero { position: relative; isolation: isolate; min-height: min(46rem, calc(100svh - 5.5rem)); display: grid; align-items: end; background: var(--ink); color: var(--white); }
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media { z-index: -2; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.08); }
.hero-media::after { content: ""; z-index: 1; background: linear-gradient(90deg, rgba(11,14,14,.9) 0%, rgba(11,14,14,.62) 46%, rgba(11,14,14,.13) 100%), linear-gradient(0deg, rgba(11,14,14,.85), transparent 58%); }
.hero-content { width: min(var(--max), 100%); padding: clamp(5rem, 16vh, 11rem) var(--gutter) clamp(3rem, 9vh, 6.5rem); }
.hero-label, .eyebrow { display: block; margin-bottom: 1rem; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 8ch; text-wrap: balance; }
.hero p { max-width: 34rem; color: #e4e0d8; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 850; letter-spacing: .04em; line-height: 1.2; text-align: center; text-decoration: none; transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8240; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.benefits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--white); border-bottom: 1px solid var(--line); }
.benefit { min-height: 8.5rem; padding: 1.35rem var(--gutter); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit:nth-child(even) { border-right: 0; }
.benefit:nth-last-child(-n+2) { border-bottom: 0; }
.benefit strong { display: block; margin-bottom: .35rem; font-size: 1rem; letter-spacing: -.015em; }
.benefit p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }

.section { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.section-inner { width: min(100%, var(--max)); margin-inline: auto; }
.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.split { display: grid; gap: 2rem; }
.prose { color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.dark-section { background: var(--ink); color: var(--white); }
.dark-section .prose, .dark-section .section-heading p { color: #c6cbc8; }
.dark-section .eyebrow { color: var(--orange); }

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { padding: 1.5rem; background: var(--white); }
.card-number { display: block; margin-bottom: 2rem; color: var(--orange-dark); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.card p { color: var(--muted); font-size: .92rem; }
.links-grid { display: grid; gap: .65rem; }
.links-grid a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 750; text-decoration: none; }
.links-grid a::after { content: "↗"; color: var(--orange-dark); font-size: 1.2rem; }
.links-grid a:hover { color: var(--orange-dark); }

.quote-section { background: var(--orange); color: var(--ink); }
.quote-form { padding: clamp(1.2rem, 4vw, 2.5rem); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #aeb3ae; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #777d7a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange-dark); outline: 3px solid rgba(243,107,33,.25); outline-offset: 1px; }
.quote-form .btn { width: 100%; margin-top: .35rem; }
.small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.chip { display: inline-flex; align-items: center; min-height: 1.7rem; padding: .22rem .6rem; border: 1px solid currentColor; border-radius: 999px; color: var(--orange-dark); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.city-grid a { padding: .75rem .8rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.city-grid a:hover { border-color: var(--orange); color: var(--orange-dark); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .2rem; color: var(--orange-dark); font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { margin: 0 0 1.2rem; color: var(--muted); }

.breadcrumbs { width: min(100%, var(--max)); margin-inline: auto; padding: .8rem var(--gutter); color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-underline-offset: .15em; }
.site-footer { padding: 3rem var(--gutter) 7rem; background: #0d0f0f; color: #dfe0d9; }
.footer-grid { width: min(100%, var(--max)); margin-inline: auto; display: grid; gap: 2rem; }
.site-footer .brand { margin-bottom: .8rem; }
.site-footer p { color: #9ea5a2; font-size: .88rem; }
.site-footer h3 { color: var(--white); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #dfe0d9; text-underline-offset: .18em; }
.site-footer a:hover { color: var(--orange); }

.floating-actions { position: fixed; z-index: 30; right: .75rem; bottom: 5.25rem; display: grid; gap: .45rem; }
.floating-actions a { width: 2.85rem; height: 2.85rem; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 .25rem 1rem rgba(0,0,0,.25); font-size: .7rem; font-weight: 950; letter-spacing: .04em; text-decoration: none; }
.floating-quote { background: var(--orange); color: var(--ink); }
.floating-call, .floating-sms { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.floating-actions a:hover { transform: translateY(-2px); }
.sticky-bar { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; min-height: 3.7rem; display: flex; align-items: stretch; justify-content: center; background: var(--ink); color: var(--white); box-shadow: 0 -.3rem 1rem rgba(0,0,0,.15); }
.sticky-bar a { flex: 1 1 0; max-width: 14rem; display: grid; place-items: center; padding: .5rem .75rem; border-right: 1px solid #3e4443; color: inherit; font-size: .77rem; font-weight: 850; text-align: center; text-decoration: none; }
.sticky-bar a:last-child { border-right: 0; background: var(--orange); color: var(--ink); }
.sticky-bar a:hover { background: #353a39; }
.sticky-bar a:last-child:hover { background: #ff8240; }
.visually-hidden { 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: 42rem) {
  .topbar { justify-content: space-between; text-align: left; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .nav { margin: 0; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefit, .benefit:nth-child(even), .benefit:nth-last-child(-n+2) { border-right: 1px solid var(--line); border-bottom: 0; }
  .benefit:last-child { border-right: 0; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr); align-items: start; gap: clamp(3rem, 8vw, 8rem); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field-wide { grid-column: 1 / -1; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 64rem) {
  .site-header { padding-block: 1.1rem; }
  .hero-content { padding-top: 13rem; }
  .hero h1 { font-size: clamp(4.5rem, 8vw, 7.5rem); }
  .benefit { padding: 1.7rem var(--gutter); }
  .floating-actions { right: 1.25rem; bottom: 5.4rem; }
}

@media (max-width: 25rem) {
  .sticky-bar a { padding-inline: .3rem; font-size: .68rem; }
  .floating-actions { right: .5rem; }
  .floating-actions a { width: 2.55rem; height: 2.55rem; }
}

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

@media print {
  .topbar, .nav, .floating-actions, .sticky-bar { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
  .hero-media { display: none; }
  .site-header, .site-footer, .dark-section { background: transparent; color: var(--ink); }
  .btn { border: 1px solid var(--ink); }
}

/* The four home benefits remain a two-by-two set at every screen size. */
.benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit:nth-child(2) { border-right: 0; }
.benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 15ch; font-size: clamp(2.7rem, 6.2vw, 6.4rem); }
.photo-credit { padding: .65rem var(--gutter) 1.5rem; }
.floating-actions .floating-quote { width: auto; min-width: 8rem; height: 2.85rem; border-radius: .2rem; padding: 0 .8rem; }
@media (max-width: 42rem) {
  .floating-actions .floating-quote { min-width: 6.2rem; font-size: .65rem; }
}

/* Keep the key selling actions above the fold on common desktop viewports. */
.hero { min-height: min(43rem, calc(100svh - 5.5rem)); }
.hero-content { padding: clamp(5rem, 10vh, 7rem) var(--gutter) clamp(3rem, 6vh, 5rem); }

.supporting-photo { margin: 0 auto 2rem; padding: 0 var(--gutter); }
.supporting-photo img { width: 100%; max-height: 34rem; object-fit: cover; }
.supporting-photo figcaption { color: var(--muted); font-size: .76rem; margin-top: .45rem; }
@media (max-width: 42rem) {
  .floating-actions { bottom: 4rem; gap: .25rem; }
  .floating-actions a, .floating-actions .floating-quote { height: 2.45rem; }
  .floating-actions a:not(.floating-quote) { width: 2.45rem; }
}

@media (max-width: 42rem) {
  .hero h1 { max-width: 100%; font-size: clamp(2.15rem, 9.8vw, 3.2rem); overflow-wrap: anywhere; }
  .hero-content > p { padding-right: 5.2rem; }
  .hero-actions { max-width: calc(100% - 5.2rem); }
}

.benefit-note { margin: 0; padding: .75rem var(--gutter) 1rem; max-width: none; background: var(--white); color: #555e5a; font-size: .78rem; line-height: 1.5; }
