/* Smart Floor Repairs — minimal black-and-white */
:root {
  --black: #0b0b0b;
  --ink: #111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --paper: #f6f6f6;
  --white: #fff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.04);
  --radius: 2px;
  --header-h: 80px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: 0.25s ease;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1, h2, h3 {
  font-family: var(--font);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--black);
  font-weight: 600;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.visually-hidden,
.gotcha {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.gotcha {
  display: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.kicker-light {
  color: rgba(255, 255, 255, 0.62);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 22px;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

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

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
.nav-menu a:focus-visible,
.footer a:focus-visible,
.hero-phone:focus-visible,
.contact-details a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.contact .btn:focus-visible,
.footer a:focus-visible,
.hero-phone:focus-visible,
.contact-details a:focus-visible,
.warranty .btn:focus-visible {
  outline-color: var(--white);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  min-width: 0;
}

.logo img {
  height: 40px;
  width: 40px;
  display: block;
  flex: 0 0 auto;
}

.logo-word {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  position: relative;
  content: "";
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  transition: color var(--ease);
}

.nav-menu a:hover {
  color: var(--black);
}

.nav-menu .btn-primary,
.nav-menu .btn-primary:hover,
.nav-menu .btn-primary:focus-visible {
  color: var(--white);
}

.nav-cta {
  margin-left: 10px;
}

.nav-cta .btn {
  padding: 10px 16px;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(22rem, 1fr) minmax(18rem, 1fr);
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  background: var(--white);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 36rem;
  margin: 0 0 0 auto;
  padding: 96px 56px 96px 0;
}

.hero-media {
  position: relative;
  min-height: 100%;
  background: var(--paper);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 28px;
  text-wrap: balance;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 36px;
}

.hero-phone {
  color: var(--black);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.hero-phone:hover {
  opacity: 0.65;
}

/* Clients */
.clients {
  padding: 40px 0;
  border-block: 1px solid var(--line);
}

.clients-heading {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.clients-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Shared section heads */
.section-head {
  max-width: 40rem;
  margin-bottom: 56px;
}

.section-head h2,
.about-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 16px;
}

/* Services */
.services {
  padding: 120px 0 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px 22px 28px;
}

.card h3,
.highlights-grid h3,
.process-grid h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.card p,
.highlights-grid p,
.process-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Highlights */
.highlights {
  padding: 56px 0 120px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.highlights-grid li {
  padding: 28px 24px 8px 0;
  border-bottom: 1px solid var(--line);
}

.highlights-grid li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

/* Work / before-after */
.work {
  padding: 120px 0;
  background: var(--paper);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ba-frame {
  margin: 0;
  background: var(--white);
}

.ba-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.ba-frame figcaption {
  padding: 14px 2px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Process */
.process {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  list-style: none;
}

.step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1;
}

.process-visual {
  margin-top: 72px;
}

.process-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Warranty */
.warranty {
  position: relative;
  padding: 140px 24px;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0.78)),
    url("../assets/tile-floor.webp") center 60% / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.warranty-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.warranty h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.warranty p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  margin: 0 auto 32px;
  max-width: 38rem;
}

/* About / who we are */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1em;
}

.about-copy .btn {
  margin-top: 16px;
}

.about-photo {
  overflow: hidden;
  background: var(--paper);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Areas */
.areas {
  padding: 120px 0;
  background: var(--paper);
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.area-pills li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
}

.area-pills-any {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Contact */
.contact {
  padding: 120px 0 130px;
  background: var(--black);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  align-items: start;
}

.contact-copy h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
  max-width: 30rem;
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-details a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  width: fit-content;
}

.contact-details a:hover {
  border-bottom-color: var(--white);
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: 36px 32px 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  transition: border-color var(--ease);
}

.field input:hover,
.field input:focus {
  outline: none;
  border-bottom-color: var(--black);
}

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

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.logo-footer {
  color: var(--white);
  margin-bottom: 16px;
}

.logo-footer img {
  height: 44px;
  width: 44px;
}

.footer-tag {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-col h2 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--ease);
}

.social span:hover img {
  opacity: 1;
}

/* Inner pages */
body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
}

.page-main {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 40px;
  text-align: center;
}

.page-main h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.page-main p {
  color: var(--muted);
  font-size: 1.06rem;
}

.page-main .btn {
  margin-top: 28px;
}

/* Reveals */
.reveal {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js-reveal .reveal {
  animation: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .js-reveal .reveal,
  .js-reveal .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .highlights-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid li + li {
    padding-left: 0;
    border-left: 0;
  }

  .highlights-grid li:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .section-intro,
  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 0;
  }

  .nav-cta {
    margin: 8px 0 4px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .about-grid,
  .contact-grid,
  .footer-inner,
  .card-grid,
  .highlights-grid,
  .process-grid,
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid li,
  .highlights-grid li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-inner {
    max-width: 40rem;
    margin: 0 auto;
    padding: 64px 0 56px;
  }

  .hero-copy {
    padding: 0 32px;
  }

  .hero-media {
    min-height: 320px;
    max-height: 420px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .about-photo {
    order: -1;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }

  .services,
  .process,
  .about,
  .areas,
  .work,
  .contact {
    padding: 80px 0;
  }

  .highlights {
    padding: 24px 0 80px;
  }

  .warranty {
    padding: 96px 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .nav,
  .hero-copy {
    width: calc(100% - 32px);
    padding: 0;
  }

  .nav,
  .container {
    width: calc(100% - 32px);
  }

  .hero-copy {
    width: 100%;
    padding: 0 16px;
  }

  .hero-inner {
    width: 100%;
    margin: 0 auto;
    padding: 48px 0 40px;
  }

  .hero-media {
    min-height: 240px;
    max-height: 300px;
  }

  .logo img {
    height: 34px;
    width: 34px;
  }

  .logo-word {
    font-size: 0.78rem;
  }

  body {
    font-size: 16px;
  }

  .clients-row {
    flex-direction: column;
    align-items: center;
  }

  .client-badge {
    width: 100%;
    max-width: 280px;
  }

  .process-photos {
    gap: 12px;
  }

  .footer-bottom,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-main {
    margin: 40px auto 72px;
    padding: 36px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .logo-word {
    max-width: 10.5rem;
    white-space: normal;
  }
}
