
/* BILLINGS HOME PROS — GLOBAL STYLES */
/* Modern charcoal, white, and electric-blue theme */

/* BASE */

:root {
  --forest: #18382d;
  --forest-light: #285343;
  --cream: #f5f0e5;
  --sand: #e5d8bd;
  --rust: #b65c32;
  --charcoal: #25312c;
  --white: #ffffff;
  --muted: #68706c;
  --dark: #0b1117;
  --navy: #101b27;
  --blue: #25b9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 670px;
  margin-bottom: 22px;
  color: var(--forest);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -3px;
}

h1 span {
  color: var(--rust);
}

/* HEADER */

.siteHeader {
  min-height: 86px;
  padding: 14px 7%;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 5px 24px rgba(0,0,0,0.18);
}

.textBrand {
  display: flex;
  flex-direction: column;
}

.brandMain {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: white;
}

.brandSub {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--sand);
}

.siteHeader nav a {
  color: white;
}

.siteHeader nav a:hover {
  color: var(--blue);
}

/* HOMEPAGE HERO */

.hero {
  padding: 55px 7% 80px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  overflow: hidden;
}

.heroCopy {
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow.light {
  color: var(--sand);
}

.hero .eyebrow {
  color: var(--blue);
}

.hero h1 {
  max-width: 900px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--blue);
}

.heroText {
  max-width: 630px;
  margin: 0 auto 30px;
  color: #c4d2df;
  font-size: 1.12rem;
  line-height: 1.7;
}

.heroLogoWrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heroLogo {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(32,53,43,0.12);
}

/* SEARCH */

.searchBox {
  width: 100%;
  max-width: 680px;
  padding: 7px;
  background: white;
  border: 1px solid #d7ccb5;
  border-radius: 10px;
  display: flex;
  box-shadow: 0 12px 35px rgba(35,48,42,0.1);
}

.hero .searchBox {
  margin-left: auto;
  margin-right: auto;
  border-color: var(--blue);
}

.searchBox input {
  flex: 1;
  min-width: 0;
  padding: 17px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
}

.searchBox button,
.lightButton {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.searchBox button {
  padding: 0 28px;
  background: var(--rust);
  color: white;
}

.searchBox button:hover {
  opacity: 0.9;
}

.hero .searchBox button {
  background: var(--blue);
  color: var(--dark);
}

.hero .searchBox button:hover {
  background: #64d0ff;
}

.searchHint {
  margin: 12px 5px 0;
  color: #727873;
  font-size: 0.78rem;
}

/* HOMEPAGE SECTIONS */

.servicesSection,
.whySection {
  padding: 85px 7%;
}

.servicesSection {
  background: var(--dark);
}

.sectionHeading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.builtForBillings {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contractorBenefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 22px 0 28px;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
}

.contractorBenefits span {
  white-space: nowrap;
}

.listingTrustNote {
  margin: 0 0 26px;
  padding: 15px 18px;
  background: #f8f1df;
  border: 1px solid #ded3bc;
  border-radius: 8px;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.5;
}

.listingTrustNote strong {
  display: block;
  margin-bottom: 3px;
  color: var(--forest);
}

.listingTrustNote span {
  font-size: 0.9rem;
}

.sectionHeading h2 {
  margin-bottom: 15px;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.sectionHeading p {
  color: #626a66;
  line-height: 1.7;
}

.servicesSection .sectionHeading h2 {
  color: white;
}

.servicesSection .sectionHeading p {
  color: #c4d2df;
}

.servicesSection .eyebrow {
  color: var(--blue);
}

/* SERVICE CARDS */

.serviceGrid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.serviceCard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--navy);
  border: 1px solid #273d50;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.serviceCard:hover {
  transform: translateY(-5px);
  border-color: var(--sand);
  box-shadow: 0 14px 30px rgba(32,53,43,0.1);
}

.serviceArtwork {
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: #e8dfc9;
}

.serviceArtwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serviceCardContent {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 14px 18px;
  text-align: center;
}

