/* Bright Sky Services: shared stylesheet. Owner: BSS OpusHigh1.1. Page owners do not edit this file. */

:root {
  --navy: #0f2a47;
  --blue: #1f6fb2;
  --pale: #eef5fb;
  --amber: #f2a900;
  --green: #1e7b4f;
  --ink: #1f2933;
  --white: #ffffff;
  --gray: #d5dce3;

  --font-head: "Source Serif 4", Georgia, serif;
  --head-weight: 600;
  --font-body: "Atkinson Hyperlegible Next", Arial, sans-serif;

  --h1: 52px;
  --h2: 36px;
  --h3: 22px;
  --body: 18px;
  --small: 16px;

  --gutter: 32px;
  --max: 1200px;
  --header-h: 76px;
  --radius: 8px;
}

/* Second font pair: add class "fonts-b" to <html>, or open any page with ?fonts=b */
html.fonts-b {
  --font-head: "Public Sans", Arial, sans-serif;
  --head-weight: 700;
  --font-body: "Source Sans 3", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
}
h1 {
  font-size: var(--h1);
  letter-spacing: -0.01em;
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
  max-width: 70ch;
}
a {
  color: var(--blue);
}
a:hover {
  text-decoration-thickness: 2px;
}
img,
svg {
  display: block;
}
ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 16px;
}

/* ---------- Buttons ---------- */
/* Amber is used ONLY for Call and Request a visit. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #ffbc1f;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.btn-note {
  display: block;
  font-size: var(--small);
  margin-top: 8px;
}

/* Plain text link used for moving around, such as "See all services" */
.more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  color: var(--blue);
}
.more::after {
  content: " \2192";
}

/* ---------- Header (desktop and phone) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.wordmark {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
span.wordmark {
  cursor: default;
}
.site-nav {
  flex: 1;
}
.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: var(--small);
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--white);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover {
  text-decoration: underline;
}
.header-actions .btn {
  min-height: 48px;
  padding: 10px 18px;
  font-size: var(--small);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Bar fixed to the bottom of the phone screen ---------- */
.callbar {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
  background: var(--white);
  scroll-margin-top: var(--header-h);
}
.section--pale {
  background: var(--pale);
}
.section-intro {
  max-width: 70ch;
  margin-bottom: 40px;
}
.section-intro p:last-child {
  margin-bottom: 0;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Top section ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 20px;
  margin-bottom: 0;
}
.proof {
  margin: 20px 0 0;
  font-size: var(--small);
  color: var(--ink);
}
.proof .sep {
  color: var(--blue);
  padding: 0 6px;
}
.hero .photo {
  min-height: 440px;
}

/* ---------- Photo boxes ---------- */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  background: var(--gray);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--small);
  text-align: center;
}
.photo span {
  max-width: 32ch;
}
.photo--small {
  min-height: 200px;
}
.photo-caption {
  margin: 12px 0 0;
  font-weight: 700;
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: var(--small);
  font-weight: 700;
  text-decoration: none;
}
a.tag {
  border-color: var(--blue);
}
a.tag:hover {
  background: var(--pale);
}
a.tag::after {
  content: "\2193";
  margin-left: 8px;
  color: var(--blue);
}
.after-tags {
  margin-top: 24px;
}

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
}
.steps--3 {
  grid-template-columns: repeat(3, 1fr);
}
.steps li {
  counter-increment: step;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 700;
}
.steps strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ---------- Cards with icons ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}
.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.card h3 {
  margin: 16px 0 8px;
}
.card p {
  margin: 0;
}
.icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
}

/* ---------- Two-card price row ---------- */
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.price-card h3 {
  font-size: 26px;
}
.price-big {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 16px;
}
.price-card .checks {
  margin-bottom: 16px;
}
.price-card .btn-row,
.price-card .more {
  margin-top: auto;
  padding-top: 16px;
}
.not-covered {
  font-size: var(--small);
}

/* ---------- Check lists (green marks) ---------- */
.checks {
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Installer name row ---------- */
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  list-style: none;
  margin: 8px 0 24px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Trust grid and columns ---------- */
.trust-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  list-style: none;
}
.trust-facts li {
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.trust-facts strong {
  display: block;
  color: var(--navy);
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-row--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cols h3 {
  margin-bottom: 12px;
}
.plain-list {
  list-style: none;
}
.plain-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray);
}

/* ---------- Question list ---------- */
.faq {
  max-width: 820px;
  margin: 0;
}
.faq dt {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: var(--h3);
  color: var(--navy);
  padding-top: 24px;
  border-top: 1px solid var(--gray);
}
.faq dt:first-child {
  border-top: 0;
  padding-top: 0;
}
.faq dd {
  margin: 8px 0 24px;
}

/* ---------- Request form ---------- */
.form-card {
  max-width: 640px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.form-phone {
  font-size: 20px;
  margin-bottom: 24px;
}
.form-phone a {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 32px;
  color: var(--navy);
  text-decoration: none;
  display: block;
}
.req-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.req-form legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0;
  margin-bottom: 8px;
}
.step-label {
  display: block;
  font-size: var(--small);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.field {
  margin-bottom: 20px;
}
.field label,
.field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-size: var(--small);
  margin-top: 6px;
}
.req-form input[type="text"],
.req-form input[type="tel"],
.req-form select,
.req-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #8796a5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.req-form input:focus,
.req-form select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 2px var(--blue);
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid #8796a5;
  border-radius: var(--radius);
  font-weight: 400;
  cursor: pointer;
}
.radio-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.next-link {
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 48px;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.next-link::after {
  content: " \2192";
}
.form-step2 {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray);
}
.form-step2.is-inactive {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  opacity: 0.6;
  border-top: 0;
}
.form-error {
  color: #b42318;
  font-weight: 700;
  font-size: var(--small);
  margin: 6px 0 0;
}
.never-sell {
  font-size: var(--small);
  margin: 16px 0 0;
}
.form-thanks {
  padding: 24px;
  background: var(--pale);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--navy);
}
.zip-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}
.zip-card h2 {
  font-size: 26px;
}

