/* Minnesota Electrical Transformer Buyers — shared, static-site styles */
:root {
  color-scheme: light;
  --ink: #161a1c;
  --ink-deep: #0e1112;
  --ink-soft: #282e30;
  --paper: #ffffff;
  --warm: #f2f1ed;
  --line: #d8d9d5;
  --muted: #505b5d;
  --orange: #e95d0f;
  --orange-dark: #b94100;
  --rail: 3.25rem;
  --wrap: 76rem;
  --gutter: 1.125rem;
  --radius: 0.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

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

html { background: var(--ink-deep); }

body {
  width: calc(100% - var(--rail));
  margin: 0;
  padding: 0 0 11rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #ff8b32; outline-offset: 3px; }
[id] { scroll-margin-top: 2rem; }

h1, h2, h3, h4, p, figure, blockquote { margin-top: 0; }
h1, h2, h3, h4 {
  color: inherit;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-weight: 800; }
h2 { font-size: clamp(2rem, 3.7vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
p { margin-bottom: 1.15rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

/* Header and no-script navigation */
.topbar { background: var(--ink-deep); color: #fff; border-top: 4px solid var(--orange); }
.topbar-inner {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink-deep);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.08em;
}
.brand-lines { display: grid; gap: 0.18rem; font-weight: 900; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.035em; }
.brand-lines small, .brand-lines span:last-child { font-size: 0.68rem; letter-spacing: 0.12em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; }
.nav-links a { display: inline-block; padding-block: 0.4rem; color: #fff; font-size: 0.79rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #ffad70; }
.nav-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.65rem 0.9rem; background: var(--orange); color: #111; font-size: 0.78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.035em; }
.nav-cta:hover { background: #ff8235; }
.menu-toggle { min-height: 2.75rem; padding: 0.55rem 0.8rem; border: 1px solid #899192; color: #fff; font-weight: 800; cursor: pointer; }
details > .menu-toggle { list-style-position: inside; }
.nav details[open] > .nav-links { padding-block: 0.6rem; }

.breadcrumbs { background: #f2f1ed; color: #4a5556; font-size: 0.78rem; line-height: 1.45; }
.breadcrumbs .container { padding-block: 0.75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.55rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.55rem; color: #919b9a; }
.breadcrumbs a { color: #344244; }

/* Big photographic introduction */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 35rem; overflow: hidden; background: #202a2c; color: #fff; }
.hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(9, 14, 15, 0.94) 0%, rgba(9, 14, 15, 0.76) 48%, rgba(9, 14, 15, 0.28) 100%), linear-gradient(0deg, rgba(9, 14, 15, 0.62), transparent 55%); pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(7, 12, 13, 0.55), transparent 70%); pointer-events: none; }
.hero-content { position: relative; width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; padding-block: 5.25rem 4.75rem; }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; color: #c14d0a; font-size: 0.75rem; line-height: 1.35; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: block; width: 1.5rem; min-width: 1.5rem; height: 0.2rem; background: var(--orange); }
.hero .eyebrow, .section-dark .eyebrow, .quote-section .eyebrow { color: #ffab70; }
.hero-title { max-width: 15ch; margin-bottom: 1.35rem; color: #fff; font-size: clamp(2.65rem, 6.2vw, 6.15rem); line-height: 0.98; letter-spacing: -0.055em; text-wrap: balance; }
.hero-copy { max-width: 42rem; margin-bottom: 1.7rem; color: #f2f3f1; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: stretch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0.8rem 1.2rem; border: 2px solid transparent; border-radius: var(--radius); font-size: 0.86rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #101314; }
.btn-primary:hover { background: #ff8435; border-color: #ff8435; }
.btn-outline { border-color: currentColor; background: transparent; color: inherit; }
.btn-outline:hover { background: rgba(128, 128, 128, 0.16); }
.btn-light { border-color: #fff; background: #fff; color: var(--ink); }
.btn-light:hover { background: #e7e8e5; border-color: #e7e8e5; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 0.6rem; max-width: 14rem; margin: 0; color: #fff; font-size: 0.65rem; line-height: 1.3; text-align: right; text-shadow: 0 1px 4px #000; }

/* Four promise boxes: two by two at every width. */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #4b5050; }
.promises > .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; grid-column: 1 / -1; }
.promise { min-width: 0; min-height: 7rem; padding: 1.25rem 1rem; background: var(--ink-soft); color: #fff; font-size: clamp(0.78rem, 1.15vw, 1rem); font-weight: 900; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.035em; overflow-wrap: anywhere; }
.promise p, .promise h2, .promise h3 { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.promise-number { display: block; margin-bottom: 0.8rem; color: #ff9c5d; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; }

/* Editorial content and equipment cards */
.section { padding-block: clamp(3.75rem, 7vw, 7rem); }
.section-dark { background: var(--ink); color: #fff; }
.section-soft { background: var(--warm); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.2rem; }
.section-head h2 { max-width: 20ch; margin-bottom: 0; }
.section-number { display: block; color: var(--orange-dark); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.section-dark .section-number { color: #ffab70; }
.section-intro { max-width: 46rem; color: var(--muted); font-size: 1.06rem; }
.section-dark .section-intro { color: #d5ddda; }
.intro-grid { display: grid; gap: 1.5rem 3rem; }
.intro-lead { max-width: 25ch; font-size: clamp(1.65rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.035em; }
.body-copy { max-width: 66ch; color: #394547; }
.section-dark .body-copy { color: #e2e6e4; }
.link-arrow { display: inline-block; color: #a93800; font-size: 0.88rem; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--orange); }
.link-arrow:hover { color: #6d2600; }
.section-dark .link-arrow { color: #ffab70; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.card { min-width: 0; display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid #d9ddda; }
.card-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #c6ccca; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
.card-tag { margin-bottom: 0.7rem; color: #a63a00; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.card-title { margin-bottom: 0.65rem; font-size: 1.35rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-copy { flex: 1; color: #465254; font-size: 0.96rem; }
.card-link { margin-top: 0.8rem; color: #a63a00; font-size: 0.84rem; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--orange); }
.card-link:hover { color: #6d2600; }
.split { display: grid; gap: 2rem; align-items: center; }
.photo-panel { position: relative; min-height: 17rem; overflow: hidden; background: #aab1ad; }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process-grid { display: grid; gap: 1px; background: #d2d7d3; border: 1px solid #d2d7d3; }
.process-step { min-width: 0; padding: 1.5rem; background: #fff; }
.process-step h3 { font-size: 1.3rem; }
.process-number { display: block; margin-bottom: 1.5rem; color: #b94100; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; }
.city-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.city-link { min-width: 0; padding: 0.8rem 0.9rem; border: 1px solid #d6dbd7; background: #fff; color: var(--ink); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
.city-link:hover { border-color: var(--orange); color: #8c3000; }

/* Longer service, location, and guide pages */
.content-layout { display: grid; gap: 2.5rem; align-items: start; }
.content-main, .content-aside { min-width: 0; }
.content-main { max-width: 75ch; }
.article-block { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.article-block:first-child { padding-top: 0; }
.article-block h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.article-block h3 { margin-top: 1.75rem; }
.article-block p, .article-block li { color: #394547; }
.content-aside { padding: 1.5rem; background: var(--warm); border-top: 4px solid var(--orange); }
.content-aside h2, .content-aside h3 { font-size: 1.3rem; }
.content-aside a { color: #803100; font-weight: 700; }
.check-list { display: grid; gap: 0.75rem; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 0; padding-left: 1.7rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #b94100; font-weight: 900; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.topic-grid a { min-width: 0; padding: 0.8rem; background: #fff; border: 1px solid #d6dbd7; color: #273334; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #59605f; }
.stats > * { min-width: 0; padding: 1.2rem; background: var(--ink-soft); color: #fff; }
.stats strong { display: block; color: #ff9c5d; font-size: 1.6rem; line-height: 1.1; }

/* Quote form */
.quote-section { padding-block: clamp(3.75rem, 7vw, 7rem); background: var(--ink-deep); color: #fff; }
.quote-grid { display: grid; gap: 2rem 4rem; align-items: start; }
.quote-intro h2 { max-width: 18ch; }
.quote-intro p { max-width: 50ch; color: #d6dedb; }
.quote-form { min-width: 0; padding: clamp(1.15rem, 2.5vw, 2rem); background: #fff; color: var(--ink); border-top: 5px solid var(--orange); }
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 0.35rem; }
.field label, .quote-form label { color: #222b2d; font-size: 0.86rem; font-weight: 800; line-height: 1.4; }
.field input, .field select, .field textarea, .quote-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .quote-form select, .quote-form textarea {
  width: 100%; min-width: 0; min-height: 3rem; padding: 0.75rem 0.8rem; border: 1px solid #8f9b98; border-radius: 0; background: #fff; color: #111719; font-size: 1rem; line-height: 1.4;
}
.field textarea, .quote-form textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .quote-form input::placeholder, .quote-form textarea::placeholder { color: #596764; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9a3500; }
.quote-form button, .quote-form input[type="submit"] { min-height: 3.1rem; cursor: pointer; }
.form-note { margin-top: 1rem; color: #53615e; font-size: 0.8rem; line-height: 1.5; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.faq-item summary { cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.faq-item details[open] summary { margin-bottom: 0.8rem; }

/* Footer */
.footer { padding-block: 3.5rem 2rem; background: #171c1d; color: #edf0ed; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { max-width: 30rem; }
.footer h2, .footer h3 { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer p, .footer li { color: #d2d9d6; font-size: 0.92rem; }
.footer-links { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer a { color: #f6f7f5; }
.footer a:hover { color: #ffad70; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #515a59; color: #bdc7c3; font-size: 0.78rem; }

/* The fixed rail has dedicated space beside the document, including forms. */
.floating-contact { position: fixed; z-index: 60; top: 50%; right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; transform: translateY(-50%); }
.floating-contact a { display: flex; align-items: center; justify-content: center; width: 3rem; min-height: 3rem; padding: 0.3rem; color: #fff; font-size: 0.69rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24); }
.floating-contact a:hover { filter: brightness(1.12); }
.floating-contact .floating-quote { min-height: 9rem; padding: 0.75rem 0.35rem; background: var(--orange); color: #111; font-size: 0.74rem; letter-spacing: 0.045em; text-transform: uppercase; writing-mode: vertical-rl; }
.floating-call { background: #222a2b; border: 1px solid #75817d; font-size: 1.15rem !important; }
.floating-sms { min-height: 8rem !important; background: #344041; border: 1px solid #75817d; writing-mode: vertical-rl; white-space: nowrap; }
.floating-contact svg { width: 1.3rem; height: 1.3rem; }

/* Call, quote, and photo-text actions remain reachable at the bottom. */
.sticky-bar { position: fixed; z-index: 70; inset: auto 0 0; width: 100%; background: #101516; color: #fff; border-top: 3px solid var(--orange); box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2); }
.sticky-inner { width: min(calc(100% - 1rem), 80rem); min-height: 4rem; margin-inline: auto; padding-block: 0.45rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.5rem; }
.sticky-inner a { display: inline-flex; min-height: 2.6rem; align-items: center; justify-content: center; padding: 0.55rem 0.75rem; font-size: 0.75rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; }
.sticky-call { color: #fff; }
.sticky-text { color: #d5ddda; font-size: 0.77rem; line-height: 1.25; }
.sticky-quote { background: var(--orange); color: #111; }
.sticky-quote:hover { background: #ff8435; }
.sticky-inner a[href^="sms:"] { color: #fff; border: 1px solid #899691; }
.sticky-inner a[href^="sms:"]:hover { background: #344041; }

@media (min-width: 42rem) {
  :root { --gutter: 2rem; }
  body { padding-bottom: 8rem; }
  .hero { min-height: 39rem; }
  .promise { min-height: 8.5rem; padding: 1.75rem 2rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-inner { justify-content: flex-end; }
  .sticky-text { margin-right: auto; }
}

@media (min-width: 64rem) {
  :root { --gutter: 2.5rem; }
  .hero { min-height: 41rem; }
  .hero-content { padding-block: 7rem 6.5rem; }
  .section-head { grid-template-columns: 1fr minmax(15rem, 0.65fr); align-items: end; }
  .section-head .section-number { grid-column: 1 / -1; }
  .intro-grid { grid-template-columns: 0.9fr 1.1fr; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .photo-panel { min-height: 28rem; }
  .content-layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 4rem; }
  .quote-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .city-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(17rem, 1.5fr) repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 41.999rem) {
  .topbar-inner { align-items: flex-start; gap: 0.5rem; padding-block: 0.65rem; }
  .nav { width: 100%; min-width: 0; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 0.1rem 0.8rem; }
  .nav-links a { flex: 0 0 auto; padding-block: 0.22rem; white-space: nowrap; }
  .nav-cta { display: none; }
  .hero { min-height: 32rem; }
  .hero-scrim { background: linear-gradient(0deg, rgba(9, 14, 15, 0.92), rgba(9, 14, 15, 0.5)); }
  .hero-content { padding-block: 3rem 3.5rem; }
  .button-row .btn { flex: 1 1 auto; }
  .sticky-inner { flex-wrap: nowrap; gap: 0.35rem; }
  .sticky-inner .sticky-text, .sticky-inner .sticky-quote { display: none; }
  .sticky-inner .sticky-call, .sticky-inner a[href^="sms:"] { flex: 1 1 0; min-width: 0; min-height: 2.5rem; padding-inline: 0.35rem; }
}

@media (max-height: 34rem) {
  .floating-contact { top: 0.25rem; transform: none; gap: 0.1rem; }
  .floating-contact .floating-quote { min-height: 3rem; font-size: 0.58rem; line-height: 1; writing-mode: horizontal-tb; }
  .floating-contact a { min-height: 2.6rem; }
}

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