/* Base reset + typography */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--us-font);
  font-size: var(--us-fs-body);
  line-height: var(--us-lh-body);
  color: var(--us-text);
  background: var(--us-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--us-font);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .4em;
  color: inherit;
}

/* utility containers */
.container { max-width: var(--us-container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }
.section { padding: var(--us-section-y) 0; }
.section-dark { background: var(--us-navy); color: var(--us-white); }
.section-light { background: var(--us-bg-light); }

/* Eyebrow label (small uppercase orange tag) */
.eyebrow {
  font-size: var(--us-fs-eyebrow);
  text-transform: uppercase;
  color: var(--us-orange);
  font-weight: 500;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 35px;
  height: 3px;
  background: var(--us-orange);
}
.eyebrow.left-only::after { display: none; }
.eyebrow.left-only::before { width: 50px; background: linear-gradient(to right, var(--us-orange) 10px, transparent 10px, transparent 14px, var(--us-orange) 14px); height: 3px; }

.section-title {
  font-size: var(--us-fs-section-title);
  font-weight: 600;
  color: var(--us-navy);
  margin: 0 0 .5em;
  line-height: 1.15;
}
.section-title-light { color: var(--us-white); }

.lede {
  color: var(--us-text);
  max-width: 720px;
  margin: 0 auto 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--us-font);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 40px;
  border-radius: var(--us-radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--us-orange); color: var(--us-white); border-color: var(--us-orange); }
.btn-primary:hover { background: var(--us-orange-hover); border-color: var(--us-orange-hover); }
.btn-outline-light { background: transparent; color: var(--us-white); border-color: var(--us-white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; color: var(--us-navy); border-color: var(--us-navy); }
.btn-outline-dark:hover { background: rgba(31,41,55,.06); }
.btn-sm { padding: 12px 28px; font-size: 14px; }
.btn-lg { padding: 18px 44px; font-size: 18px; }

/* Pill toggle (Residential / Commercial) */
.pill-group {
  display: inline-flex;
  background: var(--us-white);
  padding: 6px;
  border-radius: var(--us-radius-pill);
  gap: 4px;
}
.pill {
  background: transparent;
  color: var(--us-gray-dark);
  border: none;
  padding: 8px 32px;
  border-radius: var(--us-radius-pill);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.pill.is-active { background: var(--us-orange); color: var(--us-white); }

/* Cards */
.card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-card);
  padding: 32px;
  box-shadow: var(--us-shadow-soft);
}
.card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--us-bg-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--us-orange);
  margin-bottom: 16px;
}
.card-icon-circle svg { width: 32px; height: 32px; }
.card h3, .card h4 {
  color: var(--us-navy);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}
.card p { color: var(--us-text); font-size: 15px; line-height: 1.55; }

/* Divider — orange dashed line decoration */
.divider-mark {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--us-orange) 10px, transparent 10px, transparent 14px, var(--us-orange) 14px);
}

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-1 { grid-template-columns: 1fr; }
.input, .textarea {
  width: 100%;
  background: var(--us-input-bg);
  border: 1px solid var(--us-input-border);
  border-radius: 6px;
  padding: 14px 16px;
  font: inherit;
  color: var(--us-text);
  outline: none;
  transition: border-color .15s ease;
}
.input:focus, .textarea:focus { border-color: var(--us-orange); }
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--us-text-muted); }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; color: var(--us-text-muted); }
.checkbox-row input[type="checkbox"] { margin-top: 4px; }

/* Skip link / a11y */
.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; }

/* Responsive */
@media (max-width: 1024px) {
  :root { --us-fs-hero: 52px; --us-fs-section-title: 34px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  :root { --us-fs-hero: 36px; --us-fs-section-title: 28px; --us-fs-body: 16px; }
  .section { padding: 48px 0; }
  .form-row { grid-template-columns: 1fr; }
  .btn { padding: 14px 28px; font-size: 15px; }
  .pill { font-size: 16px; padding: 8px 24px; }
}
