/* Prestige Marble & Tile v2 — sections */

/* ---------- about ---------- */
.about { padding: clamp(110px, 18vh, 200px) 0; }
.about-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.about-lead { font: 400 clamp(1.6rem, 3.1vw, 2.8rem)/1.28 var(--display); max-width: 30ch; }
.about-facts { list-style: none; margin: 0; padding: 0; }
.about-facts li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.about-facts b { font-weight: 600; }
.about-facts span { color: var(--ash); }

/* ---------- work: horizontal gallery ---------- */
.work { position: relative; background: linear-gradient(180deg, transparent, rgba(16, 11, 8, .6) 12%, rgba(16, 11, 8, .6) 88%, transparent); }
.work-pin { padding: 90px 0 70px; }
.work-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.work-head p { color: var(--ash); max-width: 40ch; justify-self: end; }
.work-bar { grid-column: 1 / -1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.work-bar i { position: absolute; inset: 0; background: var(--honey); transform-origin: left; transform: scaleX(0); }
.work-track { display: flex; gap: clamp(16px, 2.2vw, 30px); padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.work-track::-webkit-scrollbar { display: none; }
.w { margin: 0; flex: none; scroll-snap-align: center; }
.w-open { display: block; overflow: hidden; border-radius: 2px; position: relative; height: var(--wh, 54vh); background: var(--umber); }
.w-t .w-open { aspect-ratio: 3 / 4; }
.w-l .w-open { aspect-ratio: 4 / 3; }
.w-s .w-open { aspect-ratio: 1; }
.w-open img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translate3d(var(--ix, 0), 0, 0); transition: filter .6s; will-change: transform; }
.w-open:hover img { filter: brightness(1.08) saturate(1.05); }
.w figcaption { margin-top: 14px; color: var(--ash); font-size: .92rem; max-width: 34ch; }
.w figcaption b { display: block; color: var(--trav); font-weight: 500; font-size: 1rem; }
.w-end { flex: none; align-self: stretch; height: var(--wh, 54vh); width: clamp(240px, 26vw, 360px); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; scroll-snap-align: center; transition: background .4s, border-color .4s; }
.w-end span { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.15 var(--display); }
.w-end em { font-style: normal; color: var(--honey); margin-top: 16px; font-weight: 600; }
.w-end:hover { background: rgba(227, 165, 92, .08); border-color: var(--honey); }
/* desktop: the track is pinned and moved by scroll (js adds .pinned) */
.work.pinned .work-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 30px; overflow: hidden; }
.work.pinned .work-track { overflow: visible; scroll-snap-type: none; will-change: transform; --wh: min(54vh, calc(100vh - 380px)); }
.work.pinned .work-head { margin-bottom: 30px; }

