/* Homepage bento and lookbook. Shared booking and navigation styles live in index.html. */

.cta-arrow {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.12em;
}

.review-bottom .cta-arrow { width: 14px; height: 14px; }
.service-discover .btn,
.reviews-google-link,
.location-directions { gap: .65em; }

.hamburger {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
}
.hamburger svg { vertical-align: middle; }

#top {
  --home-section-space: clamp(48px, 4.6vw, 64px);
  --home-hero-follow-space: clamp(40px, 4vw, 56px);
}

#top > :is(.section, .reviews-section, .location-section) {
  padding-block: var(--home-section-space);
}

#top > #services { padding-block-start: var(--home-hero-follow-space); }

#top :is(#services, #gallery) .sectionhead .heading { margin-block-start: 0; }
#services .sectionhead > p { margin-block: 0; }

@media (max-width: 760px) {
  #top {
    --home-section-space: 36px;
    --home-hero-follow-space: 34px;
  }

  #top .sectionhead { margin-bottom: 22px; }
  #top :is(#services, #gallery) .sectionhead .heading { margin-bottom: 4px; }
}
.hero {
  width: min(calc(100% - 68px), var(--max));
  margin: 32px auto 0;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(350px, 1fr) minmax(0, 1.76fr);
  gap: 14px;
  border: 0;
}

.bento-promotion {
  border-radius: 24px;
  min-width: 0;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px 12px 24px clamp(16px, 3.5vw, 48px);
}

.hero .hero-copy h1 {
  margin: 0 0 14px;
  max-width: 15ch;
  font-size: clamp(35px, calc(3.5vw + 1px), 51px);
  letter-spacing: -.045em;
  line-height: 1.03;
  overflow-wrap: break-word;
}

.hero-copy p { margin: 0 0 18px; max-width: 32ch; line-height: 1.65; }
.bento-actions {
  display: flex;
  align-items: stretch;
  gap: clamp(4px, 1.4vw, 10px);
  container-type: inline-size;
}
.bento-actions .btn {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hero-title-row h1 { min-width: 0; }
.hero-social {
  display: flex;
  flex: none;
  gap: 4px;
}
.hero-social a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
@media (hover: hover) {
  .hero-social a:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }
}
.hero-social a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.bento-promotion {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  background: #f4e5db;
}
.bento-promotion[hidden],
.promotion-controls[hidden] { display: none; }
.promotion-slide { width: 100%; height: 100%; }
.hero:has(.bento-promotion[hidden]) .hero-copy { grid-column: 1 / -1; }
.promotion-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.promotion-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.promotion-image:focus-visible { outline-offset: -4px; }
.promotion-controls {
  display: flex;
  gap: 6px;
  position: absolute;
  right: 8px;
  bottom: 8px;
}
.promotion-controls button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 23px;
}
.promotion-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
}
.promotion-cta[hidden] { display: none; }

#services .service-card { border-radius: 20px; overflow: hidden; }
#gallery .gallery-grid {
  --lookbook-visible: 4.5;
  --lookbook-gap: 14px;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  --lookbook-card-width: calc((100% - 4 * var(--lookbook-gap)) / var(--lookbook-visible));
  grid-auto-columns: var(--lookbook-card-width);
  gap: var(--lookbook-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
#gallery .gallery-grid::-webkit-scrollbar { display: none; }
#gallery .gallery-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#gallery .gallery-grid.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
@media (any-pointer: fine) {
  #gallery .gallery-grid.is-dragging { cursor: grabbing; }
}
#gallery .gallery-grid .work,
#gallery .gallery-grid .work:first-child {
  grid-column: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  scroll-snap-align: start;
}
#gallery .gallery-grid:has(.lookbook-tail) {
  grid-template-columns: repeat(var(--lookbook-card-count), var(--lookbook-card-width)) 132px;
}
#gallery .lookbook-tail {
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 132px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 13px/1.35 var(--sans, Arial, sans-serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: end;
}
#gallery .lookbook-tail:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
#gallery .gallery-grid:has(.gallery-empty) { display: block; }
#gallery .work-label {
  inset: 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(to top, rgb(23 16 13 / 76%), rgb(23 16 13 / 58%) 38px, rgb(23 16 13 / 27%) 76px, transparent 116px);
}
#gallery button.work {
  appearance: none;
  padding: 0;
  border: 0;
  text-align: left;
  cursor: zoom-in;
}
@media (any-pointer: fine) {
  #gallery .gallery-grid.can-drag button.work { cursor: grab; }
  #gallery .gallery-grid.is-dragging button.work { cursor: grabbing; }
}
#gallery button.work:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
#gallery .work-label strong { font-size: clamp(15px, calc(1.35vw + 1px), 20px); overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(350px, 1fr) minmax(0, 1fr); }
  .bento-promotion { min-height: 380px; }
  #gallery .gallery-grid { --lookbook-visible: 2.5; --lookbook-card-width: calc((100% - 2 * var(--lookbook-gap)) / var(--lookbook-visible)); }
}

