/* ==========================================================================
   Decorative & Faux Finishes : v3 stylesheet
   Design system: JH Wall Paints gold standard, Segreto nav + hero exception.
   Colors: client Sherwin-Williams neutrals plus derived monochrome support.
   No color outside the token list below. Full monochrome, no accent hue.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts (self-hosted, latin subset). Same files Google Fonts serves, kept
   local so first paint does not wait on a second domain. Both are variable
   fonts: one file covers every weight the site uses.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Client Sherwin-Williams colors */
  --color-creamy: #EFE8DB;            /* SW 7012 Creamy: main page background */
  --color-incredible: #E2DDD1;        /* SW 7028 Incredible White: alternating bands, cards */
  --color-neutral-ground: #E2DACA;    /* SW 7568 Neutral Ground: footer, quiet fills */

  /* Derived monochrome support (proposed, flagged for client sign-off) */
  --color-ink: #2E2B27;               /* deep charcoal: primary text */
  --color-button: #5B5B5B;            /* button charcoal: solid buttons below the hero */
  --color-button-hover: #4C4C4C;      /* hover: tone shift only, never hue */
  --color-taupe: #655F55;             /* gray taupe: secondary text, captions.
                                         Darkened from #8A847C for 4.5:1 contrast
                                         on all three SW backgrounds; pending
                                         client sign-off. */
  --color-hairline: #D9D2C4;          /* hairline: borders, rules, dividers */

  /* Typography */
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Radii */
  --radius-photo: 14px;               /* rounded photo corners per ref-corner.jpg */
  --radius-button: 2px;               /* JH buttons stay squared */

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(24px, 4vw, 64px);
  --section-pad: clamp(72px, 9vw, 128px);
  --nav-height: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

/* Visible keyboard focus everywhere; dark panels override the color */
:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  background-color: var(--color-ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 10px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-ink);
  background-color: var(--color-creamy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

/* Uppercase wide-tracked section heading, JH style */
.heading {
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Small uppercase eyebrow line */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-taupe);
}

/* Body copy block: JH's calm gray paragraphs */
.copy {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-taupe);
}

.copy + .copy {
  margin-top: 1.6em;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

/* JH solid charcoal button: site-wide default below the hero */
.btn {
  display: inline-block;
  padding: 17px 38px;
  background-color: var(--color-button);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-button-hover);
}

/* Segreto outlined pill: the hero CTA ONLY, the single pill on the site */
.btn-pill {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid #FFFFFF;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.btn-pill:hover,
.btn-pill:focus-visible {
  background-color: rgba(255, 255, 255, 0.14);
}

/* The ink outline is invisible over dark hero photography */
.btn-pill:focus-visible {
  outline-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4b. Sticky nav (Segreto style, shared by all pages)
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-height);
  width: 100%;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-taupe);
}

/* Current page indicator */
.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

/* Serif wordmark: the ONLY serif on the site */
.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-ink);
  padding-inline: clamp(16px, 2vw, 40px);
}

/* Mobile menu toggle: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-ink);
  transition: transform 0.3s ease;
}

.mobile-menu {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-hairline);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 16px var(--container-pad) 24px;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-hairline);
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  /* Fluid wordmark so the bar never overflows small phones */
  .wordmark {
    justify-self: start;
    padding-inline: 0;
    order: -1;
    font-size: clamp(11px, 4vw, 16px);
    letter-spacing: 0.08em;
  }
  .nav-toggle {
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
   4c. Transitioning hero (Segreto style: the one design exception)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  min-height: 560px;
  overflow: hidden;
  background-color: var(--color-ink);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the sink and vanity in frame on the portrait bathroom shot,
   in the hero slide and in its category tile */
img[src="sinkinbathroom.png"],
img[src*="/finished-rooms-murals-a.jpg"] {
  object-position: center 62%;
}

/* Soft dark overlay so lower-left text stays legible on any photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(48px, 8vh, 88px);
  color: #FFFFFF;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.hero-captions {
  display: grid;
  margin-top: 26px;
}

.hero-caption {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-caption.is-active {
  opacity: 1;
}

.hero-label {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.hero-line {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.92;
}

.hero .btn-pill {
  margin-top: 30px;
}

/* Slide indicator dots, lower right per the reference.
   Buttons are 24px tap targets; the visible dot is drawn smaller. */
.hero-dots {
  position: absolute;
  right: clamp(24px, 3vw, 48px);
  bottom: 20px;
  display: flex;
  gap: 6px;
}

.hero-dot {
  position: relative;
  width: 24px;
  height: 24px;
}

.hero-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s ease;
}

