/* Obrax Install — palette and type taken from obrax.us
   ink #0D141A, charcoal #1D1E20, steel #2D3748, bone #E8F1F5, red #FF0000
   Montserrat for headings and buttons, DM Sans for body text */

:root {
  --ink: #0D141A;
  --charcoal: #1D1E20;
  --steel: #2D3748;
  --bone: #E8F1F5;
  --red: #FF0000;
  --red-btn: #E60000;
  --red-hover: #FF1F1F;
  --muted: #A3B0BC;
  --line: rgba(232, 241, 245, 0.14);
  --panel: #141E27;
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--ink); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 6px;
  font: 600 1rem var(--display);
}
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 28px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 1rem var(--display); text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-line { background: transparent; color: var(--bone); border-color: rgba(232, 241, 245, .5); }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.on-light .btn-line { color: var(--ink); border-color: var(--ink); }
.on-light .btn-line:hover { background: rgba(13, 20, 26, .08); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 22px; }

/* Top bar */
.topbar { background: var(--steel); font-size: .9375rem; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 40px; }
.topbar a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; font: 500 1rem var(--display); }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--red); }
.lang-btn {
  min-width: 48px; min-height: 44px; padding: 0 14px; cursor: pointer;
  background: transparent; color: var(--bone);
  border: 2px solid rgba(232, 241, 245, .35); border-radius: 28px;
  font: 600 .9375rem var(--display);
}
.lang-btn:hover { border-color: #fff; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px; align-items: center;
}
.hero h1 {
  font: 800 clamp(2.6rem, 5.6vw, 4.75rem)/1.02 var(--display);
  letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
.hero p { margin-top: 24px; max-width: 34em; font-size: 1.25rem; color: var(--bone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.room { width: 100%; height: auto; max-width: 560px; justify-self: end; }
.row { animation: lay .8s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i) * 110ms + 250ms); }
.final {
  transform-box: fill-box; transform-origin: center;
  transform: translate(26px, -20px) rotate(-4deg);
  animation: drop .7s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: 1.55s;
}
@keyframes lay { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes drop {
  from { opacity: 0; transform: translate(26px, -96px) rotate(-10deg); }
  to { opacity: 1; transform: translate(26px, -20px) rotate(-4deg); }
}

/* Tape-measure divider */
.tape {
  height: 34px; background-color: var(--bone);
  background-image:
    linear-gradient(90deg, var(--red) 2px, transparent 2px),
    linear-gradient(90deg, var(--ink) 2px, transparent 2px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 120px 26px, 60px 19px, 12px 10px;
  background-repeat: repeat-x;
}

/* Sections */
.section { padding: 96px 0; }
.section h2 {
  font: 800 clamp(2rem, 4vw, 3rem)/1.08 var(--display);
  letter-spacing: -.025em; color: #fff; text-wrap: balance;
}
.lead { margin-top: 16px; max-width: 26em; font-size: 1.125rem; color: var(--muted); }

/* Services */
.services { background: var(--charcoal); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.panel { background: var(--ink); display: flex; flex-direction: column; }
.panel-band { height: 150px; background-size: cover; background-position: center; }
.band-floor { background-image: url("floor-band.svg"); }
.band-wall { background-image: url("wall-band.svg"); }
.panel-body { padding: 32px 32px 36px; }
.panel h3 { font: 700 1.75rem/1.15 var(--display); color: #fff; }
.panel p { margin-top: 12px; max-width: 30em; color: var(--muted); }
.panel ul { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.panel li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.panel li::before { content: ""; flex: none; width: 18px; height: 5px; background: var(--red); }

/* Process */
.process { background: var(--ink); }
.steps {
  list-style: none; padding: 0; margin-top: 56px; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.step { counter-increment: step; padding-top: 24px; border-top: 3px solid var(--steel); }
.step::before {
  content: counter(step); display: block; margin-bottom: 18px;
  font: 800 4.5rem/1 var(--display); letter-spacing: -.04em; color: var(--red);
}
.step h3 { font: 700 1.375rem/1.2 var(--display); color: #fff; }
.step p { margin-top: 10px; max-width: 26em; color: var(--muted); }

/* Materials */
.materials { background: var(--bone); color: var(--ink); }
.section.materials h2 { color: var(--ink); }
.materials .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.materials p { margin-top: 16px; max-width: 32em; font-size: 1.125rem; color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.swatches { width: 100%; height: auto; max-width: 520px; justify-self: end; }

/* Quote */
.quote { background: var(--charcoal); }
.quote .wrap {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px; align-items: start;
}
.contact-list { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 22px; }
.contact-list small { display: block; margin-bottom: 4px; font-size: .9375rem; color: var(--muted); }
.contact-list a {
  font: 600 1.25rem var(--display); text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.contact-list a:hover { color: #fff; }

.quote-form {
  background: var(--ink); border: 1px solid var(--steel); padding: 36px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 .9375rem var(--display); color: #fff; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--charcoal); color: #fff;
  border: 1px solid #3A4658; border-radius: 6px; font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select option { background: var(--ink); color: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid #fff; outline-offset: 1px; border-color: #fff;
}
.quote-form .btn { grid-column: 1 / -1; justify-self: start; }
.hp { display: none; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 48px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.site-footer .brand img { height: 44px; }
.site-footer p { color: var(--muted); max-width: 24em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 500; }
.foot-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.foot-nav a:hover { border-bottom-color: var(--red); }
.site-footer small { width: 100%; color: var(--muted); font-size: .9375rem; }

.form-note { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); }
.form-note a { color: var(--bone); text-underline-offset: 3px; }

/* Legal pages: both languages are in the page, the html lang attribute picks one */
.legal { padding: 72px 0 96px; }
.doc { display: none; max-width: 760px; }
html[lang="en"] .doc[lang="en"], html[lang="es"] .doc[lang="es"] { display: block; }
.doc h1 {
  font: 800 clamp(2.25rem, 5vw, 3.5rem)/1.05 var(--display);
  letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
.doc .updated { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.doc .intro { margin-top: 24px; font-size: 1.25rem; }
.doc h2 { margin-top: 48px; font: 700 1.5rem/1.2 var(--display); color: #fff; }
.doc p { margin-top: 14px; max-width: 68ch; }
.doc ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 14px; max-width: 68ch; }
.doc li { position: relative; padding-left: 30px; }
.doc li::before { content: ""; position: absolute; left: 0; top: .72em; width: 18px; height: 5px; background: var(--red); }
.doc strong { color: #fff; font-weight: 700; }
.doc a { text-underline-offset: 3px; }
.term-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.term { border-top: 3px solid var(--red); padding-top: 18px; }
.term b { display: block; font: 800 clamp(2.5rem, 6vw, 3.75rem)/1 var(--display); letter-spacing: -.04em; color: #fff; }
.term span { display: block; margin-top: 10px; color: var(--muted); }
.doc .not-covered { margin-top: 48px; padding: 32px; background: var(--panel); border-left: 5px solid var(--red); }
.doc .not-covered h2 { margin-top: 0; }

/* Thanks page */
.thanks { padding: 112px 0; min-height: 60vh; }
.thanks h1 {
  font: 800 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--display);
  letter-spacing: -.03em; color: #fff; text-wrap: balance; max-width: 14em;
}
.thanks p { margin-top: 20px; max-width: 30em; font-size: 1.25rem; }
.thanks .actions { margin-top: 36px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .materials .wrap, .quote .wrap { grid-template-columns: 1fr; gap: 48px; }
  .room, .swatches { justify-self: start; }
  .panels { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .topbar .wrap { justify-content: center; flex-wrap: wrap; }
  .lang-btn { margin-left: auto; }
  .site-header .wrap { gap: 12px; min-height: 72px; }
  .brand img { height: 42px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .quote-form { grid-template-columns: 1fr; padding: 24px; }
  .thanks { padding: 80px 0; }
  .legal { padding: 48px 0 72px; }
  .term-pair { grid-template-columns: 1fr; }
  .doc .not-covered { padding: 24px; }
}
@media (max-width: 480px) {
  .head-cta { display: none; }
  .hero-actions .btn, .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .final { animation: none; }
}
