/* Homepage: rounded cards on a plaster deck, with the live pool as the main tile. Builds on style.css. */
:root { --card: #fffdf9; --r-lg: clamp(1.25rem, 2.2vw, 1.75rem); --r-md: 1.25rem; --r-sm: .75rem; --gap-card: clamp(.75rem, 1.2vw, 1rem); --gap-section: clamp(1.25rem, 2.6vw, 2rem); --pad-panel: clamp(1.25rem, 2.8vw, 2.25rem); --text-title: clamp(2rem, 1.5rem + 2.4vw, 3rem); }

/* Nav and footer: 44px tap targets. */
.nav__links a, .nav__phone, .footer__col a { padding-block: .6875rem; }

/* Hero: canvas and pool share one grid cell, so the canvas equals the tile. The .5rem margin keeps coping on all four sides. The aqua fallback sits under the canvas, so the water fades in over it. */
.lead { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto; gap: var(--gap-card) clamp(1.5rem, 4vw, 3rem); min-height: clamp(480px, calc(100svh - 270px), 600px); padding: var(--gap-card) var(--gutter) 0; background: var(--plaster); }
.lead .scene__media { position: relative; inset: auto; z-index: 0; grid-area: 1 / 2; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--pool-light); box-shadow: inset 0 0 0 .5rem var(--plaster); }
.lead__pool { position: relative; grid-area: 1 / 2; margin: .5rem; border-radius: var(--r-sm); }
.lead__palm { position: absolute; top: -6%; left: -5%; z-index: -1; width: min(780px, 62vw); max-width: none; opacity: .1; filter: blur(5px); pointer-events: none; }
.lead__copy { grid-area: 1 / 1; align-self: center; padding-block: var(--space-2); }
.lead__slogan { display: block; font-size: clamp(3.25rem, 5.6vw, 5.25rem); line-height: 1; letter-spacing: -.035em; }
.lead__slogan em { color: #12808a; }
.lead__what { display: block; max-width: 24em; margin-top: var(--space-2); color: var(--muted); font-family: var(--font-body); font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.5; letter-spacing: 0; }
.lead .hero__cta { margin-top: var(--space-3); }
.lead .btn--primary { background: var(--pool-deep); color: var(--on-water); }
.lead .btn--primary:hover { background: var(--pool); }
.lead .btn--ghost { color: var(--ink); border-color: var(--line-on-water); }
.lead .btn--ghost:hover { background: #103e500d; border-color: var(--ink); }
.lead__trust { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--line); color: var(--ink); font-size: var(--text-small); font-weight: 500; line-height: 1.4; }
.lead__trust li { display: flex; align-items: center; padding: .625rem 1rem; background: var(--card); }

/* Services: one sideways rail of short text cards. Learn more widens the card into the next slot, so the row keeps its height. */
.offers { --offer-w: min(76vw, 19rem); --offer-pad: 1rem; padding: clamp(1.75rem, 3.4vw, 2.5rem) var(--gutter) 0; }
.offers__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .25rem var(--space-5); }
.offers__note { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.offers__note a { display: inline-block; padding-block: .625rem; color: var(--pool); font-weight: 500; text-decoration: underline; }
.offers__rail { position: relative; margin: .75rem calc(var(--gutter) * -1) 0; overflow: auto hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.offers__rail:focus-visible { outline-offset: -3px; }
.offers__rail.is-enhanced { scrollbar-width: none; }
.offers__rail.is-enhanced::-webkit-scrollbar { display: none; }
.offers__rail.is-dragging { scroll-snap-type: none; }
.offers__list { display: flex; gap: var(--gap-card); width: max-content; padding: .25rem var(--gutter); }
.offer { position: relative; flex: none; width: var(--offer-w); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: width .28s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.offer[open] { width: calc(var(--offer-w) * 2 + var(--gap-card)); border-color: var(--pool-deep); background: var(--pool-deep); }
.offer__head { display: block; width: calc(var(--offer-w) - 2px); height: 100%; padding: .875rem var(--offer-pad) 2.75rem; border-radius: var(--r-md); cursor: pointer; list-style: none; }
.offer__head::-webkit-details-marker { display: none; }
.offer__head:focus-visible { outline-offset: -4px; }
.offer[open] .offer__head:focus-visible { outline-color: var(--pool-light); }
.offer__name { font-size: 1.375rem; line-height: 1.15; transition: color .2s var(--ease); }
.offer[open] .offer__name { color: var(--on-water); }
.offer__text { display: block; margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.offer[open] .offer__text { color: var(--on-water-muted); }
.offer__more { position: absolute; left: var(--offer-pad); bottom: .5rem; display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; color: var(--pool); font-size: var(--text-small); font-weight: 600; }
.offer__more::after { content: "+"; content: "+" / ""; font-size: 1.125rem; font-weight: 400; line-height: 1; transition: transform .2s var(--ease); }
.offer[open] .offer__more { color: var(--on-water); }
.offer[open] .offer__more::after { transform: rotate(45deg); }
.offer__more-close, .offer[open] .offer__more-open { display: none; }
.offer[open] .offer__more-close { display: inline; }
.offer__body { position: absolute; z-index: 1; inset: .875rem auto .25rem calc(var(--offer-w) - 1px); display: flex; width: calc(var(--offer-w) + var(--gap-card) - var(--offer-pad) - 1px); flex-direction: column; justify-content: space-between; gap: .125rem; padding-left: var(--offer-pad); overflow-y: auto; border-left: 1px solid var(--line-on-water); }
.offer[open] .offer__body { animation: offer-sheet .28s var(--ease); }
@keyframes offer-sheet { from { opacity: 0; } }
.offer__body p { color: var(--on-water); font-size: .875rem; line-height: 1.4; }
.offer__link { display: inline-flex; flex: none; align-self: flex-start; align-items: center; gap: .375rem; min-height: 44px; color: var(--pool-light); font-size: var(--text-small); font-weight: 600; }
.offer__link:hover { text-decoration: underline; }
.offer__link:focus-visible { outline-color: var(--pool-light); outline-offset: -2px; }
@media (hover: hover) {
  .offer:not([open]):hover { border-color: var(--pool); }
  .offer:not([open]):hover .offer__name { color: #12808a; }
}
.offers__controls { display: flex; align-items: center; gap: var(--space-2); margin-top: .125rem; -webkit-user-select: none; user-select: none; }
.offers__count { flex: none; color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; line-height: 1.2; }
.offers__bar { position: relative; flex: 1 1 auto; min-width: 0; height: 2.75rem; cursor: pointer; touch-action: pan-y; }
.offers__bar::before { content: ""; position: absolute; inset: calc(50% - 2px) 0 auto; height: 4px; border-radius: 999px; background: var(--line-on-water); }
.offers__thumb { position: absolute; inset: 0 auto 0 0; width: 3rem; cursor: grab; touch-action: pan-y; }
.offers__thumb:active { cursor: grabbing; }
.offers__thumb::before { content: ""; position: absolute; inset: calc(50% - 5px) 0 auto; height: 10px; border-radius: 999px; background: var(--pool-deep); transition: background .2s var(--ease); }
.offers__thumb:hover::before { background: var(--pool); }
.offers__arrow { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line-on-water); border-radius: 50%; color: var(--pool-deep); background: var(--card); transition: background .2s var(--ease), border-color .2s var(--ease); }
.offers__arrow + .offers__arrow { margin-left: -.5rem; }
.offers__arrow--prev svg { transform: rotate(180deg); }
.offers__arrow[aria-disabled="false"]:hover { border-color: var(--pool-deep); background: var(--pool-light); }
.offers__arrow[aria-disabled="true"] { border-color: var(--line); cursor: default; }
.offers__arrow[aria-disabled="true"] svg { opacity: .4; }
@media (hover: none) { .offers__arrow { display: none; } }
@media (max-width: 480px) and (hover: hover) { .offers__count { display: none; } }
@media (forced-colors: active) {
  .offers__bar::before, .offers__thumb::before { forced-color-adjust: none; }
  .offers__bar::before { background: GrayText; }
  .offers__thumb::before, .offers__thumb:hover::before { background: Highlight; }
}

/* Finishes: the one deep panel. */
.finishes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); align-items: center; margin: var(--gap-section) var(--gutter) 0; padding: var(--pad-panel); border-radius: var(--r-lg); color: var(--on-water); background: var(--pool-deep); }
.finishes .finish-picker { margin-block: var(--space-2) 0; }
.finishes .finish-figure { margin-top: 0; }
.finishes .finish-picker__legend { color: var(--on-water-muted); font-size: var(--text-small); }
.finishes .swatch { color: var(--on-water); border-color: var(--line-on-water); }
.finishes .swatch:hover { border-color: var(--on-water); }
.finishes .swatch:has(:checked) { color: var(--ink); background: var(--plaster); border-color: var(--plaster); }
.finishes .swatch:has(:focus-visible) { outline-color: var(--pool-light); }
.finishes .finish-pool { height: clamp(180px, 20vw, 250px); border-radius: var(--r-sm); }
.finishes .finish-figure__caption { margin-top: .5rem; color: var(--on-water-muted); }

/* Work: a compact preview. All photos open in the gallery, so they can grow without taking space here. */
.work { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); align-items: center; margin: var(--gap-section) var(--gutter) 0; padding: var(--pad-panel); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.work__text { margin-top: .25rem; color: var(--muted); }
.work .btn { margin-top: var(--space-2); background: var(--pool-deep); color: var(--on-water); }
.work .btn:hover { background: var(--pool); }
.work__peek { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
.work__thumb { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); aspect-ratio: 3 / 2; background: var(--card); }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work__more { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-water); background: #103e50b8; font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.5rem); }
@media (hover: hover) { .work__thumb:hover img { transform: scale(1.04); } }

/* Gallery: full screen, one large photo with a strip of thumbnails. */
html:has(.gallery[open]) { overflow: hidden; }
.gallery { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--on-water); background: var(--pool-deep); }
.gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery::backdrop { background: var(--pool-deep); }
.gallery :focus-visible { outline-color: var(--pool-light); }
.gallery__top { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--gutter); }
.gallery__count { color: var(--on-water-muted); font-size: var(--text-small); }
.gallery__btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line-on-water); border-radius: 50%; color: var(--on-water); background: var(--pool-deep); transition: background .2s var(--ease); }
.gallery__btn:hover { background: var(--pool); }
.gallery__btn svg { width: 1.25rem; height: 1.25rem; }
.gallery__stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .75rem; min-height: 0; padding-inline: clamp(1rem, 6vw, 5rem); }
.gallery__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery__caption { color: var(--on-water-muted); font-size: var(--text-small); line-height: 1.4; text-align: center; }
.gallery__nav { position: absolute; top: calc(50% - 2.25rem); right: .75rem; }
.gallery__nav--prev { right: auto; left: .75rem; }
.gallery__nav--prev svg { transform: rotate(180deg); }
.gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem var(--gutter) 1rem; justify-content: safe center; scrollbar-color: var(--line-on-water) transparent; }
.gallery__thumb { flex: none; width: 4.75rem; height: 3.5rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--pool); opacity: .65; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--pool-light); opacity: 1; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); align-items: center; margin: var(--gap-section) var(--gutter); padding: var(--pad-panel); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.story__title { font-size: clamp(1.75rem, 1.375rem + 1.5vw, 2.375rem); }
.story__text { max-width: 60ch; line-height: 1.55; }