.hero-dot.is-active::after,
.hero-dot:hover::after,
.hero-dot:focus-visible::after {
  background-color: #FFFFFF;
}

.hero-dot:focus-visible {
  outline-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
}

/* Alternating JH band backgrounds */
.band-creamy {
  background-color: var(--color-creamy);
}

.band-incredible {
  background-color: var(--color-incredible);
}

/* --------------------------------------------------------------------------
   7. Category units: four-photo row (JH pattern)
   -------------------------------------------------------------------------- */
/* A category's row and its highlight form one unit: tighten the gap
   between them so proximity groups them, while unit-to-unit spacing
   stays at the full section pad. */
.photo-row.section {
  padding-bottom: clamp(28px, 3vw, 48px);
}

.highlight.section {
  padding-top: clamp(36px, 4vw, 64px);
}

/* The four-photo row breaks out of the 1440px container per the JH
   reference: near full viewport width with a slim side margin only */
.photo-row-wide {
  max-width: 1860px;
  margin-inline: auto;
  padding-inline: clamp(24px, 2.5vw, 48px);
}

.photo-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 30px);
}

.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  background-color: var(--color-incredible);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Labeled placeholder tile: soft neutral fill, small centered label.
   The hairline border keeps the card visible on the Incredible White band. */
.tile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-hairline);
}

.tile-placeholder span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-taupe);
  text-align: center;
  padding-inline: 16px;
}

@media (max-width: 900px) {
  .photo-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .photo-row-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   8. Category highlight (JH pattern): photo + heading + copy + button.
   The photo bleeds to the outer viewport edge; the copy sits on the inner
   half, padded so its outer edge lines up with the 1440px container.
   -------------------------------------------------------------------------- */
.highlight-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Photo left by default: square the bleeding edge, round the inner one */
.highlight-photo {
  overflow: hidden;
  border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
}

.highlight-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

/* Large-photo placeholder card: same ratio and fill as a real highlight photo */
.highlight-photo.tile-placeholder {
  aspect-ratio: 5 / 6;
  background-color: var(--color-incredible);
}

/* Copy column: outer padding aligns the text with the centered container */
.highlight-copy {
  padding-inline-end: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
}

.highlight-copy .copy {
  margin-top: 30px;
  max-width: 52ch;
}

.highlight-copy .btn {
  margin-top: 38px;
}

/* Alternate photo side unit to unit: mirror the bleed */
.highlight-reverse .highlight-photo {
  order: 2;
  border-radius: var(--radius-photo) 0 0 var(--radius-photo);
}

.highlight-reverse .highlight-copy {
  padding-inline-end: 0;
  padding-inline-start: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
}

/* About page story: the highlight sits INSIDE the container (no bleed),
   so the photo keeps its full radius and the copy drops the bleed padding */
.about-story .highlight-photo {
  border-radius: var(--radius-photo);
}

.about-story .highlight-copy {
  padding-inline-end: 0;
}

/* Landscape portrait of Rafael: he stands just right of center */
.about-story .highlight-photo img {
  object-position: 54% center;
}

/* Landscape kitchen in the tall frame: slide left so the hood sits centered
   and the chandelier is not cut in half at the edge (Jon, 2026-10-08) */
.highlight-photo img[src*="/cabinets-large.jpg"] {
  object-position: 25% center;
}

@media (max-width: 900px) {
  .highlight-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .highlight-reverse .highlight-photo {
    order: 0;
  }
  /* Stacked: the photo spans both edges, the copy returns to page padding */
  .highlight-photo,
  .highlight-reverse .highlight-photo {
    border-radius: 0;
  }
  .highlight-copy,
  .highlight-reverse .highlight-copy {
    padding-inline: var(--container-pad);
  }
}

/* --------------------------------------------------------------------------
   9. Contact section
   -------------------------------------------------------------------------- */
.contact-inner {
  max-width: 720px;
  text-align: center;
}

.contact-invite {
  margin-top: 18px;
}

.contact-form {
  margin-top: 56px;
  text-align: left;
}

.form-field + .form-field {
  margin-top: 28px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-taupe);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-ink);
  background-color: transparent;
  border: 1px solid var(--color-taupe);
  border-radius: var(--radius-button);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

