/* Top frame r1 — owner requests 27/09/2026 (replaces desktop-top-spacing-r1.css).
   - No bars above the hero: the editor-only "PRIVATE DESIGN REVIEW" strip is hidden at every
     width (visitors never saw it).
   - The gap above the hero photo is main's own padding (cream). A margin on the hero collapsed
     out of <main> and showed <body>'s dark background as a black band above the photo.
   - The header is absolute against <body>, so `top` = gap + its distance inside the photo:
     desktop 32+50, tablet 20+40, phone 8+28 (the last two = the previous inside distances).
   - Phone: the "by Be Home Remodeling" signature is smaller and tucked under the logo. */
.ds-home .ds-review { display: none; }
.ds-home main .v2-hero { margin-top: 0 !important; }

@media (min-width: 901px) {
  .ds-home:has(main .v2-hero) main { padding-top: 32px; }
  .ds-home .v2-hero.v7-hero { padding-top: 180px !important; }
  .ds-home:has(main .v2-hero) .v6-header:not(.is-sticky) { top: 82px; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .ds-home:has(main .v2-hero) main { padding-top: 20px; }
  .ds-home:has(main .v2-hero) .v6-header:not(.is-sticky) { top: 60px; }
}
@media (max-width: 767px) {
  .ds-home:has(main .v2-hero) main { padding-top: 8px; }
  .ds-home:has(main .v2-hero) .v6-header:not(.is-sticky) { top: 36px; }
}

/* Header signature — owner 27/09 approved the phone proportion and asked for the same on
   tablet and desktop: font-size = 8.5% of the logo window width (brand-v7.css sets the
   window to 250/210/176/158px), tucked right under the logo. Footer signature untouched. */
.ds-home .v2-header .v2-brand { gap: 0; }
.ds-home .v2-header .ds-brand-operator { font-size: 21px; margin: .07em .13em 0 0; }
@media (max-width: 1200px) { .ds-home .v2-header .ds-brand-operator { font-size: 18px; } }
@media (max-width: 600px)  { .ds-home .v2-header .ds-brand-operator { font-size: 15px; } }
@media (max-width: 350px)  { .ds-home .v2-header .ds-brand-operator { font-size: 13.5px; } }

/* Quality r1 — 27/09/2026 (owner approved the speed/accessibility pass).
   Only colour/legibility fixes for elements Lighthouse flagged below WCAG AA; no layout. */

/* The Process section's call button printed dark text on the dark section (contrast 1.04:1 —
   an invisible call to action). Same peach pill as every other call button. */
.ds-home #process a.v2-button[href^="tel:"] { background: #E8A075; border-color: #E8A075; color: #262b23 !important; }
@media (hover: hover) { .ds-home #process a.v2-button[href^="tel:"]:hover { background: #E39266; border-color: #E39266; } }

.ds-home .v2-profile-logos span { color: #5d5d56; }
.ds-home #map p { color: #5c5e55; }
.ds-home #reviews .v2-review-platforms small { color: #555a4e; }
.ds-home .v2-review-person span { color: #4f5645; }
.ds-home .v2-review-person small { color: #5b6152; }
.ds-home .v2-review-card .elementor-widget-text-editor p { color: #5c6053; }
.ds-home .v2-review-card .v2-card-label p { color: #7a5a42; }
.ds-home .v2-review-note p { color: #595b52; }

/* Phones: the Services section is dark there (home-mobile-v8), its intro paragraph was grey-on-dark. */
/* r5 17/10/2026: scoped to the Home (.ds-mobile-r4-home). .ds-home is on every page, so this grey made a
   paragraph on the 15 service pages and /sitemap/ nearly invisible on phones (1.42:1). */
@media (max-width: 767px) { .ds-mobile-r4-home #services > .elementor-element > p { color: #c9cdc1; } }

/* Home hero trust row (hero-trust-r1.php) — owner 27/09: the ADU landing page's row, right under
   the call button, replacing the hero proof strip. Values 1:1 with adu-journey/styles.ts
   (.bh-hero-proof / .bh-review-score / .bh-avatars / .bh-stars / .bh-license-link). */
.ds-home .v7-hero .v6-hero-summary { display: none; }
/* The call widget is a wrapping flex row (gap 34px): the row takes a full line of its own so it
   sits UNDER the button, with an 18px line gap instead of the 34px column gap. */
.ds-home .v6-call-actions .elementor-widget-html:has(.ds-hero-proof) { row-gap: 18px; }
.ds-home .ds-hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; flex-basis: 100%; margin: 0; }
.ds-home .ds-hero-proof a { text-decoration: none !important; }
.ds-home .ds-review-score { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.ds-home .ds-avatars { display: flex; }
.ds-home .ds-avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #f9f5ee; margin-left: -9px; }
.ds-home .ds-avatars img:first-child { margin-left: 0; }
.ds-home .ds-review-score > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.ds-home .ds-stars { display: block; color: #e2b866; font-size: 15px; letter-spacing: 2px; line-height: 1.2; }
.ds-home .ds-review-score b { font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; }
.ds-home .ds-license-link { display: flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.5; color: #e2dcd3 !important; }
.ds-home .ds-license-link > svg { width: 26px; height: 26px; flex: none; color: #77bce7; }
.ds-home .ds-license-link b { display: block; font-size: 13px; color: #fff; }
@media (min-width: 1001px) {
  .ds-home .ds-avatars img { width: 38px; height: 38px; }
  .ds-home .ds-review-score b { font-size: 14px; }
  .ds-home .ds-license-link { font-size: 12px; }
  .ds-home .ds-license-link b { font-size: 14px; }
}
@media (max-width: 760px) {
  .ds-home .v6-call-actions .elementor-widget-html:has(.ds-hero-proof) { row-gap: 14px; }
  .ds-home .ds-hero-proof { gap: 14px; }
  .ds-home .ds-review-score { gap: 9px; }
  .ds-home .ds-avatars img { width: 30px; height: 30px; }
  .ds-home .ds-license-link b { font-size: 12px; }
}

/* About team cards (owner 27/09): the portraits were stock photos of people who do not work
   here — never present strangers as our team. Cards keep their role descriptions; real team
   photos replace this rule when the owner supplies them. */
.ds-home .co1-team .co1-portrait { display: none; }

/* "Find us on social media" (About/Contact) has no real profile links yet — the placeholder
   links were removed (owner 27/09). The section returns when real profiles exist. */
.ds-home #social { display: none; }

/* Home platform logos — endless marquee (owner 28/09/2026: add Angi + Thumbtack, "smooth,
   never stops, never jumps"). Markup = widget 87544141: .ds-marquee > two identical
   ul.ds-marquee__group (the second aria-hidden). Why it can't jump or gap:
   - each group is at least the strip width (min-width:100%) and carries its trailing gap as
     padding, so translating a group by exactly -100% lands the copy where the original began
     (no var()/calc() inside @keyframes — older Safari ignored them there);
   - every <img> has width/height attributes + a CSS height, so the group width is fixed before
     the images load (a width change mid-loop would jump), and loading="eager" (a lazy image
     clipped by the overflow never loads until it slides in = a blank slot);
   - transform-only animation on its own layer: runs on the compositor, no layout per frame.
   Reduce-motion users get it still (home-v2.css stops every .ds-home animation) — the first
   group fills the strip, the copy stays clipped. Logo files: assets/reference-v2/*-t.png are
   transparent copies of the white-box PNGs; angi.svg / thumbtack.svg = the brands' own marks. */
.ds-home .ds-marquee {
  --ds-marquee-gap: 72px;
  --ds-marquee-duration: 42s;
  display: flex;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-user-select: none;
          user-select: none;
}
.ds-home .ds-marquee__group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--ds-marquee-gap);
  min-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 var(--ds-marquee-gap) 0 0;
  list-style: none;
  animation: ds-marquee-scroll var(--ds-marquee-duration) linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.ds-home .ds-marquee__group > li { flex: 0 0 auto; margin: 0; padding: 0; line-height: 0; }
.ds-home .ds-marquee__group img { display: block; width: auto; max-width: none; height: var(--h, 30px); }
@keyframes ds-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}
@media (max-width: 900px) {
  .ds-home .ds-marquee { --ds-marquee-gap: 52px; --ds-marquee-duration: 34s; }
  .ds-home .ds-marquee__group img { height: calc(var(--h, 30px) * .82); }
}
@media (max-width: 600px) {
  .ds-home .ds-marquee {
    --ds-marquee-gap: 38px;
    --ds-marquee-duration: 28s;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  .ds-home .ds-marquee__group img { height: calc(var(--h, 30px) * .68); }
}

/* Estimate form r1 — owner 28/09/2026 (hero-form-r1.php).
   (a) FREE up front on every copy of the form: pill badge, "free" in the title (terracotta #b4582a
       keeps ~4.5:1 on the cream card; the peach accent is too light for text there).
   (b) The native select arrow sat jammed against the edge: own chevron, 48px right padding.
   (c) Home: the form also lives in the hero — right column from 1101px, under the call button below. */
.ds-home .ds-form .ds-form-badge { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 6px !important; font-size: 13px !important; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #292d24 !important; }
.ds-home .ds-form .ds-form-badge-pill { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; background: #e9ae83; color: #20271f; font-size: 14px; letter-spacing: .12em; }
.ds-home .ds-form .ds-free { color: #b4582a; }
.ds-home .ds-form select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320332d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 16px 16px;
}

.ds-home .ds-hero-form { position: relative; z-index: 3; }
.ds-home .ds-hero-form .ds-form { margin: 0; padding: 30px 32px 24px; border: 0; border-radius: 26px; background: #f6f3eb; color: #292d24; box-shadow: 0 24px 60px rgba(8, 14, 11, .38); text-align: left; }
.ds-home .ds-hero-form .ds-form h2 { font: 300 30px/1.1 DeckLato, sans-serif !important; letter-spacing: -.02em; text-transform: uppercase; margin: 12px 0 6px !important; color: #292d24 !important; }
.ds-home .ds-hero-form .ds-form h2 strong { font-weight: 700 !important; color: #292d24; }
.ds-home .ds-hero-form .ds-form h2 .ds-free { color: #b4582a; }
.ds-home .ds-hero-form .ds-form > p:not(.ds-form-badge):not(.ds-form-note) { font-size: 15px !important; line-height: 1.45; color: #555a4e !important; margin: 0 !important; }
.ds-home .ds-hero-form .ds-form label { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: #292d24 !important; }
.ds-home .ds-hero-form .ds-form input, .ds-home .ds-hero-form .ds-form select, .ds-home .ds-hero-form .ds-form textarea { font: 16px DeckLato, sans-serif; min-height: 50px; border-radius: 12px; color: #20332d; }
.ds-home .ds-hero-form .ds-form details { margin: 16px 0 2px; }
.ds-home .ds-hero-form .ds-form summary { font-size: 14px; color: #292d24 !important; }
.ds-home .ds-hero-form .ds-form summary span { color: #555a4e !important; }
.ds-home .ds-hero-form .ds-form .ds-button { background: #e9ae83; border-color: #e9ae83; color: #20271f !important; font-size: 17px; padding: 18px 24px; margin-top: 12px; }
.ds-home .ds-hero-form .ds-form-note { font-size: 13px !important; color: #555a4e !important; }
.ds-home .ds-hero-form .ds-form-note a { color: #292d24 !important; font-weight: 700; }

@media (min-width: 1101px) {
  .ds-home .v7-hero:has(.ds-hero-form) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); column-gap: clamp(40px, 4vw, 72px); align-items: start; }
  .ds-home .v7-hero:has(.ds-hero-form) > .v2-hero-copy { grid-column: 1; grid-row: 1; width: auto !important; max-width: 780px; }
  .ds-home .v7-hero > .v2-seal-widget:has(.ds-hero-form) { position: relative !important; inset: auto !important; width: auto !important; grid-column: 2; grid-row: 1; margin-top: -24px; z-index: 3; }
  .ds-home .v7-hero:has(.ds-hero-form) > .v2-controls-widget { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 20px !important; }
}
@media (max-width: 1100px) {
  .ds-home .v7-hero > .v2-seal-widget:has(.ds-hero-form) { display: block !important; position: relative !important; inset: auto !important; width: 100% !important; max-width: 560px; margin-top: 40px !important; z-index: 3; }
}
@media (max-width: 767px) {
  .ds-home .v7-hero > .v2-seal-widget:has(.ds-hero-form) { max-width: none; margin-top: 30px !important; }
  .ds-home .ds-hero-form .ds-form { padding: 24px 20px 20px; border-radius: 22px; }
  .ds-home .ds-hero-form .ds-form h2 { font-size: 26px !important; }
  .ds-home .ds-hero-form .ds-form .ds-form-row { grid-template-columns: 1fr; gap: 0; }
  .ds-home .ds-form .ds-form-badge { font-size: 12px !important; }
}

/* Estimate form r1 — the form sends (estimate-form-r1.php, 29/09/2026). */
.ds-home .ds-form [hidden] { display: none !important; }
.ds-home .ds-form .ds-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ds-home .ds-form .ds-button { cursor: pointer; opacity: 1; }
.ds-home .ds-form .ds-button[aria-busy="true"] { opacity: .7; cursor: progress; }
.ds-home .ds-form [aria-invalid="true"] { border-color: #b4582a !important; box-shadow: 0 0 0 3px rgba(180, 88, 42, .18); }
.ds-home .ds-form .ds-form-error { margin: 12px 0 0 !important; font-size: 14px !important; line-height: 1.4; font-weight: 600; color: #9a4520 !important; }
.ds-home .ds-form .ds-form-done { margin: 18px 0 6px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #e3ddd1; outline: none; }
.ds-home .ds-form .ds-form-done p { margin: 0 !important; font-size: 15px !important; line-height: 1.5; color: #3f443a !important; }
.ds-home .ds-form .ds-form-done .ds-form-done-title { margin-bottom: 6px !important; font-size: 22px !important; font-weight: 700; color: #292d24 !important; }

/* Neighborhood price section (neighborhoods-r2, 30/09/2026): the 4-item price grid inside #price is 2-up on phones. */
@media (max-width:767px){.ds-service #price .r1-proof-grid{grid-template-columns:1fr 1fr;gap:22px 18px}}

/* 11/10/2026: logos that link to a real profile of this brand (Houzz first). Same box as the
   bare logo so the marquee width, gap and loop stay identical. */
.ds-home .ds-marquee__group a.ds-profile-link { display: block; line-height: 0; }

/* r5 17/10/2026 (site audit) ---------------------------------------------------------------- */
/* iPhone Safari zooms the page into any form field under 16px. */
@media (max-width: 767px) { .ds-form input, .ds-form select, .ds-form textarea { font-size: 16px !important; } }
/* Guides sit on a light page, so the white logo vanished: start their header in the dark pill the sticky header already uses. */
.ds-home.ds-article .v2-header:not(.is-sticky) { background: #252721f5; border: 1px solid #ffffff20; border-radius: 60px; box-shadow: 0 15px 35px #0002; }
/* Price tables fit a phone: cells wrap with less padding, and the size table drops its Area column. */
@media (max-width: 767px) {
  .ds-general .g1-table-scroll th, .ds-general .g1-table-scroll td { min-width: 0; padding: 12px 10px; font-size: 15px; }
  .ds-general .g1-size-table th:nth-child(2), .ds-general .g1-size-table td:nth-child(2) { display: none; }
}
