/* Products first (2026-11-12): short banner at the top, profiles right under it, intro and explanation below.
   Home: banner, light cove row, crown moulding row. Crown and light cove pages: banner, then the profile grid. */

/* ---- short banner (all six pages) ---- */
.hero.hero--short{display:block;padding:14px 0 10px;min-height:0;grid-template-columns:none}
.hero.hero--short>div{max-width:none}
.hero.hero--short .eyebrow{margin:0 0 2px}
.hero.hero--short h1,.home-page .hero.hero--short h1{font-size:clamp(26px,3.3vw,42px);line-height:1.1;margin:4px 0 6px}
.hero.hero--short h1 br{display:none}
.hero.hero--short .lead{margin:0;font-size:clamp(15px,1.3vw,17px);line-height:1.4;max-width:none}
.hero.hero--short .actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;margin:12px 0 0;width:auto}
.hero.hero--short .actions .button,.hero.hero--short .actions .button.outline{flex:0 0 auto;width:auto;min-height:44px;padding:8px 18px}
@media (max-width:760px){
  .hero.hero--short{padding:10px 0 6px}
  .hero.hero--short h1,.home-page .hero.hero--short h1{font-size:26px;margin:2px 0 4px}
  .hero.hero--short .lead{font-size:14.5px;line-height:1.35}
  .hero.hero--short .actions{gap:8px;margin-top:10px}
  .hero.hero--short .actions .button,.hero.hero--short .actions .button.outline{flex:1 1 0;min-width:0;min-height:44px;padding:6px 10px;font-size:13.5px;line-height:1.15;text-align:center}
}