.form-field textarea {
  resize: vertical;
}

/* Invalid fields hold the strong ink border until corrected */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

.form-error {
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-ink);
}

.contact-form .btn {
  margin-top: 36px;
}

.form-thanks {
  margin-top: 56px;
}

.form-thanks-heading {
  font-size: clamp(24px, 2vw, 30px);
}

.form-thanks .copy {
  margin-top: 18px;
}

.contact-details {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--color-taupe);
}

.contact-details a {
  transition: color 0.3s ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   10. Footer (SW Neutral Ground, minimal and quiet)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-neutral-ground);
  padding-top: clamp(56px, 6vw, 88px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Semantic wrapper for the contact lines; cancel the browser's default italic */
.footer-address {
  font-style: normal;
}

.footer-line {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-taupe);
  overflow-wrap: anywhere;
}

.footer-line a:hover,
.footer-line a:focus-visible {
  color: var(--color-ink);
}

/* Areas We Serve: homepage footer only, a quiet block beside the contact info */
.footer-areas {
  max-width: 460px;
}

.footer-areas-list {
  margin-top: 14px;
  columns: 3;
  column-gap: clamp(24px, 3vw, 48px);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-taupe);
}

.footer-areas-list li {
  padding-block: 2px;
  break-inside: avoid;
}

.footer-areas-closing {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-taupe);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-social a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: color 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-taupe);
}

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 28px;
  border-top: 1px solid var(--color-hairline);
  font-size: 13px;
  color: var(--color-taupe);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-areas-list {
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   11. Gallery page
   -------------------------------------------------------------------------- */
.page-header {
  text-align: center;
  padding-bottom: clamp(24px, 3vw, 48px);
}

.page-header-line {
  margin-top: 20px;
  max-width: 62ch;
  margin-inline: auto;
}

.gallery-category {
  text-align: center;
}

.gallery-intro {
  margin-top: 18px;
  max-width: 58ch;
  margin-inline: auto;
}

/* Gallery: masonry columns so every photo shows at its natural shape,
   never cropped (client request 2026-10-03). Homepage tiles keep the 4:5
   crop; only the gallery opts out. width/height on each <img> reserve the
   space before lazy loading fills it. */
.gallery-grid {
  margin-top: clamp(40px, 5vw, 64px);
  columns: 2;
  column-gap: clamp(20px, 2.5vw, 36px);
  text-align: left;
}

.gallery-grid .tile {
  aspect-ratio: auto;
  break-inside: avoid;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.gallery-grid .tile img {
  height: auto;
  object-fit: initial;
}

/* script.js wraps each gallery photo in this button to open the lightbox */
.tile-open {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}

.tile-open img {
  transition: transform 0.6s ease;
}

.tile-open:hover img,
.tile-open:focus-visible img {
  transform: scale(1.02);
}

.tile-open:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: -2px;
}

/* Lightbox: the whole photo, uncropped, on a deep charcoal field */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(56px, 7vw, 88px) clamp(16px, 6vw, 96px);
  background-color: rgba(46, 43, 39, 0.96);   /* deep charcoal token */
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(56px, 7vw, 88px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-photo);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  padding: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #FFFFFF;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  opacity: 1;
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #FFFFFF;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  margin-top: -24px;
}

.lightbox-prev {
  left: clamp(4px, 1.5vw, 24px);
}

.lightbox-next {
  right: clamp(4px, 1.5vw, 24px);
}

.lightbox svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

.lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 2.5vw, 28px);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.8;
}

/* Keep the page behind the lightbox from scrolling */
.lightbox-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .tile-open img {
    transition: none;
  }

  .tile-open:hover img,
  .tile-open:focus-visible img {
    transform: none;
  }
}

/* Category jump links under the gallery header: quiet wayfinding for a
   long page, styled on the eyebrow pattern */
.gallery-jumpnav {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
}

.gallery-jumpnav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-taupe);
  padding-block: 6px;
  transition: color 0.3s ease;
}

.gallery-jumpnav a:hover,
.gallery-jumpnav a:focus-visible {
  color: var(--color-ink);
}

