/* Company page. Colors come from the company's brand (set on .co-theme by colors.themeStyle);
   without brand colors the Verified Roofers blue is used. */
.co-theme { --co-1: #0D7FAE; --co-2: #0B263E; --co-btn: #1094C9; --co-btn-text: #fff; --co-btn-hover: #0D7FAE; --co-btn-hover-text: #fff; --co-tint: #EAF6FC; }

/* ---------------------------------------------------------------- buttons */
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.co-btn:active { transform: translateY(1px); }
.co-btn--solid { background: var(--co-btn); color: var(--co-btn-text); }
.co-btn--solid:hover { background: var(--co-btn-hover); color: var(--co-btn-hover-text); }
.co-btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.co-btn--light:hover { background: transparent; color: #fff; }
.co-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.co-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.co-btn--outline { background: #fff; color: var(--co-1); border-color: var(--co-btn); }
.co-btn--outline:hover { background: var(--co-btn); color: var(--co-btn-text); }
.btn--sm.co-btn { padding: 8px 16px; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.co-hero { position: relative; background: var(--navy) center / cover no-repeat; color: #fff; padding: 64px 0 56px; }
.co-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 43, .92) 0%, rgba(8, 26, 43, .78) 45%, rgba(8, 26, 43, .45) 100%); }
.co-hero--plain { background-image: linear-gradient(120deg, #0B263E 0%, #123a5c 60%, #0f5f86 100%); }
.co-hero--plain::before { display: none; }
.co-hero__inner { position: relative; display: flex; align-items: center; gap: 36px; }
.co-hero__logo { flex: 0 0 auto; width: 168px; height: 168px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-hero__text { min-width: 0; }
.co-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 12px 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.co-badge svg { color: #7CD39A; }
.co-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 0 0 12px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.co-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 26px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.co-hero__meta span, .co-hero__meta a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.co-hero__meta .stars { color: #FFC940; letter-spacing: 0; }
.co-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------------------------------------------------------------- layout */
.co-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-top: 48px; }
.co-main { min-width: 0; }
.co-section { margin-bottom: 48px; }
.co-section h2 { font-size: 24px; margin: 0 0 18px; padding-bottom: 12px; position: relative; }
.co-section h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--co-btn); }
.co-about p { font-size: 17px; line-height: 1.75; color: #24384b; }
.co-muted { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- offer */
.co-offer { position: relative; overflow: hidden; background: var(--co-tint); border: 1px solid color-mix(in srgb, var(--co-btn) 35%, transparent); border-left: 5px solid var(--co-btn); border-radius: 10px; padding: 18px 22px; margin: 0 0 40px; }
.co-offer__label { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--co-1); margin: 0 0 4px; }
.co-offer h3 { margin: 0 0 4px; font-size: 20px; }
.co-offer p:last-child { margin: 0; }

/* ---------------------------------------------------------------- services */
.co-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co-services li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #E5E9EE; border-radius: 10px; font-size: 15px; font-weight: 600; }
.co-services svg { flex: none; color: var(--co-btn-text); background: var(--co-btn); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* ---------------------------------------------------------------- gallery */
.co-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.co-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--gray); }
.co-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.co-gallery a:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------- reviews */
.co-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.co-reviews__score { margin: 0; font-size: 15px; }
.co-reviews__score strong { font-size: 26px; margin-right: 4px; }
.stars { color: #F5A623; letter-spacing: 2px; }
.co-review { margin: 0 0 14px; padding: 18px 20px; background: #fff; border: 1px solid #E5E9EE; border-radius: 10px; }
.co-review p { margin: 0 0 8px; }
.co-review footer { font-size: 14px; font-weight: 600; color: var(--muted); }
.co-review-form summary { list-style: none; margin: 14px 0 16px; }
.co-review-form summary::-webkit-details-marker { display: none; }
.co-theme .co-review-form summary.btn--outline { border-color: var(--co-btn); color: var(--co-1); }
.co-theme .co-review-form summary.btn--outline:hover { background: var(--co-btn); color: var(--co-btn-text); }
.co-review-form .form { max-width: 520px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 30px; color: #ccc; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #F5A623; }
.rating-input input:focus-visible + label { outline: 2px solid var(--blue); }

/* ---------------------------------------------------------------- map */
.co-map .map { height: 340px; border-radius: 10px; }
.co-map__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.co-map-pin { background: none; border: 0; }

/* ---------------------------------------------------------------- sidebar */
.co-side { display: flex; flex-direction: column; gap: 20px; }
.co-card { background: #fff; border: 1px solid #E5E9EE; border-radius: 14px; padding: 24px; box-shadow: 0 4px 18px rgba(11, 38, 62, .06); }
.co-card h2 { font-size: 20px; margin: 0 0 6px; }
.co-quote { border-top: 5px solid var(--co-btn); }
.co-quote .co-muted { margin: 0 0 16px; }
.co-quote .field { margin-bottom: 12px; }
.co-quote label { font-size: 13px !important; font-weight: 600; margin-bottom: 4px !important; }
.co-quote input, .co-quote textarea { width: 100%; padding: 10px 12px; border: 1px solid #CFD6DC; border-radius: 8px; font-size: 15px; background: #fff; }
.co-quote input:focus, .co-quote textarea:focus { outline: none; border-color: var(--co-btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-btn) 25%, transparent); }
.co-quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.co-quote .field__error { color: var(--red); font-size: 13px; margin: 4px 0 0; }
.co-quote .field__error:empty { display: none; }
.co-quote .is-invalid { border-color: var(--red); }
.co-quote .check--optin { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 14px; font-size: 13px !important; font-weight: 400; color: var(--muted); cursor: pointer; }
.co-quote .check--optin input { width: auto; margin-top: 3px; padding: 0; accent-color: var(--co-btn); }
.co-quote .form__done { background: #EAF7EE; color: #1D6B33; border-radius: 8px; padding: 12px 14px; margin: 12px 0 0; }
.co-quote .co-btn { margin-top: 4px; width: 100%; }
.co-contact-card h2 { margin-bottom: 14px; }
.co-contact-list { list-style: none; padding: 0; margin: 0 0 4px; }
.co-contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #EEF1F4; font-size: 15px; word-break: break-word; }
.co-contact-list li:first-child { border-top: 0; padding-top: 0; }
.co-contact-list svg { flex: none; margin-top: 2px; color: var(--co-1); }
.co-contact-list a { color: var(--navy); text-decoration: none; }
.co-contact-list a:hover { color: var(--co-1); text-decoration: underline; }
.co-contact-list .co-small-link { font-size: 13px; font-weight: 600; color: var(--co-1); }
.co-social { list-style: none; padding: 14px 0 0; margin: 10px 0 0; border-top: 1px solid #EEF1F4; display: flex; flex-wrap: wrap; gap: 8px; }
.co-social a { width: 38px; height: 38px; border: 2px solid var(--co-2); color: var(--co-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.co-social a:hover { background: var(--co-btn); border-color: var(--co-btn); color: var(--co-btn-text); }
.co-trust { background: #F6F8FA; box-shadow: none; padding: 18px 20px; }
.co-trust__title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px; }
.co-trust__title svg { color: #2E9A55; }
.co-trust p:last-child { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ---------------------------------------------------------------- mobile call bar */
.co-mobile-bar { display: none; }

@media (max-width: 1024px) {
  .co-body { grid-template-columns: 1fr; gap: 0; }
  .co-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
  .co-trust { align-self: start; }
}
@media (max-width: 760px) {
  .co-hero { padding: 36px 0 32px; }
  .co-hero__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .co-hero__logo { width: 112px; height: 112px; border-radius: 14px; padding: 10px; }
  .co-hero__ctas .co-btn { flex: 1 1 40%; padding: 11px 14px; font-size: 15px; }
  .co-hero__ctas .co-btn--solid { flex-basis: 100%; }
  .co-gallery { grid-template-columns: repeat(2, 1fr); }
  .co-about p { font-size: 16px; }
  .co-side { grid-template-columns: 1fr; }
  .co-mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
  .co-mobile-bar .co-btn { flex: 1; padding: 13px 10px; }
  .co-mobile-bar .co-btn--light { background: #fff; color: var(--co-1); border-color: var(--co-btn); }
  body:has(.co-mobile-bar) { padding-bottom: 76px; }
}
.co-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--co-1); font-weight: 600; text-decoration: underline; cursor: pointer; }
a.co-badge { text-decoration: none; color: inherit; }
a.co-badge:hover { text-decoration: underline; }
.co-creds__list, .co-creds__certs { list-style: none; margin: 0; padding: 0; }
.co-creds__list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; color: var(--navy); }
.co-creds__list svg { color: var(--co-1); flex: 0 0 auto; }
.co-creds__license { margin: 10px 0 0; font-size: 14px; }
.co-creds__label { margin: 12px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.co-creds__certs { display: flex; flex-wrap: wrap; gap: 6px; }
.co-creds__certs li { background: var(--co-tint); color: var(--navy); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.co-creds__note { font-size: 12px; margin: 12px 0 0; }
.co-trust a { color: var(--co-1); font-weight: 600; }

/* "Is this your business?" card under Contact */
.co-owner__title { font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.co-owner .co-muted { font-size: 14px; margin: 0 0 12px; }
.co-owner__btn { width: 100%; justify-content: center; }
.co-owner__upgrade { margin: 10px 0 0; font-size: 14px; text-align: center; }
.co-owner__upgrade .form__done { font-size: 13px; color: var(--muted); }
.co-owner__upgrade .form__status:empty { display: none; }
.co-owner__report { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #EEF1F4; font-size: 13px; color: var(--muted); }
.co-owner__report a, .co-owner__upgrade a { color: var(--co-1); font-weight: 600; }
