/* AquaPro visual refresh: editorial rhythm, responsive hero and photo-led sections. */
:root {
  --refresh-ink: #0a0d0f;
  --refresh-surface: #121719;
  --refresh-paper: #f1eee8;
  --refresh-cream: #fff8ec;
  --refresh-cyan: #55d8ee;
  --refresh-cyan-deep: #0e7490;
  --refresh-warm: #ffd9a8;
  --refresh-line: rgba(255, 248, 236, 0.14);
  --img-plumber-close: url("../images/service-emergency-v2.webp");
  --img-pipe-work: url("../images/service-leak-v2.webp");
  --img-boiler-work: url("../images/service-heater-v2.webp");
  --img-water-heater: url("../images/service-tap-v2.webp");
  --img-bathroom-pro: url("../images/service-bathroom-v2.webp");
  --img-manifold: url("../images/service-drain-v2.webp");
  --img-team-pro: url("../images/studio-team-v2.webp");
  --photo-plumber: var(--img-plumber-close);
  --photo-pipes: var(--img-pipe-work);
  --photo-boiler: var(--img-boiler-work);
  --photo-water-heater: var(--img-water-heater);
  --photo-bathroom: var(--img-bathroom-pro);
  --photo-manifold: var(--img-manifold);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--refresh-ink);
}

body[data-active-nav="portfolio"] .page-hero-editorial {
  --page-photo: url("../images/service-bathroom-v2.webp") !important;
}

body[data-active-nav="about"] .page-hero-editorial {
  --page-photo: url("../images/studio-team-v2.webp") !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-cinema h1,
.section-editorial-head h2 {
  letter-spacing: 0;
}

.urgency-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.94) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.hero-cinema-aside h2 {
  margin-bottom: 20px;
  color: #fff8ec;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.process-rail-step h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.site-footer h3 {
  margin-bottom: var(--space-4);
  color: rgba(245, 241, 234, 0.6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-editorial-head .eyebrow-line,
.eyebrow-line,
.brand-name em {
  color: var(--refresh-cyan);
}

.hero-cinema {
  min-height: 88svh;
  padding-block: clamp(150px, 14vh, 190px) clamp(72px, 9vh, 110px);
}

.hero-cinema-bg {
  background: #071117 url("../images/hero-v2.webp") center / cover no-repeat;
}

.hero-cinema-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 12, 16, 0.94) 0%, rgba(4, 12, 16, 0.68) 42%, rgba(4, 12, 16, 0.2) 74%),
    linear-gradient(0deg, rgba(4, 12, 16, 0.68), transparent 54%);
  pointer-events: none;
}

.hero-cinema-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cinema .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
}

.hero-cinema-main {
  min-width: 0;
  max-width: 820px;
}

.hero-cinema h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(4.4rem, 7.2vw, 7.4rem);
  line-height: 0.88;
  text-wrap: balance;
}

.hero-cinema-lead {
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}

.hero-cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cinema-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.hero-cinema-meta > div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 248, 236, 0.3);
}

.hero-cinema-meta strong,
.hero-cinema-meta span {
  display: block;
}

.hero-cinema-aside {
  align-self: end;
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 8px;
  background: rgba(8, 25, 32, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.hero-cinema-aside h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.photo-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.photo-service-card {
  min-width: 0;
  min-height: 530px;
  display: grid;
  grid-template-rows: minmax(260px, 1.05fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 236, 0.1);
  border-radius: 8px;
  background: var(--refresh-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.photo-service-card:first-child,
.photo-service-card:last-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  grid-template-rows: 470px;
  min-height: 470px;
}

.photo-service-card:last-child .photo-service-card-img {
  order: 2;
}

.photo-service-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background-position: center;
  background-size: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.photo-services .photo-service-card .photo-service-card-img {
  background-image: none !important;
}

.photo-service-card:hover .photo-service-card-img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.04);
}

.photo-service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
}

