:root {
  --navy: #002245;
  --navy-deep: #001833;
  --red: #a03c3c;
  --red-dark: #7e2424;
  --nav: #d5d5d5;
  --ink: #1c1c1c;
  --muted: #5c6770;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Bai Jamjuree", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(1400px, calc(100% - 2rem)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 25;
  overflow: visible;
}

.topbar {
  background: var(--navy);
  color: #fff;
  overflow: visible;
  position: relative;
  z-index: 3;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  z-index: 5;
}
.brand img {
  width: 158px;
  height: 158px;
  object-fit: contain;
  flex: none;
  position: relative;
  z-index: 6;
  margin-left: -1.25rem;
  margin-top: -0.35rem;
  margin-bottom: calc(-1 * (54px + 46px + 0.55rem));
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}
.brand strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.04em;
  font-weight: 800;
}
.brand em {
  font-style: normal;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.72rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.login-btn:hover { background: var(--red-dark); }
.login-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--red);
  box-sizing: content-box;
}

.mainnav {
  background: var(--nav);
  position: relative;
  z-index: 2;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.nav-bar {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding-left: 10.5rem;
}
.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-item { position: relative; }
.nav-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 54px;
  padding: 0 0.85rem;
  background: none;
  border: 0;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-top:hover, .nav-item.is-open > .nav-top { color: var(--navy); }
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 240px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.nav-item:hover > .nav-menu,
.nav-item.is-open > .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #222;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}
.nav-menu a:hover { background: #f4f4f4; color: var(--navy); }

.subbar {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #fff;
}
.subbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  min-height: 46px;
  padding: 0.45rem 0 0.45rem 10.5rem;
  font-size: 0.92rem;
}
.subbar a { color: #fff; text-decoration: none; }
.subbar a:hover { text-decoration: underline; }
.sub-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.sub-item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--red);
  box-sizing: content-box;
}
.social { display: inline-flex; align-items: center; gap: 0.7rem; }
.social a {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.social a:hover { text-decoration: none; opacity: 0.8; }
.social svg { width: 18px; height: 18px; fill: var(--red); }

.hero {
  position: relative;
  height: min(58vh, 560px);
  min-height: 420px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #fff;
}
.hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(min(58vh, 560px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-card {
  margin-left: auto;
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.88);
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
}
.hero-card-logo {
  width: clamp(4.5rem, 10vw, 6rem);
  height: auto;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.hero-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-card p {
  margin: 0.8rem 0 1.2rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  padding: 0.72rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }

.band-navy {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 3.4rem 0 3.6rem;
}

.info {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem 2.25rem;
  align-items: stretch;
}
.info-panel {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.info-divider {
  width: 2px;
  background: #fff;
  align-self: stretch;
  min-height: 100%;
}
.info-label { display: flex; gap: 1rem; align-items: center; }
.megaphone {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.15rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
.info h2, .info h3, .jobs h2, .officers h2, .apprentice h2 { margin: 0; text-transform: uppercase; }
.info h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.05; }
.info-label h3 { margin-top: 0.2rem; font-size: 1.05rem; font-weight: 700; }
.info-copy h3 { font-size: 1.25rem; margin-top: 0.65rem; }
.info-copy h3:first-child { margin-top: 0; }
.info-copy p { margin: 0.25rem 0 0.55rem; }
.info-copy .btn { margin-top: 0.55rem; }

.callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 4.6rem 0 3.6rem;
}
.callout {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2.55rem 1.5rem 2rem;
  border: 3px solid var(--red);
  min-height: 18.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.callout-icon {
  display: inline-grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.2rem;
  background: transparent;
}
.callout-icon svg {
  width: 7rem;
  height: 7rem;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
.callout h3 {
  margin: 1rem 0 0.45rem;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
}
.callout p {
  margin: 0 0 1.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
  max-width: 22ch;
}

.jobs-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  text-transform: uppercase;
}
.jobs-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.15rem;
}
.jobs-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.jobs {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
  background: #123 url("/clients/ibew-309/assets/contractors-bg.jpg") center / cover no-repeat;
}
.jobs .shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 51, 0.72);
}
.jobs .wrap { position: relative; }
.jobs h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.jobs p {
  max-width: 720px;
  margin: 0.8rem auto 1.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}
.job-names {
  list-style: none;
  margin: 0 auto 1.3rem;
  padding: 0;
  max-width: 640px;
  text-align: left;
}
.job-names li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}
.job-names span { color: var(--red); font-weight: 600; text-transform: none; }

