/* ==========================================================================
   Ls company — Luxury Bathroom Remodeling
   Design system: porcelain white, ice blue, steel blue, navy, azure
   ========================================================================== */

@import url("fonts.css");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --mist: #f6f9fc;
  --ice: #e8f0f8;
  --steel: #8aa6c4;
  --navy: #132a42;
  --azure: #2a6f97;
  --pure-white: #ffffff;

  --ink: var(--navy);
  --ink-soft: #3d5570;
  --ink-mute: #647d96;
  --line: rgba(19, 42, 66, 0.25);
  --line-soft: rgba(19, 42, 66, 0.12);
  --azure-soft: rgba(42, 111, 151, 0.14);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(19, 42, 66, 0.04), 0 6px 18px rgba(19, 42, 66, 0.05);
  --shadow-md: 0 2px 6px rgba(19, 42, 66, 0.05), 0 18px 44px rgba(19, 42, 66, 0.09);
  --shadow-lg: 0 30px 80px rgba(19, 42, 66, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 124px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0; }

::selection { background: var(--azure-soft); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--mist);
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--white { background: var(--pure-white); }
.section--beige { background: linear-gradient(180deg, #eef4fa 0%, var(--mist) 100%); }
.section--navy { background: var(--navy); color: var(--mist); }
.section--navy h2, .section--navy h3 { color: var(--mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 22px;
}

.h-display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.h-section {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.12;
}
.h-card {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-head { max-width: 720px; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lede { margin-top: 18px; }
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.divider {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--mist);
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--azure);
  --btn-bd: var(--azure);
  --btn-fg: var(--pure-white);
}
.btn--gold:hover {
  --btn-bg: #1f5680;
  --btn-bd: #1f5680;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  --btn-bd: var(--navy);
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--pure-white);
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn--light:hover {
  --btn-bg: var(--pure-white);
  --btn-fg: var(--navy);
  --btn-bd: var(--pure-white);
}

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover {
  color: var(--azure);
  border-color: var(--azure);
  gap: 12px;
}
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow--light { color: var(--mist); border-color: rgba(255, 255, 255, 0.35); }
.link-arrow--light:hover { color: var(--ice); border-color: var(--ice); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(246, 249, 252, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(246, 249, 252, 0.95);
  box-shadow: 0 1px 20px rgba(19, 42, 66, 0.05);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand__logo {
  display: block;
  height: 100px;
  width: auto;
}

.nav {
  justify-self: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.nav__link {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--navy); }
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta { justify-self: end; }
.header-cta .btn { padding: 13px 24px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
  justify-self: end;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(19, 42, 66, 0.04); border-color: var(--navy); }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  padding: 0 var(--gutter);
  background: var(--mist);
  border-top: 1px solid transparent;
  transition:
    max-height 0.5s var(--ease),
    padding 0.5s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.4s var(--ease),
    border-color 0.35s var(--ease),
    visibility 0s linear 0.5s;
}
.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  padding-top: 10px;
  padding-bottom: 26px;
  border-top-color: var(--line-soft);
  transition:
    max-height 0.55s var(--ease),
    padding 0.55s var(--ease),
    opacity 0.4s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.35s var(--ease),
    visibility 0s linear;
}
.mobile-panel .nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.mobile-panel .nav__link {
  display: block;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.mobile-panel .btn { margin-top: 20px; width: 100%; }

@keyframes panelUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes panelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mobile-panel.is-open .nav__link { animation: panelUp 0.5s var(--ease) both; }
.mobile-panel.is-open .nav__list li:nth-child(1) .nav__link { animation-delay: 0.08s; }
.mobile-panel.is-open .nav__list li:nth-child(2) .nav__link { animation-delay: 0.14s; }
.mobile-panel.is-open .nav__list li:nth-child(3) .nav__link { animation-delay: 0.2s; }
.mobile-panel.is-open .nav__list li:nth-child(4) .nav__link { animation-delay: 0.26s; }
.mobile-panel.is-open .nav__list li:nth-child(5) .nav__link { animation-delay: 0.32s; }
.mobile-panel.is-open .btn { animation: panelFade 0.5s var(--ease) 0.4s both; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94vh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  color: var(--pure-white);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 42, 66, 0.42) 0%, rgba(19, 42, 66, 0.18) 38%, rgba(19, 42, 66, 0.66) 100%),
    linear-gradient(90deg, rgba(19, 42, 66, 0.4) 0%, rgba(19, 42, 66, 0) 62%);
}
.hero__content {
  position: relative;
  padding-block: clamp(90px, 12vh, 160px) clamp(64px, 9vh, 110px);
  max-width: 880px;
}
.hero .eyebrow { color: var(--ice); }
.hero h1 {
  color: var(--pure-white);
  margin-bottom: 26px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

/* Trust strip under hero */
.trust-strip {
  background: var(--pure-white);
  border-bottom: 1px solid var(--line-soft);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.trust-item {
  padding: 30px 26px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--pure-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ice);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body {
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.service-card__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.service-mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-mini:hover {
  border-color: var(--line);
  background: var(--pure-white);
  transform: translateY(-3px);
}
.service-mini__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--azure);
  background: var(--pure-white);
}
.service-mini h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
}
.service-mini p {
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* Service detail rows (services page) */
.service-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.service-row + .service-row { margin-top: clamp(56px, 7vw, 110px); }
.service-row--flip .service-row__media { order: 2; }
.service-row__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--ice);
  box-shadow: var(--shadow-sm);
}
.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-row__body h2 { margin-bottom: 16px; }
.service-row__body p { color: var(--ink-soft); margin-bottom: 22px; }
.check-list { display: grid; gap: 12px; margin-bottom: 28px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--azure);
  border-bottom: 1.5px solid var(--azure);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Owner section
   -------------------------------------------------------------------------- */
.owner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
}
.owner__portrait {
  position: relative;
}
.owner__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 20%, #e3edf7 0%, var(--ice) 55%, #a9c2d9 100%);
  box-shadow: var(--shadow-md);
}
.owner__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.owner__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  color: var(--ink-soft);
}
.owner__placeholder .mono {
  font-family: var(--font-display);
  font-size: 4.2rem;
  letter-spacing: 0.12em;
  color: rgba(19, 42, 66, 0.22);
}
.owner__placeholder p {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 30ch;
  margin-inline: auto;
  color: var(--ink-mute);
}
.owner__badge {
  position: absolute;
  right: -18px;
  bottom: 34px;
  background: var(--pure-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.owner__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 4px;
}
.owner__badge span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.owner__body blockquote {
  margin: 26px 0 0;
  padding-left: 26px;
  border-left: 1px solid var(--azure);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.owner__body p { color: var(--ink-soft); margin-top: 22px; }
.owner__sign {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
.owner__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}
.owner__role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   9. Portfolio
   -------------------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 40px;
  justify-content: center;
}
.filter-btn {
  padding: 11px 22px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.28s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--mist);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.portfolio-item {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ice);
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
}
.portfolio-item--wide { grid-column: span 8; }
.portfolio-item--tall { grid-column: span 4; }
.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.portfolio-item--wide img { aspect-ratio: 16 / 10; min-height: 340px; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 42, 66, 0) 42%, rgba(19, 42, 66, 0.82) 100%);
  opacity: 0.92;
  transition: opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  color: var(--pure-white);
}
.portfolio-item__cat {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 8px;
}
.portfolio-item__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--pure-white);
}
.portfolio-item__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}
.portfolio-item__zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.35s var(--ease);
}
.portfolio-item:hover .portfolio-item__zoom {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. Differentials
   -------------------------------------------------------------------------- */
.differentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.diff-item {
  padding: clamp(30px, 3.4vw, 48px);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s var(--ease);
}
.diff-item:hover { background: rgba(255, 255, 255, 0.65); }
.diff-item__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--azure);
  margin-bottom: 22px;
}
.diff-item h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.diff-item p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--pure-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stars { display: flex; gap: 4px; color: var(--azure); }
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.testimonial__author {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}
.testimonial__author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.testimonial__author span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   11b. Review carousel + add-review form (server-backed)
   -------------------------------------------------------------------------- */
