/* SolarDollar.com
   ABC Solar Incorporated
   Editorial solar value site — no financing, no loan pitch.
*/

:root {
  --ink: #10131a;
  --ink-soft: #343a46;
  --muted: #697182;
  --paper: #fffaf0;
  --paper-2: #fff3cf;
  --sun: #ffb000;
  --sun-2: #ffcf4a;
  --gold: #d89100;
  --green: #197a4c;
  --green-dark: #0f4e34;
  --blue: #18345f;
  --red: #b83b28;
  --cream: #fff7e2;
  --white: #ffffff;
  --line: rgba(16, 19, 26, 0.12);
  --shadow: 0 24px 70px rgba(17, 22, 35, 0.18);
  --shadow-soft: 0 14px 36px rgba(17, 22, 35, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

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 12% 8%, rgba(255, 207, 74, 0.36), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(25, 122, 76, 0.15), transparent 24rem),
    linear-gradient(180deg, #fff8df 0%, #fffaf0 42%, #ffffff 100%);
  line-height: 1.55;
}

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

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

a:hover {
  color: var(--green-dark);
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 850;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, #fffbe7 0 14%, transparent 15%),
    linear-gradient(135deg, var(--sun), #ff7a00);
  box-shadow: 0 10px 28px rgba(216, 145, 0, 0.34);
  color: #2a1600;
  font-size: 1.45rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.1;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 176, 0, 0.18);
  color: var(--ink);
}

.nav-cta,
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(16, 19, 26, 0.18);
  border: 0;
  cursor: pointer;
}

.nav-cta:hover,
.button:hover,
.btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.button.gold,
.btn.gold {
  background: linear-gradient(135deg, var(--sun), #ff7a00);
  color: #2a1600;
}

.button.green,
.btn.green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

/* Mobile menu */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  border-radius: 3px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 104px) 0 clamp(42px, 7vw, 90px);
}

.hero::before {
  content: "$";
  position: absolute;
  right: clamp(-50px, 4vw, 70px);
  top: 4%;
  font-size: clamp(14rem, 28vw, 30rem);
  line-height: 0.8;
  font-weight: 1000;
  color: rgba(216, 145, 0, 0.09);
  pointer-events: none;
}

.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.46rem 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 145, 0, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(17, 22, 35, 0.08);
}

h1,
.h1 {
  margin: 1rem 0 1.1rem;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  font-weight: 1000;
  max-width: 940px;
}

h1 .gold,
.h1 .gold {
  color: var(--gold);
}

.lede {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.45;
  font-weight: 550;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.65rem;
}

.no-finance-note {
  margin-top: 1.3rem;
  max-width: 760px;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--green);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-soft);
  font-weight: 750;
}

/* Dollar card */

.dollar-card {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 207, 0.88)),
    radial-gradient(circle at top right, rgba(255, 176, 0, 0.35), transparent 18rem);
  border: 1px solid rgba(216, 145, 0, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dollar-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -44px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(25, 122, 76, 0.11);
}

.big-dollar {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.8;
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: var(--green-dark);
}

.dollar-card h2 {
  margin: 1rem 0 0.6rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.dollar-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
}

.stat-list {
  display: grid;
  gap: 10px;
  margin-top: 1.4rem;
}

.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 19, 26, 0.08);
}

.stat b {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: clamp(52px, 7vw, 90px) 0;
}

.section.tight {
  padding: clamp(34px, 5vw, 58px) 0;
}

.section.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 176, 0, 0.24), transparent 28rem),
    linear-gradient(135deg, #10131a, #17223a 58%, #0f4e34);
}

.section.goldwash {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 176, 0, 0.22), transparent 25rem),
    linear-gradient(180deg, #fff7df, #ffffff);
}

.section-head {
  width: min(920px, 100%);
  margin-bottom: clamp(22px, 4vw, 42px);
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 1000;
  margin-bottom: 0.7rem;
}

.section.dark .kicker {
  color: var(--sun-2);
}

h2,
.h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 5.3vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 1000;
}

h3,
.h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.section-head p,
.section-subtitle {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 820px;
}

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

/* Cards and grids */

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

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

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

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

