/* =========================================================
   TheSolarPlumber.com
   Site CSS
   ABC Solar Incorporated
   ========================================================= */

:root {
  --ink: #10212b;
  --muted: #4f6470;
  --paper: #fffaf0;
  --paper-2: #fff6df;
  --white: #ffffff;

  --blue: #0b4f71;
  --deep-blue: #062f46;
  --deep-blue-2: #031c2b;
  --water: #1d8bb8;
  --solar: #f4b000;
  --solar-dark: #9a6500;

  --green: #2f6f4e;
  --red: #9d2f21;

  --warning-bg: #fff3cd;
  --warning-ink: #3a2a00;

  --dark-panel: #071f2c;
  --dark-panel-text: #f7fbff;

  --line: rgba(16, 33, 43, 0.16);
  --shadow: 0 22px 55px rgba(3, 28, 43, 0.18);
  --soft-shadow: 0 12px 30px rgba(3, 28, 43, 0.12);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --max: 1180px;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 176, 0, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(29, 139, 184, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--paper) 0%, #ffffff 42%, var(--paper-2) 100%);
  line-height: 1.6;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--deep-blue);
}

p {
  margin: 0 0 1rem;
}

strong {
  color: inherit;
}

main {
  overflow: hidden;
}

.container,
.section-inner,
.nav-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

section {
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(244, 176, 0, 0.18);
  color: #4b3200;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1.12rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.small {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.kicker {
  color: var(--solar-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

/* =========================================================
   Header / Mobile Menu
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--dark-panel-text);
  background: rgba(6, 47, 70, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(3, 28, 43, 0.22);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  color: var(--white);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2a1b00;
  background: var(--solar);
  box-shadow: 0 0 0 5px rgba(244, 176, 0, 0.16);
}

.brand-text {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  width: 48px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.16);
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
}

.site-menu a:hover,
.site-menu a:focus {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.site-menu .nav-cta {
  background: var(--solar);
  color: #2a1b00;
  box-shadow: 0 8px 20px rgba(244, 176, 0, 0.22);
}

.site-menu .nav-cta:hover,
.site-menu .nav-cta:focus {
  background: #ffd15a;
  color: #1d1200;
}

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

.hero {
  position: relative;
  padding: 86px 0 78px;
  background:
    linear-gradient(135deg, rgba(6, 47, 70, 0.94), rgba(7, 31, 44, 0.88)),
    radial-gradient(circle at top right, rgba(244, 176, 0, 0.35), transparent 32rem);
  color: var(--dark-panel-text);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--solar), var(--water), var(--solar));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero h1,
.hero h2,
.hero h3,
.hero p {
  color: var(--dark-panel-text);
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff7d9;
}

.hero .lede {
  color: #e9f7ff;
  max-width: 760px;
}

.hero-card {
  background: var(--white);
  color: var(--ink);
  padding: 22px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card h2,
.hero-card h3,
.hero-card p {
  color: var(--ink);
}

.hero-card .muted {
  color: var(--muted);
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 8px solid rgba(255, 255, 255, 0.45);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.btn-primary {
  background: var(--solar);
  color: #271900;
  box-shadow: 0 12px 28px rgba(244, 176, 0, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #1d1200;
  background: #ffd15a;
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-blue);
  border-color: rgba(11, 79, 113, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--white);
  background: var(--blue);
}

.btn-dark {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--deep-blue-2);
  color: var(--white);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--deep-blue);
  background: var(--white);
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.card h2,
.card h3,
.card h4,
.card p,
.card li {
  color: var(--ink);
}

.card .muted {
  color: var(--muted);
}

.card-accent {
  border-top: 8px solid var(--solar);
}

.card-water {
  border-top: 8px solid var(--water);
}

.card-dark {
  background: var(--dark-panel);
  color: var(--dark-panel-text);
  border: 0;
}

.card-dark h2,
.card-dark h3,
.card-dark h4,
.card-dark p,
.card-dark li {
  color: var(--dark-panel-text);
}

.card-dark .muted {
  color: #c7dce8;
}

.card-dark a {
  color: #ffe08a;
}

.card-dark a:hover,
.card-dark a:focus {
  color: var(--white);
}

.card-image {
  overflow: hidden;
  padding: 0;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.card-image-content {
  padding: 22px;
}

.feature-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 223, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.dark-section {
  background:
    radial-gradient(circle at top left, rgba(244, 176, 0, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--deep-blue), var(--deep-blue-2));
  color: var(--dark-panel-text);
}

.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section p,
.dark-section li {
  color: var(--dark-panel-text);
}

.dark-section .lede,
.dark-section .muted {
  color: #d4e9f4;
}

.dark-section a {
  color: #ffe08a;
}

.dark-section a:hover,
.dark-section a:focus {
  color: var(--white);
}

/* =========================================================
   Lists / Content Blocks
   ========================================================= */

.clean-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.clean-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid rgba(16, 33, 43, 0.10);
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 176, 0, 0.22);
  color: #684400;
  font-weight: 900;
  font-size: 0.82rem;
}

