/* ==========================================================================
   Broadband Power Solutions — shared base + site chrome
   --------------------------------------------------------------------------
   Follows the same layout structure as tmc-www.NET (announcement bar, topbar,
   nav, mobile menu, footer, sticky call), retuned for the BPS brand: navy
   blue primary (from the original ColdFusion site's footer), orange accent
   for CTAs (telecom / utility construction vibe), gold highlights. Pages can
   still ship their own inline <style> in @section Head for per-page tuning.
   ========================================================================== */

:root {
  --navy: #0a3c82;          /* primary — matches original CF footer */
  --navy2: #134f8f;          /* lighter blue used in the original stylesheet */
  --navy-dark: #061f44;
  --accent: #f47b20;         /* orange CTA — telecom/utility construction */
  --accent-dark: #d96412;
  --gold: #f8c432;
  --white: #ffffff;
  --text: #071f42;
  --muted: #5f6c7d;
  --green: #18a957;
  --border: #dce3ec;
  --light: #f6f9fd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}
a { text-decoration: none; color: var(--navy); }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(244, 123, 32, .28);
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.96); color: #fff; }
.btn-navy { background: var(--navy); box-shadow: 0 5px 15px rgba(10, 60, 130, .28); }
.btn-navy:hover { background: var(--navy2); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 5px 15px rgba(248, 196, 50, .30); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Announcement bar ----------------------------------------------------- */
.announcement-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.announcement-bar span { color: var(--gold); }

/* Top bar (logo + phone / contact) ------------------------------------- */
.topbar { background: #fff; padding: 13px 0 9px; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-img { height: 60px; width: auto; }
.contact-wrap { display: flex; align-items: center; gap: 26px; }
.contact-label {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.contact-email {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1;
}
.contact-email:hover { color: var(--accent); }
.contact-tel {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: .2px;
}
.contact-tel:hover { color: var(--accent); }

/* Desktop nav ---------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 13px 0;
  flex-wrap: wrap;
}
nav a { color: #fff; white-space: nowrap; padding: 6px 16px; display: inline-block; }
nav a:hover,
nav a.active { color: var(--gold); }

/* Mobile nav toggle + menu --------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  overflow-y: auto;
  padding: 64px 24px 40px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu > a {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  display: block !important;
}
.mobile-menu > a:hover { color: var(--gold) !important; }

/* Footer --------------------------------------------------------------- */
footer {
  padding: 40px 0 20px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}
footer h5 {
  color: var(--gold);
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
}
footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
footer a { color: #ffffffcc; }
footer a:hover { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-logo-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo-cell .footer-logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tag { color: #ffffffbb; font-size: 13px; line-height: 1.5; }
.footer-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #ffffff99;
}

/* Mobile sticky call --------------------------------------------------- */
.mobile-sticky-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.mobile-sticky-call:hover { color: #fff; }

/* Radio / checkbox alignment ------------------------------------------ */
/* Generic full-width field rules (e.g. .form-card input{width:100%}) also
   hit radio/checkbox inputs, stretching them so the dot floats above its
   label text. Force them back to their natural size and vertically center
   each control with its label across every form. */
.radio-row label,
.radio-row .label,
label.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.radio-row input[type="radio"],
.radio-row input[type="checkbox"],
.form-card input[type="radio"],
.form-card input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: none;
  vertical-align: middle;
}

/* Chrome responsive behaviour ----------------------------------------- */
@media (max-width: 1080px) {
  nav { display: none; }
  .mobile-nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .topbar-inner { flex-wrap: nowrap; }
  .logo-img { height: 48px; }
  .contact-wrap { display: none; }
  .mobile-sticky-call { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Shared page pieces reused across About / Services / Contact
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 0 0 10px;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.6px;
  color: #fff;
}
.page-hero .sub {
  font-size: 17px;
  opacity: .9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

section { padding: 48px 0; }
.section-title {
  margin: 0 0 18px;
  color: var(--navy);
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}
.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--accent);
}
.section-title.left { text-align: left; }
.section-title.left::after { margin: 12px 0 0; }
.intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* Contact form card ---------------------------------------------------- */
.form-card {
  padding: 26px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
}
.form-card h2 {
  margin: 0 0 14px;
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.form-card h2 span { color: var(--gold); }
.form-card label {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin: 6px 0;
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
}
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .form-row > * { margin-bottom: 12px; }
.form-card .secure-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 12px;
  opacity: .92;
}
@media (max-width: 560px) {
  .form-card .form-row { grid-template-columns: 1fr; }
}

/* reCAPTCHA v2 widget injected into every /contact-us/ form --------------- */
.bps-recaptcha {
  margin: 6px 0 14px;
  overflow: hidden;
}
.bps-recaptcha-error {
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
  margin: -8px 0 12px;
}
.form-card .bps-recaptcha-error,
.contact-cta .bps-recaptcha-error {
  color: #ffb4b4;
}
.contact-cta .bps-recaptcha {
  display: flex;
  justify-content: center;
}
@media (max-width: 420px) {
  .bps-recaptcha {
    transform: scale(0.88);
    transform-origin: left top;
    height: 70px;
  }
}

/* Trust strip ---------------------------------------------------------- */
.trust-strip { padding: 24px 0; background: var(--navy); color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.trust-item:first-child { border-left: none; }
.trust-item .k {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
}
.trust-item .v {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
  max-width: 220px;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: none; padding: 8px 0; }
}

.callout {
  background: #FBF7EF;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.callout strong { color: var(--navy); }

.band {
  background: var(--light);
  border-radius: 12px;
  padding: 28px 32px;
}