.tcarousel {
  --tgap: clamp(20px, 2.6vw, 34px);
}
.tcarousel__viewport {
  overflow: hidden;
  padding: 8px 12px 14px;
  margin: -8px -12px -14px;
}
.tcarousel__track {
  display: flex;
  gap: var(--tgap);
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.tcarousel__track > .testimonial {
  flex: 0 0 calc((100% - 2 * var(--tgap)) / 3);
  min-width: 0;
}

.tcarousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(26px, 3vw, 40px);
}
.tcarousel__controls[hidden] { display: none; }
.tcarousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--pure-white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.tcarousel__btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--mist);
}
.tcarousel__btn:active { transform: scale(0.92); }
.tcarousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.tcarousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tcarousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.tcarousel__dot:hover { background: var(--steel); }
.tcarousel__dot.is-active {
  background: var(--azure);
  transform: scale(1.3);
}
.tcarousel__empty {
  margin: 0;
  padding: 36px 0 10px;
  text-align: center;
  color: var(--ink-mute);
}
.tcarousel__empty[hidden] { display: none; }

.review-add {
  margin-top: clamp(30px, 4vw, 44px);
  display: grid;
  justify-items: center;
  gap: 22px;
}
.review-form {
  width: min(720px, 100%);
  background: var(--pure-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
  animation: panelUp 0.45s var(--ease) backwards;
}
.review-form[hidden] { display: none; }
.review-form__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.review-form__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
}
.review-thanks {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--azure);
}
.review-thanks[hidden] { display: none; }
.review-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b3553f;
}
.review-error[hidden] { display: none; }

