:root {
  --brand-green: #1f5d4d;
  --brand-green-dark: #123f2b;
  --brand-orange: #d8892b;
  --brand-orange-dark: #bf7723;
  --brand-navy: #163847;
  --brand-navy-dark: #112d3a;
  --brand-cream: #f6f1e7;
  --brand-text: #43545a;
  --brand-text-dark: #2f3d42;
  --brand-border: rgba(16, 46, 61, 0.08);
  --brand-shadow: 0 0.35rem 1rem rgba(21, 42, 56, 0.06);
}

/* =========================
   Base / Typography
========================= */

body {
  background:
    radial-gradient(circle at top, rgba(25, 77, 63, 0.08), transparent 28%),
    linear-gradient(180deg, #eef2f3 0%, #e8ecef 100%);
  color: var(--brand-text-dark);
}

body,
input,
textarea,
select {
  color: var(--brand-text-dark);
  font-weight: 400;
}

p,
li {
  color: #4a5b60;
  font-weight: 400;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  color: var(--brand-navy);
  font-weight: 700;
}

#page-wrapper {
  background: transparent;
}

/* =========================
   Header / Nav
========================= */

#header.site-header-slim {
  background: linear-gradient(180deg, rgba(14, 42, 56, 0.98) 0%, rgba(19, 56, 73, 0.96) 100%);
  border-bottom: 4px solid var(--brand-orange);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
  padding-bottom: 1.5em;
}

#header h1 {
  margin-bottom: 0.25em;
}

#header h1 a {
  color: var(--brand-cream);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-header-slim #nav {
  margin-bottom: 1.25em;
}

#nav > ul > li > a {
  color: rgba(246, 241, 231, 0.78) !important;
  font-weight: 700;
}

#nav > ul > li.current > a,
#nav > ul > li:hover > a {
  background: var(--brand-green) !important;
  color: #ffffff !important;
  border-radius: 0.35rem;
}

/* =========================
   Boombox Bingo Callout
========================= */

.site-connection {
  max-width: 860px;
  margin: 0.6em auto 1.1em auto;
  padding: 0.7em 1.1em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(224, 146, 43, 0.35);
  border-radius: 999px;
  color: #f4efe7;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.site-connection strong {
  color: #f0b24a;
  font-weight: 700;
}

.music-note {
  color: #f0b24a;
  font-size: 1.05em;
  margin: 0 0.35em;
}

/* =========================
   Shared Hero
========================= */

.page-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 250, 0.98) 100%);
  border: 1px solid rgba(31, 93, 77, 0.14);
  border-top: 5px solid var(--brand-orange);
  border-radius: 0.45em;
  box-shadow: 0 0.5rem 1.4rem rgba(15, 34, 45, 0.10);
  margin: 0 auto 2em auto;
  max-width: 1180px;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
}

.page-hero-copy {
  flex: 1 1 auto;
}

.page-hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--brand-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.page-hero-copy h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--brand-navy);
}

.page-hero-copy p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  color: var(--brand-text);
}

.page-hero-mark {
  flex: 0 0 220px;
  text-align: center;
}

.page-hero-mark img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-actions .button {
  margin: 0;
}

.hero-badge-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-badge {
  background: #e8f0ee;
  color: #1f4c52;
  border: 1px solid rgba(18, 79, 69, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* =========================
   Sections / Boxes
========================= */

.box {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
}

.box > header {
  position: relative;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
}

.box > header h2,
.box > header h3,
.box > header h4 {
  color: var(--brand-navy);
}

.box > header::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-green) 100%);
}

.box p,
.box li,
#footer p,
.contact-quick li {
  color: var(--brand-text);
}

#main .box p,
#main .box li {
  line-height: 1.72;
}

/* =========================
   Major Section Headings
========================= */

header.major h2 {
  color: var(--brand-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

header.major h2::after {
  content: "";
  display: block;
  width: 3.75rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-green) 100%);
  margin: 0.65rem auto 0;
}

/* =========================
   Service Cards
========================= */

