/* SolarSwampCooler.com - site.css */

:root {
  --ink: #142033;
  --ink-soft: #31415b;
  --blue: #0877d8;
  --blue-dark: #064b91;
  --sky: #dff4ff;
  --sun: #ffca2c;
  --sun-dark: #f7941d;
  --desert: #f4c477;
  --sand: #fff3dc;
  --green: #25a65a;
  --red: #d9412e;
  --orange: #f47b20;
  --cream: #fff8ea;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 55px rgba(40, 28, 10, 0.22);
  --radius: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(255, 222, 89, 0.65), transparent 20rem),
    linear-gradient(180deg, #6ed2ff 0%, #b7ebff 22%, #fff0cd 54%, #f0b465 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 46%, transparent 47%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 16px);
  opacity: 0.45;
  z-index: -1;
}

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

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 234, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 4px solid rgba(255, 178, 35, 0.9);
  box-shadow: 0 8px 24px rgba(50, 32, 4, 0.13);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff9bc 0%, var(--sun) 45%, var(--orange) 78%);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(247, 148, 29, .35);
}

.brand-mark::before {
  content: "☀";
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.brand strong {
  display: block;
  color: var(--blue);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(0,0,0,.12);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 48px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,.13);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 99px;
  position: relative;
}

.nav-toggle-label {
  align-items: center;
  justify-content: center;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

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

.nav a {
  color: var(--ink);
  font-weight: 900;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(6, 75, 145, .22);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 42px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 55, 115, .08), rgba(100, 54, 7, .26)),
    var(--hero-image, url("/images/solarswampcooler-hero-desert-cooler-manga.jpg")) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 53, .72), rgba(8, 26, 53, .28) 48%, rgba(8, 26, 53, .12)),
    linear-gradient(0deg, rgba(0,0,0,.38), transparent 45%);
}

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

.hero-card {
  max-width: 760px;
  padding: clamp(26px, 5vw, 54px);
  border-radius: 34px;
  background: rgba(255, 248, 234, .93);
  border: 5px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #271200;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .07em;
  box-shadow: 4px 4px 0 rgba(0,0,0,.12);
}

.eyebrow::before {
  content: "★";
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #fff, 7px 7px 0 rgba(8, 119, 216, .18);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
}

.lede,
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 700;
}

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

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 5px 5px 0 rgba(0,0,0,.16);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 rgba(0,0,0,.16);
  text-decoration: none;
}

.button.primary,
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
}

.button.sun,
.btn.sun {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #271200;
}

main {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,248,234,.92) 16%, rgba(255,248,234,.96));
}

section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.section-intro {
  max-width: 850px;
  margin-bottom: 34px;
}

.kicker {
  color: var(--orange);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px;
}

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

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

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

.card {
  background: var(--card);
  border: 4px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card.pad {
  padding: clamp(22px, 4vw, 34px);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-weight: 650;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(20,32,51,.12);
  font-size: .85rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.badge.good {
  color: #0b7834;
  background: #eaffef;
}

.badge.maybe {
  color: #8a5a00;
  background: #fff6d4;
}

.badge.bad {
  color: #b51f18;
  background: #ffe4dc;
}

.callout {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 74, .42), transparent 18rem),
    linear-gradient(135deg, #fff, #fff1ce);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.callout.blue {
  background:
    radial-gradient(circle at top left, rgba(107, 210, 255, .45), transparent 18rem),
    linear-gradient(135deg, #f3fbff, #dff4ff);
}

.callout.green {
  background:
    radial-gradient(circle at top left, rgba(37, 166, 90, .22), transparent 18rem),
    linear-gradient(135deg, #ffffff, #eaffef);
}

.callout.red {
  background:
    radial-gradient(circle at top left, rgba(217, 65, 46, .2), transparent 18rem),
    linear-gradient(135deg, #ffffff, #ffe7df);
}

.comic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 3px solid rgba(20,32,51,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 1000;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.14);
}

.step h3 {
  font-size: 1.35rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.feature-image {
  border-radius: 30px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-.6deg);
}

.feature-image.alt {
  transform: rotate(.6deg);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}

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

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(20,32,51,.1);
}

th {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
}

td {
  font-weight: 700;
}

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

.check-list li {
  position: relative;
  padding: 10px 0 10px 38px;
  font-weight: 800;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 1000;
}

.warning-list li::before {
  content: "!";
  background: var(--red);
}

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

.zone {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 32px rgba(0,0,0,.11);
}

.zone.good {
  background: linear-gradient(180deg, #f5fff7, #dfffea);
}

.zone.maybe {
  background: linear-gradient(180deg, #fffdf2, #fff2b9);
}

.zone.bad {
  background: linear-gradient(180deg, #fff4f0, #ffd7cf);
}

.zone h3 {
  text-transform: uppercase;
}

.figure-caption {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: 10px;
  font-weight: 800;
}

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

.gallery a,
.gallery figure {
  margin: 0;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.footer {
  padding: 54px 0 34px;
  background:
    linear-gradient(180deg, rgba(20,32,51,.96), rgba(6, 21, 43, .98));
  color: #fff;
}

.footer a {
  color: #fff;
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer h2,
.footer h3 {
  color: #fff;
  text-shadow: none;
}

.footer p {
  color: rgba(255,255,255,.76);
  font-weight: 650;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.68);
  font-size: .92rem;
}

.notice {
  padding: 18px 20px;
  border-left: 7px solid var(--orange);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero-mini {
  padding: clamp(74px, 10vw, 118px) 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 53, .76), rgba(8, 26, 53, .28)),
    var(--hero-image, url("/images/solarswampcooler-hero-desert-cooler-manga.jpg")) center / cover no-repeat;
  color: #fff;
}

.hero-mini h1,
.hero-mini p {
  color: #fff;
}

.hero-mini h1 {
  text-shadow: 4px 4px 0 rgba(0,0,0,.28);
}

.hero-mini .lede {
  max-width: 820px;
  color: rgba(255,255,255,.92);
}

.form-card {
  max-width: 860px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border-radius: 28px;
  border: 5px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 0 0 8px;
  font-weight: 1000;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 3px solid rgba(20,32,51,.15);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8,119,216,.15);
}

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

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

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 84px;
    display: none;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 248, 234, .98);
    border: 4px solid #fff;
    box-shadow: var(--shadow);
  }

  .nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
  }

  .nav-toggle:checked ~ .nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero-card {
    max-width: 100%;
  }

  .grid.two,
  .grid.three,
  .split,
  .footer-grid,
  .map-zone {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-wrap {
    min-height: 68px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .nav {
    top: 76px;
  }

  .hero {
    min-height: 560px;
    padding: 26px 0;
  }

  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

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

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

  section {
    padding: 48px 0;
  }

  .comic-strip,
  .gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .actions {
    display: grid;
  }

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

  .card-body,
  .card.pad,
  .callout {
    padding: 20px;
  }

  table {
    min-width: 560px;
  }
}
