/* South Florida Property Maintenance
   Tokens: black + red from the logo, white stucco and concrete neutrals.
   Type: Archivo (variable width) — expanded caps for display echo the logo wordmark. */

:root {
  --black: #000000;
  --ink: #1a1a1a;
  --red: #c81e2b;
  --red-dark: #a3161f;
  --white: #ffffff;
  --concrete: #f1f1ef;
  --line: #dcdcd8;
  --muted: #55565a;
  --on-dark-muted: #b9b9b9;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --header-h: 84px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: 0; color: var(--black); }

h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

p { text-wrap: pretty; }

p { margin: 0; }

a { color: inherit; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  touch-action: manipulation;
}
.btn-sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand img { width: 96px; height: auto; }

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
}
.main-nav a:hover { color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--red); width: 1.1em; height: 1.1em; }
.header-phone:hover { color: var(--red); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: max(620px, calc(100svh - var(--header-h)));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--black) url("assets/img/hero-poster.jpg") center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.05) 100%),
    linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 38%);
}

.hero-content {
  padding-block: 48px 44px;
}

.hero-logo {
  width: clamp(210px, 22vw, 320px);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.35));
}

.hero-title {
  max-width: 19ch;
  color: var(--white);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 28px;
  background: var(--red);
}

.hero-lede {
  max-width: 54ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: #e6e6e6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-proof {
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof-list li {
  padding: 22px 24px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
  border-left: 1px solid rgba(255,255,255,.18);
}
.proof-list li:first-child { border-left: 0; padding-left: 0; }
.proof-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
}

.video-toggle {
  position: absolute;
  right: var(--gutter);
  top: 20px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: var(--white);
  cursor: pointer;
}
.video-toggle .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head p { max-width: 56ch; color: var(--muted); }

/* ---------- Services ---------- */
.feature-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature-body { padding-top: 20px; }
.feature-body h3 {
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.feature-body p { margin-top: 10px; color: var(--muted); max-width: 40ch; }

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.4;
}
.service-list .icon { width: 26px; height: 26px; color: var(--red); stroke-width: 1.75; }

.service-more {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
}
.service-more .icon { color: var(--red); }
.service-more a { color: var(--black); font-weight: 700; text-underline-offset: 3px; }
.service-more a:hover { color: var(--red); }

/* ---------- Work gallery ---------- */
.work { background: var(--concrete); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.shot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
  font: inherit;
}
.shot-wide { grid-column: span 2; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.shot:hover img { transform: scale(1.03); }
.shot-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 8px 14px;
  background: var(--black);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  border-top-right-radius: var(--radius);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--black);
}
.quote figcaption::before { content: "— "; color: var(--red); }

.quote-featured {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 8px solid var(--red);
}
.quote-featured p {
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.reviews-list .quote {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.reviews-list .quote p { color: var(--muted); }

/* ---------- Areas ---------- */
.areas {
  background: var(--black);
  color: var(--white);
}
.areas h2 { color: var(--white); }

.areas-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
}
.areas-intro p { margin-top: 18px; color: var(--on-dark-muted); max-width: 40ch; }
.areas-note a { color: var(--white); font-weight: 700; text-underline-offset: 3px; }
.areas-note a:hover { color: #ff6b74; }

.city-list {
  columns: 3;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--red);
  padding-top: 20px;
}
.city-list li {
  break-inside: avoid;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Estimate ---------- */
.estimate { background: var(--concrete); }

.estimate-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.estimate-info > p { margin-top: 18px; color: var(--muted); max-width: 44ch; }

.steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 22px 52px;
  counter-increment: step;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;
}
.steps strong { display: block; color: var(--black); }

.estimate-call {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.estimate-call a { color: var(--red); font-weight: 700; text-underline-offset: 3px; }

.estimate-form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border-top: 8px solid var(--red);
  border-radius: var(--radius);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--black);
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #b9b9b4;
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--black); outline: 3px solid rgba(200,30,43,.25); outline-offset: 0; }

.field.has-error input,
.field.has-error select { border-color: var(--red); }
.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--red-dark);
}
.field-error:empty { display: none; }

.form-status { margin-top: 14px; font-weight: 600; }
.form-status.is-success { color: #156b35; }
.form-status.is-error { color: var(--red-dark); }

.estimate-form.is-sent .field,
.estimate-form.is-sent .field-row,
.estimate-form.is-sent button[type="submit"] { display: none; }
.estimate-form.is-sent .form-status { margin: 0; font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--on-dark-muted);
  padding-top: 72px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  gap: 40px;
}
.footer-brand img {
  width: 140px;
  height: auto;
}
.footer-brand p { margin-top: 18px; max-width: 34ch; }

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-base {
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .875rem;
}

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Viewer ---------- */
.viewer {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.viewer::backdrop { background: rgba(0,0,0,.88); }
.viewer[open] { animation: viewer-in .22s var(--ease); }
.viewer img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.viewer-caption { margin-top: 12px; color: var(--white); font-weight: 600; }
.viewer-close {
  position: absolute;
  right: 0; top: -56px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
@keyframes viewer-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .header-inner { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { width: 78px; }

  .nav-toggle { display: inline-flex; }
  .header-phone, .header-actions .btn { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }

  .section-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .feature-services { grid-template-columns: 1fr 1fr; }
  .feature-services .feature:last-child { grid-column: span 2; }
  .feature-services .feature:last-child img { aspect-ratio: 16 / 7; }
  .service-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }

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

  .reviews-grid, .areas-grid, .estimate-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }

  /* sticky mobile actions */
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; line-height: 1.65; }
  .hero-title { line-height: 1.12; }

  .hero { min-height: auto; }
  .hero-content { padding-block: 72px 40px; }
  .hero-title::after { width: 72px; height: 6px; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .proof-list li { padding: 16px 14px; }
  .proof-list strong { font-size: 1.375rem; }

  .feature-services { grid-template-columns: 1fr; }
  .feature-services .feature:last-child { grid-column: auto; }
  .feature-services .feature:last-child img { aspect-ratio: 4 / 3; }
  .service-list { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .shot-wide { grid-column: auto; }

  .reviews-list { grid-template-columns: 1fr; }
  .city-list { columns: 2; column-gap: 20px; }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-video { display: none; }
  .video-toggle { display: none; }
}