/* ---- home: product rows ---- */
.product-row{padding:10px 0 4px}
.product-row__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.product-row__head h2{margin:0;font-size:clamp(20px,2vw,26px);line-height:1.15}
.product-row__head .button{min-height:40px;padding:6px 14px;font-size:14px;white-space:nowrap;flex:0 0 auto}
.product-row__track{list-style:none;margin:0;padding:2px 2px 10px;display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin}
.product-row__track:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.product-row__item{flex:0 0 210px;scroll-snap-align:start;margin:0;padding:0}
.product-row__item a{display:block;color:inherit;text-decoration:none}
.product-row__item img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#f3f1ec;border-radius:10px;border:1px solid var(--line,#e5e5e5)}
.product-row__name{display:block;margin-top:6px;font-weight:700;font-size:15px;line-height:1.25}
.product-row__size{display:block;margin-top:1px;font-size:13px;line-height:1.3;color:var(--muted,#6a6a6a)}
.product-row__item a:hover .product-row__name,.product-row__item a:focus-visible .product-row__name{text-decoration:underline}
.product-row__item a:focus-visible img{outline:2px solid var(--ink);outline-offset:2px}
.product-row__arrows{display:none}
@media (hover:hover) and (pointer:fine){.product-row__arrows{display:flex;gap:6px;margin-left:auto}.product-row__arrows button{width:38px;height:38px;border-radius:50%;border:1.5px solid var(--ink);background:#fff;color:var(--ink);font-size:20px;line-height:1;cursor:pointer}.product-row__arrows button:hover{background:rgba(23,53,54,.08)}.product-row__arrows button:disabled{opacity:.35;cursor:default}}
@media (max-width:760px){
  .product-row{padding:8px 0 2px}
  .product-row__head h2{font-size:19px}
  .product-row__head .button{min-height:38px;padding:5px 12px;font-size:13px}
  .product-row__track{gap:10px;margin-right:-16px;padding-right:16px}
  .product-row__item{flex:0 0 44vw;max-width:190px}
  .product-row__name{font-size:14px}
}

/* ---- home: the rest of the old hero, now under the rows ---- */
.home-page .hero.hero--est.home-rest{padding-top:20px}
.home-page .hero.hero--est.home-rest>div:first-child{align-self:center}
.home-page .hero.hero--est.home-rest .actions{margin-top:0}
@media (min-width:761px){.home-page .hero.hero--est.home-rest .hero-video{min-height:300px}}

/* ---- crown and light cove pages: grid right under the banner, the explanation below it ---- */
.hero.hero--card.hero--short{grid-template-columns:none}
#profiles{padding-top:6px}
#profiles>.eyebrow{margin-top:0}
#profiles>.dimensions-notice-short{margin-top:16px}
.hero.hero--rest{padding-top:26px}
.hero.hero--card.hero--short{padding:12px 0 6px}
.hero.hero--card.hero--short h1{margin:2px 0 4px}
.hero.hero--card.hero--short .actions{margin-top:10px}
#profiles>h2{margin:2px 0 10px}
@media (max-width:760px){#profiles>h2{font-size:26px;margin-bottom:8px}}
/* Home, wide screens: under the rows, estimator box and the two buttons on the left; the video beside them takes exactly their height (no blank space, no stretched box) */
@media (min-width:1001px){
.home-page .hero.hero--est.home-rest{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-rows:auto auto;row-gap:12px;align-items:start;padding:10px 0 18px}
.home-page .hero.hero--est.home-rest>.est-banner{grid-column:1;grid-row:1;align-self:start;padding:18px 24px}
.home-page .hero.hero--est.home-rest>div:first-child{grid-column:1;grid-row:2;align-self:start}
.home-page .hero.hero--est.home-rest .actions{margin:0}
.home-page .hero.hero--est.home-rest .hero-video{grid-column:2;grid-row:1 / span 2;align-self:stretch;min-height:0}
.home-page .hero.hero--est.home-rest .hero-video__frame{flex:1 1 0;min-height:160px;contain:size}
.home-page .hero.hero--est.home-rest .hero-video figcaption{margin-top:6px}
}
/* Home: tighter spacing between the rows and the next block */
.home-page .product-row.block{padding:6px 0 0;margin:0}
.home-page .product-row+.product-row{margin-top:8px}
.home-page .product-row__track{padding-bottom:6px}
/* Home "What we do": the intro paragraph uses the full width instead of leaving the right side empty */
.home-page main>section.block>.lead{max-width:none}
/* Home "Plan your order": heading on the left, text and links on the right, on wide screens */
@media (min-width:761px){
.home-page main>section.block:last-of-type{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:32px;align-items:center;padding-top:18px;padding-bottom:26px}
.home-page main>section.block:last-of-type>h2{grid-row:1 / span 2;margin:0}
.home-page main>section.block:last-of-type>p{grid-column:2;margin:2px 0}
}
/* Slim estimate strip under the home banner */
.est-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 2px;padding:7px 7px 7px 18px;border-radius:10px;background:#173536;color:#fff}
.est-strip__text{margin:0;font-weight:600;font-size:15px;line-height:1.3;color:#fff}
.est-strip__button{flex:0 0 auto;display:inline-flex;align-items:center;min-height:40px;padding:6px 16px;border-radius:8px;background:#cfe09a;color:#173536;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap}
.est-strip__button:hover{background:#dbe9ad;color:#173536}
.est-strip__button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:760px){.est-strip{padding:5px 5px 5px 12px;gap:8px;margin-top:8px}.est-strip__text{font-size:12.5px;line-height:1.25}.est-strip__button{min-height:40px;padding:4px 10px;font-size:12.5px}}
/* Home, wide screens: buttons and the animation caption share one row, lined up with each other; box and video share the row above */
@media (min-width:1001px){
.home-page .hero.hero--est.home-rest{grid-template-rows:auto auto;align-items:stretch;row-gap:10px}
.home-page .hero.hero--est.home-rest .hero-video{display:contents}
.home-page .hero.hero--est.home-rest .hero-video__frame{grid-column:2;grid-row:1;flex:none;min-height:220px;height:auto;contain:size;align-self:stretch}
.home-page .hero.hero--est.home-rest .hero-video figcaption{grid-column:2;grid-row:2;align-self:center;margin:0}
.home-page .hero.hero--est.home-rest>.est-banner{grid-row:1;align-self:stretch;display:flex;align-items:center}
.home-page .hero.hero--est.home-rest>div:first-child{grid-row:2;align-self:center}
}
/* 2026-11-12b: banner buttons moved into the strip as a quote link */
.home-page .hero.hero--short{padding-bottom:0}
.home-page .est-strip{margin-top:10px}
.est-strip__actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.est-strip__alt{color:#fff;font-size:14px;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.est-strip__alt:hover{color:#cfe09a}
.est-strip__alt:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:760px){.home-page .est-strip{flex-wrap:wrap;margin-top:8px;padding:8px 10px}.home-page .est-strip__text{flex:1 1 100%}.est-strip__actions{flex:1 1 100%;justify-content:space-between;gap:10px}.est-strip__alt{font-size:12.5px}}
@media (max-width:760px){.est-strip__actions{flex-wrap:wrap;justify-content:flex-start;gap:6px 12px}.est-strip__alt{white-space:normal;min-width:0}}
@media (max-width:760px){.home-page .hero.hero--est.home-rest>.est-banner{position:relative;overflow:hidden}.home-page .hero.hero--est.home-rest>.est-banner .est-banner__media{position:absolute;inset:0;z-index:0;height:auto;border-radius:0;opacity:.28}.home-page .hero.hero--est.home-rest>.est-banner .est-banner__copy{position:relative;z-index:1}}
@media (min-width:761px){.home-page .est-strip{margin-top:9.3px}}
/* 2026-11-12c: rows expand in place, picture close-up, compact service banner, video captions */
.product-row.is-expanded .product-row__arrows{display:none}
.product-row.is-expanded .product-row__track{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px 14px;overflow:visible;scroll-snap-type:none;margin-right:0;padding-right:2px}
.product-row.is-expanded .product-row__item{flex:none;max-width:none;width:auto}
@media (max-width:760px){.product-row.is-expanded .product-row__track{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}}
.product-row__item img{cursor:zoom-in}
.row-lb-open{overflow:hidden}
.row-lb{box-sizing:border-box;width:min(920px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:12px;background:#fffefa;color:#173536;box-shadow:0 12px 45px #112c2b40;overflow:auto}
.row-lb::backdrop{background:rgba(10,24,24,.78)}
.row-lb__box{position:relative;padding:14px}
.row-lb__x{position:absolute;top:8px;right:8px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#173536;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.row-lb__x:focus-visible{outline:2px solid #173536;outline-offset:2px}
.row-lb__img{display:block;width:100%;height:auto;max-height:calc(100dvh - 160px);object-fit:contain;background:#f3f1ec;border-radius:8px}
.row-lb__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.row-lb__name{margin:0;font-weight:700;font-size:17px;line-height:1.25}
.row-lb__size{margin:2px 0 0;font-size:14px;color:var(--muted,#6a6a6a)}
.row-lb__details{flex:0 0 auto;min-height:44px;white-space:nowrap}
@media (max-width:760px){.row-lb__box{padding:10px}.row-lb__foot{flex-wrap:wrap}.row-lb__details{flex:1 1 100%;text-align:center;justify-content:center}}
.home-page .service-strip{display:block;margin:9.3px 0;padding:12px 18px;border-radius:10px;background:#173536;color:#fff;gap:0}
.home-page .service-strip strong{display:block;margin:0;font-size:17px;line-height:1.3;color:#fff}
.home-page .service-strip strong br{display:none}
.home-page .service-strip p{margin:3px 0 0;max-width:none;font-size:14px;line-height:1.45;color:rgba(255,255,255,.82)}
.home-page .service-strip__link{display:inline-block;margin-top:5px;color:#cfe09a;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.home-page .service-strip__link:hover{color:#fff}
.home-page .service-strip__link:focus-visible{outline:2px solid #fff;outline-offset:2px}
.home-page .service-strip+section.block{padding-top:0}
.home-page .service-strip+section.block>.section-head{display:block}
.home-page .service-strip+section.block>.section-head>p{margin:4px 0 0}
@media (max-width:760px){.home-page .service-strip{margin:8px 0;padding:10px 12px}.home-page .service-strip strong{font-size:15.5px}.home-page .service-strip p,.home-page .service-strip__link{font-size:13px}}
.home-page .hero-video__poster,.home-page .hero-video__el{object-position:50% 0 !important}
/* row arrows: small dark green squares with a thin white arrow */
@media (hover:hover) and (pointer:fine){.product-row__arrows button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:#173536;color:#fff;font-size:0}.product-row__arrows button:hover{background:#21494a}.product-row__arrows button:focus-visible{outline:2px solid #173536;outline-offset:2px}.product-row__arrows button:disabled{opacity:.35}.product-row__arrows button svg{display:block;width:16px;height:16px}}
@media (hover:hover) and (pointer:fine) and (any-pointer:coarse),(hover:hover) and (pointer:fine) and (max-width:760px){.product-row__arrows button{width:40px;height:40px}}
body.home-page main .service-strip{display:block;margin:9.3px 0;padding:12px 18px}
body.home-page main .hero.hero--est.home-rest{padding-bottom:0;margin-bottom:0}
body.home-page main .service-strip+section.block{padding-top:0;margin-top:0}
body.home-page main .service-strip+section.block>.section-head .eyebrow{margin-top:0}
@media (max-width:760px){body.home-page main .service-strip{margin:8px 0;padding:10px 12px}}
/* phone estimate bar: one slim row - button left, text right with the quote link under it */
@media (max-width:760px){
body.home-page .est-strip{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;align-content:center;padding:8px 10px}
body.home-page .est-strip__actions{display:contents}
body.home-page .est-strip__button{grid-column:1;grid-row:1 / span 2;align-self:center;min-height:40px;padding:4px 11px;font-size:13px}
body.home-page .est-strip__text{grid-column:2;grid-row:1;align-self:end;flex:none;font-size:11.5px;line-height:1.25}
body.home-page .est-strip__alt{grid-column:2;grid-row:2;align-self:start;justify-self:start;font-size:11.5px;line-height:1.3;white-space:nowrap}
body.home-page main .hero.hero--est.home-rest>.est-banner{margin-bottom:0}
}
@media (max-width:760px){body.home-page .est-strip__alt{white-space:normal}.product-row__head .button{white-space:normal;max-width:56%;text-align:center;line-height:1.2}}
@media (max-width:380px){body.home-page .est-strip{column-gap:8px;padding:8px}body.home-page .est-strip__button{padding:4px 9px;font-size:12.5px}body.home-page .est-strip__text,body.home-page .est-strip__alt{font-size:11px}}
/* phone estimate bar: button left, text right on one row, no quote link (desktop keeps the link) */
@media (max-width:760px){
body.home-page .est-strip{grid-template-rows:auto;row-gap:0;padding:8px}
body.home-page .est-strip__alt{display:none}
body.home-page .est-strip__button{grid-row:1}
body.home-page .est-strip__text{grid-row:1;align-self:center;font-size:12px;line-height:1.25}
}
@media (max-width:380px){body.home-page .est-strip__text{font-size:11.5px}}
/* phone header: the visible gap under the dividing line matches the gap between the logo and the line */
@media (max-width:760px){body.home-page .hero.hero--short{padding-top:4.4px}}
@media (max-width:380px){body.home-page .hero.hero--short{padding-top:6.7px}}