.card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.card.gold {
  background:
    radial-gradient(circle at top right, rgba(255, 176, 0, 0.24), transparent 13rem),
    #ffffff;
}

.card.green {
  background:
    radial-gradient(circle at top right, rgba(25, 122, 76, 0.16), transparent 13rem),
    #ffffff;
}

.section.dark .card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.card p {
  color: var(--ink-soft);
}

.section.dark .card p {
  color: rgba(255, 255, 255, 0.74);
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.55rem;
  background: rgba(255, 176, 0, 0.18);
  color: var(--green-dark);
}

.card:hover {
  transform: translateY(-2px);
}

/* Value strips */

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.value-item {
  padding: clamp(18px, 3vw, 28px);
  border-right: 1px solid var(--line);
}

.value-item:last-child {
  border-right: 0;
}

.value-number {
  display: block;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.9;
  font-weight: 1000;
  letter-spacing: -0.065em;
}

.value-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 800;
}

/* Callouts */

.callout {
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 207, 74, 0.36), transparent 19rem),
    linear-gradient(135deg, #ffffff, #fff2c1);
  border: 1px solid rgba(216, 145, 0, 0.24);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.callout.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 176, 0, 0.25), transparent 24rem),
    linear-gradient(135deg, #10131a, #18345f 56%, #0f4e34);
}

.callout.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.utility-zinger {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: rgba(184, 59, 40, 0.09);
  border: 1px solid rgba(184, 59, 40, 0.2);
  color: #6f1d12;
  font-weight: 850;
}

.section.dark .utility-zinger,
.callout.dark .utility-zinger {
  background: rgba(255, 255, 255, 0.1);
  color: #ffe0a3;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Article pages */

.page-hero {
  padding: clamp(44px, 7vw, 86px) 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 176, 0, 0.28), transparent 28rem),
    linear-gradient(180deg, #fff7dd, #fffaf0);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

.page-hero .lede {
  max-width: 860px;
}

.article {
  width: min(890px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) 0;
}

.article h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.article h3 {
  margin-top: 1.8rem;
}

.article p,
.article li {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
}

.article blockquote {
  margin: 2rem 0;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background: #fff3cf;
  border-left: 7px solid var(--sun);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 950;
}

/* Tables */

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

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

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

th {
  background: #fff3cf;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

tr:last-child td {
  border-bottom: 0;
}

/* Forms */

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

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

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(255, 176, 0, 0.25);
  border-color: var(--gold);
}

/* FAQ */

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

.faq-item,
details {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 22, 35, 0.07);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: 950;
  color: var(--ink);
}

details p {
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding: clamp(42px, 7vw, 74px) 0 32px;
  background: #10131a;
  color: var(--white);
}

.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 36px;
}

.footer-brand {
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 1000;
}

.footer-brand span {
  color: var(--sun);
}

.footer-text {
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-top: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  color: var(--sun-2);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.25rem 0;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--white);
}

.abc-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.abc-footer img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.abc-footer a {
  color: var(--white);
  font-weight: 850;
}

.legal-note {
  width: min(var(--max), calc(100% - 40px));
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* Utility classes */

.center {
  text-align: center;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

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

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

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

.gold-text {
  color: var(--gold);
}

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.16);
  border: 1px solid rgba(216, 145, 0, 0.2);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

/* Responsive */

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    min-height: auto;
    padding: 14px 0;
  }

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

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    justify-content: flex-start;
  }

  body.menu-open .nav-links,
  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }

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

  .hero {
    padding-top: 42px;
  }

  .dollar-card {
    max-width: 640px;
  }

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

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

  .value-item:nth-child(2) {
    border-right: 0;
  }

  .value-item:nth-child(1),
  .value-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .container,
  .wrap,
  .nav,
  .hero-grid,
  .article,
  .footer-grid,
  .abc-footer,
  .legal-note {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
  }

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

  h1,
  .h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  h2,
  .h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .value-strip,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item:nth-child(1),
  .value-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-item:last-child {
    border-bottom: 0;
  }

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

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

  .section {
    padding: 44px 0;
  }

  .card,
  .callout,
  .dollar-card {
    border-radius: 22px;
  }

  .abc-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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