/* shiftedtech Home Contractor sample. "Tile by tile": white and concrete, a deep teal,
   a brass rule, and a faint tile grid. Wide Archivo headings, Source Sans 3 text. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/source-sans-3.woff2) format("woff2"); }

:root {
  --white: #FFFFFF;
  --concrete: #EEF0F0;   /* alternate sections: ink on it 14.5:1 */
  --grout: #DDE1E1;      /* faint 1px grid lines, decoration only */
  --teal: #0E4F4F;       /* buttons, links, numbers: 9.3:1 on white, 8.2:1 on concrete */
  --teal-dark: #0B3E3E;  /* button hover: white on it 11.9:1 */
  --ink: #172022;        /* text: 16.6:1 on white */
  --stone: #4D5759;      /* secondary text: 7.4:1 on white, 6.5:1 on concrete */
  --brass: #A8823C;      /* thin rules and the brand tile only, never text (3.6:1) */
  --brass-ink: #7A5C22;  /* brass dark enough for small text: 6.2:1 on white, 5.4:1 on concrete */
  --field: #7E8889;      /* input borders: 3.6:1 on white */
  --cover: #D7E3E1;      /* the tiles that flip away over a photo */
  --wa: #0F7A3E;         /* WhatsApp green deepened so white text passes AA (5.4:1) */

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Source Sans 3", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --section: clamp(88px, 11vw, 168px);
  --hh: 72px;
  --grid: linear-gradient(var(--grout) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--grout) 1px, transparent 1px) 0 0 / 64px 64px;
}
@media (max-width: 899px) { :root { --hh: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-stretch: 112%; font-weight: 750; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(36px, 5.2vw, 78px); max-width: 16ch; }
h3 { font-size: clamp(22px, 1.9vw, 28px); font-stretch: 118%; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 3px; }

.label {
  font: 700 12.5px/1.2 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-ink); margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.label::before { content: ""; width: 28px; height: 2px; background: var(--brass); flex: none; }
.body { font-size: clamp(18px, 1.3vw, 20px); color: var(--stone); max-width: 38ch; margin: 24px 0 0; }
.head { padding: 0 var(--gutter); margin-bottom: clamp(40px, 5vw, 72px); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 2px;
  font: 700 14px/1 var(--display); font-stretch: 118%; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--teal); transition: background-color .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-line { background: var(--white); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--white); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 12.5px; gap: 0; }
.btn-wide { width: 100%; }

.ask {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 700 14px/1.2 var(--display); font-stretch: 112%; letter-spacing: 0.02em; color: var(--teal);
  text-decoration: none; border-bottom: 2px solid var(--brass);
}
.ask:hover { border-bottom-color: var(--teal); }

/* Notice and header */
.notice {
  margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; line-height: 1.35;
  color: var(--stone); background: var(--concrete);
}
.top {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--grout);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand-name { font: 800 21px/1 var(--display); font-stretch: 125%; letter-spacing: 0.01em; color: var(--teal); }
.brand-sub { font: 600 10.5px/1.15 var(--display); font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); padding-left: 10px; border-left: 1px solid var(--grout); }
.nav { display: flex; gap: 30px; }
.nav a { font: 700 13px/1 var(--display); font-stretch: 118%; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brass); }
@media (max-width: 899px) {
  .nav { display: none; }
  .hide-sm { display: none; }
  .top { gap: 12px; }
  .top .btn-small { padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-sub { padding-left: 8px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9.5px; }
}
@media (max-width: 374px) { .brand-sub { display: none; } }

/* Hero */
.hero {
  position: relative; display: grid; gap: 36px;
  padding: 40px 0 0;
  background: linear-gradient(#E9ECEC 1px, transparent 1px) 0 0 / 80px 80px, linear-gradient(90deg, #E9ECEC 1px, transparent 1px) 0 0 / 80px 80px, var(--white);
}
.hero-text { padding: 0 var(--gutter); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 5.4vw, 88px); max-width: 11ch; font-stretch: 114%; }
.hero .accent { color: var(--teal); }
.lede { font-size: clamp(18px, 1.35vw, 21px); color: var(--stone); max-width: 34ch; margin: 26px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { overflow: hidden; aspect-ratio: 4 / 5; background: #E6E8E8; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 52vw; gap: 0; align-items: center;
    padding: 0; min-height: calc(100vh - var(--hh) - 34px);
  }
  .hero-text { padding: 64px 4vw 64px var(--gutter); }
  .hero-media { aspect-ratio: auto; height: 100%; min-height: 620px; align-self: stretch; }
}

/* Proof tiles */
.proof { padding: clamp(56px, 7vw, 104px) var(--gutter); border-bottom: 1px solid var(--grout); }
.proof-link {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  text-decoration: none; color: var(--ink); border: 1px solid var(--grout);
}
.proof-tile { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 44px); border-right: 1px solid var(--grout); }
.proof-tile:nth-child(3) { border-right: 0; }
.num { font: 800 clamp(48px, 7vw, 112px)/0.9 var(--display); font-stretch: 125%; color: var(--teal); letter-spacing: -0.03em; }
.what { font-size: clamp(15px, 1.2vw, 18px); color: var(--stone); line-height: 1.35; }
.stars { color: var(--brass); letter-spacing: 0.1em; display: block; margin-top: 4px; }
.proof-cta {
  grid-column: 1 / -1; padding: 18px clamp(22px, 3vw, 44px); border-top: 1px solid var(--grout);
  font: 700 14px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.04em; color: var(--teal);
  background: var(--concrete); transition: background-color .25s, color .25s;
}
.proof-link:hover .proof-cta { background: var(--teal); color: var(--white); }
@media (max-width: 599px) {
  .proof-link { grid-template-columns: 1fr 1fr; }
  .proof-tile:nth-child(1) { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--grout); flex-direction: row; align-items: center; gap: 18px; }
  .proof-tile:nth-child(2) { border-right: 1px solid var(--grout); }
}