/* Contact: water around a solid card, so form colors keep working. Chat first, the form beside it. */
.contact { padding-block: var(--gap-section); }
.contact .scene__vignette { background: #103e5066; }
.contact__content { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); padding: var(--pad-panel); border: 1px solid var(--line-on-water); border-radius: var(--r-lg); background: var(--pool-deep); }
.contact__lead { display: flex; flex-direction: column; }
.contact__chat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: var(--space-2); }
.btn--chat { gap: .5rem; min-height: 3.25rem; padding: .5rem .75rem; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 400; line-height: 1.2; }
.btn--chat svg { flex: 0 0 1.375rem; width: 1.375rem; height: 1.375rem; fill: currentColor; }
.btn--plaster { background: var(--plaster); }
.btn--plaster:hover { background: var(--card); }
.btn--plaster:active { background: var(--line); }
.contact__ready { margin-top: .5rem; color: var(--on-water-muted); font-size: var(--text-small); line-height: 1.5; }
.contact__aside { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: var(--space-2); padding: var(--space-2); border-top: 0; border-radius: var(--r-md); background: var(--pool); }
.contact__aside .contact__big-link { padding-block: .375rem; }
.contact__area { margin-top: .25rem; }
.contact__intro { margin: 0 0 .75rem; }
.contact .form__row { gap: .75rem; }
.contact .form__field { gap: .25rem; margin-bottom: .75rem; }
.contact input:not([type="file"]), .contact select, .contact textarea { min-height: 44px; padding-block: .5rem; }
.contact .upload { padding: .5rem .875rem; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.form__send .btn { flex: none; }
.contact .form__note { flex: 1 1 14rem; margin-top: 0; line-height: 1.5; }

.footer { padding: var(--space-3) var(--gutter) var(--space-2); }
.footer__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-2) var(--space-5); align-items: center; }
.footer__col { flex-flow: row wrap; column-gap: 1.25rem; }
.footer__tagline { margin-top: .25rem; }
.footer__legal { margin-top: var(--space-1); padding-top: var(--space-1); }