.craft-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: min(42vh, 360px);
}
.craft {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.craft img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.craft-shade {
  position: absolute;
  inset: 0;
}
.craft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 4px solid #fff;
  box-sizing: border-box;
}
.craft-inside .craft-shade { background: rgba(0, 34, 69, 0.58); }
.craft-outside .craft-shade { background: rgba(160, 60, 60, 0.48); }
.craft-teledata .craft-shade { background: rgba(17, 58, 102, 0.55); }
.craft-utility .craft-shade { background: rgba(110, 78, 34, 0.5); }
.craft-label {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.craft-label strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.craft-icon {
  display: inline-grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.2rem;
  background: transparent;
}
.craft-icon svg {
  width: 7rem;
  height: 7rem;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.officers-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 460px;
}
.officer-photo {
  position: relative;
  background: url("/clients/ibew-309/assets/crew-officers.jpg?v=6") center 28% / cover no-repeat;
}
.officer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 4px solid #fff;
  box-sizing: border-box;
}
.officer-list {
  background: var(--navy);
  color: #fff;
  padding: 2.4rem 2rem;
}
.officer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.officer-col .btn { margin-top: 0.5rem; }
.officer-list .benefits-heading {
  margin: 0 0 0.9rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0c7c6;
}
.officer-list .person a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.officer-list .person a:hover {
  color: #f0c7c6;
}
.officer-list h2,
.officer-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.officer-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.15rem;
}
.officer-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.person { margin: 0 0 0.85rem; }
.person p, .person strong { margin: 0; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.03em; }
.person strong { display: block; font-size: 0.95rem; }

.apprentice { padding: 3.2rem 0 3.6rem; background: #f7f7f7; }
.apprentice h2,
.apprentice-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
}
.apprentice-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-sizing: content-box;
  padding: 0.15rem;
}
.apprentice-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}
.apprentice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.apprentice img { width: 100%; height: 280px; object-fit: cover; }
.apprentice p { line-height: 1.55; color: #333; }

.site-footer { background: var(--navy-deep); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 1.4rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; text-decoration: none; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links li + li { margin-top: 0.55rem; }
.footer-seal { width: 88px; height: 88px; object-fit: contain; }
.site-footer h2 { margin: 0 0 0.6rem; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer p { margin: 0.2rem 0; font-size: 0.88rem; }
.site-footer a { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 0.8rem 1rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare { margin-top: 0.35rem; }
.compare a { margin: 0 0.35rem; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.modal-card h2 { margin: 0 0 0.4rem; color: var(--navy); text-transform: uppercase; }
.modal-card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
}
.field { display: grid; gap: 0.25rem; margin-bottom: 0.75rem; font-size: 0.82rem; font-weight: 700; }
.field input { padding: 0.6rem 0.7rem; border: 1px solid #ccc; }
.modal-card .btn { width: 100%; }
.note { color: var(--muted); font-size: 0.85rem; }
.session { background: #f4f8ef; padding: 0.8rem; }

@media (max-width: 900px) {
  .brand img {
    width: 96px;
    height: 96px;
    margin-left: -0.35rem;
    margin-top: 0;
    margin-bottom: -2.6rem;
  }
  .nav-bar,
  .subbar-row { padding-left: 6.5rem; }
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 6;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .mainnav { position: relative; }
  .mainnav.is-open .nav-links { display: flex; }
  .nav-menu { position: static; box-shadow: none; background: #f6f6f6; }
  .info { grid-template-columns: 1fr; }
  .info-divider { width: 100%; height: 2px; min-height: 0; }
  .info, .callouts, .officers-grid, .officer-columns, .apprentice-grid, .footer-grid { grid-template-columns: 1fr; }
  .craft-band { grid-template-columns: 1fr 1fr; }
  .hero { height: 420px; }
  .hero iframe { width: max(100%, calc(420px * 16 / 9)); }
  .officer-photo { min-height: 220px; }
}
@media (max-width: 560px) {
  .craft-band { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .brand img {
    width: 78px;
    height: 78px;
    margin-bottom: -1.8rem;
  }
  .nav-bar,
  .subbar-row { padding-left: 5.25rem; }
}