.photo-service-card-content h3 {
  margin-block: 10px 12px;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.photo-service-card-content p {
  max-width: 48ch;
}

.work-gallery {
  color: #171a1c;
  background: var(--refresh-paper) !important;
}

.work-gallery .eyebrow-line {
  color: #075a6b;
}

.work-gallery .section-editorial-head p {
  color: #5e6669 !important;
}

.work-gallery .section-editorial-head h2,
.work-gallery .work-shot figcaption {
  color: #171a1c;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
}

.work-shot {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border-radius: 8px;
  background: #c9c9c4;
}

.work-shot-wide {
  grid-column: span 8;
}

.work-shot-tall {
  grid-row: span 2;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 760ms ease, filter 760ms ease;
}

.work-shot::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(4, 12, 16, 0.7), transparent 55%);
  pointer-events: none;
}

.work-shot figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff8ec !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-shot:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04);
}

.process-rail {
  overflow: hidden;
  border-radius: 8px;
}

.process-rail-step h4 {
  font-size: 1.05rem;
}

.project-photo {
  min-height: 230px;
  background-position: center;
  background-size: cover;
}

.project-photo-1 { background-image: url("../images/service-bathroom-v2.webp"); }
.project-photo-2 { background-image: url("../images/service-heater-v2.webp"); }
.project-photo-3 { background-image: url("../images/service-leak-v2.webp"); }
.project-photo-4 { background-image: url("../images/service-drain-v2.webp"); }
.project-photo-5 { background-image: url("../images/service-tap-v2.webp"); }
.project-photo-6 { background-image: url("../images/service-emergency-v2.webp"); }

.float-chip-whatsapp {
  right: 18px;
  bottom: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

@media (max-width: 900px) {
  .hero-cinema {
    min-height: auto;
    padding-block: 150px 72px;
  }

  .hero-cinema .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-cinema-aside {
    max-width: 620px;
  }

  .photo-service-card:first-child,
  .photo-service-card:last-child {
    grid-template-columns: 1fr;
    grid-template-rows: 330px auto;
    min-height: 0;
  }

  .photo-service-card:last-child .photo-service-card-img {
    order: 0;
  }

  .work-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 300px;
  }

  .work-shot,
  .work-shot-wide,
  .work-shot-tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .urgency-bar {
    min-height: 34px;
  }

  .urgency-bar .container {
    min-height: 34px;
    justify-content: center;
    padding: 7px 16px;
  }

  .urgency-bar .container > span:first-child {
    max-width: 100%;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .urgency-bar .container > a,
  .urgency-bar .hide-mobile {
    display: none !important;
  }

  .site-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .brand-wordmark {
    min-width: 0;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-cinema {
    min-height: 92svh;
    padding: 132px 0 62px;
  }

  .hero-cinema-bg video {
    display: none;
  }

  .hero-cinema .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
    box-sizing: border-box;
  }

  .hero-cinema-main,
  .hero-cinema-lead {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-cinema-main {
    overflow: hidden;
  }

  .hero-cinema .eyebrow {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.35;
  }

  .hero-cinema h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 10.8vw, 3rem);
    line-height: 0.9;
    text-wrap: balance;
  }

  .hero-cinema h1 br {
    display: none;
  }

  .hero-cinema h1 em {
    display: block;
  }

  .hero-cinema-lead {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-cinema-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .hero-cinema-actions .btn,
  .hero-cinema-actions .btn-glass {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 52px;
    box-sizing: border-box;
  }

  .hero-cinema-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
  }

  .hero-cinema-aside {
    padding: 22px;
  }

  .photo-services {
    grid-template-columns: 1fr;
  }

  .photo-service-card,
  .photo-service-card:first-child,
  .photo-service-card:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto;
    min-height: 0;
  }

  .work-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .float-chip-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    font-size: 0;
  }

  .float-chip-whatsapp svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-service-card-img,
  .work-shot img {
    transition: none;
  }
}