.rv-stars {
  display: flex;
  gap: 6px;
}
.rv-star {
  padding: 2px;
  border: 0;
  background: none;
  color: var(--line);
  cursor: pointer;
  line-height: 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.rv-star.is-on { color: var(--azure); }
.rv-star:hover { transform: scale(1.14); }

@keyframes reviewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.testimonial--new { animation: reviewIn 0.5s var(--ease) backwards; }

/* --------------------------------------------------------------------------
   13. Form
   -------------------------------------------------------------------------- */
.estimate {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.estimate__aside p { color: var(--ink-soft); margin-top: 18px; }
.estimate__contacts { margin-top: 34px; display: grid; gap: 18px; }
.estimate__contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
}
.estimate__contact svg { color: var(--azure); flex: none; margin-top: 3px; }
.estimate__contact strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 2px;
}

.form-card {
  background: var(--pure-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 46px);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field label .req { color: var(--azure); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a69a8b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azure);
  background: var(--pure-white);
  box-shadow: 0 0 0 3px var(--azure-soft);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3553f;
  background: #fdf6f4;
}
.field__error {
  font-size: 0.78rem;
  color: #b3553f;
  min-height: 0;
  display: none;
}
.field.has-error .field__error { display: block; }

.form-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  color: var(--pure-white);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 42, 66, 0.86) 0%, rgba(19, 42, 66, 0.55) 100%);
}
.cta-band__inner {
  padding-block: clamp(70px, 9vw, 120px);
  max-width: 680px;
}
.cta-band h2 { color: var(--pure-white); margin-bottom: 18px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 34px; }
.cta-band .eyebrow { color: var(--ice); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(56px, 7vw, 90px);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; color: var(--ink-mute); font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  color: var(--ink-mute);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--azure); }
.footer-col address { font-style: normal; display: grid; gap: 12px; color: var(--ink-mute); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.28s var(--ease);
}
.socials a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--mist);
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.footer-bottom a:hover { color: var(--azure); }

