:root {
  --navy: #0a1c3e;
  --navy-2: #123056;
  --orange: #f05a22;
  --orange-dark: #d84c18;
  --bg: #f4f4f4;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #d9dde3;
  --assist: #eef3f8;
  --radius: 8px;
  --header-h: 76px;
  --shadow: 0 1px 0 rgba(10, 28, 62, 0.04);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--orange);
  color: var(--white);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 8px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo img {
  width: 196px;
  height: auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.site-header__tagline {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}

.site-header__phone wa-icon {
  font-size: 18px;
  color: var(--orange);
}

.site-header__phone-label {
  color: var(--muted);
  font-weight: 500;
}

.site-header__phone strong {
  font-weight: 700;
}

.site-header__phone:hover strong {
  color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Art is pre-composed: navy fade on the left, installer on the right. */
@media (min-width: 721px) {
  .hero__media {
    background: url("assets/hero.jpg") right center / cover no-repeat;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Light touch only: the image carries its own fade. */
  background: linear-gradient(90deg, rgba(10, 28, 62, 0.35) 0%, rgba(10, 28, 62, 0) 45%);
}

.hero__inner {
  /* Bottom padding = visible gap (54px) + the panel's 142px overlap. */
  padding: 54px 0 196px;
  max-width: var(--max);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  color: var(--orange);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin: 0 0 44px;
  max-width: 34em;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  max-width: 980px;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.hero__features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.icon-wrap {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 32px;
}

.icon-wrap svg,
.icon-wrap wa-icon {
  width: 32px;
  height: 32px;
}

/* Page body */
.page {
  padding: 0 0 56px;
  position: relative;
  z-index: 2;
}

.panel {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(10, 28, 62, 0.16);
  padding: 37px 28px 28px;
  margin-top: -142px;
}

.page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 8px;
}

.form-section h2,
.sidebar h2,
.sidebar h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sidebar-card--tint h2 {
  font-size: 16px;
}

.form-section h2 {
  font-size: 17px;
  font-weight: 800;
}

.fields {
  display: grid;
  gap: 14px 16px;
  margin-bottom: 14px;
}

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

.js-storage-capacity[hidden],
.js-other-field[hidden] {
  display: none;
}

label,
.field {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  margin: 0;
}

label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}

abbr {
  color: #e11d2e;
  text-decoration: none;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--text);
  background-color: var(--white);
  font-weight: 400;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6.5 10.5 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa3af;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--orange) 40%, white);
  border-color: var(--orange);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #eceff3;
  border-radius: 6px;
  padding: 4px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 9px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.segmented button.is-active {
  background: var(--white);
}

.hint {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Checkbox groups (product categories, preferred manufacturers) */
.check-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}

.check-group legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.legend-hint {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
}

.check-grid {
  display: grid;
  gap: 8px;
}

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

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.check:hover {
  border-color: #b9c1cc;
}

.check:has(:checked) {
  border-color: var(--orange);
  background: #fff6f2;
  font-weight: 600;
}

.check:has(:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--orange) 40%, white);
}

.check input {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--orange);
  cursor: pointer;
}

.check span {
  line-height: 1.3;
}

.check-group.is-invalid .check {
  border-color: #d93b1e;
}

.check-group .js-other-field:not([hidden]) {
  display: block;
  margin-top: 16px;
}

/* System Size sits on its own row, sized to the left column so it lines up
   with "Storage Required?" beneath it. */
.fields--2 .js-size-field {
  grid-column: 1 / -1;
  max-width: calc(50% - 8px);
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  border: 1.5px dashed #c5ccd6;
  border-radius: 8px;
  padding: 28px 16px;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  background: #fafbfc;
}

.dropzone strong {
  color: var(--navy);
}

.dropzone input {
  display: none;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--orange);
  background: #fff7f3;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  text-align: center;
}

.secure {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.secure svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}

.consent {
  margin: 12px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.consent a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
}

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

.btn--submit {
  min-width: 240px;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 28px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 24px 22px 22px;
  box-shadow: 0 6px 18px rgba(10, 28, 62, 0.06);
}

.sidebar-card--tint {
  background: #f3f6f9;
  box-shadow: none;
}