.serviceCard h3 {
  margin: 0 0 10px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.serviceCard p {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0 0 16px;
  color: #c4d2df;
  font-size: 0.9rem;
  line-height: 1.55;
}

.serviceBrowse {
  display: block;
  margin-top: auto;
  width: 100%;
  padding: 13px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.serviceCard .serviceBrowse {
  background: var(--blue);
  color: var(--dark);
}

.serviceIcon {
  margin-bottom: 20px;
  font-size: 2rem;
}

/* WHY HOME PROS */

.whySection {
  background: white;
}

.whySection .sectionHeading h2,
.whySection .feature strong {
  color: var(--dark);
  font-family: Arial, Helvetica, sans-serif;
}

.whySection .eyebrow {
  color: #009de0;
}

.featureGrid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.feature {
  padding-top: 22px;
  border-top: 3px solid var(--blue);
}

.feature strong {
  color: var(--dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
}

.feature p {
  margin-top: 12px;
  color: #636b67;
  line-height: 1.65;
}

/* CONTRACTOR SECTION */

.proSection {
  padding: 65px 8%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-top: 1px solid #273d50;
}

.proSection > div {
  max-width: 700px;
}

.proSection h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.proSection p {
  margin-bottom: 0;
  color: #d7ded9;
  line-height: 1.7;
}

.proSection .eyebrow {
  color: var(--blue);
}

.lightButton {
  flex-shrink: 0;
  padding: 16px 28px;
  background: var(--sand);
  color: var(--forest);
  font-size: 0.95rem;
}

.proSection .lightButton {
  display: inline-block;
  padding: 18px 34px;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proSection .lightButton:hover {
  transform: translateY(-2px);
  background: #64d0ff;
  box-shadow: 0 9px 20px rgba(0,0,0,0.24);
}

/* FOOTER */

footer {
  padding: 45px 7%;
  background: #080d12;
  color: #dce2de;
  text-align: center;
  border-top: 1px solid #273d50;
}

footer strong {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

footer p {
  margin: 10px auto 18px;
  color: #c4d2df;
  font-size: 0.85rem;
}

footer small {
  color: #8296a8;
}

/* CATEGORY PAGES */

.categoryHero {
  padding: 75px 7%;
  background: var(--navy);
}

.categoryHeroInner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Match location line and category title sizes */

.categoryHero .eyebrow,
.categoryHero h1 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.categoryHero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
}

.categoryHero p {
  max-width: 700px;
  margin: 0 auto;
  color: #c4d2df;
  font-size: 1.1rem;
  line-height: 1.7;
}

.categoryContent {
  padding: 75px 7% 90px;
  background: white;
}

.categoryIntro {
  max-width: 1100px;
  margin: 0 auto 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.categoryIntro h2 {
  margin-bottom: 0;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.categoryIntro > p {
  margin-bottom: 0;
  color: #626a66;
  line-height: 1.7;
}

/* CATEGORY FILTERS */

.filterBar {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 18px;
  background: #f0f6fa;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filterBar a {
  padding: 11px 17px;
  background: white;
  color: var(--navy);
  border: 1px solid #d8d2c5;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.filterBar a:hover {
  background: #e0f4ff;
}

.filterBar a.activeFilter {
  background: #087fbd !important;
  border-color: #087fbd;
  color: white !important;
}

.comingSoon {
  max-width: 1100px;
  min-height: 220px;
  margin: 0 auto;
  padding: 45px;
  background: #fbfaf6;
  border: 1px solid #e2ded5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.comingSoonIcon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--sand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.comingSoon h2 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 1.7rem;
}

.comingSoon p {
  max-width: 700px;
  margin-bottom: 0;
  color: #68706c;
  line-height: 1.65;
}

/* BUSINESS LISTINGS */

.contractorList {
  max-width: 1100px;
  margin: 0 auto;
}

.contractorCard {
  padding: 32px;
  background: white;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(11,17,23,0.08);
}

.contractorTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.sampleBadge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  background: var(--sand);
  color: var(--forest);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.contractorCard h2 {
  margin-bottom: 7px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
}

.contractorLocation {
  margin-bottom: 0;
  color: #68706c;
  font-size: 0.9rem;
}

.ratingBox {
  flex-shrink: 0;
  min-width: 115px;
  padding: 10px 12px;
  background: #faf7ef;
  border: 1px solid #e3ddcf;
  border-radius: 8px;
  text-align: center;
}

.ratingBox strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rust);
  font-size: 1.2rem;
}

.ratingBox span {
  color: #68706c;
  font-size: 0.75rem;
}

.ratingScore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.1rem;
}

.ratingStar {
  color: #b7791f;
  font-size: 1.15rem;
}

.ratingScore strong {
  color: #234d3c;
}

.ratingSource,
.ratingCount {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
}

.ratingSource {
  margin-top: 3px;
  font-weight: 700;
  color: #555;
}

.ratingCount {
  color: #777;
}

.serviceTags {
  margin: 25px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.serviceTags span {
  padding: 7px 11px;
  background: #eaf7ff;
  color: #075b89;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.contractorDescription {
  max-width: 750px;
  color: #626a66;
  line-height: 1.65;
}

.homeProsRating {
  margin: 22px 0;
  padding: 15px 0;
  border-top: 1px solid #e2ded5;
  border-bottom: 1px solid #e2ded5;
  display: flex;
  gap: 15px;
}

.homeProsRating strong {
  color: var(--forest);
}

.homeProsRating span {
  color: #777d79;
}

.businessNameRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.businessNameRow h2 {
  margin: 0;
}

/* FEATURED / CLAIMED BADGES */

.featuredBadge,
.claimedBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.featuredBadge {
  background: #f2e4bd;
  color: #704b16;
  border: 1px solid #dfc77f;
}

.claimedBadge {
  background: #e6efe9;
  color: #234d3c;
  border: 1px solid #b9d0c1;
}

/* CONTRACTOR ACTIONS */

.contractorActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contractorActions button {
  padding: 12px 18px;
  background: white;
  color: var(--forest);
  border: 1px solid #cbc5b9;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.contractorActions .actionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.contractorActions .callButton,
.contractorActions .websiteButton {
  background: white;
  color: #234d3c;
  border: 1px solid #234d3c;
}

.contractorActions .callButton:hover,
.contractorActions .websiteButton:hover {
  background: #edf1ed;
}

.contractorActions .quoteButton {
  background: var(--blue);
  color: var(--dark);
  border: 1px solid var(--blue);
}

.contractorActions .quoteButton:hover {
  background: #18382c;
}

.contractorActions button:hover {
  opacity: 0.85;
}

/* QUOTE / CONTACT FORMS */

.quotePage {
  min-height: 70vh;
  padding: 60px 20px 80px;
  background: #f7f4ec;
}

.quoteFormCard {
  max-width: 720px;
  margin: 0 auto;
  padding: 38px;
  background: white;
  border: 1px solid #e3ddcf;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(35,77,60,0.08);
}

.quoteFormCard h1 {
  margin: 8px 0 10px;
  color: #234d3c;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.quoteBusiness {
  margin: 0 0 30px;
  color: #555;
  font-size: 1rem;
}

.quoteBusiness strong {
  color: #234d3c;
}

.quoteForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quoteForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #2f3b35;
  font-size: 0.9rem;
  font-weight: 800;
}

.quoteForm input,
.quoteForm textarea,
.quoteForm select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccc6b8;
  border-radius: 7px;
  background: white;
  color: #222;
  font: inherit;
}

.quoteForm input:focus,
.quoteForm textarea:focus,
.quoteForm select:focus {
  outline: none;
  border-color: #234d3c;
  box-shadow: 0 0 0 3px rgba(35,77,60,0.1);
}

.quoteForm textarea {
  resize: vertical;
  min-height: 140px;
}

.quoteFormRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contactHint {
  margin: -10px 0 0;
  color: #777;
  font-size: 0.8rem;
}

.quoteSubmitButton {
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid #234d3c;
  border-radius: 7px;
  background: #234d3c;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quoteSubmitButton:hover {
  background: #18382c;
}

.quoteSubmitButton:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.quoteMessage {
  padding: 13px 15px;
  border-radius: 7px;
  font-weight: 700;
}

.quoteMessage.success {
  background: #e6efe9;
  border: 1px solid #b9d0c1;
  color: #234d3c;
}

.quoteMessage.error {
  background: #f8e7e5;
  border: 1px solid #e4bbb6;
  color: #8a3027;
}

/* GET LISTED / CLAIM */

.contractorRequestChoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 30px;
}

.requestChoice {
  min-height: 54px;
  padding: 13px 18px;
  border: 2px solid #d8d1c1;
  border-radius: 8px;
  background: #faf7ef;
  color: #234d3c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease,
              border-color 0.15s ease,
              transform 0.15s ease;
}

.requestChoice:hover {
  border-color: #234d3c;
  background: #edf1ed;
  transform: translateY(-1px);
}

.requestChoice.activeRequestChoice {
  background: #234d3c;
  color: white;
  border-color: #234d3c;
  box-shadow: 0 4px 12px rgba(35,77,60,0.18);
}

/* FEATURED LISTING SUBSCRIPTION */

.featuredUpgrade {
  margin-top: 40px;
  padding: 30px 24px;
  background: #f8f1df;
  border: 1px solid #ded3bc;
  border-radius: 12px;
  text-align: center;
}

.featuredUpgrade h2 {
  margin: 8px 0 10px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.featuredUpgrade p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--charcoal);
  line-height: 1.6;
}

.featuredPrice {
  margin-bottom: 18px;
  color: var(--forest);
}

.featuredPrice strong {
  font-size: 2rem;
}

.featuredPrice span {
  margin-left: 4px;
  font-size: 0.95rem;
}

.featuredUpgradeButton {
  display: inline-block;
  padding: 14px 24px;
  background: var(--rust);
  border-radius: 8px;
  color: white !important;
  font-weight: 800;
  text-decoration: none;
}

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

.featuredUpgrade small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.featuredBusinessInput {
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  margin-bottom: 14px;
  border: 1px solid #ccc6b8;
  border-radius: 7px;
  background: white;
  color: #222;
  font: inherit;
}

.featuredBusinessInput::placeholder {
  color: #777;
}

.featuredBusinessInput:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(35,77,60,0.1);
}