/* --------------------------------------------------------------------------
   16. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px));
  padding-bottom: clamp(56px, 8vw, 110px);
  background: linear-gradient(160deg, #eef3f9 0%, var(--mist) 70%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lede { margin-top: 0; }
.page-hero__deco {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(180, 205, 228, 0.55), transparent 68%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--azure); }
.breadcrumb span { opacity: 0.5; }

/* --------------------------------------------------------------------------
   17. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 28, 45, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  max-width: 1100px;
  width: 100%;
  margin: 0;
  animation: lbIn 0.4s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: #111;
}
.lightbox__caption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--pure-white);
}
.lightbox__caption span { font-size: 0.85rem; opacity: 0.75; }
.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pure-white);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   18. Reveal animation
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .differentials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item,
  .portfolio-item--tall { grid-column: span 6; }
  .portfolio-item--wide { grid-column: span 12; }
  .tcarousel__track > .testimonial { flex-basis: calc((100% - var(--tgap)) / 2); }
}

@media (max-width: 960px) {
  :root { --header-h: 100px; }
  .brand__logo { height: 80px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .header-inner { grid-template-columns: 1fr auto; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner { grid-template-columns: 1fr; gap: 40px; }
  .owner__badge { right: 18px; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row--flip .service-row__media { order: 0; }
  .area { grid-template-columns: 1fr; }
  .estimate { grid-template-columns: 1fr; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tcarousel__track > .testimonial { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .differentials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .portfolio-item,
  .portfolio-item--wide,
  .portfolio-item--tall { grid-column: span 12; }
  .portfolio-item img,
  .portfolio-item--wide img { min-height: 240px; aspect-ratio: 4 / 3; }
  .hero { min-height: 88vh; }
  .hero__scroll { display: none; }
  .hero__actions .btn { width: 100%; }
  .owner__badge { position: static; margin-top: 18px; max-width: none; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .footer-bottom { flex-direction: column; }

  /* Mobile: limit to 3 items per section (except testimonials) */
  .mobile-hide { display: none !important; }

  /* Mobile testimonial carousel enhancements */
  .tcarousel__controls {
    display: flex !important;
    gap: 12px;
    margin-top: 24px;
  }
  .tcarousel__controls[hidden] {
    display: none !important;
  }
  .tcarousel__btn {
    width: 48px;
    height: 48px;
    background: var(--pure-white);
    box-shadow: var(--shadow-sm);
  }
  .tcarousel__btn svg {
    width: 20px;
    height: 20px;
  }
  .tcarousel__dots {
    gap: 10px;
    margin: 0 auto;
  }
  .tcarousel__dot {
    width: 10px;
    height: 10px;
  }
  .tcarousel__dot.is-active {
    background: var(--azure);
    transform: scale(1.4);
  }
  .tcarousel__viewport {
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mobile-panel,
  .mobile-panel.is-open { transition: none; }
  .mobile-panel.is-open .nav__link,
  .mobile-panel.is-open .btn { animation: none; }
}

/* ==========================================================================
   Before/After Slider
   ========================================================================== */
.before-after {
  margin-block: clamp(32px, 4vw, 56px);
  max-width: 1000px;
  margin-inline: auto;
}

.before-after__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ice);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.before-after__images {
  position: relative;
  width: 100%;
  height: 100%;
}

.before-after__before,
.before-after__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.before-after__before {
  z-index: 1;
}

.before-after__after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.15s linear;
}

.before-after__slider {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: ew-resize;
  touch-action: none;
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.before-after__handle::before,
.before-after__handle::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: var(--navy);
}
.before-after__handle::before { transform: translateX(-6px); }
.before-after__handle::after { transform: translateX(6px); }

.before-after:hover .before-after__handle,
.before-after__slider:focus-within .before-after__handle {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: var(--shadow-lg);
}

.before-after__slider:focus {
  outline: none;
}
.before-after__slider:focus-visible .before-after__handle {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.before-after__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  text-align: center;
}

.before-after__cat {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
}

.before-after__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.35;
  color: var(--navy);
  max-width: 70ch;
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .before-after__figure { aspect-ratio: 4 / 3; }
  .before-after__handle { width: 36px; height: 36px; }
  .before-after__handle::before,
  .before-after__handle::after { height: 14px; }
}

/* ==========================================================================
   Portfolio Grid — Client Projects variant
   ========================================================================== */
