/* Ingwenya Liquid Rubber Waterproofing - site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0f1215;
  --panel: #171b20;
  --panel-2: #1f252b;
  --text: #eef0f2;
  --muted: #9aa3ad;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff5a1f;
  --accent-dark: #d94410;
  --roof-red: #b3363e;
  --paper: #f4f1ec;
  --ink: #14171a;
  --ink-soft: #454c54;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: min(1180px, calc(100% - 40px));
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 0.92rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-accent {
  background: var(--accent);
  color: #14100d;
}

.btn-accent:hover {
  background: #ff7340;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.solid {
  background: rgba(15, 18, 21, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: auto;
  height: 54px;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font: 900 1.25rem/1 var(--display);
  letter-spacing: 0.06em;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.nav a:not(.btn):hover {
  color: #fff;
}

.nav .btn {
  padding: 0.75em 1.2em;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: auto;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--panel);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 16px;
    justify-content: center;
  }
}

/* ---------- Exploded roof (scroll-driven) ---------- */

.explode {
  position: relative;
  height: 400vh;
  background: var(--bg);
}

.explode-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0b0d10;
}

.explode-stage canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-copy,
.final-cta,
.step-cards {
  position: absolute;
  left: max(20px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(520px, 44%);
  transform: translateY(-50%);
  z-index: 3;
}

.hero-copy {
  will-change: transform, opacity;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  font-weight: 900;
  margin-bottom: 0.35em;
}

.hero-copy p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: #c9d0d7;
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}

/* The 3D scene */
.scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  display: grid;
  place-items: center;
  perspective: 1700px;
  perspective-origin: 50% 35%;
  z-index: 1;
}

.stack {
  --pw: 440px;
  --ph: 320px;
  position: relative;
  width: var(--pw);
  height: var(--ph);
  transform-style: preserve-3d;
  transform: scale(var(--s, 1)) rotateX(60deg) rotateZ(var(--rz, -38deg));
  will-change: transform;
}

.plate {
  --t: 10px;
  --side: #3a2f28;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 3px;
  transform-style: preserve-3d;
  transform: translateZ(var(--z, 0px));
  opacity: var(--o, 1);
  will-change: transform, opacity;
}

/* Side faces give each plate thickness */
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  background: var(--side);
}

.plate::before {
  left: 0;
  top: 100%;
  width: 100%;
  height: var(--t);
  transform-origin: top;
  transform: rotateX(-90deg);
  filter: brightness(0.8);
}

.plate::after {
  left: 100%;
  top: 0;
  width: var(--t);
  height: 100%;
  transform-origin: left;
  transform: rotateY(90deg);
  filter: brightness(0.62);
}

.plate-shadow {
  --z: -150px;
  top: -12%;
  right: -12%;
  bottom: -12%;
  left: -12%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 68%);
  filter: blur(14px);
}

.plate-shadow::before,
.plate-shadow::after {
  display: none;
}

