/* Power Source Midwest — site styles
   Layout: one page, full-width color bands, 1180px content column.
   Colors and type follow the picked design (Final, Nov 6 picks). */
:root {
  --blue: #1F5FA8;
  --blue-dark: #163F70;
  --red: #C42032;
  --navy: #12263A;
  --navy-tile: #1B3550;
  --navy-line: #3C5873;
  --ink: #12263A;
  --ink-soft: #3D5266;
  --ink-mute: #4E5D6C;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C8D3DE;
  --on-blue-soft: #DCE8F5;
  --paper: #FFFFFF;
  --paper-alt: #F4F7FA;
  --line: #DCE3EA;
  --line-soft: #E6ECF2;
  --logo-bg: #FFFFFF;
  --todo-ink: #9C1C24;
  --todo-bg: #FDECEC;

  --font-display: 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --radius: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
[id] { scroll-margin-top: 96px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--on-dark); padding: 12px 16px; z-index: 20; }
.skip-link:focus { left: 16px; top: 16px; }

/* Content column; every band uses this for its side gutter */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 56px; width: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; font-weight: 500; font-size: 16px; }
.main-nav a { text-decoration: none; color: var(--ink); display: inline-block; padding: 12px 0; }
.main-nav a:hover { color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--blue); color: var(--on-dark); }
.btn-primary:hover { background: var(--blue-dark); color: var(--on-dark); }
.main-nav .btn { display: inline-flex; padding: 0 22px; color: var(--on-dark); }
.btn-light { background: var(--paper); color: var(--blue); min-height: 52px; font-size: 17px; }
.btn-light:hover { background: var(--on-blue-soft); color: var(--blue-dark); }
.btn-outline { border-color: var(--on-dark); color: var(--on-dark); min-height: 52px; font-size: 17px; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--on-dark); }

/* Hero */
.hero { background: var(--blue); color: var(--on-dark); border-bottom: 6px solid var(--red); }
.hero .wrap { padding-block: 96px 88px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-blue-soft); }
.hero h1 { max-width: 860px; font-weight: 700; font-size: 58px; line-height: 1.08; }
.hero p { max-width: 640px; font-size: 19px; line-height: 1.65; color: var(--on-blue-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Sections */
.section { padding-block: 88px; }
.section-alt { background: var(--paper-alt); }
.section .wrap { display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head h1, .section-head h2 { font-weight: 700; font-size: 40px; line-height: 1.15; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Industries */
.industry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.industry-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }

/* Manufacturers */
.group-title { padding-bottom: 10px; border-bottom: 2px solid var(--blue); font-weight: 600; font-size: 22px; }
.group-title small { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--ink-mute); }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-grid > li { display: flex; }
.card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--blue); color: var(--ink); }
.logo-box { height: 72px; border-radius: 8px; background: var(--logo-bg); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 12px; }
.logo-box img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.logo-box.pair img { max-width: 45%; }
.logo-box.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: center; }
.card-name { font-weight: 600; font-size: 18px; }
.card-desc { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.card-link { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; color: var(--blue); }

/* Placeholder slots for content the client has not sent yet. Remove .todo once filled. */
.todo { color: var(--todo-ink); background: var(--todo-bg); border: 2px dashed var(--red); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 600; font-family: var(--font-body); }
.logo-box.todo { height: 72px; padding: 8px 12px; text-align: center; }
span.todo, p .todo { display: inline-block; }

/* Territory */
.territory { background: var(--navy); color: var(--on-dark); }
.territory .section-head p { color: var(--on-dark-soft); }
.territory-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.state-grid { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.state-btn { min-height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 19px; cursor: pointer; background: var(--navy-tile); color: var(--on-dark); border: 1px solid var(--navy-line); }
.state-btn:hover { border-color: var(--on-dark-soft); }
.state-btn[aria-pressed="true"] { background: var(--red); border: 2px solid var(--red); }
.state-panel { flex: 1.4 1 460px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.state-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.state-panel-head h3 { font-weight: 700; font-size: 30px; }
.state-panel-head span { font-size: 15px; color: var(--ink-soft); }
.line-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.line-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.state-panel-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 8px; }
.state-panel-foot span { font-size: 15px; color: var(--ink-soft); }

/* About */
.about-text { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--ink-soft); display: flex; flex-direction: column; gap: 16px; }

/* Contact */
.contact-email { align-self: flex-start; font-weight: 600; font-size: 20px; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.office { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.office h3 { font-weight: 600; font-size: 22px; }
.office span { font-size: 16px; line-height: 1.5; }
.office a { font-weight: 600; font-size: 18px; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-soft); font-size: 15px; }
.site-footer .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--on-dark); }
.site-footer a { color: var(--on-dark); font-weight: 600; }

/* 404 */
.notfound { padding-block: 120px; }
.notfound .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.notfound h1 { font-size: 44px; }

@media (max-width: 760px) {
  .hero .wrap { padding-block: 64px 56px; }
  .hero h1 { font-size: 38px; }
  .section { padding-block: 64px; }
  .section-head h1, .section-head h2 { font-size: 30px; }
  .brand img { height: 44px; }
  .site-header { position: static; }
  .state-panel { padding: 24px; }
}
@media (max-width: 420px) {
  .state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .main-nav ul { gap: 0 18px; font-size: 15px; }
}