.portfolio-grid--client {
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.portfolio-grid--client .portfolio-item { grid-column: span 4; }
.portfolio-grid--client .portfolio-item--wide { grid-column: span 6; }
.portfolio-grid--client .portfolio-item img { aspect-ratio: 4 / 3; min-height: 260px; }
.portfolio-grid--client .portfolio-item--wide img { aspect-ratio: 16 / 10; min-height: 280px; }

@media (max-width: 1080px) {
  .portfolio-grid--client .portfolio-item,
  .portfolio-grid--client .portfolio-item--wide { grid-column: span 6; }
}

@media (max-width: 720px) {
  .portfolio-grid--client .portfolio-item,
  .portfolio-grid--client .portfolio-item--wide { grid-column: span 12; }
  .portfolio-grid--client .portfolio-item img,
  .portfolio-grid--client .portfolio-item--wide img { min-height: 220px; aspect-ratio: 4 / 3; }
}


/* ==========================================================================
   Before/After Slider — Inline (inside grid)
   ========================================================================== */
.portfolio-item--before-after {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.portfolio-item--before-after:hover {
  transform: none;
  box-shadow: none;
}
.portfolio-item--before-after .before-after-inline {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.portfolio-item--before-after .before-after__figure {
  flex: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ice);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.portfolio-item--before-after .before-after__images {
  position: relative;
  width: 100%;
  height: 100%;
}
.portfolio-item--before-after .before-after__before,
.portfolio-item--before-after .before-after__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.portfolio-item--before-after .before-after__before { z-index: 1; }
.portfolio-item--before-after .before-after__after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.15s linear;
}
.portfolio-item--before-after .before-after__slider {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: ew-resize;
  touch-action: none;
}
.portfolio-item--before-after .before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.portfolio-item--before-after .before-after__handle::before,
.portfolio-item--before-after .before-after__handle::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: var(--navy);
}
.portfolio-item--before-after .before-after__handle::before { transform: translateX(-6px); }
.portfolio-item--before-after .before-after__handle::after { transform: translateX(6px); }
.portfolio-item--before-after:hover .before-after__handle,
.portfolio-item--before-after .before-after__slider:focus-within .before-after__handle {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: var(--shadow-lg);
}
.portfolio-item--before-after .before-after__slider:focus {
  outline: none;
}
.portfolio-item--before-after .before-after__slider:focus-visible .before-after__handle {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}
.portfolio-item--before-after .before-after__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  text-align: center;
  padding: 0 8px;
}
.portfolio-item--before-after .before-after__cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
}
.portfolio-item--before-after .before-after__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
  max-width: 100%;
}
.portfolio-item--before-after .before-after__desc {
  font-size: 0.8rem;
  color: var(--ink-mute);
  max-width: 100%;
}

/* Responsive adjustments for inline before/after */
@media (max-width: 1080px) {
  .portfolio-item--before-after .before-after__figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .portfolio-item--before-after .before-after__figure { aspect-ratio: 4 / 3; min-height: 240px; }
  .portfolio-item--before-after .before-after__handle { width: 36px; height: 36px; }
  .portfolio-item--before-after .before-after__handle::before,
  .portfolio-item--before-after .before-after__handle::after { height: 14px; }
}

/* Filter button for before-after */
.filter-btn[data-filter="before-after"] {
  /* No special styling needed, uses existing filter-btn styles */
}


/* ==========================================================================
   Fixes for Before/After inline sliders per user feedback
   ========================================================================== */

/* 1. Reduce height of before/after slider figure by ~half */
.portfolio-item--before-after .before-after__figure {
  aspect-ratio: 16 / 6 !important;  /* was 16/10, now shorter */
  min-height: 200px !important;     /* was 300px */
}

/* 2. Remove zoom/hover scale effect on before/after images */
.portfolio-item--before-after:hover .before-after__before,
.portfolio-item--before-after:hover .before-after__after,
.portfolio-item--before-after:hover img {
  transform: none !important;
}