/* ---------- window: the slab shows through ---------- */
.window, .reviews { position: relative; isolation: isolate; }
.window::before, .reviews::before { content: ''; position: absolute; inset: 10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 42% at 50% 50%, rgba(14, 9, 5, .5), rgba(14, 9, 5, 0)); }
.window { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gut); }
.window-line { font: 400 clamp(2.4rem, 6.4vw, 6rem)/1.02 var(--display); text-shadow: 0 4px 60px rgba(20, 10, 2, .55), 0 1px 2px rgba(20, 10, 2, .4); }
.window-sub { margin-top: 26px; color: #f3e6d2; font-size: 1.1rem; text-shadow: 0 1px 18px rgba(20, 10, 2, .7); }

/* ---------- stone accordion ---------- */
.stone { padding: clamp(100px, 14vh, 160px) 0; }
.stones { border-bottom: 1px solid var(--line); }
.st { border-top: 1px solid var(--line); }
.st-btn { width: 100%; display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 24px; padding: 28px 0; text-align: left; }
.st-btn b { font: 400 clamp(2rem, 4vw, 3.4rem)/1 var(--display); transition: color .4s, transform .6s var(--ease); }
.st-btn small { color: var(--ash); font-size: .95rem; text-align: right; }
.st-btn i { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: transform .6s var(--ease), border-color .3s; }
.st-btn i::before, .st-btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: 0 0 0 -7px; background: var(--honey); }
.st-btn i::after { transform: rotate(90deg); transition: transform .6s var(--ease); }
.st-btn:hover b { color: var(--honey); transform: translateX(10px); }
.st-btn[aria-expanded="true"] i { transform: rotate(180deg); border-color: var(--honey); }
.st-btn[aria-expanded="true"] i::after { transform: rotate(0); }
.st-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease); }
.st.open .st-body { grid-template-rows: 1fr; }
.st-body > div { overflow: hidden; }
.st-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); padding: 4px 0 44px; }
.st-photo { position: relative; margin: 0; border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--umber); }
.st-photo img { width: 100%; height: 100%; object-fit: cover; }
.st-swatch { position: absolute; right: 16px; bottom: 16px; width: 26%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(241, 231, 216, .8); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.st-swatch img { width: 100%; height: 100%; object-fit: cover; }
.st-text p { color: #ddd0bd; max-width: 52ch; font-size: 1.08rem; }
.st-specs { margin: 26px 0 0; }
.st-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-specs dt { color: var(--honey); }
.st-specs dd { margin: 0; color: var(--ash); }

/* ---------- services bento ---------- */
.services { padding: clamp(90px, 12vh, 140px) 0; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, clamp(220px, 24vw, 300px)); grid-template-areas: "a a b" "a a c" "d e f"; }
.svc-a { grid-area: a; } .svc-b { grid-area: b; } .svc-c { grid-area: c; } .svc-d { grid-area: d; } .svc-e { grid-area: e; } .svc-f { grid-area: f; }
.svc li { position: relative; overflow: hidden; border-radius: 2px; background: var(--umber); isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc li::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 7, 0) 35%, rgba(15, 10, 7, .88)); }
.svc li > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; }
.svc-a h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.svc p { color: #dccfbc; font-size: .95rem; max-width: 40ch; margin-top: 6px; }
@media (hover: hover) {
  .svc p { max-height: 0; opacity: 0; transform: translateY(10px); transition: max-height .6s var(--ease), opacity .5s, transform .6s var(--ease); }
  .svc li:hover p, .svc li:focus-within p { max-height: 6em; opacity: 1; transform: none; }
  .svc li:hover img { transform: scale(1.06); }
  .svc-a p { max-height: none; opacity: 1; transform: none; }
}

/* ---------- process ---------- */
.process { padding: clamp(100px, 14vh, 160px) 0; background: linear-gradient(180deg, transparent, rgba(16, 11, 8, .55) 20%, rgba(16, 11, 8, .55) 80%, transparent); }
.process-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 110px); }
.process-head { position: sticky; top: 130px; align-self: start; }
.process-head p { color: var(--ash); margin-top: 20px; max-width: 32ch; }
.steps { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; counter-reset: s; }
.steps::before, .steps::after { content: ''; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps::after { background: linear-gradient(180deg, #f3c27c, var(--ember)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li { position: relative; padding: 0 0 64px; counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -64px; top: -4px; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; font: 400 1.05rem/1 var(--display); background: var(--smoke); border: 1px solid var(--line); color: var(--ash); z-index: 1; transition: color .5s, border-color .5s, box-shadow .5s; }
.steps li.lit::before { color: var(--smoke); background: var(--honey); border-color: var(--honey); box-shadow: 0 0 0 6px rgba(227, 165, 92, .14), 0 0 28px rgba(227, 165, 92, .5); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ash); max-width: 44ch; }

/* ---------- reviews ---------- */
.reviews { padding: clamp(110px, 16vh, 180px) 0; text-align: center; }
.rev-stage { display: grid; max-width: 980px; margin: 0 auto; }
.rev { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease), visibility 0s .9s; }
.rev.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rev p { font: 400 clamp(1.6rem, 3.3vw, 2.9rem)/1.25 var(--display); text-shadow: 0 2px 30px rgba(10, 6, 3, .5); }
.rev p::before { content: '\201C'; display: block; color: var(--honey); font-size: 2.2em; line-height: .7; margin-bottom: 10px; }
.rev footer { margin-top: 26px; color: var(--honey); font-weight: 500; }
.rev-ctrl { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 42px; }
.rev-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.rev-btn svg { width: 20px; height: 20px; }
.rev-btn:hover { border-color: var(--honey); background: rgba(227, 165, 92, .1); }
.rev-dots { display: flex; gap: 6px; }
.rev-dots button { width: 34px; height: 24px; position: relative; }
.rev-dots button::before { content: ''; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: rgba(241, 231, 216, .25); transition: background .4s; }
.rev-dots button[aria-pressed="true"]::before { background: var(--honey); }
.rev-src { margin-top: 34px; color: var(--ash); font-size: .9rem; }

/* ---------- estimate ---------- */
.estimate { padding: clamp(100px, 14vh, 160px) 0 80px; background: linear-gradient(180deg, transparent, rgba(16, 11, 8, .7) 18%); }
.est-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.est-phone { margin-top: 40px; }
.est-phone a { font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--display); text-decoration: none; color: var(--honey); }
.est-phone span { display: block; color: var(--ash); margin-top: 8px; }
.est-addr { margin-top: 30px; font-size: 1.08rem; }
.est-addr a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.hours { margin-top: 30px; border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { padding: 11px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { color: var(--ash); text-align: right; }
.open-now { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--ash); font-size: .95rem; }
.open-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7a6a58; }
.open-now.is-open::before { background: #8fd18a; box-shadow: 0 0 0 4px rgba(143, 209, 138, .18); }
/* "Book a free estimate" links land here: just under the header */
.quote { scroll-margin-top: 28px; }   /* the header slides away while gliding down, so the whole form fits a laptop screen */
@media (max-width: 980px) { .quote { scroll-margin-top: 78px; } }
.quote.arrive { animation: arrive 1.8s var(--ease); }
@keyframes arrive {
  0% { box-shadow: 0 0 0 0 rgba(227, 165, 92, .7), 0 40px 80px -40px rgba(0, 0, 0, .8); border-color: var(--honey); }
  60% { box-shadow: 0 0 0 14px rgba(227, 165, 92, 0), 0 40px 80px -40px rgba(0, 0, 0, .8); border-color: var(--honey); }
  100% { box-shadow: 0 0 0 0 rgba(227, 165, 92, 0), 0 40px 80px -40px rgba(0, 0, 0, .8); }
}
.quote { background: rgba(26, 19, 14, .82); border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.quote h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.q-note { color: var(--ash); font-size: .92rem; margin: 6px 0 24px; }
.fld { position: relative; display: block; margin-top: 14px; }
.fld input, .fld textarea, .fld select { width: 100%; font: inherit; font-size: 1rem; color: var(--trav); background: rgba(10, 7, 5, .45); border: 1px solid rgba(241, 231, 216, .16); border-radius: 3px; padding: 24px 16px 10px; transition: border-color .3s, background .3s; appearance: none; -webkit-appearance: none; }
.fld textarea { resize: vertical; min-height: 92px; }
.fld select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23e3a55c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.fld select option { background: var(--umber); }
.fld span { position: absolute; left: 17px; top: 17px; color: var(--ash); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--honey); background: rgba(10, 7, 5, .6); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span, .fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span, .fld-sel span { transform: translateY(-10px) scale(.78); color: var(--honey); }
.fld [aria-invalid="true"] { border-color: #e07a5f; }
.pick { border: 0; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { color: var(--ash); font-size: .9rem; margin-bottom: 10px; padding: 0; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: block; padding: 9px 16px; border: 1px solid rgba(241, 231, 216, .18); border-radius: 3px; font-size: .94rem; transition: background .3s, border-color .3s, color .3s; }
.pick input:checked + span { background: var(--honey); border-color: var(--honey); color: #1e140c; font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.q-err { color: #f0a08a; min-height: 1.4em; margin: 12px 0 6px; font-size: .94rem; }
.quote .btn { width: 100%; }
.map { margin-top: 80px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(1) invert(.9) sepia(.35) contrast(.9); }

/* ---------- footer ---------- */
.foot { padding: 40px 0 50px; background: #100b08; overflow: hidden; }
.foot-word { font: 400 clamp(5rem, 21vw, 22rem)/1 var(--display); text-align: center; letter-spacing: -.02em; margin: 10px 0 30px; padding-bottom: .06em; color: transparent;
  background: radial-gradient(40% 120% at var(--fx, 50%) 60%, #ffd9a0 0, #e3a55c 30%, #6b3d1d 70%, #2a1a10 100%); -webkit-background-clip: text; background-clip: text; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--ash); font-size: .94rem; }
.foot-in a { color: var(--trav); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12, 8, 6, .97); display: grid; place-items: center; padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; max-width: 100%; }
.lightbox img { max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; border-radius: 2px; touch-action: pan-y; }
.lightbox figcaption { color: var(--ash); text-align: center; }
.lightbox figcaption b { display: block; color: var(--trav); font-weight: 500; }
.lb-close, .lb-nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(21, 16, 12, .6); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--honey); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-in, .work-head, .st-inner, .process-in, .est-in { grid-template-columns: 1fr; }
  .work-head { gap: 14px; }
  .work-head p { justify-self: start; }
  .process-head { position: static; }
  .svc { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 240px; grid-template-areas: "a a" "b c" "d e" "f f"; }
  .svc-a { min-height: 340px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .w { width: 80vw; }
  .w .w-open { height: auto; aspect-ratio: 4 / 5; }
  .w-end { height: auto; width: 70vw; min-height: 60vw; }
  .st-btn { grid-template-columns: 1fr 44px; padding: 22px 0; gap: 14px; }
  .st-btn small { grid-row: 2; text-align: left; margin-top: -6px; }
  .st-btn i { grid-row: 1 / 3; grid-column: 2; }
  .st-specs div { grid-template-columns: 1fr; gap: 2px; }
  .svc { grid-template-columns: 1fr; grid-auto-rows: 260px; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .steps { padding-left: 54px; }
  .steps li::before { left: -54px; }
  .steps::before, .steps::after { left: 18px; }
  .steps li { padding-bottom: 46px; }
  .lightbox { padding: 70px 10px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .map iframe { height: 300px; }
  .map { margin-top: 56px; }
}