.featuredBenefits {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.featuredBenefits span {
  display: block;
}

/* RESPONSIVE — TABLET */

@media (max-width: 1050px) {
  .serviceGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE — MOBILE */

@media (max-width: 760px) {
  .siteHeader {
    padding: 15px 5%;
  }

  nav {
    display: none;
  }

  .brandMain {
    font-size: 1.25rem;
  }

  .brandSub {
    font-size: 0.55rem;
  }

  .hero {
    padding: 55px 6% 65px;
    gap: 40px;
  }

  .heroCopy {
    width: 100%;
    max-width: 760px;
    text-align: center;
  }

  .heroLogoWrap {
    order: 0;
  }

  .heroLogo {
    max-width: 550px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
    letter-spacing: -2px;
  }

  .searchBox {
    flex-direction: column;
  }

  .searchBox button {
    padding: 16px;
  }

  .servicesSection,
  .whySection {
    padding: 65px 6%;
  }

  .serviceGrid,
  .featureGrid {
    grid-template-columns: 1fr;
  }

  .serviceCard {
    min-height: auto;
  }

  .serviceCard p {
    min-height: auto;
  }

  .proSection {
    padding: 55px 7%;
    align-items: flex-start;
    flex-direction: column;
  }

  .categoryHero {
    padding: 55px 6%;
  }

  .categoryContent {
    padding: 55px 6% 70px;
  }

  .categoryIntro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comingSoon {
    padding: 30px;
    align-items: flex-start;
    flex-direction: column;
  }

  .filterBar {
    padding: 14px;
  }
}

@media (max-width: 700px) {
  .contractorCard {
    padding: 23px;
  }

  .contractorTop {
    flex-direction: column;
  }

  .ratingBox {
    width: 100%;
    text-align: left;
  }

  .homeProsRating {
    flex-direction: column;
    gap: 5px;
  }

  .contractorActions button {
    flex: 1;
  }

  .contractorActions .quoteButton {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  .contractorActions .actionButton {
    width: 100%;
  }

  .ratingBox {
    width: fit-content;
    text-align: left;
  }

  .ratingScore {
    justify-content: flex-start;
  }

  .quotePage {
    padding: 35px 14px 60px;
  }

  .quoteFormCard {
    padding: 25px 18px;
  }

  .quoteFormRow {
    grid-template-columns: 1fr;
  }

  .contractorRequestChoices {
    grid-template-columns: 1fr;
  }
}

/* RESTORE APPROVED CATEGORY TYPOGRAPHY */

/* Billings / Laurel / Yellowstone County */
.categoryHero .eyebrow {
  color: #25b9ff;
  font-size: 1.2rem;
  font-weight: 800;
}

/* HVAC Companies in Billings, Montana */
.categoryHero h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
}

/* Find a Local HVAC Professional */
.categoryIntro .eyebrow {
  color: #009de0;
  font-size: 1.2rem;
  font-weight: 800;
}

/* HVAC professionals serving the Billings area */
.categoryIntro h2 {
  color: #101b27;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

/* BHP RESTYLE — COMPACT CATEGORY LISTINGS */

.categoryContent {
  padding-top: 35px;
  padding-bottom: 60px;
}

.categoryIntro {
  margin-bottom: 22px;
  gap: 30px;
}

.categoryIntro h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.categoryIntro > p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.6;
  color: #4b5861;
}

.filterBar {
  margin-bottom: 25px;
  padding: 12px;
}

/* BHP RESTYLE — GET LISTED PAGE */

.quotePage {
  background: #0b1117;
}

.quoteFormCard {
  border: 1px solid #273d50;
  border-radius: 16px;
}

.quoteFormCard h1 {
  color: #101b27;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.quoteFormCard .eyebrow {
  color: #009de0;
}

.contractorBenefits {
  color: #101b27;
}

.listingTrustNote {
  background: #eaf7ff;
  border-color: #b9e5ff;
}

.listingTrustNote strong {
  color: #101b27;
}

.requestChoice {
  background: #f0f6fa;
  border-color: #dce5ec;
  color: #101b27;
}

.requestChoice.activeRequestChoice {
  background: #087fbd;
  border-color: #087fbd;
  color: white;
}

.quoteSubmitButton {
  background: #25b9ff;
  border-color: #25b9ff;
  color: #0b1117;
}

/* BHP RESTYLE — FEATURED LISTING */

.featuredUpgrade {
  background: #eaf7ff;
  border: 1px solid #b9e5ff;
  border-radius: 14px;
}

.featuredUpgrade h2 {
  color: #101b27;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.featuredUpgrade p,
.featuredBenefits,
.featuredPrice {
  color: #101b27;
}

.featuredUpgradeButton {
  background: #25b9ff;
  color: #0b1117 !important;
  border: 1px solid #009de0;
}

.featuredUpgradeButton:hover {
  background: #64d0ff;
}

/* COMPACT MOBILE CATEGORY FILTERS */

@media (max-width: 760px) {
  .filterBar {
    padding: 10px;
    gap: 7px;
    margin-bottom: 20px;
  }

  .filterBar a {
    padding: 9px 12px;
    font-size: 0.8rem;
    border-radius: 7px;
  }
}

/* BHP STATIC CONTRACTOR HERO */

.hero {
  background:
    linear-gradient(
      rgba(11, 17, 23, 0.10),
      rgba(11, 17, 23, 0.30)
    ),
    url("/bhp-hero.png") center / cover no-repeat;
}
/* ALIGN CATEGORY BUTTONS */

.serviceCardContent {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.serviceBrowse {
  margin-top: auto;
}
/* MOBILE CATEGORY BUTTON SIZE */

@media (max-width: 600px) {
  .serviceBrowse {
    padding: 9px 6px;
    font-size: 0.78rem;
    border-radius: 7px;
  }

  .serviceCardContent {
    padding: 12px 10px;
  }
}
/* BHP LOGO CONTRAST */

.heroLogo {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.65));
}


/* OCTOBER 2026 — DIRECTORY UI POLISH */
/* Preserve the previously approved large category headings. */
.categoryHero h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.categoryHero .eyebrow {
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  letter-spacing: 0.12em;
}
.contractorCard {
  border-color: #dce7ef;
  box-shadow: 0 8px 24px rgba(11, 27, 45, 0.06);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contractorCard:hover {
  border-color: #9bcfe9;
  box-shadow: 0 12px 30px rgba(11, 27, 45, 0.1);
}
.contractorCard h2 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.contractorCard .homeProsRating {
  margin: 14px 0;
  padding: 12px 14px;
  background: #f5f9fc;
  border: 1px solid #e1eaf0;
  border-radius: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.contractorCard .homeProsRating strong {
  color: var(--navy);
}
.contractorCard .homeProsRating a {
  color: #087fbd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contractorActions .callButton,
.contractorActions .websiteButton {
  border-color: #b8cbd8;
  color: var(--navy);
}
.contractorActions .callButton:hover,
.contractorActions .websiteButton:hover {
  background: #eef8fd;
}
.contractorActions .quoteButton:hover {
  background: #64d0ff;
  border-color: #64d0ff;
  color: var(--dark);
}
.contractorActions .actionButton:focus-visible,
.filterBar a:focus-visible,
.serviceCard:focus-visible {
  outline: 3px solid #087fbd;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .categoryHero { padding: 52px 6%; }
  .categoryContent { padding: 48px 6% 65px; }
  .categoryHero h1 { font-size: clamp(2.3rem, 9vw, 3.8rem); }
  .contractorCard { padding: 20px; }
  .contractorCard h2 { font-size: 1.45rem; }
  .contractorCard .homeProsRating { align-items: flex-start; }
  .contractorActions .actionButton { flex: 1 1 145px; }
}
@media (max-width: 600px) {
  .contractorActions .actionButton { flex-basis: 100%; }
}


/* Stronger contractor card separation */
.contractorCard {
  border: 2px solid #8baec4;
  box-shadow: 0 7px 22px rgba(11, 27, 45, 0.10);
}
.contractorCard:hover {
  border-color: #087fbd;
  box-shadow: 0 12px 30px rgba(11, 27, 45, 0.15);
}


/* BUSINESS LOGOS ON CONTRACTOR CARDS */
.contractorIdentity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.contractorIdentityText {
  min-width: 0;
}
.businessLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid #d5e2eb;
  border-radius: 12px;
  background: #f1f8fc;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.8);
}
.businessLogo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: white;
}
.businessLogoFallback {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #087fbd;
  font-size: 2rem;
  line-height: 1;
}
@media (max-width: 600px) {
  .contractorIdentity { align-items: flex-start; gap: 12px; }
  .businessLogo { flex-basis: 56px; width: 56px; height: 56px; border-radius: 10px; }
  .businessLogoFallback { font-size: 1.65rem; }
}


/* Distinctive company-initial fallback when no verified logo is available */
.businessLogo {
  background: #0b2340;
  border: 2px solid #b8d8ea;
}
.businessLogoFallback {
  background: linear-gradient(145deg, #12395c, #071a31);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

/* Secondary service landing-page link */
.categorySeoLink {
  margin: 22px 0 24px;
}
.categorySeoLink a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid #c6e1f2;
  border-radius: 12px;
  background: #eef8ff;
  color: #135c8c;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.categorySeoLink a:hover,
.categorySeoLink a:focus-visible {
  background: #deeffc;
  border-color: #83c3eb;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .categorySeoLink { margin: 18px 0 22px; }
  .categorySeoLink a { padding: 12px 14px; font-size: 0.9rem; }
}


/* Consistent typography for homeowner guides on category pages */
.categoryContent section[aria-labelledby="local-roofing-guide"] h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #101b27;
}

.categoryContent section[aria-labelledby="local-roofing-guide"] p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: #4b5861;
  margin: 0 0 1rem;
}

