/* Joey Proffitt Agency — small additions on top of the shared design system */

/* Carrier logos are JPG/PNG with white backgrounds; let them sit on the page tint */
.hero-partners-list img { mix-blend-mode: multiply; }

/* Product hero: keep the copy clear of the photo (shorter titles than the reference) */
.p-head h1 .accent { display: block; }
.p-head .hero-bullets { max-width: 46ch; }
/* Keep the hero copy (long headings, bullets, the ZIP form) inside the panel the photo leaves free */
@media (min-width: 961px) {
  .p-head .hero-copy { max-width: calc(100vw - min(58vw, 880px) - max(0px, (100vw - var(--container)) / 2) - var(--gutter) - 1.5rem); }
  .p-head .crumbs { flex-wrap: wrap; }
  .p-head .hero-cta .cta-field { flex-shrink: 1; min-width: 7.5rem; }
  .p-head .hero-cta .cta-btn { padding-inline: clamp(1rem, 2vw, 1.8rem); }
}

/* Testimonials backdrop: soften the house photo so the heading stays readable */
.voices .voices-bg { opacity: .16; filter: saturate(.7); }

/* Quote modal: hosts the agency's existing quote request form */
.qw-card .qw-body { padding-bottom: 1rem; }
.qw-embed { margin-top: .4rem; border: 1.5px solid var(--navy-12); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.qw-embed { position: relative; }
.qw-embed iframe { display: block; width: 100%; height: 900px; border: 0; position: relative; }
/* Shown until the quote form has loaded (or if it never does): a way to reach a person instead. */
.qw-loading { margin: 0; padding: 1rem 1.2rem; font-size: .95rem; color: var(--navy-70); background: var(--mist); border-bottom: 1px solid var(--navy-08); }
.qw-loading[hidden] { display: none; }
.qw-loading a { font-weight: 700; color: var(--navy); }
.qw-book { font-size: .88rem; font-weight: 650; color: var(--teal-deep); }

.qw-card { max-height: min(92dvh, 760px) !important; }

/* Service-center modals: hide whichever view is inactive */
.pay-modal [hidden] { display: none !important; }

/* Embedded forms (contact, quote, refer-a-friend) */
.embed-frame { width: 100%; border: 0; display: block; min-height: 1000px; border-radius: var(--radius-sm); background: var(--white); }
.form-card .embed-frame { margin-top: 1.2rem; }
.embed-section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.embed-card { max-width: 820px; margin-inline: auto; background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(1.2rem, 2.5vw, 2rem); }
.embed-card h2 { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.8rem); letter-spacing: -.02em; margin-bottom: .4rem; }
.embed-card .embed-lede { color: var(--navy-70); margin-bottom: 1rem; }
.embed-card .embed-foot { margin-top: 1rem; text-align: center; color: var(--navy-70); font-weight: 600; }
.embed-card .embed-foot a { font-weight: 750; }

/* Member photo on the About / Meet Joey pages uses Joey's headshot */
.member img.avatar, .directory img.avatar { object-fit: cover; }
.member > picture, .directory .card > picture { flex-shrink: 0; }

/* Long-form bio note on Meet Joey */
.bio-note { max-width: 70ch; margin: 2rem auto 0; font-size: var(--text-lg); line-height: 1.7; color: var(--navy-70); text-align: center; }

/* Local pages: "find your city" search on /tennessee/ */
.city-finder { margin: 1.2rem 0 1.4rem; padding: 1.1rem 1.2rem; background: var(--mist); border-radius: var(--radius-sm); }
.city-finder label { display: block; font-weight: 750; color: var(--navy); margin-bottom: .55rem; }
.city-finder .cf-row { display: flex; gap: .6rem; }
.city-finder input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--navy-12); border-radius: var(--radius-sm); }
.city-finder input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.city-finder .btn { min-height: 48px; padding-inline: 1.4rem; }
.city-finder .cf-msg { margin: .6rem 0 0; color: var(--navy-70); font-size: .92rem; }
.p-article .area-note a { white-space: nowrap; }
.p-article .two-col { columns: 2 14rem; column-gap: 2rem; }
.p-article .two-col li { break-inside: avoid; }

/* Refer-a-friend and thank-you pages */
.refer-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.refer-actions .btn { flex: 1 1 12rem; }
.thanks-steps { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--navy-70); line-height: 1.7; }
.thanks-steps li { margin-bottom: .45rem; }

/* Product cards on the Independent Advantage page */
.values .card .card-link { display: inline-flex; margin-top: .6rem; font-weight: 700; font-size: .92rem; }

/* Videos: /videos/ page and the home page strip (built only when src/videos.json has videos) */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.vid-grid > li { display: flex; }
.vid-card { display: flex; flex-direction: column; width: 100%; background: var(--white); border: 1px solid var(--navy-08); border-radius: var(--radius-sm); overflow: hidden; }
.vid-thumb, .vid-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.vid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-thumb:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; }
.vid-play svg { width: 68px; height: 48px; filter: drop-shadow(0 6px 18px #0a1f4a66); transition: transform .2s var(--ease); }
.vid-thumb:hover .vid-play svg, .vid-thumb:focus-visible .vid-play svg { transform: scale(1.08); }
.vid-body { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.vid-body h2, .vid-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; text-wrap: pretty; }
.vid-date { margin: 0; font-size: .85rem; color: var(--navy-45); }
.vid-desc { margin: .2rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--navy-70); }
.vid-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.vid-head .eyebrow { margin-bottom: .6rem; }
.vid-head h2 { margin: 0; }
.vid-note { margin: 2rem 0 0; color: var(--navy-70); }
@media (prefers-reduced-motion: reduce) { .vid-play svg { transition: none; } }

/* Legal pages: section headings linked with #anchors (e.g. /terms/#text-messages) clear the sticky header */
.prose h2[id] { scroll-margin-top: 6.5rem; }

/* Links that open the chat assistant (build.py chat_entry(); only printed when A["chat"] is on) */
.chat-entry { margin: .9rem 0 0; }
.chat-entry a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--teal-deep); text-decoration: none; }
.chat-entry a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.chat-entry svg { flex: none; }
.options .chat-entry { text-align: center; margin-top: 1.4rem; }
.mobile-chat { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 650; color: var(--teal-deep); text-decoration: none; padding: .6rem 0; }

/* Pre-launch audit additions */
/* Trust next to the quote box on product and local pages */
.qc-review { margin: .9rem 0 0; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--mist); }
.qc-review .qc-stars { margin: 0 0 .25rem; color: var(--orange); letter-spacing: .1em; font-size: .85rem; }
.qc-review blockquote { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--navy); }
.qc-review figcaption { margin-top: .35rem; font-size: .8rem; color: var(--navy-70); }
.reviews-note { margin: 1.2rem 0 0; font-size: .85rem; color: var(--navy-70); text-align: center; }
.on-navy .reviews-note, .voices .reviews-note { color: inherit; opacity: .85; }
a.hero-verified { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* On small phones the quote form comes first: the decorative photo under the headline pushed it below the fold */
@media (max-width: 560px) { .product-mobile-photo { display: none !important; } }
