/* New York Electrical Transformer Buyers — shared design system */
:root {
  --ink: #181c1b;
  --black: #101312;
  --slate: #282e2c;
  --paper: #f4f4ef;
  --white: #fff;
  --line: #d4d7d1;
  --muted: #5e6662;
  --orange: #f2702b;
  --orange-dark: #d85714;
  --max: 1320px;
  --gutter: clamp(1.25rem, 4.7vw, 5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
body:has(.quote-modal:target) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--black); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { letter-spacing: -.045em; }
.container, .header-container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -6rem; padding: .75rem 1rem; color: var(--white); background: var(--black); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The contact strip and navigation stay together as the visitor scrolls. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.utility-bar { background: var(--black); color: var(--white); }
.utility-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-note, .utility-links { font-size: .625rem; font-weight: 800; letter-spacing: .11em; }
.utility-note { display: flex; align-items: center; gap: .55rem; color: #d2d6d3; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.utility-links { display: flex; align-items: center; gap: 1.8rem; }
.utility-links a { text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.utility-links a:hover, .utility-links a:focus-visible { color: var(--orange); }
.utility-label { color: var(--orange); margin-right: .3rem; }
.nav-row { min-height: 86px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; gap: .8rem; align-items: center; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand-mark { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 8px; background: var(--orange); }
.brand-mark span { display: block; height: 3px; background: var(--black); transform: skewY(-15deg); }
.brand-mark span:nth-child(2) { width: 75%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.15rem; font-weight: 900; letter-spacing: -.035em; }
.brand-text > span { margin-top: .3rem; font-size: .49rem; font-weight: 800; letter-spacing: .085em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.desktop-nav a { font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { color: var(--orange-dark); }
.header-quote { min-height: 48px !important; font-size: .73rem !important; white-space: nowrap; }
.mobile-menu { display: none; }
.button { display: inline-flex; min-height: 56px; padding: .85rem 1.25rem; align-items: center; justify-content: center; gap: 1.5rem; border: 1px solid transparent; border-radius: 0; font-size: .79rem; font-weight: 800; letter-spacing: .015em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button span[aria-hidden] { font-size: 1.1rem; line-height: 1; }
.button--orange { background: var(--orange); color: var(--black); }
.button--orange:hover { background: #ff8a4e; }
.button--outline-light { border-color: rgba(255,255,255,.7); color: var(--white); background: rgba(0,0,0,.15); }
.button--outline-light:hover { background: var(--white); color: var(--black); }
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { background: var(--orange); color: var(--black); }
.button--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.button--outline:hover { color: var(--white); background: var(--ink); }

/* A real, dimensioned photograph is supplied by the generator on every page. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(570px, 48vw, 710px); color: var(--white); background: #303735; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -3; object-fit: cover; object-position: center; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(10,15,13,.91) 0%, rgba(10,15,13,.79) 35%, rgba(10,15,13,.3) 75%, rgba(10,15,13,.15) 100%), linear-gradient(0deg, rgba(10,15,13,.46), transparent 42%); }
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 6rem 7.25rem; }
.hero-copy { max-width: 785px; }
.hero-eyebrow, .section-kicker, .eyebrow { color: var(--orange-dark); font-size: .7rem; font-weight: 900; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; color: #ff9b62; }
.eyebrow-rule { width: 26px; height: 3px; background: var(--orange); }
.hero h1 { margin-bottom: 1.4rem; max-width: 16ch; font-size: clamp(3.35rem, 6.6vw, 6.6rem); font-weight: 900; line-height: .98; text-transform: uppercase; overflow-wrap: anywhere; }
.hero h1.long-title { max-width: 21ch; font-size: clamp(2.5rem, 4.8vw, 4.8rem); overflow-wrap: normal; hyphens: auto; }
.hero-lede { max-width: 570px; margin-bottom: 2rem; color: #e0e4e0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.hero-text-link { padding: .75rem .4rem; color: var(--white); font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.hero-text-link:hover { color: var(--orange); }
.hero-stamp { display: flex; align-items: center; gap: .65rem; align-self: flex-end; margin: 0 1rem 2rem 2rem; opacity: .8; }
.hero-stamp span:first-child { font-size: 3rem; font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.hero-stamp span:last-child { padding-left: .65rem; border-left: 2px solid var(--orange); font-size: .57rem; font-weight: 800; line-height: 1.3; letter-spacing: .11em; }
.hero-bottomline { position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); font-size: .59rem; font-weight: 800; letter-spacing: .13em; }

/* Four home benefits: intentionally a two-by-two grid at all widths. */
.benefits, .home-benefits, .benefits-section { background: var(--orange); color: var(--black); }
.benefits-grid, .home-benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit, .benefit-item { min-height: 91px; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid rgba(16,19,18,.24); font-size: clamp(.78rem, 1.15vw, 1rem); font-weight: 900; letter-spacing: .035em; line-height: 1.2; }
.benefit:nth-child(odd), .benefit-item:nth-child(odd) { border-right: 1px solid rgba(16,19,18,.24); }
.benefit:nth-last-child(-n+2), .benefit-item:nth-last-child(-n+2) { border-bottom: 0; }
.benefit::before, .benefit-item::before { content: "+"; display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid currentColor; font-size: 1.1rem; font-weight: 400; }

/* Breadcrumbs and reusable page components. */
.breadcrumbs, .breadcrumb { padding: 1.2rem 0; color: #68716c; font-size: .74rem; font-weight: 700; }
.breadcrumbs ol, .breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before, .breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #a8afa9; }
.breadcrumbs a:hover, .breadcrumb a:hover { color: var(--orange-dark); }
.section { padding-block: clamp(4rem, 7vw, 7rem); }
.section--light, .bg-light { background: var(--white); }
.section--muted, .bg-gray { background: #e8eae5; }
.section--dark, .bg-dark { background: var(--ink); color: var(--white); }
.section--orange { background: var(--orange); color: var(--black); }
.section-header, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-header > div, .section-heading > div { max-width: 740px; }
.section-header h2, .section-heading h2, .section > .container > h2, .content h2, .prose h2 { margin-bottom: .75rem; font-size: clamp(2.2rem, 4.1vw, 4.2rem); font-weight: 900; }
.section-header p:last-child, .section-heading p:last-child { margin-bottom: 0; }
.section-intro, .lead { max-width: 690px; color: var(--muted); font-size: 1.075rem; }
.section--dark .section-intro, .section--dark .lead { color: #c2c8c4; }
.grid, .card-grid, .process-grid, .directory-grid { display: grid; gap: 1rem; }
.grid--2, .grid-2, .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3, .grid-3, .card-grid, .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4, .grid-4, .directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-column { display: grid; gap: clamp(2rem, 6vw, 6rem); }
.card, .process-card, .directory-card { position: relative; padding: clamp(1.5rem, 2.5vw, 2.3rem); border: 1px solid #d9ddd7; background: var(--white); color: var(--ink); }
.card h3, .process-card h3, .directory-card h3 { font-size: 1.3rem; font-weight: 900; letter-spacing: -.025em; }
.card p:last-child, .process-card p:last-child, .directory-card p:last-child { margin-bottom: 0; }
.card a:not(.button), .directory-card a, .text-link { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }
.card a:not(.button):hover, .directory-card a:hover, .text-link:hover { color: var(--orange-dark); }
.card--dark { background: var(--slate); color: var(--white); border-color: #4a514e; }
.card--dark a:not(.button) { color: var(--white); }
.card-number, .process-number, .step-number { display: block; margin-bottom: 2.5rem; color: var(--orange-dark); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.process-card { border-top: 4px solid var(--orange); }
.content, .prose { max-width: 850px; }
.content p, .prose p { color: #414a45; }
.content h2:not(:first-child), .prose h2:not(:first-child) { margin-top: 2.5rem; }
.content h3, .prose h3 { margin-top: 1.75rem; font-size: 1.3rem; }
.list, .check-list, .directory-list { padding: 0; margin: 1.5rem 0; list-style: none; }
.list li, .check-list li { position: relative; padding: .75rem 0 .75rem 1.7rem; border-bottom: 1px solid var(--line); }
.list li::before, .check-list li::before { content: "+"; position: absolute; left: 0; color: var(--orange-dark); font-weight: 900; }
.directory-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.directory-list a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item, .faq-list details { border-bottom: 1px solid var(--line); }
.faq-item summary, .faq-list summary { position: relative; padding: 1.4rem 2rem 1.4rem 0; font-size: 1.07rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .faq-list summary::after { content: "+"; position: absolute; right: .2rem; color: var(--orange-dark); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after, .faq-list details[open] summary::after { content: "−"; }
.faq-item p, .faq-list details p { max-width: 760px; padding-bottom: .8rem; color: #49534d; }
.quote-cta, .cta-banner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 4vw, 4rem); background: var(--ink); color: var(--white); }
.quote-cta h2, .cta-banner h2 { margin-bottom: .6rem; font-size: clamp(2rem, 4vw, 3.8rem); }
.quote-cta p, .cta-banner p { margin-bottom: 0; color: #cbd1cc; }
.quote-cta .button, .cta-banner .button { flex: 0 0 auto; }

/* The rail is always a quick route to the three contact methods. */
.contact-rail { position: fixed; z-index: 40; top: 46%; right: 0; display: flex; flex-direction: column; align-items: stretch; width: 148px; box-shadow: 0 5px 24px rgba(0,0,0,.2); }
.contact-rail a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 50px; padding: .7rem .8rem; font-size: .7rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
.rail-quote { background: var(--orange); color: var(--black); }
.rail-quote:hover { background: #ff8a4e; }
.rail-call { justify-content: center !important; background: var(--black); color: var(--white); }
.rail-call:hover { background: #38423d; }
.rail-text { background: var(--white); color: var(--ink); }
.rail-text:hover { background: #e6e9e4; }

/* Footer */
.site-footer { padding-top: clamp(3.5rem, 6vw, 6rem); background: var(--black); color: var(--white); }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 3.5rem; border-bottom: 1px solid #454b48; }
.footer-top .section-kicker { color: #ff9b62; }
.footer-top h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5rem); text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; padding: 3.5rem 0; }
.brand--footer { color: var(--white); }
.footer-about p { max-width: 320px; margin: 1.4rem 0 0; color: #aeb8b1; font-size: .9rem; }
.footer-grid h3 { margin-bottom: 1rem; color: #aeb8b1; font-size: .63rem; letter-spacing: .15em; }
.footer-grid > div:not(:first-child) a { display: block; width: fit-content; margin: .6rem 0; font-size: .84rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid #454b48; color: #a8b1aa; font-size: .57rem; font-weight: 800; letter-spacing: .12em; }

/* CSS-only target dialog. The explicit close control is available to keyboard users. */
.quote-modal { display: none; position: fixed; z-index: 100; inset: 0; overflow-y: auto; padding: 2rem 1rem; align-items: flex-start; justify-content: center; }
.quote-modal:target { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,8,6,.82); }
.modal-panel { position: relative; width: min(100%, 760px); margin: auto; padding: clamp(1.4rem, 4vw, 3rem); background: var(--paper); box-shadow: 0 20px 80px rgba(0,0,0,.35); }
.modal-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.modal-header h2 { margin-bottom: .5rem; font-size: clamp(2.1rem, 4vw, 3.2rem); }
.modal-header p:last-child { margin-bottom: 0; color: var(--muted); }
.modal-close { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .5rem; font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.modal-close span { font-size: 1.5rem; line-height: 1; }
.modal-close:hover { color: var(--orange-dark); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid #acb3ad; border-radius: 0; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange-dark); outline-offset: 1px; }
.form-submit { width: 100%; margin-top: 1.2rem; }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.form-note a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 1rem; }
  .nav-row { gap: 1rem; }
  .header-quote { display: none; }
  .hero-stamp { display: none; }
  .contact-rail { width: 115px; }
}
@media (max-width: 760px) {
  :root { --gutter: 1.25rem; }
  .utility-inner { min-height: 37px; }
  .utility-note { display: none; }
  .utility-links { width: 100%; justify-content: space-between; gap: .5rem; font-size: .58rem; letter-spacing: .045em; }
  .nav-row { min-height: 70px; justify-content: space-between; }
  .brand-mark { width: 36px; height: 36px; padding: 7px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text > span { font-size: .44rem; }
  .desktop-nav { display: none; }
  .mobile-menu { position: static; display: block; margin-left: auto; }
  .mobile-menu summary { display: flex; align-items: center; gap: .55rem; padding: .7rem 0 .7rem .7rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: var(--ink); }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; padding: .8rem var(--gutter) 1.2rem; background: var(--white); box-shadow: 0 14px 20px rgba(0,0,0,.12); }
  .mobile-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 800; text-decoration: none; }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--orange-dark); }
  .hero { min-height: 600px; align-items: flex-start; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,15,13,.91), rgba(10,15,13,.58) 78%), linear-gradient(0deg, rgba(10,15,13,.56), transparent 60%); }
  .hero-inner { padding-block: 5.2rem 7rem; }
  .hero-copy { padding-right: 3.2rem; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5rem); }
  .hero-lede { font-size: 1rem; line-height: 1.55; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .hero-actions .button { min-height: 50px; }
  .hero-bottomline span:last-child { display: none; }
  .benefit, .benefit-item { min-height: 84px; padding: 1rem .8rem; gap: .6rem; font-size: .72rem; }
  .benefit::before, .benefit-item::before { flex-basis: 22px; width: 22px; height: 22px; }
  .section-header, .section-heading, .quote-cta, .cta-banner { align-items: flex-start; flex-direction: column; }
  .grid--3, .grid-3, .card-grid, .process-grid, .grid--4, .grid-4, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { padding-right: 44px; }
  .contact-rail { top: auto; bottom: 1rem; width: 40px; }
  .contact-rail a { min-height: 44px; padding: .5rem .35rem; font-size: .64rem; justify-content: center; }
  .contact-rail .rail-quote, .contact-rail .rail-text { writing-mode: vertical-rl; text-align: center; min-height: 130px; }
  .contact-rail a > span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); overflow-wrap: normal; hyphens: auto; }
  .hero h1.long-title { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .hero-copy { padding-right: 0; }
  .grid--2, .grid-2, .two-column, .grid--3, .grid-3, .card-grid, .process-grid, .grid--4, .grid-4, .directory-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .quote-modal { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