/* Picture slots */
.slot { position: relative; overflow: hidden; background: #E6E8E8; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
/* Tall cut-out figures on white: keep the head in view when the slot crops them. */
.slot.pose { background: var(--white); }
.slot.pose img { object-position: 50% 12%; }
.cover { position: absolute; inset: 0; display: grid; gap: 3px; perspective: 900px; pointer-events: none; }
.cover i { background: var(--cover); display: block; backface-visibility: hidden; }

/* Services */
.services { padding: var(--section) 0; }
.svc-grid { display: grid; gap: 56px; padding: 0 var(--gutter); }
.svc .slot { aspect-ratio: 3 / 4; margin-bottom: 24px; }
.svc p { color: var(--stone); margin: 10px 0 14px; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
  .svc:nth-child(2) { margin-top: 96px; }
  .svc:nth-child(3) { margin-top: 192px; }
}

/* Signature: one project, the frame turns over tile by tile */
.flip { background: var(--grid), var(--concrete); padding: var(--section) 0; border-top: 1px solid var(--grout); }
.flip-stage { padding: 0 var(--gutter); display: grid; gap: 40px; }
.project-name { margin: 22px 0 0; }
.project-name span { display: inline-block; font-size: 15px; color: var(--stone); border: 1px dashed var(--field); padding: 6px 12px; background: var(--white); }
.rooms { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; max-width: 360px; }
.rooms li { padding: 12px 0 0; }
.room { font: 700 clamp(18px, 1.6vw, 24px)/1.2 var(--display); font-stretch: 118%; color: var(--stone); transition: color .3s; }
.rooms li.is-on .room { color: var(--teal); }
.bar { display: block; height: 2px; background: var(--grout); margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(1); }
.flip-frame { display: grid; gap: 28px; }
.flip-frame figure { aspect-ratio: 3 / 2; }
.flip-frame figcaption {
  position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: var(--white);
  font: 700 13px/1.2 var(--display); font-stretch: 118%; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (min-width: 900px) {
  .flip-stage { grid-template-columns: minmax(300px, 4fr) 7fr; align-items: start; gap: 5vw; }
  /* Without motion the photos simply stack; the text stays beside them. */
  html:not(.motion) .flip-text { position: sticky; top: calc(var(--hh) + 48px); }
}

/* With motion: the section is tall, the stage sticks under the header and the frame turns over. */
.motion .flip { padding: 0; height: calc(100vh - var(--hh) + 240vh); }
.motion .flip-stage { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); align-content: center; }
.motion .rooms .bar i { transform: scaleX(0); }
.motion .flip-frame {
  display: block; position: relative; justify-self: center;
  width: min(100%, calc((100vh - var(--hh) - 140px) * 1.5)); aspect-ratio: 3 / 2;
  perspective: 1600px;
}
.motion .flip-frame figure { position: absolute; inset: 0; aspect-ratio: auto; }
.motion .flip-frame figure + figure { visibility: hidden; }
.motion .flip-frame figcaption { display: none; }
.motion .flip-frame.ready figure { visibility: hidden; }
.tiles { position: absolute; inset: 0; }
.tile { position: absolute; transform-style: preserve-3d; will-change: transform; }
.tile b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-repeat: no-repeat; background-color: #E6E8E8; }
.tile b + b { transform: rotateY(180deg); }
.tile b::after { content: ""; position: absolute; inset: 0; background: #172022; opacity: var(--shade, 0); }
@media (max-width: 899px) {
  .motion .flip-stage { gap: 18px; padding-top: 18px; padding-bottom: 18px; }
  .motion .flip-text h2 { font-size: clamp(28px, 8vw, 40px); }
  .motion .flip-text .label { margin-bottom: 12px; }
  .motion .project-name { margin-top: 12px; }
  .motion .project-name span { font-size: 13px; padding: 4px 10px; }
  .motion .rooms { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 0; order: 1; max-width: none; }
  .motion .flip-text { display: contents; }
  .motion .flip-text > .label, .motion .flip-text > h2, .motion .flip-text > .project-name { order: 0; }
  .motion .flip-stage { display: flex; flex-direction: column; justify-content: center; }
  .motion .flip-frame { order: 2; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - var(--hh) - 250px) * 0.8)); }
  .motion .room { font-size: 15px; }
  .motion .rooms li { padding: 0; }
  .motion .bar { margin-top: 8px; }
}