.plate-frame {
  --t: 14px;
  --side: #4a3320;
  background:
    repeating-linear-gradient(90deg, #8a6038 0 16px, transparent 16px 106px),
    repeating-linear-gradient(0deg, #6f4b2b 0 9px, transparent 9px 40px),
    rgba(20, 16, 12, 0.35);
}

/* Roof tiles: barrel shading across, overlap lines down */
.plate-tiles,
.tiles-clean,
.tiles-red {
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 2px, rgba(0, 0, 0, 0.18) 2px 7px, rgba(255, 255, 255, 0.07) 18px, rgba(0, 0, 0, 0.1) 32px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0 2px, rgba(255, 255, 255, 0.2) 9px, rgba(255, 255, 255, 0.04) 16px, rgba(0, 0, 0, 0.3) 28px);
}

.plate-tiles {
  --t: 12px;
  --side: #54443b;
  background-color: #74625a;
  overflow: visible;
}

.tiles-clean,
.tiles-red,
.water,
.shine {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 3px;
}

.tiles-clean {
  background-color: #b98263;
  clip-path: inset(0 calc(100% - var(--wash, 0%)) 0 0);
}

.tiles-red {
  background-color: var(--roof-red);
  opacity: var(--paint, 0);
}

.water {
  left: calc(var(--wash, 0%) - 14%);
  width: 14%;
  inset-block: 0;
  right: auto;
  background: linear-gradient(90deg, transparent, rgba(150, 215, 255, 0.55) 55%, rgba(255, 255, 255, 0.95));
  opacity: var(--water, 0);
  filter: blur(1px);
}

.shine {
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: var(--shine, 120%) 0;
  opacity: var(--shine-o, 0);
}

.plate-dirt {
  --t: 0px;
  background:
    radial-gradient(70px 46px at 18% 26%, rgba(42, 66, 34, 0.95), transparent 72%),
    radial-gradient(90px 60px at 62% 18%, rgba(28, 34, 26, 0.9), transparent 72%),
    radial-gradient(80px 70px at 82% 62%, rgba(48, 72, 36, 0.92), transparent 70%),
    radial-gradient(110px 60px at 36% 70%, rgba(24, 28, 22, 0.9), transparent 72%),
    radial-gradient(60px 50px at 54% 46%, rgba(52, 78, 40, 0.85), transparent 70%),
    radial-gradient(70px 40px at 10% 84%, rgba(30, 40, 28, 0.9), transparent 70%),
    radial-gradient(60px 44px at 92% 22%, rgba(40, 60, 34, 0.85), transparent 70%),
    rgba(26, 28, 22, 0.42);
}

.plate-dirt::before,
.plate-dirt::after {
  display: none;
}

.speck {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #2f4a28;
  opacity: 0;
  will-change: transform, opacity;
}

.speck:nth-child(3n) {
  background: #1d221b;
}

.speck:nth-child(4n) {
  background: #9fd4f5;
  border-radius: 50%;
}

.plate-seal {
  --t: 4px;
  --side: #8ea3ae;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 9px),
    rgba(118, 142, 156, 0.62);
  box-shadow: inset 0 0 0 2px rgba(205, 225, 235, 0.85);
}

.plate-primer {
  --t: 3px;
  --side: #c9ad45;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 45%),
    rgba(232, 204, 92, 0.66);
  box-shadow: inset 0 0 0 2px rgba(255, 236, 150, 0.9);
}

.plate-coat {
  --t: 3px;
  --side: #8e2a31;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 42%),
    rgba(179, 54, 62, 0.68);
  box-shadow: inset 0 0 0 2px rgba(240, 130, 136, 0.9);
}

.anchor {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 1px;
  height: 1px;
}

/* Labels that follow each layer */
.labels {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.label::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

.label-left {
  flex-direction: row-reverse;
}

.plate-dirt .anchor {
  left: 0;
  top: 78%;
}

.label.active {
  color: var(--accent);
}

.label-bad {
  color: #9fc48f;
}

/* Step cards */
.step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-card,
.final-cta {
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.step-card {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(calc(-50% + var(--shift, 0px)));
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: rgba(23, 27, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.step-kicker {
  display: block;
  font: 800 0.8rem/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.step-card p {
  margin: 0;
  color: #c9d0d7;
}

.final-cta h2 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 900;
}

.scroll-cue-row {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 44px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skip-link-cue {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 6px 10px;
}

.skip-link-cue:hover {
  color: #fff;
}

.scroll-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 18, 21, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font: 700 0.78rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  animation: cue-pulse 2.4s ease-out infinite;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: cue-bounce 1.6s ease-in-out infinite;
}

.scroll-cue .on-touch {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .scroll-cue .on-desktop {
    display: none;
  }

  .scroll-cue .on-touch {
    display: inline;
  }
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes cue-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
}

.illustration-note {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  z-index: 4;
}

@media (max-width: 900px) {
  .hero-copy,
  .final-cta {
    left: 20px;
    right: 20px;
    width: auto;
    top: 92px;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    padding: 0.85em 1.2em;
    font-size: 0.88rem;
  }

  .step-cards {
    left: 16px;
    right: 16px;
    width: auto;
    top: auto;
    bottom: 84px; /* clear of the WhatsApp button */
    transform: none;
    height: 0;
  }

  .step-card {
    top: auto;
    bottom: 0;
    transform: translateY(var(--shift, 0px));
    padding: 18px 20px;
  }

  .step-card h2 {
    font-size: 1.5rem;
  }

  .step-card p {
    font-size: 0.93rem;
  }

  .label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .label::before {
    width: 14px;
  }

  .scroll-cue-row {
    bottom: 84px;
  }

  .illustration-note {
    left: 16px;
    right: auto;
    bottom: 10px;
  }
}

/* Reduced motion: show the finished roof, no scroll-scrubbing */
.explode.static {
  height: auto;
}

.explode.static .explode-stage {
  position: relative;
}

/* ---------- Kinetic strip ---------- */

.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #14100d;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee span {
  font: 900 clamp(1.5rem, 3vw, 2.4rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #14100d;
}

.marquee i {
  width: 12px;
  height: 12px;
  background: #14100d;
  transform: rotate(45deg);
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(76px, 11vw, 140px) 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-dark {
  background: var(--bg);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-light .lead {
  color: var(--ink-soft);
}

.section-accent {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255, 90, 31, 0.22), transparent 55%),
    var(--panel);
}

/* Before / after */
.proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}

.proof {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-big {
  grid-row: span 2;
}

.proof-body {
  padding: 22px 24px 26px;
}

.proof-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.chips li {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d6dbe0;
}

.ba {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  user-select: none;
  touch-action: pan-y;
}

.proof-big .ba {
  flex: 1;
  aspect-ratio: auto;
  min-height: 520px;
}

.ba-wide {
  aspect-ratio: 4 / 3;
}

.proof:not(.proof-big) .ba {
  aspect-ratio: 16 / 11;
}

.ba img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.ba-tag {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 800 0.7rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-tag-before {
  left: 14px;
  background: rgba(15, 18, 21, 0.8);
  color: #fff;
}

.ba-tag-after {
  right: 14px;
  background: var(--accent);
  color: #14100d;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.ba-handle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  padding: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.ba input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba input:focus-visible ~ .ba-handle svg,
.ba:focus-within .ba-handle svg {
  outline: 3px solid var(--accent);
}

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

  .proof-big .ba {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--ink);
}

.tile-xl {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.tile img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile:hover img {
  transform: scale(1.06);
}

.tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 18, 21, 0.05) 30%, rgba(15, 18, 21, 0.9) 100%);
}

.tile-body {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
}

.tile-body .num {
  display: inline-block;
  font: 800 0.72rem/1 var(--display);
  letter-spacing: 0.14em;
  background: var(--accent);
  color: #14100d;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.tile-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

.tile-xl .tile-body h3 {
  font-size: 2rem;
}

.tile-body p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.tile-list {
  grid-column: span 2;
  grid-row: span 1;
  background: var(--accent);
  color: #14100d;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  align-content: center;
}

.tile-list::after {
  display: none;
}

.tile-list h3 {
  grid-column: 1 / -1;
  margin-bottom: 0.4em;
}

.tile-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.tile-list li {
  padding: 2px 0;
}

.tile-list .btn {
  align-self: end;
}

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

  .tile-list {
    grid-template-columns: 1fr;
    grid-row: auto;
    height: auto;
  }

  .bento {
    grid-auto-rows: 220px;
  }

  .tile-list {
    grid-row: span 2;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .tile-xl,
  .tile-wide,
  .tile-list {
    grid-column: span 1;
  }

  .tile-xl {
    grid-row: span 1;
  }

  .tile-xl .tile-body h3 {
    font-size: 1.5rem;
  }

  .tile-list ul {
    columns: 1;
  }
}

/* How we work */
.how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.how li {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s;
}

.how li:hover {
  border-color: var(--accent);
}

.how.in li {
  opacity: 1;
  transform: none;
}

.how.in li:nth-child(2) { transition-delay: 0.15s; }
.how.in li:nth-child(3) { transition-delay: 0.3s; }
.how.in li:nth-child(4) { transition-delay: 0.45s; }

.how-num {
  display: block;
  font: 900 4.6rem/0.9 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 18px;
}

.how p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 18, 21, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
}

.g-a { grid-column: span 7; aspect-ratio: 16 / 10; }
.g-b { grid-column: span 5; }
.g-c { grid-column: span 4; aspect-ratio: 4 / 5; }
.g-d { grid-column: span 8; }
.g-e { grid-column: span 6; aspect-ratio: 4 / 3; }
.g-f { grid-column: span 6; aspect-ratio: 4 / 3; }

@media (max-width: 760px) {
  .gallery figure {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  font-weight: 600;
}

.contact-list small {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.tbc {
  background: #ffe9a8;
  color: #6b4b00;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.field select option {
  color: #000;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: #ffd1bf;
}

.hp {
  position: absolute;
  left: -9999px;
}

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

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

/* Footer */
.site-footer {
  background: #0a0c0e;
  padding: 50px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
  max-width: 30rem;
}

.footer-small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.proof-grid .reveal:nth-child(2),
.bento .reveal:nth-child(2),
.gallery .reveal:nth-child(2) { transition-delay: 0.1s; }
.proof-grid .reveal:nth-child(3),
.bento .reveal:nth-child(3),
.gallery .reveal:nth-child(3) { transition-delay: 0.2s; }
.bento .reveal:nth-child(4),
.gallery .reveal:nth-child(4) { transition-delay: 0.3s; }
.bento .reveal:nth-child(5),
.gallery .reveal:nth-child(5) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .how li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track,
  .scroll-cue,
  .scroll-cue svg {
    animation: none;
  }
}

/* Two before/after cards side by side (roofs only) */
.proof-two {
  grid-template-columns: 1fr 1fr;
}

.proof-two .proof .ba {
  aspect-ratio: 4 / 5;
}

@media (max-width: 860px) {
  .proof-two {
    grid-template-columns: 1fr;
  }
}

/* Guarantees (how we work) */
.guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}

.guarantees li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: #14100d;
  color: #fff;
}

.guarantees strong {
  font: 800 1.9rem/1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

.guarantees span {
  font-weight: 600;
}

/* Floating WhatsApp button */
.wa-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 13px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #06280f;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.wa-bubble:hover {
  transform: translateY(-2px);
}

.wa-bubble svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 600px) {
  .wa-bubble {
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .wa-bubble span {
    display: none;
  }
}

/* Small, short phones: keep the opening text and step cards clear of the roof */
@media (max-width: 900px) and (max-height: 700px) {
  .hero-copy p {
    display: none;
  }

  .step-card {
    padding: 13px 16px;
  }

  .step-card h2 {
    font-size: 1.2rem;
  }

  .step-card p {
    font-size: 0.85rem;
    margin-top: 4px;
  }
}
