/* SolarPoolMan.com — site.css */

:root {
  --deep: #063344;
  --deep-2: #092b3a;
  --pool: #05a9d6;
  --pool-2: #28d7ff;
  --sun: #ffbf2f;
  --sun-2: #ffe38a;
  --foam: #f5fcff;
  --ink: #12313d;
  --muted: #5e7480;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(6, 51, 68, 0.14);
  --shadow: 0 24px 70px rgba(3, 28, 40, 0.22);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(40, 215, 255, 0.24), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(255, 191, 47, 0.22), transparent 34rem),
    linear-gradient(180deg, #e9fbff 0%, #f8fdff 34%, #fff9e9 100%);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0 0 1.1rem;
}

strong {
  font-weight: 900;
  color: #071f2b;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 252, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(6, 51, 68, 0.12);
}

.header-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: var(--deep);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 10%, transparent 11%),
    linear-gradient(135deg, var(--sun), var(--pool));
  box-shadow: 0 12px 26px rgba(5, 169, 214, 0.25);
  color: #082a39;
  font-size: 1.35rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-size: 1.25rem;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #173b4a;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible {
  color: #031923;
  background: rgba(5, 169, 214, 0.12);
  outline: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  color: #2c2200 !important;
  box-shadow: 0 10px 24px rgba(255, 191, 47, 0.26);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--deep);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 29, 42, 0.88), rgba(3, 29, 42, 0.56), rgba(3, 29, 42, 0.18)),
    var(--hero-image, url("https://solarpoolman.com/images/solarpoolman-hero-backyard-pool-solar-battery.jpg"));
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(233, 251, 255, 1), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  color: #f8feff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 24px 0 20px;
  font-size: clamp(3.1rem, 8vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--sun-2);
}

.hero-lede {
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 21px;
  border-radius: 999px;
  border: 0;
  font-weight: 950;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.button-primary,
.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  color: #2c2200;
  box-shadow: 0 18px 40px rgba(255, 191, 47, 0.35);
}

.button-secondary,
.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.hero-card {
  max-width: 520px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(5, 39, 55, 0.54);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.hero-card b {
  color: var(--sun-2);
}

/* Sections */

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-dark {
  background:
    radial-gradient(circle at 18% 12%, rgba(40, 215, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, var(--deep), var(--deep-2));
  color: white;
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: white;
}

.section-dark .section-kicker,
.section-dark .section-lede,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-kicker {
  margin-bottom: 10px;
  color: #007ea4;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title,
h2 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.section-lede {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
}

.center {
  text-align: center;
}

.center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* Grids and Cards */

.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 {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(6, 51, 68, 0.08);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.card p {
  color: var(--muted);
  font-weight: 580;
}

.card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5, 169, 214, 0.14), rgba(255, 191, 47, 0.24));
  color: var(--deep);
  font-size: 1.7rem;
}

.feature-card {
  padding: 0;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card-content {
  padding: 26px;
}

.big-card {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
}

/* Split Layout */

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 46px;
  align-items: center;
}

.split-image {
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.callout {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(5, 169, 214, 0.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 191, 47, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 251, 255, 0.92));
  box-shadow: var(--shadow);
}

/* Lists */

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 15px 16px 15px 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #244350;
  font-weight: 750;
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pool);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

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

.stat {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat b {
  display: block;
  color: var(--sun-2);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

/* Quote / Comedy */

.quote {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 38px;
  background: var(--deep);
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote::before {
  content: "“";
  position: absolute;
  top: -42px;
  left: 24px;
  color: rgba(40, 215, 255, 0.28);
  font-size: 13rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: white;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.quote cite {
  display: block;
  margin-top: 22px;
  color: var(--sun-2);
  font-style: normal;
  font-weight: 900;
}

/* Page Hero */

.page-hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 16% 12%, rgba(40, 215, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(255, 191, 47, 0.3), transparent 26rem),
    linear-gradient(135deg, #f4fdff, #fff8df);
}

.page-hero h1 {
  max-width: 920px;
  margin: 18px 0;
  color: var(--deep);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 650;
}

/* Forms */

.form-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--deep);
  font-weight: 900;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(6, 51, 68, 0.18);
  border-radius: 18px;
  background: #f8fdff;
  color: var(--ink);
  padding: 15px 16px;
  font: inherit;
  font-weight: 650;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(5, 169, 214, 0.2);
  border-color: var(--pool);
}

/* FAQ */

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 30px rgba(6, 51, 68, 0.06);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--deep);
  font-weight: 950;
  font-size: 1.08rem;
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 68px 0 42px;
  background: #031923;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  color: white;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.footer-text {
  max-width: 680px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 0.9rem;
}

.footer-links a:hover {
  background: rgba(40, 215, 255, 0.18);
  color: white;
}

.abc-footer {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.abc-footer img {
  margin-top: 16px;
  border-radius: 10px;
  background: white;
  padding: 6px;
}

/* Utility */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(5, 169, 214, 0.11);
  color: #07536a;
  font-weight: 900;
  font-size: 0.88rem;
}

.dark-badge {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.wave-divider {
  height: 44px;
  background:
    radial-gradient(22px 22px at 22px 0, transparent 21px, #e9fbff 22px) 0 0 / 44px 44px repeat-x;
}

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

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #e9fbff;
  color: var(--deep);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #33515d;
  font-weight: 650;
}

/* Mobile */

@media (max-width: 940px) {
  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(6, 51, 68, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
  }

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

  .hero {
    min-height: 680px;
    background-position: center;
  }

  .hero-inner {
    padding: 78px 0 124px;
  }

  .grid-3,
  .grid-4,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .container,
  .header-inner,
  .hero-inner {
    width: min(100% - 26px, var(--max));
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero {
    min-height: 630px;
    background:
      linear-gradient(180deg, rgba(3, 29, 42, 0.88), rgba(3, 29, 42, 0.55)),
      var(--hero-image, url("https://solarpoolman.com/images/solarpoolman-hero-backyard-pool-solar-battery.jpg"));
    background-size: cover;
    background-position: center top;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.065em;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 66px 0 52px;
  }

  .card,
  .feature-card-content {
    padding: 22px;
  }

  .split-image img {
    min-height: 300px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