@media (max-width: 760px) {
  .hero { width: calc(100% - 36px); grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .hero-copy { padding: 12px 4px 14px; }
  .hero-social { gap: 2px; }
  .hero .hero-copy h1 { font-size: clamp(29px, calc(8.2vw + 1px), 37px); margin-bottom: 10px; }
  .bento-promotion { min-height: 0; aspect-ratio: 1; border-radius: 18px; }
  #gallery .gallery-grid { --lookbook-visible: 2.2; --lookbook-gap: 10px; }
}

body:has(.lookbook-detail[open]) { overflow: hidden; }
.lookbook-detail {
  width: min(584px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
}
.lookbook-detail[open] {
  display: grid;
  grid-template-columns: 46px minmax(0, 460px) 46px;
  align-items: center;
  gap: 16px;
  animation: lookbook-open 180ms ease-out;
}
.lookbook-detail-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 33px;
  line-height: 1;
}
.lookbook-detail-arrow[hidden] { display: none; }
.lookbook-detail-prev { grid-column: 1; }
.lookbook-detail-next { grid-column: 3; }
.lookbook-detail::backdrop { background: rgb(35 27 22 / 58%); }
.lookbook-detail-content {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 20px 70px #261e1a4d;
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .lookbook-detail { width: min(460px, calc(100% - 32px)); }
  .lookbook-detail[open] { grid-template-columns: minmax(0, 1fr); }
  .lookbook-detail-content { grid-column: 1; }
  .lookbook-detail-arrow { display: none; }
}
.lookbook-detail-image {
  display: block;
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
  background: var(--cream);
  touch-action: pan-y pinch-zoom;
}
.lookbook-detail-copy { padding: 18px 24px 24px; }
.lookbook-detail-copy h2 { margin: 0; font: 600 clamp(20px, calc(4vw + 1px), 25px)/1.25 var(--sans); }
.lookbook-detail-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.lookbook-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 27px;
}
@keyframes lookbook-open {
  from { opacity: 0; transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .lookbook-detail[open] { animation: none; }
}

.service-price-list { margin-top: clamp(44px, 7vw, 76px); scroll-margin-top: 100px; }
.service-price-list > h3 { margin: 0 0 20px; font: 600 clamp(27px, calc(4vw + 1px), 40px)/1.2 var(--serif); }
.service-price-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.service-price-group {
  padding: 0 clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf5;
}
.service-price-group > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 0;
  font: 600 19px/1.35 var(--serif);
}
.service-price-group > summary::-webkit-details-marker { display: none; }
.service-price-group-note,
.service-price-note { color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.service-price-group-note { margin: 0 0 12px; }
.service-price-items { margin: 0 0 12px; }
.service-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.service-price-row dt,
.service-price-row dd { margin: 0; }
.service-price-row dt { overflow-wrap: anywhere; line-height: 1.45; }
.service-price-note { display: block; margin-top: 4px; }
.service-price-row dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}
.service-price-unit { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.service-price-warranty {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--cream);
}
.service-price-warranty h4 { margin: 0 0 4px; font-size: 15px; }
.service-price-warranty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-line; }
@media (max-width: 760px) {
  .service-price-groups { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service-price-group > summary { cursor: pointer; }
  .service-price-group > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  .service-price-group[open] > summary::after { transform: rotate(225deg); }
  .service-price-row { gap: 4px 9px; }
}

@media (max-width: 760px) {
  #services .service-grid,
  #journal #journalFeed {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  #services .service-grid::-webkit-scrollbar,
  #journal #journalFeed::-webkit-scrollbar { display: none; }
  #services .service-card,
  #journal #journalFeed > .article {
    min-width: 0;
    scroll-snap-align: start;
  }
  #services .service-card:last-child,
  #journal #journalFeed > .article:last-child { scroll-snap-align: end; }
  #journal #journalFeed > :only-child { grid-column: 1 / -1; }
  #journal #journalFeed:has(> :only-child) { grid-auto-columns: 100%; }
  #services .service-card { padding: 14px 14px 18px; }
  #services .service-card:hover { transform: none; }
  #services .service-visual,
  #journal .article-visual {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 250px;
  }
  #services .service-visual img,
  #journal .article-visual img { height: 100%; }
}

.service-discover {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 36px);
}

/* Sample reviews */
#reviews .review-card {
  background: #fffdfb;
  border: 1px solid #dfd3c7;
  border-radius: var(--soline-corner, 9px);
  padding: clamp(16px, 2vw, 22px);
}
#reviews .review-card-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  margin: 0;
}
#reviews .review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9dce7;
  color: #4e3549;
  font-size: 17px;
  font-weight: 700;
}
#reviews .review-author {
  color: #302821;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#reviews .review-card-top time {
  color: #675a52;
  font-size: 12px;
  line-height: 1.4;
}
#reviews .review-card-top time {
  text-align: right;
  align-self: start;
  padding-top: 2px;
}
#reviews .review-google-mark {
  display: grid;
  place-items: center;
  align-self: start;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
#reviews .review-google-mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#reviews .review-google-mark img {
  width: 16px;
  height: 16px;
}
#reviews .review-stars {
  margin: 12px 0 8px;
  color: #8c5a27;
  letter-spacing: 2px;
}
#reviews .review-copy {
  color: #453b34;
  font: 400 16px/1.6 var(--sans);
  letter-spacing: normal;
}
@media (max-width: 760px) {
  #reviews .review-card-top {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    column-gap: 10px;
    row-gap: 4px;
  }
  #reviews .review-avatar { width: 36px; height: 36px; }
  #reviews .review-google-mark {
    grid-column: 3;
    grid-row: 1;
  }
  #reviews .review-card-top time {
    grid-column: 2;
    text-align: left;
    padding: 0;
  }
}

/* Muted labels on the lighter homepage panels need text contrast. */
.service-price-warranty p,
#gallery .sectionhead .muted,
#reviews .reviews-heading .eyebrow,
#journal .sectionhead .eyebrow,
#journal .article .meta,
#journal .journal-note,
#location .location-copy .eyebrow,
#location .location-label {
  color: #62554e;
}