/* The full nav row needs about 850px. The phone number stays in the hero and contact sections. */
@media (min-width: 651px) and (max-width: 900px) {
  .nav { gap: 1rem; }
  .nav__links { gap: .75rem; }
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  .lead__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead__trust li { padding: .5rem .875rem; }
  .finishes, .work, .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3); }
  .finishes .swatch { padding-inline: .625rem .75rem; }
  .finishes .finish-picker__options { gap: .375rem; }
  .contact__content { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .contact__lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); }
  .contact__title, .contact__chat, .contact__ready { grid-column: 1; }
  .contact__aside { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .footer__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); }
  .footer__brand { grid-column: 1; grid-row: 1 / span 2; }
}
/* Too narrow for two slots, so an open card takes the full width and grows downward. */
@media (max-width: 700px) {
  .lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  .lead__palm { width: 110vw; }
  .lead__copy { padding-block: var(--space-2) 0; }
  .lead__slogan { font-size: clamp(2.75rem, 13vw, 5rem); }
  .lead .scene__media, .lead__pool { grid-area: 2 / 1; }
  .lead__pool { height: clamp(180px, 44vw, 340px); }
  .lead__trust { grid-row: 3; }
  .offer[open] { width: calc(100vw - var(--gutter) * 2); }
  .offer__head { width: auto; height: auto; }
  .offer[open] .offer__head { padding-bottom: .375rem; }
  .offer[open] .offer__text { display: none; }
  .offer__body { position: static; width: auto; padding: 0 var(--offer-pad) 2.25rem; overflow: visible; border-left: 0; }
  .finishes, .work, .story { grid-template-columns: minmax(0, 1fr); }
  .finishes, .work { gap: var(--space-2); }
  .story { gap: .5rem; }
  .contact__lead { display: flex; }
  .contact__aside { margin-top: var(--space-2); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .footer__brand { grid-area: auto; }
}
@media (max-width: 480px) {
  .contact .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 380px) {
  .contact__chat { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .offer[open] .offer__body { animation: none; }
}