.service-box {
  min-height: 100%;
  text-align: center;
  border-top: 4px solid var(--brand-green);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.7rem 1.3rem rgba(21, 42, 56, 0.10);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  color: var(--brand-orange);
}

.service-box h3 {
  color: var(--brand-navy);
}

.service-box p {
  color: #4a5b60;
  font-weight: 400;
}

/* =========================
   Highlight / Reasons Box
========================= */

.highlight-box {
  background: linear-gradient(180deg, rgba(23, 56, 71, 0.97) 0%, rgba(18, 46, 59, 0.97) 100%);
  color: #eaf1f4;
}

.highlight-box h3,
.highlight-box li,
.highlight-box p {
  color: #eaf1f4 !important;
  opacity: 1 !important;
}

/* =========================
   Stat Strip
========================= */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.stat-item {
  background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
  border: 1px solid rgba(31, 93, 77, 0.14);
  border-radius: 0.45rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand-green);
}

.stat-item span {
  display: block;
  font-size: 0.95em;
  color: #567078;
  font-weight: 500;
}

/* =========================
   Buttons
========================= */

input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button {
  background: var(--brand-orange);
  box-shadow: none;
}

.button:hover {
  background: var(--brand-orange-dark);
}

.button.primary,
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary {
  background: var(--brand-orange) !important;
}

.button.alt,
input[type="submit"].alt,
input[type="reset"].alt,
input[type="button"].alt,
button.alt {
  background: var(--brand-green) !important;
  color: #ffffff !important;
  box-shadow: none;
}

.button.alt:hover {
  background: #18493d !important;
}

/* =========================
   Contact / Footer
========================= */

.contact-quick {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
}

.contact-quick li {
  margin: 0.45em 0;
}

.contact-quick a {
  text-decoration: none;
}

#footer {
  background: linear-gradient(180deg, rgba(17, 45, 58, 0.98) 0%, rgba(13, 34, 45, 1) 100%);
  color: rgba(246, 241, 231, 0.84);
}

#footer h2,
#footer h3,
#footer strong,
#footer a,
#footer p,
#footer li,
#footer .contact {
  color: #f6f1e7 !important;
}

#footer .button {
  background: var(--brand-orange);
}

#copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#copyright ul.links {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   Wiring / Tech Page
========================= */

.wiring-collage {
  display: grid;
  grid-template-columns: 2fr 1.25fr;
  gap: 1rem;
  align-items: stretch;
}

.wiring-main .image,
.wiring-grid .image {
  display: block;
  margin: 0;
  height: 100%;
}

.wiring-main img,
.wiring-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
}

.wiring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wiring-collage .wiring-main {
  position: relative;
}

.wiring-collage .wiring-main::after {
  content: "BEFORE";
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(17, 34, 45, 0.86);
  color: #fff4e7;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.38rem 0.65rem;
  border-radius: 0.35rem;
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.18);
}

#main .box img[src*="wiring-after-"] {
  border-radius: 0.55rem;
  border: 1px solid rgba(31, 93, 77, 0.18);
  box-shadow: 0 0.55rem 1rem rgba(21, 42, 56, 0.08);
  outline: 3px solid rgba(31, 93, 77, 0.08);
  outline-offset: -3px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

#main .box img[src*="wiring-after-"]:hover {
  box-shadow: 0 0.8rem 1.4rem rgba(21, 42, 56, 0.12);
}

#main .box .col-4 .image.fit {
  position: relative;
}

#main .box .col-4 .image.fit:has(img[src*="wiring-after-"])::after {
  content: "AFTER";
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(31, 93, 77, 0.9);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.38rem 0.65rem;
  border-radius: 0.35rem;
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.16);
}

/* =========================
   About Page Styling
========================= */

body.no-sidebar #main .box {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
}

body.no-sidebar #main .box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(31, 93, 77, 0.015));
  border-radius: 0.45rem;
}

body.no-sidebar #main .box header h2,
body.no-sidebar #main .box header h3 {
  color: #173847;
}