.dark-section .clean-list li,
.card-dark .clean-list li {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.dark-section .clean-list li::before,
.card-dark .clean-list li::before {
  background: rgba(244, 176, 0, 0.24);
  color: #ffe08a;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.stat {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--deep-blue);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.callout {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--warning-bg);
  color: var(--warning-ink);
  border: 2px solid rgba(154, 101, 0, 0.20);
}

.callout h2,
.callout h3,
.callout h4,
.callout p,
.callout li,
.callout strong {
  color: var(--warning-ink);
}

.warning,
.footer-warning {
  background: var(--warning-bg);
  color: var(--warning-ink);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-weight: 700;
}

/* =========================================================
   Page Title / Interior Pages
   ========================================================= */

.page-hero {
  padding: 72px 0 58px;
  background:
    linear-gradient(135deg, rgba(6, 47, 70, 0.96), rgba(7, 31, 44, 0.92)),
    radial-gradient(circle at top right, rgba(29, 139, 184, 0.24), transparent 28rem);
  color: var(--dark-panel-text);
}

.page-hero h1,
.page-hero p {
  color: var(--dark-panel-text);
}

.page-hero .lede {
  max-width: 850px;
  color: #e9f7ff;
}

.content {
  max-width: 880px;
  margin-inline: auto;
}

.content h2 {
  margin-top: 42px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.content h3 {
  margin-top: 30px;
}

.content p,
.content li {
  font-size: 1.06rem;
}

.content img {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.content blockquote {
  margin: 32px 0;
  padding: 24px;
  border-left: 8px solid var(--solar);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--white);
  color: var(--ink);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(16, 33, 43, 0.12);
  vertical-align: top;
}

th {
  background: var(--deep-blue);
  color: var(--white);
  font-weight: 900;
}

td {
  color: var(--ink);
}

/* =========================================================
   Forms
   ========================================================= */

form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--ink);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(16, 33, 43, 0.20);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(244, 176, 0, 0.35);
  border-color: var(--solar-dark);
}

/* =========================================================
   Footer with ABC Solar Logo
   ========================================================= */

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(244, 176, 0, 0.15), transparent 28rem),
    linear-gradient(135deg, var(--deep-blue-2), var(--dark-panel));
  color: var(--dark-panel-text);
  padding: 48px 0;
  border-top: 8px solid var(--solar);
}

.footer-inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-logo-link {
  display: inline-block;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.footer-logo {
  width: 180px;
  height: auto;
}

.footer-text,
.footer-text p {
  color: var(--dark-panel-text);
}

.footer-text a {
  color: #ffe08a;
  font-weight: 800;
}

.footer-text a:hover,
.footer-text a:focus {
  color: var(--white);
}

.site-footer .footer-warning {
  margin-top: 14px;
  background: var(--warning-bg);
  color: var(--warning-ink);
}

/* =========================================================
   Utility Classes
   ========================================================= */

.bg-paper {
  background: var(--paper);
}

.bg-white {
  background: var(--white);
}

.bg-blue {
  background: var(--deep-blue);
  color: var(--white);
}

.bg-blue h2,
.bg-blue h3,
.bg-blue p,
.bg-blue li {
  color: var(--white);
}

.text-light {
  color: var(--white);
}

.text-dark {
  color: var(--ink);
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}

.soft-shadow {
  box-shadow: var(--soft-shadow);
}

.no-top {
  padding-top: 0;
}

.no-bottom {
  padding-bottom: 0;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 165px;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 16px;
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-menu .nav-cta {
    text-align: center;
  }

  .hero {
    padding: 62px 0 58px;
  }

  section {
    padding: 54px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container,
  .section-inner,
  .nav-wrap,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.95rem, 10vw, 3rem);
  }

  .card,
  .feature-panel,
  .hero-card {
    padding: 20px;
  }

  .button-row {
    flex-direction: column;
  }

  .btn,
  .button {
    width: 100%;
  }

  .site-footer {
    padding: 38px 0;
  }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
  .site-header,
  .menu-toggle,
  .button-row,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  a {
    color: #000000;
  }

  .card,
  .feature-panel {
    box-shadow: none;
    border: 1px solid #999999;
  }
}