/* More: an off-grid mosaic */
.more { padding: var(--section) 0; }
.mosaic { display: grid; gap: 20px; padding: 0 var(--gutter); }
.mosaic .m1, .mosaic .m4 { aspect-ratio: 3 / 2; }
.mosaic .m2, .mosaic .m3 { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2vw, 32px); align-items: start; }
  .mosaic .m1 { grid-column: 1 / span 7; }
  .mosaic .m2 { grid-column: 9 / span 4; margin-top: 120px; }
  .mosaic .m3 { grid-column: 2 / span 4; margin-top: -80px; }
  .mosaic .m4 { grid-column: 6 / span 7; margin-top: 60px; }
}

/* Quote */
.quote {
  display: grid; gap: 48px; padding: var(--section) var(--gutter);
  background: var(--grid), var(--concrete); border-top: 1px solid var(--grout);
}
.calls { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.calls li { font: 700 clamp(22px, 2vw, 30px)/1.2 var(--display); font-stretch: 118%; }
.calls .k { display: inline-block; min-width: 4.6em; font: 600 13px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); }
.calls a { color: var(--teal); text-decoration: none; border-bottom: 2px solid var(--brass); }
.form { background: var(--white); padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--grout); display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 16px; padding: 0; }
.field legend { margin-bottom: 8px; }
.req, .opt { font-weight: 400; color: var(--stone); font-size: 14px; }
.field input[type=text], .field textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--white);
  border: 1px solid var(--field); border-radius: 2px; padding: 13px 14px; min-height: 50px;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6A7476; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #A3261B !important; box-shadow: 0 0 0 1px #A3261B; }
.field-pair { display: grid; gap: 22px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips label { position: relative; display: block; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chips span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--field); border-radius: 2px; font: 700 14px/1.2 var(--display); font-stretch: 112%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--brass-ink); outline-offset: 2px; }
.chips.bad span { border-color: #A3261B; }
.form-error { margin: 0; color: #A3261B; font-weight: 600; }
.form-note { margin: -6px 0 0; font-size: 14.5px; color: var(--stone); }
@media (min-width: 600px) { .field-pair { grid-template-columns: 1fr 1fr; } .chips { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .quote { grid-template-columns: 5fr 6fr; gap: 6vw; align-items: start; } }

/* Footer: light */
.foot { padding: clamp(64px, 8vw, 112px) var(--gutter) 110px; border-top: 1px solid var(--grout); display: grid; gap: 40px; }
.foot-name { margin: 0; font: 800 clamp(30px, 4vw, 56px)/1 var(--display); font-stretch: 125%; letter-spacing: 0.01em; color: var(--teal); }
.foot-name span { text-transform: uppercase; }
.foot-name span { display: block; font-size: 0.32em; letter-spacing: 0.16em; color: var(--stone); margin-top: 10px; font-weight: 600; }
.foot-tag { margin: 14px 0 0; color: var(--stone); }
.foot-cols { display: grid; gap: 28px; }
.foot-cols p { margin: 0; }
.foot-cols .label { margin-bottom: 12px; }
.foot-cols a { color: var(--teal); text-underline-offset: 3px; }
.foot-small { font-size: 13px; color: var(--stone); margin: 0; }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr 1.6fr; } .foot-cols { grid-template-columns: repeat(3, 1fr); } .foot-small { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none;
  font: 700 15px/1 var(--display); font-stretch: 112%; letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(23,32,34,.22);
}
.wa-float:hover { background: #0B6332; }
@media (max-width: 479px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