/* Three columns on wide screens so long categories stay scannable */
@media (min-width: 1100px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-cta {
  text-align: center;
}

.gallery-cta .btn {
  margin-top: 30px;
}

@media (max-width: 700px) {
  .gallery-grid {
    columns: 1;
  }
}

/* --------------------------------------------------------------------------
   12. Process page: five-step block with the active step's photo
   -------------------------------------------------------------------------- */
.page-header .eyebrow {
  margin-bottom: 18px;
}

/* Step panel left, active step's photo right (per ref-process.png).
   The min-height keeps the block from jumping as steps with longer copy
   open; the photo column stretches to match the panel. */
.process-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: clamp(560px, 46vw, 660px);
}

.process-steps {
  background-color: var(--color-ink);
  border-radius: var(--radius-photo);
  padding: clamp(32px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-step {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--color-creamy);
  padding-block: 22px;
  border-bottom: 1px solid rgba(239, 232, 219, 0.18);
}

/* Ink outline is invisible on the dark panel */
.process-step:focus-visible {
  outline-color: var(--color-creamy);
}

.process-step:last-child {
  border-bottom: none;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.process-step.is-active .step-head,
.process-step:hover .step-head,
.process-step:focus-visible .step-head {
  opacity: 1;
}

.step-number {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.step-rule {
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: rgba(239, 232, 219, 0.5);
}

.step-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Active step expands to show its description */
.step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.step-copy {
  overflow: hidden;
  display: block;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(239, 232, 219, 0.8);
}

.process-step.is-active .step-body {
  grid-template-rows: 1fr;
}

.process-step.is-active .step-copy {
  padding-top: 14px;
}

/* Right column: one photo per step, stacked and crossfading */
.process-images {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background-color: var(--color-incredible);
}

.process-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.process-image.is-active {
  opacity: 1;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Per-photo framing so each subject stays in view at any panel shape.
   Step 5: the handshake sits at the photo's right edge, so anchor right. */
.process-image img[src*="/process-03.jpg"],
.step-photo[src*="/process-03.jpg"] {
  object-position: 42% center;
}

.process-image img[src*="/process-05.jpg"],
.step-photo[src*="/process-05.jpg"] {
  object-position: right center;
}

/* Phone-only copy of each step's photo, shown inside the open step */
.step-photo {
  display: none;
}

/* Below 1100px the photo column would squeeze into a tall strip that crops
   these landscape photos hard, so the block stacks: photos move inline */
@media (max-width: 1100px) {
  .process-block {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 760px;
    margin-inline: auto;
  }

  .process-images {
    display: none;
  }

  .step-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-image {
    transition: none;
  }
}

/* Closing line under the step panel (the client's own sign-off). Payment
   terms now live inside steps 02 and 05, so this line carries no terms. */
.process-closing {
  max-width: 760px;
  margin: clamp(40px, 4vw, 56px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-hairline);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--color-taupe);
  text-align: center;
}

/* Very narrow phones: the tracked step names need every pixel */
@media (max-width: 380px) {
  .step-rule {
    display: none;
  }
  .step-head {
    gap: 12px;
  }
  .step-name {
    font-size: 13px;
    letter-spacing: 0.14em;
  }
}

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   6. Scroll reveal (subtle motion, with failsafe)
   Content must never stay hidden: reveals only activate when JS adds
   .js-reveal-ready to <html>; a load timeout in script.js is the failsafe.
   -------------------------------------------------------------------------- */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 404 page: the two buttons sit side by side under the intro line */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* --------------------------------------------------------------------------
   Service pages (venetian-plaster.html and siblings): a narrow reading
   column for the explanatory copy and FAQ. Same tokens and type as the
   rest of the site; headings step down one size inside the column.
   -------------------------------------------------------------------------- */
.service-prose {
  max-width: calc(760px + 2 * var(--container-pad));
}

.service-prose .heading {
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.5;
}

.service-prose .heading:not(:first-child) {
  margin-top: clamp(48px, 5vw, 72px);
}

.service-prose .heading + .copy,
.service-prose .heading + .service-list,
.service-prose .heading + .service-faq {
  margin-top: 24px;
}

.service-list {
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
}

.service-list li {
  padding-block: 12px;
  border-bottom: 1px solid var(--color-hairline);
}

.service-list li:first-child {
  border-top: 1px solid var(--color-hairline);
}

.service-list + .copy {
  margin-top: 28px;
}

.service-faq h3 {
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-ink);
}

.service-faq h3:first-child {
  margin-top: 0;
}

.service-faq h3 + .copy {
  margin-top: 12px;
}

/* Quiet inline link: ink text, hairline underline, tone shift on hover */
.text-link {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-hairline);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s ease;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--color-ink);
}
