/* Lobos Floor Coatings — black & white, phone-first */

:root {
  --black: #4a4f56;   /* main dark grey (buttons, accents) */
  --ink: #2f3337;     /* text */
  --gray-1: #f4f5f6;  /* light section background */
  --gray-2: #e4e6e9;  /* placeholders */
  --gray-3: #9aa0a6;
  --line: #cfd3d8;    /* card borders */
  --hero: #e9ebee;    /* top + contact background */
  --white: #fff;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 800; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: 64px 0; }
.section-alt { background: var(--gray-1); }
section[id], h3[id] { scroll-margin-top: 16px; }

.subtitle { font-size: 1.2rem; color: #444; margin: -0.75rem 0 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .1s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid #888; outline-offset: 3px; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--gray-2); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #363a40; }
.btn-outline-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-block { width: 100%; }
.btn-big { min-height: 64px; font-size: 1.3rem; padding: 16px 36px; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--ink); padding: 88px 0 80px; }
.hero h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.tagline { font-size: clamp(1.25rem, 4.5vw, 1.6rem); margin: 18px 0 36px; color: #5a6066; max-width: 30ch; }
.btn-row { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 560px) { .btn-row { flex-direction: row; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.step h3 { margin-bottom: 8px; }
.step-num {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--white); font-weight: 800; font-size: 1.3rem;
}
.step-featured { background: var(--black); border-color: var(--black); color: var(--white); padding: 32px 24px; box-shadow: 0 10px 26px rgba(40,45,50,.18); }
.step-featured h3 { font-size: 2rem; }
.step-featured p { font-size: 1.2rem; }
.step-featured .step-num { background: var(--white); color: var(--black); width: 56px; height: 56px; font-size: 1.5rem; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px;
  border: 1.5px solid var(--white); border-radius: 999px;
  font-size: .85rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Pricing cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card-photo {
  position: relative; aspect-ratio: 4 / 5; background: var(--gray-2);
  display: grid; place-items: center;
}
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.card-body h3 { font-size: 1.9rem; text-transform: uppercase; }
.price { font-size: clamp(2rem, 8vw, 2.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.price-extra { font-size: 1.15rem; font-weight: 700; margin-top: -4px; }
.card-desc { color: #333; margin-bottom: 8px; }
.card-body .btn { margin-top: auto; }
.pricing-note { margin-top: 28px; font-size: 1.15rem; font-weight: 600; text-align: center; }

/* ---------- Placeholders ---------- */
.ph-label {
  padding: 8px 14px; border: 2px dashed var(--gray-3); border-radius: 8px;
  color: #555; font-size: .95rem; font-weight: 600; text-align: center; background: rgba(255,255,255,.6);
}

/* ---------- Card videos ---------- */
.card-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.card-photo video.ready { opacity: 1; }

/* ---------- Color grids ---------- */
.grid-title { font-size: 1.75rem; margin: 8px 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.grid-title + .color-grid { margin-bottom: 48px; }
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .color-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .color-grid { grid-template-columns: repeat(4, 1fr); } }

.swatch { margin: 0; }
.swatch-photo {
  position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--gray-2);
  display: grid; place-items: center; font: inherit;
}
.swatch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
button.swatch-photo { cursor: zoom-in; }
button.swatch-photo:focus-visible { outline: 3px solid #888; outline-offset: 3px; }
.swatch figcaption { margin-top: 8px; font-weight: 700; font-size: 1.05rem; text-align: center; }

/* ---------- Contact & footer ---------- */
.contact { background: var(--hero); color: var(--ink); padding: 80px 0; }
.contact h2 { margin-bottom: 28px; }
.contact-note { margin: 22px auto 0; max-width: 32ch; font-size: 1.2rem; color: #5a6066; }
.contact-extra { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 1.2rem; font-weight: 700; }
.contact-extra a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gray-3); padding-bottom: 2px; }
.contact-extra a[hidden] { display: none; }
.footer { background: var(--white); color: #6b7177; border-top: 1px solid var(--line); padding: 24px 0; text-align: center; font-size: 1rem; }
.footer a { color: var(--ink); }
.footer a[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(30,33,36,.95); color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; padding: 0 12px; text-align: center; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 78vh; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; font-size: 1.3rem; font-weight: 700; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: var(--white);
  border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-nav[hidden] { display: none; }