/* 3. Hide caption/text below before/after sliders */
.portfolio-item--before-after .before-after__caption {
  display: none !important;
}

/* Responsive adjustments for shorter height */
@media (max-width: 1080px) {
  .portfolio-item--before-after .before-after__figure {
    aspect-ratio: 4 / 2.5 !important;
    min-height: 180px !important;
  }
}
@media (max-width: 720px) {
  .portfolio-item--before-after .before-after__figure {
    aspect-ratio: 4 / 2.2 !important;
    min-height: 160px !important;
  }
}


/* ==========================================================================
   Fix: Before/After inline sliders fill grid cell completely (no gaps)
   ========================================================================== */
.portfolio-item--before-after {
  height: 100% !important;           /* Stretch to fill grid row */
  min-height: 0 !important;          /* Allow shrinking below min-content */
  display: flex !important;          /* Make it a flex container */
}

.portfolio-item--before-after .before-after-inline {
  width: 100%;
  height: 100%;
  min-height: 0 !important;          /* Remove fixed min-height */
  display: flex;
  flex-direction: column;
  flex: 1;                           /* Fill the grid item */
}

.portfolio-item--before-after .before-after__figure {
  flex: 1;
  min-height: 0 !important;          /* Allow figure to shrink */
  display: flex;                     /* Make figure a flex container for images */
}

.portfolio-item--before-after .before-after__images {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;                           /* Fill the figure */
}

.portfolio-item--before-after .before-after__before,
.portfolio-item--before-after .before-after__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* Cover entire area, no gaps */
  object-position: center;
}

/* Override the responsive aspect-ratio to allow full stretch */
@media (max-width: 1080px) {
  .portfolio-item--before-after .before-after__figure {
    aspect-ratio: auto !important;   /* Let it fill the grid cell */
  }
}
@media (max-width: 720px) {
  .portfolio-item--before-after .before-after__figure {
    aspect-ratio: auto !important;
  }
}


/* ==========================================================================
   Fix: Before/After inline sliders match grid row height (no white space)
   ========================================================================== */
/* Force the before/after figure to match the standard portfolio item height */
.portfolio-item--before-after .before-after__figure {
  min-height: 260px !important;       /* Match regular portfolio-item img min-height */
  aspect-ratio: 16 / 10 !important;   /* Keep wide aspect but with minimum height */
}

/* On smaller screens, match the responsive min-heights */
@media (max-width: 1080px) {
  .portfolio-item--before-after .before-after__figure {
    min-height: 260px !important;
    aspect-ratio: 16 / 10 !important;
  }
}
@media (max-width: 720px) {
  .portfolio-item--before-after .before-after__figure {
    min-height: 220px !important;     /* Match mobile portfolio-item min-height */
    aspect-ratio: 4 / 3 !important;
  }
}

/* Ensure the inline container fills the grid item completely */
.portfolio-item--before-after {
  height: 100%;
  display: flex;
}
.portfolio-item--before-after .before-after-inline {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-item--before-after .before-after__images {
  flex: 1;
}

/* Remove any conflicting min-height from earlier fixes */
.portfolio-item--before-after .before-after__figure {
  min-height: 260px !important;
}


/* ==========================================================================
   Fix: Prevent grid items from stretching (align-items: start)
   ========================================================================== */
.portfolio-grid {
  align-items: start;   /* Items size to content, don't stretch to tallest in row */
}

.portfolio-grid--client {
  align-items: start;
}


/* ==========================================================================
   Before/After Grid — Clean rebuild (no gaps, full coverage)
   ========================================================================== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}

.ba-grid__item { width: 100%; }
.ba-slider { width: 100%; }

.ba-slider__figure {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
  box-shadow: var(--shadow-md);
}

.ba-slider__images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-slider__before,
.ba-slider__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-slider__after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s linear;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pure-white);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  left: 50%;
  transform: translateX(-50%);
}

.ba-slider__knob {
  position: relative;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ba-slider__knob::before,
.ba-slider__knob::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: var(--navy);
}
.ba-slider__knob::before { transform: translateX(-6px); }
.ba-slider__knob::after { transform: translateX(6px); }

.ba-slider__handle:hover .ba-slider__knob,
.ba-slider__handle:focus-visible .ba-slider__knob {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.ba-slider__handle:focus-visible .ba-slider__knob {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

.ba-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.ba-slider__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--mist);
  padding: 4px 12px;
  border-radius: 20px;
}

/* No hover zoom on portfolio images that are before/after (safety) */
.portfolio-item--before-after:hover img { transform: none; }

/* ==========================================================================
   Floating Action Button (iMessage)
   ========================================================================== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}

.fab:hover,
.fab:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  outline: none;
}

.fab:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
}

.fab svg {
  display: block;
}

.fab--imessage {
  background: #007AFF; /* iMessage blue */
  color: #fff;
}

