/* Homeowner service pages */
.owner-banner { position: relative; isolation: isolate; overflow: hidden; background: #111; color: #fff; }
.owner-banner .banner-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.owner-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .94) 0%, rgb(0 0 0 / .84) 27%, rgb(0 0 0 / .64) 44%, rgb(0 0 0 / .15) 72%, rgb(0 0 0 / .12)); }
.banner-inner { display: flex; align-items: center; min-height: clamp(445px, 39vw, 640px); padding-block: 64px; }
.banner-copy { width: min(100%, 510px); }
.van-hero h1 { margin: 14px 0 18px; font-size: clamp(3rem, 5vw, 5.2rem); line-height: 1.02; text-wrap: balance; }
.banner-copy > p:not(.eyebrow) { max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; }
.owner-banner .eyebrow { color: #fff; }
.banner-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.owner-call, .owner-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; font-weight: 750; }
.owner-call { color: white; background: #b91421; border-radius: 4px; padding: 10px 19px; text-decoration: none; }
.owner-call:hover { background: #9e1220; }
.owner-secondary { color: white; text-underline-offset: 5px; gap: .5rem; }
.owner-why { background: white; }
.benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(22px, 3vw, 44px); margin-top: 40px; }
.benefit-list h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.16; margin: 12px 0; letter-spacing: -.03em; }
.benefit-list p, .homeowner-services .section-heading > p:last-child { color: var(--muted); max-width: 69ch; }
.homeowner-services .section-heading > p:last-child { margin: 18px 0 0; }
.homeowner-services .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.homeowner-services .service-card { border: 1px solid #deded9; }
.homeowner-services .service-card > img { height: auto; aspect-ratio: 16/9; object-fit: cover; }
.homeowner-services .service-card h3 { margin-top: 0; }
.homeowner-services .service-card p { margin: 12px 0 0; }
.footer-photo-cta .banner-inner { width: min(1200px, calc(100% - clamp(40px, 10vw, 160px))); min-height: 440px; padding-block: clamp(56px, 6vw, 88px); }
.footer-photo-cta .banner-copy { width: min(100%, 590px); }
.footer-photo-cta .eyebrow { margin-bottom: 20px; }
.footer-photo-cta .banner-copy > p:not(.eyebrow) { margin: 20px 0 0; }
.footer-photo-cta .banner-actions { margin-top: 28px; gap: 12px 16px; }
.footer-photo-cta .banner-actions a { min-height: 48px; }
.footer-photo-cta .banner-image { object-position: 60% 50%; }
.home-page .footer-photo-cta h2 { max-width: 18ch; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; }
.contact-page .request-copy h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 10px 0; line-height: 1.05; }
.review-rail .customer-review { flex-basis: calc((100% - 48px) / 3.2); }
@media (max-width: 980px) {
  .homeowner-services .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-rail .customer-review { flex-basis: calc((100% - 32px) / 2.2); }
}
@media (max-width: 760px) {
  .van-hero .banner-image { height: clamp(182px, 43vw, 310px); object-position: 62% center; }
  .van-hero::before { background: linear-gradient(to bottom, rgb(0 0 0 / .12), rgb(0 0 0 / .18) 80px, #111 clamp(182px, 43vw, 310px)); }
  .van-hero .banner-inner { min-height: auto; padding-block: clamp(165px, 39vw, 285px) 40px; }
  .van-hero h1 { font-size: clamp(2.65rem, 8vw, 3.7rem); }
  .benefit-list { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .benefit-list p { margin-block: 0; }
  .footer-photo-cta::before { background: linear-gradient(90deg,rgb(0 0 0 / .87),rgb(0 0 0 / .68)); }
  .footer-photo-cta .banner-inner { min-height: auto; }
}
@media (max-width: 600px) {
  .homeowner-services .service-grid { grid-template-columns: 1fr; }
  .review-rail .customer-review { flex-basis: 83%; }
}

/* Compact project gallery: keep a partial next card visible at every breakpoint. */
.home-page .job-gallery { background: white; padding-block: clamp(48px, 5vw, 72px); }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.gallery-heading .eyebrow { margin-bottom: 12px; }
.home-page .gallery-heading h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.gallery-heading > p { max-width: 28ch; margin: 0; color: var(--muted); font-size: .95rem; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gallery-tabs[hidden], .gallery-controls[hidden], .gallery-card[hidden] { display: none; }
.gallery-tabs button { padding: 10px 16px; min-height: 44px; border: 1px solid #d5dade; border-radius: 4px; background: white; color: var(--ink); font: 700 .85rem/1.3 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.gallery-tabs button:hover { border-color: var(--red); }
.gallery-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.gallery-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: #87959e #eef0f1; padding-bottom: 14px; }
.gallery-card { flex: 0 0 calc((100% - 48px) / 3.25); margin: 0; min-width: 0; scroll-snap-align: start; background: #f5f3ef; border-radius: 5px; overflow: hidden; }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 14px 16px; font-size: .85rem; font-weight: 700; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.gallery-footer p { color: var(--muted); font-size: .8rem; margin: 0; }
.gallery-controls { display: flex; gap: 8px; margin-left: auto; }
.gallery-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #9ea9ae; background: white; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
#gallery-panel:focus-visible { outline: 3px solid #e9a625; outline-offset: 5px; }
@media (max-width: 980px) {
  .gallery-card { flex-basis: calc((100% - 32px) / 2.25); }
  .gallery-heading { display: block; }
  .gallery-heading > p { max-width: none; margin-top: 14px; }
}
@media (max-width: 600px) {
  .gallery-card { flex-basis: 82%; }
  .gallery-tabs { gap: 6px; }
  .gallery-tabs button { padding-inline: 12px; font-size: .78rem; }
}

@media (max-width: 520px) {
  .footer-photo-cta .banner-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Keep the requested name and contact field pairs together at every width. */
.contact-page .basic-contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-page .form-field input { min-width: 0; }

/* The homepage introduces the shop to customers and prospective crew members. */
.van-hero .banner-copy { width: min(100%, 625px); }
.van-hero h1 { font-size: clamp(2.75rem, 4.4vw, 4.6rem); }
.van-hero .banner-actions { gap: 12px 16px; }
.hero-hiring-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid white; border-radius: 4px; background: white; color: var(--ink); font-size: .93rem; font-weight: 800; text-decoration: none; }
.hero-hiring-button:hover { background: #f4f1e9; }
.company-intro { max-width: 60ch; color: var(--muted); font-size: 1.15rem; margin: 24px 0 0; }
.benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-review-link { display: inline-block; margin-top: 8px; color: var(--red-dark); font-weight: 700; text-underline-offset: 4px; }
.homeowner-services .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.homeowner-services .service-card h3 { font-size: 1.3rem; }
.homeowner-services .service-card:nth-child(5) > img { object-position: 50% 68%; }
@media (max-width: 1100px) {
  .homeowner-services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .van-hero .banner-copy { display: flex; flex-direction: column; }
  .van-hero .eyebrow { order: 0; margin-bottom: 0; }
  .van-hero h1 { order: 1; font-size: clamp(2.2rem, 7.5vw, 3rem); margin-block: 12px 18px; }
  .van-hero .banner-actions { order: 2; margin-top: 0; }
  .van-hero .banner-copy > p:not(.eyebrow) { order: 3; margin: 22px 0 0; }
  .van-hero .hero-hiring-button { order: -1; }
  .benefit-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .homeowner-services .service-grid { grid-template-columns: minmax(0, 1fr); }
  .van-hero .banner-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .van-hero .hero-hiring-button { padding-inline: 10px; font-size: .87rem; }
}

.ghl-contact-form { display: block; width: 100%; height: 900px; border: 0; border-radius: 8px; }
.contact-form-fallback { margin: 16px 0 0; color: #52606a; font-size: .83rem; line-height: 1.5; }

/* Give the GHL form room for paired desktop fields and comfortable gutters. */
.contact-page .request-grid { width: min(1280px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr); gap: 36px; }
.contact-page .request-copy { max-width: 620px; }
@media (min-width: 900px) {
  .contact-page .request-grid { width: min(1280px, calc(100% - 96px)); }
  .contact-page .request-form-wrap { padding: 20px; }
}
@media (min-width: 1200px) {
  .contact-page .request-grid { grid-template-columns: minmax(0, 1fr) minmax(750px, 1.6fr); gap: 48px; }
}
@media (max-width: 600px) {
  .contact-page .request-grid { width: calc(100% - 30px); }
}

@media (min-width: 761px) {
  .benefit-list { grid-template-rows: auto auto; row-gap: 0; }
  .benefit-list article { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
}

.benefit-icon { display: block; width: 28px; height: 28px; margin-bottom: 16px; color: var(--red-dark); }

/* Compact review introduction and readable swipe cards on phones. */
@media (max-width: 760px) {
  .home-reviews.section { padding-block: 48px; }
  .home-reviews .section-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
  .home-reviews .eyebrow { margin-bottom: 14px; font-size: .75rem; }
  .home-reviews #reviews-title { font-size: clamp(1.85rem, 7vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; max-width: 20ch; }
  .home-reviews .review-rating { display: flex; align-items: center; gap: 14px; justify-self: start; }
  .home-reviews .review-rating strong { flex-shrink: 0; font-size: 2rem; }
  .home-reviews .review-rating strong span { font-size: 1rem; }
  .home-reviews .review-rating p { margin: 0; font-size: .85rem; line-height: 1.4; }
  .home-reviews .review-rail { gap: 14px; }
  .home-reviews .review-rail .customer-review { flex-basis: 88%; padding: 20px; }
  .home-reviews .customer-review blockquote { font-size: 1rem; line-height: 1.5; margin-block: 18px 22px; }
  .home-reviews .review-foot { margin-top: 4px; }
}

/* Tap- and keyboard-accessible help, kept compact within the backflow card. */
.backflow-help { position: relative; margin-top: 18px; }
.backflow-help summary { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--red-dark); font-size: .8rem; font-weight: 750; line-height: 1.4; cursor: pointer; list-style: none; }
.backflow-help summary::-webkit-details-marker { display: none; }
.backflow-help summary svg { width: 19px; height: 19px; flex-shrink: 0; }
.backflow-help summary:focus-visible { outline: 3px solid #e9a625; outline-offset: 4px; }
.backflow-tooltip { position: absolute; inset: calc(100% + 4px) auto auto 0; z-index: 8; width: min(320px, calc(100vw - 60px)); padding: 18px; background: #fff; border: 1px solid #cbd1d5; border-radius: 6px; box-shadow: 0 8px 24px rgb(16 24 32 / .16); }
.homeowner-services .backflow-tooltip p { margin: 0 0 12px; color: var(--ink); font-size: .85rem; line-height: 1.55; }
.homeowner-services .backflow-tooltip a { display: inline-block; color: var(--red-dark); font-size: .82rem; }