body.no-sidebar #main .box p strong,
body.no-sidebar #main .box li strong {
  color: var(--brand-green);
}

body.no-sidebar #main .box:nth-of-type(2n) {
  border-left-color: var(--brand-orange) !important;
}

body.no-sidebar #main .box:nth-of-type(2n+1) {
  border-left-color: var(--brand-green) !important;
}

body.no-sidebar #main .row + .row {
  margin-top: 0.5rem;
}

#main .image.fit img[src*="donnie-"] {
  border-radius: 0.65rem;
  border: 1px solid rgba(18, 46, 59, 0.10);
  box-shadow:
    0 0.7rem 1.4rem rgba(17, 34, 45, 0.10),
    0 0 0 6px rgba(255, 255, 255, 0.85);
  background: #fff;
}

#main .image.fit img[src*="donnie-"]:hover {
  box-shadow:
    0 0.95rem 1.8rem rgba(17, 34, 45, 0.14),
    0 0 0 6px rgba(255, 255, 255, 0.92);
}

/* =========================
   Alternating Box Accents
========================= */

#main .box:nth-of-type(3n+1) {
  border-left: 5px solid var(--brand-green);
}

#main .box:nth-of-type(3n+2) {
  border-left: 5px solid var(--brand-orange);
}

#main .box:nth-of-type(3n+3) {
  border-left: 5px solid var(--brand-navy);
}

#main .box:last-of-type {
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ed 100%);
}

/* =========================
   Responsive
========================= */

@media screen and (max-width: 980px) {
  .page-hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
  }

  .page-hero-mark {
    flex-basis: auto;
  }

  .hero-actions,
  .hero-badge-row {
    justify-content: center;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .wiring-collage {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .page-hero-copy h2 {
    font-size: 1.65rem;
  }

  .stat-strip,
  .wiring-grid {
    grid-template-columns: 1fr;
  }

  .wiring-collage .wiring-main::after,
  #main .box .col-4 .image.fit:has(img[src*="wiring-after-"])::after {
    font-size: 0.72rem;
    padding: 0.32rem 0.55rem;
  }

  #main .image.fit img[src*="donnie-"] {
    box-shadow:
      0 0.55rem 1rem rgba(17, 34, 45, 0.10),
      0 0 0 4px rgba(255, 255, 255, 0.88);
  }
}

.service-overview-card ul {
	margin-bottom: 1.25em;
}

.service-overview-card .service-icon {
	margin-right: 0.35em;
	font-size: 0.95em;
	vertical-align: 0.03em;
}

.service-overview-card footer {
	margin-top: 1.25em;
}

#main .box h4 {
	margin-bottom: 0.55em;
	color: #1f5d4d;
}

#main .box .row > div section p:last-child {
	margin-bottom: 0;
}

/* =========================
   Balanced Center Alignment
   Centers headings/buttons
   Keeps long lists readable
========================= */

/* Hero */
.page-hero,
.page-hero-copy,
.page-hero-copy .eyebrow,
.page-hero-copy h2,
.page-hero-copy p {
  text-align: center;
}

.page-hero-inner {
  justify-content: center;
}

.hero-actions,
.hero-badge-row {
  justify-content: center;
}

/* Section headers */
.box > header,
.box > header h2,
.box > header h3,
.box > header h4,
header.major,
header.major h2,
#main .box h2,
#main .box h3,
#main .box h4,
#footer h2,
#footer h3,
#footer h4 {
  text-align: center;
}

/* Center the accent line under box headers */
.box > header::after {
  margin: 0.75rem auto 0;
}

/* General paragraph text in cards/boxes */
#main .box p,
.service-box,
.service-box h3,
.service-box p,
.service-overview-card,
.service-overview-card h3,
.service-overview-card h4,
.service-overview-card p,
.contact-quick,
.contact-quick li,
#footer,
#footer p {
  text-align: center;
}

/* Buttons */
.hero-actions,
.box footer,
.box .actions,
#footer .actions {
  text-align: center;
}