.sidebar-title {
  margin: 0 0 18px;
}

.sidebar-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  background: var(--orange);
  border-radius: 2px;
}

.sidebar .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e8eaee;
}

.steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.steps li:last-child {
  padding-bottom: 4px;
}

.steps__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8eef6;
  color: var(--navy);
  display: grid;
  place-items: center;
}

.steps__icon wa-icon {
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: #333b4a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.assist p {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.assist__phone {
  color: var(--orange);
}

.assist__email {
  color: var(--navy);
}

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

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
}

.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23f05a22'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Pre-footer */
.cta-bar {
  background: var(--navy);
  color: var(--white);
}

.cta-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}

.cta-bar__copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-bar__icon {
  display: grid;
  place-items: center;
  color: var(--white);
  flex: none;
}

.cta-bar__icon wa-icon {
  font-size: 36px;
}

.cta-bar h2 {
  margin: 0;
  font-size: 22px;
}

.cta-bar p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.cta-bar__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cta-bar__phone {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid #ececec;
  padding: 36px 0 18px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--navy);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #4b5563;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--orange);
}

.social {
  display: flex;
  gap: 14px;
}

.social a {
  display: block;
  line-height: 0;
  transition: opacity 0.15s;
}

.social a:hover {
  opacity: 0.75;
}

.social img {
  width: 28px;
  height: 28px;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 12px;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal span {
  margin: 0 8px;
}

@media (max-width: 1020px) {
  .site-header__tagline {
    display: none;
  }

  .page__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero__inner {
    padding: 36px 0 140px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(10, 28, 62, 0.96) 0%, rgba(10, 28, 62, 0.88) 100%);
  }

  .panel {
    margin-top: -98px;
    padding: 22px 16px 18px;
  }

}

@media (max-width: 720px) {
  .logo img {
    width: 160px;
  }

  .hero__inner {
    text-align: center;
  }

  /* Scales with the screen so "Request a Project Quote" stays on one line. */
  .hero h1 {
    font-size: clamp(22px, 7.6vw, 30px);
  }

  .hero__lead {
    margin: 0 auto 32px;
    font-size: 15px;
  }

  /* Stacked callouts: icon over title over description, centered, 2-up. */
  .hero__features {
    max-width: 360px;
    margin-inline: auto;
    gap: 28px 16px;
  }

  .hero__features li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .hero__features strong {
    margin-bottom: 2px;
  }

  .site-header__phone {
    padding-left: 0;
    border-left: 0;
  }

  .site-header__phone-label {
    display: none;
  }

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

  .fields--2,
  .cta-bar__inner,
  .site-footer__legal {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .fields--2 .js-size-field {
    max-width: none;
  }

  .form-card {
    padding: 20px 16px;
  }

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

  .cta-bar__copy {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-bar__actions {
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .cta-bar__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Centered footer */
  .site-footer__grid {
    justify-items: center;
    text-align: center;
  }

  .site-footer .logo img {
    margin-inline: auto;
  }

  .social {
    justify-content: center;
  }

  .site-footer__legal {
    justify-items: center;
    text-align: center;
  }

  .btn--submit {
    width: 100%;
  }
}

/* Honeypot: visually removed, still submitted */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submission feedback */
.form-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #f3b7a6;
  background: #fff3ef;
  color: #9a2f0e;
  font-size: 14px;
}

.quote-form :is(input, select, textarea).is-invalid {
  border-color: #d93b1e;
  box-shadow: 0 0 0 3px rgba(217, 59, 30, 0.15);
}

.btn--submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Thank-you page */
.thanks {
  background: var(--bg);
  padding: 56px 0 72px;
}

.thanks__inner {
  max-width: 640px;
  text-align: center;
}

.thanks__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #1d8a45;
  font-size: 38px;
  margin-bottom: 20px;
}

.thanks h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.thanks__lead {
  margin: 0 auto 32px;
  max-width: 34em;
  font-size: 16px;
  color: #333b4a;
}

.thanks__next {
  text-align: left;
  background: var(--white);
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 22px 22px 6px;
  margin-bottom: 28px;
}

.thanks__next h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.thanks__assist {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.thanks__assist a {
  color: var(--navy);
  font-weight: 600;
}