/* ---------- Final band ---------- */
.final-band {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.final-band p {
  margin: 0 auto 8px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 30px;
  color: var(--white);
  line-height: 1.25;
}
.final-band .band-phone {
  display: inline-block;
  margin: 8px 0 0;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.final-band .band-phone:hover {
  text-decoration: underline;
}
.final-band .btn-row {
  justify-content: center;
}
.final-band .btn {
  border-color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--small);
}
.site-footer a {
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h2 {
  color: var(--white);
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 8px;
}
.footer-grid .wordmark {
  display: inline-block;
  margin-bottom: 12px;
}
.footer-phone {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.footer-base {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-base p {
  margin: 0;
}

/* ---------- Landing page footer (privacy link only) ---------- */
.site-footer--slim .footer-base {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Template labels (only on _template.html) ---------- */
.part-label {
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 8px var(--gutter);
  border-top: 2px dashed var(--blue);
  margin: 0;
  max-width: none;
}

/* =========================================================
   Narrower screens: header switches to the phone header
   ========================================================= */
@media (max-width: 1099px) {
  .site-nav {
    display: none;
  }
  .header-actions {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px var(--gutter) 24px;
  }
  .site-header.is-open .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-header.is-open .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: var(--body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   Phone layout
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --h1: 32px;
    --h2: 26px;
    --h3: 20px;
    --gutter: 20px;
    --header-h: 64px;
  }
  .wordmark {
    font-size: 21px;
  }
  .section {
    padding: 56px 0;
  }
  .section-intro {
    margin-bottom: 28px;
  }

  .hero {
    padding: 24px 0 48px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero h1 {
    margin-bottom: 12px;
  }
  .hero .lede {
    font-size: var(--body);
  }
  .proof {
    margin-top: 12px;
  }
  .hero .btn-row {
    margin-top: 16px;
  }
  .hero .photo {
    min-height: 260px;
    margin-top: 32px;
  }

  .btn-row {
    flex-direction: column;
    gap: 12px;
  }
  .btn-row .btn {
    width: 100%;
  }

  .tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .tag {
    padding: 10px 12px;
    font-size: 16px;
  }

  .steps,
  .steps--3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    padding: 16px;
  }
  .steps li::before {
    margin: 0;
    grid-row: span 2;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 16px;
    padding: 16px;
  }
  .card .icon {
    width: 32px;
    height: 32px;
    grid-row: span 2;
  }
  .card h3 {
    margin: 0 0 4px;
  }

  .price-row {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 24px;
  }

  .trust-facts,
  .photo-row,
  .photo-row--2,
  .cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cols {
    gap: 28px;
  }

  .form-card,
  .zip-card {
    padding: 20px;
  }

  .final-band {
    padding: 48px 0;
  }
  .final-band p {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* The bar fixed to the bottom of the phone screen */
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--gray);
  }
  .callbar .btn {
    min-height: 52px;
    padding: 8px 10px;
    font-size: 16px;
  }
  body.has-callbar {
    padding-bottom: 76px;
  }
}

/* ---------- Print ---------- */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-header {
    position: static;
  }
  .callbar,
  .menu-toggle {
    display: none !important;
  }
  body.has-callbar {
    padding-bottom: 0;
  }
  .section,
  .hero,
  .final-band {
    break-inside: avoid-page;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Landing page parts ---------- */
/* Slim header: wordmark (a <span>, not a link) plus a Call button that hides on phones */
.site-header--slim .header-call { margin-left: auto; min-height: 48px; padding: 10px 18px; font-size: var(--small); }
/* Top-section form card that sits right of the headline; hidden on phones */
.hero-form { align-self: start; }
@media (max-width: 767px) {
  .site-header--slim .header-call { display: none; }
  .hero-form { display: none; }
}

/* ---------- Small helpers ---------- */
figure { margin: 0; }
.photo--below { margin-top: 32px; }

/* ---------- Fixes after first browser check ---------- */
.header-actions .btn, .header-call { white-space: nowrap; }
.hero .photo--small { min-height: 220px; }
.zip-card input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #8796A5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.zip-card input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 2px var(--blue); }
@media (max-width: 1279px) and (min-width: 1100px) {
  .site-nav ul { gap: 16px; }
  .site-header .wrap { gap: 16px; }
}

/* ---------- Fixes after homeowner review of the template ---------- */
@media (min-width: 1100px) {
  .site-nav li:last-child { display: none; }
}
@media (max-width: 1099px) and (min-width: 768px) {
  .header-actions { display: flex; }
  .menu-toggle { margin-left: 0; }
}
.next-link {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 10px 20px;
  text-decoration: none;
}
.next-link:hover { background: var(--pale); }
@media (max-width: 767px) {
  .tags li { display: flex; }
  .tag { width: 100%; justify-content: space-between; }
}

/* ---------- Text-only top section (one column, no photo): section.hero.hero--text ---------- */
.hero--text .wrap { grid-template-columns: 1fr; }
.hero--text .wrap > div { max-width: 800px; }

/* ---------- Fixes after homeowner review of the home page ---------- */
.card:target { outline: 3px solid var(--blue); outline-offset: 2px; }
.plain-list { margin-bottom: 24px; }