.hero-actions .button,
.box .button,
.box footer .button,
.box .actions .button,
#footer .button {
  margin-left: auto;
  margin-right: auto;
}

/* Keep lists readable instead of fully centered */
#main .box ul,
#main .box ol,
.service-overview-card ul,
.service-overview-card ol,
.highlight-box ul,
.highlight-box ol {
  text-align: left;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25em;
}

/* Contact list from theme override */
ul.contact {
  padding-left: 0;
  text-align: center;
}

ul.contact li {
  padding: 1.1em 0;
  text-align: center;
}

ul.contact li h3 {
  position: static;
  display: block;
  margin-bottom: 0.35em;
}

ul.contact li p {
  text-align: center;
}


.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  font-size: 1em;
  border-radius: 5px;
  border: solid 1px #dddddd;
  background: #fff;
  box-sizing: border-box;
}
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
	border-color: #1f5d4d;
	box-shadow: 0 0 0 3px rgba(31, 93, 77, 0.10);
}

.quote-form .actions {
	margin-top: 0.5rem;
}

.form-note {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	color: #5d6b70;
}

#get-a-quote header p {
  text-align: center !important;
  max-width: 700px;
  margin: 0 auto;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  box-sizing: border-box;
}

#quote-phone {
  display: block;
  width: 100%;
}

#get-a-quote header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quote-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  display: none;
}

.quote-popup-box {
  background: #1f5d4d;
  color: #fff;
  padding: 0.75em 1em;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 0.95em;
}

#get-a-quote .actions {
  text-align: center;
  padding-left: 0;
  margin: 0 auto 1.5em auto;
}

#get-a-quote .actions li {
  display: inline-block;
  margin: 0;
}

#get-a-quote .actions .button,
#get-a-quote .actions button {
  margin: 0;
}

#get-a-quote .col-12:last-child {
  text-align: center;
}

#get-a-quote .form-note {
  text-align: center;
  margin-top: 1em;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea,
.quote-form input[type="file"] {
  background: #fff;
  border: 1px solid rgba(16, 46, 61, 0.14);
  color: #2f3d42;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.quote-form input[type="text"]:focus,
.quote-form input[type="email"]:focus,
.quote-form input[type="tel"]:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.quote-form input[type="file"]:focus {
  border-color: #1f5d4d;
  box-shadow: 0 0 0 3px rgba(31, 93, 77, 0.10);
  outline: none;
}

.quote-form input:-webkit-autofill,
.quote-form input:-webkit-autofill:hover,
.quote-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2f3d42;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.quote-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #163847;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #5d6b70;
}

.quote-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 24, 33, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.quote-popup.show {
  opacity: 1;
  visibility: visible;
}

.quote-popup-box {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem 2.25rem;
  max-width: 440px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(16, 46, 61, 0.08);
}

.quote-popup-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  border-radius: 999px;
  background: rgba(31, 93, 77, 0.12);
  color: #1f5d4d;
  font-size: 2rem;
  font-weight: 700;
  line-height: 64px;
}

.quote-popup-box h3 {
  margin: 0 0 0.5rem 0;
  color: #163847;
}

.quote-popup-box p {
  margin: 0;
  color: #4a5b60;
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-link:hover .service-box {
  transform: translateY(-4px);
  box-shadow: 0 0.7rem 1.3rem rgba(21, 42, 56, 0.12);
  cursor: pointer;
}

.service-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile nav panel */
#navPanel {
	background: #163847 !important;
}

#navPanel .link,
#navPanel nav a {
	color: rgba(255, 255, 255, 0.92) !important;
	font-style: normal !important;
	font-weight: 500 !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

#navPanel .link:hover,
#navPanel .link:active,
#navPanel nav a:hover,
#navPanel nav a:active {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

#navPanel .link.depth-0,
#navPanel nav a {
	border-top-color: rgba(255, 255, 255, 0.08) !important;
}

#navButton .toggle {
	background: rgba(120, 120, 120, 0.75);
}