.fab--imessage:hover,
.fab--imessage:focus-visible {
  background: #0066CC;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .fab svg {
    width: 20px;
    height: 20px;
  }
}

/* Hide on print */
@media print {
  .fab { display: none; }
}

@media (max-width: 720px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-slider__figure { aspect-ratio: 16 / 10; }
}

.quick-contact{display:none} [data-estimate-status]{padding:14px;background:#f5f1e7;color:#17212c;border-radius:8px;line-height:1.5} @media(max-width:960px){body{padding-bottom:72px}.quick-contact{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:999;background:#17212c;gap:1px;padding:8px}.quick-contact a{flex:1;text-align:center;padding:13px 5px;background:#d9bd7d;color:#17212c;font:600 14px/1.2 sans-serif;text-decoration:none;border-radius:5px}}

@media(max-width:960px){.fab--imessage{display:none!important}}

.text-contact{width:min(92vw,460px);border:0;border-radius:12px;padding:24px;color:#17212c;background:white;max-height:85vh;overflow:auto}.text-contact::backdrop{background:rgba(0,0,0,.6)}.text-contact h2{font-size:26px;margin:0 0 12px}.text-contact p{line-height:1.5;margin:10px 0}.text-contact button,.text-contact a{display:block;margin:12px 0;padding:12px;text-align:center;min-height:44px}.text-contact button{width:100%;cursor:pointer;border:1px solid #aaa;border-radius:6px;background:#f5f1e7}

.socials a.social-facebook{background:#1877f2;border-color:#1877f2}.socials a.social-instagram{background:radial-gradient(circle at 25% 100%,#ffdc80 0%,#fcaf45 18%,#f77737 30%,#e1306c 50%,#c13584 65%,#833ab4 85%,#405de6 100%);border-color:transparent}.socials a.social-tiktok{background:#111;border-color:#111}.socials a{width:46px;height:46px;border-radius:12px}.socials a:hover{transform:translateY(-2px);filter:brightness(1.12)}.socials a:focus-visible{outline:3px solid #d9bd7d;outline-offset:4px}

/* LVP project comparison: shares existing portfolio slider interaction. */
.lvp-comparison .ba-slider__figure{touch-action:pan-y;isolation:isolate}
.lvp-comparison--card .ba-slider__figure{aspect-ratio:16/9;border-radius:0;box-shadow:none}
.lvp-comparison--service .ba-slider__figure{aspect-ratio:3/4}
.lvp-comparison .ba-slider__images img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none!important;transition:none}
.lvp-comparison .ba-slider__after{z-index:1}
.lvp-comparison .ba-slider__handle{z-index:3}
.lvp-comparison__label{position:absolute;top:14px;z-index:2;padding:5px 12px;border-radius:20px;background:rgba(13,32,48,.82);color:#fff;font:600 12px/1.4 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}
.lvp-comparison__label--after{left:14px}
.lvp-comparison__label--before{right:14px}
.service-row__media.lvp-comparison-media{aspect-ratio:auto;overflow:visible;border-radius:0;box-shadow:none;background:transparent}
.lvp-comparison__hint{font-size:13px;color:var(--steel);margin:12px 0 0;text-align:center}
@media(max-width:640px){.lvp-comparison--service .ba-slider__figure{aspect-ratio:3/4}}
