/* Pavimentos na Maia: a contemporary interior-studio look. Warm off-white,
   near-black type and buttons, oak as the accent, and wood as the imagery:
   herringbone.svg (planks turned 45°, behind the booking form) and wood.svg
   (planks, left to right), recoloured with the --look-* filters. Built for
   conversion: the call button and the booking form are never far away.
   System fonts only: fast, and nothing loaded from third parties. */
:root {
  --bg: #f7f5f2;
  --bg-alt: #efebe5;
  --surface: #ffffff;
  --text: #191714;
  --muted: #6b645c;
  /* Large text only (3:1 on --bg). */
  --soft: #8d857b;
  --line: #e5e0d8;
  --line-strong: #d4ccc0;
  --accent: #9a531f;
  --accent-bright: #d08b4f;
  --accent-soft: #f3e8dc;
  --dark: #1b1815;
  --dark-text: #f3efe9;
  --dark-muted: #b3aba1;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(25, 23, 20, 0.04), 0 10px 30px -12px rgba(25, 23, 20, 0.12);
  --shadow-lg: 0 2px 6px rgba(25, 23, 20, 0.05), 0 30px 60px -24px rgba(25, 23, 20, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font:
    system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-display:
    "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  /* Wood tones, as filters on the oak textures. */
  --look-grey: grayscale(0.9) brightness(1.18) contrast(0.92);
  --look-walnut: brightness(0.6) saturate(1.3) hue-rotate(-6deg);
  /* The background of the current section (for elements that mask a line). */
  --section-bg: var(--bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Elements toggled with the hidden attribute stay hidden, whatever their display. */
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent);
}
img,
svg {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent-soft);
  color: var(--text);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: calc(720px + 2 * var(--gutter));
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}
/* Keeps a hyphenated word (e.g. «ligar-lhe») on one line. */
.nowrap {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 242, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(25, 23, 20, 0.08);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: flex;
  gap: 2px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.nav a:hover,
body[data-page="calculadora"] .nav a[data-nav="calculadora"],
body[data-page="artigos"] .nav a[data-nav="artigos"] {
  color: var(--text);
  background: rgba(25, 23, 20, 0.06);
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover .icon-arrow {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: #36312b;
  color: #fff;
}
.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface);
  color: var(--text);
}
.btn-light {
  background: #fff;
  color: var(--text);
}
.btn-light:hover {
  background: var(--accent-soft);
  color: var(--text);
}
/* The call button: the number, big, with what calling gets you. */
.btn-phone {
  gap: 14px;
  min-height: 66px;
  padding: 0 30px 0 12px;
  font-size: 1.3125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}
.btn-phone svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-bright);
}
.btn-phone span {
  display: grid;
  line-height: 1.15;
}
.btn-phone small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-block {
  width: 100%;
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.lead-form .btn[disabled] {
  cursor: progress;
}

/* Section labels, as a chip with a dot. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 14px 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero: what we do and the call on the left, the booking form on the right. */
.hero {
  position: relative;
  isolation: isolate;
  /* Clip, not hidden: a hidden overflow can still be scrolled, e.g. when an
     element inside gets focus, which would shift the whole hero sideways. */
  overflow: hidden;
  overflow: clip;
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  left: -20%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 168, 116, 0.24), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 1rem + 3.4vw, 3.875rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 span {
  color: var(--soft);
}
.lede {
  max-width: 36em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero .checks {
  margin-top: 32px;
}
.checks svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  color: var(--accent);
}
/* The booking form, on a piece of herringbone floor. */
.form-frame {
  padding: clamp(12px, 2.2vw, 24px);
  border-radius: var(--radius-lg);
  background: #c99b69 url(/herringbone.svg) center / cover;
  box-shadow: var(--shadow-lg);
}
.lead-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: calc(var(--radius-lg) - 8px);
  background: var(--surface);
  box-shadow: 0 12px 32px -14px rgba(25, 23, 20, 0.45);
}
.lead-title {
  margin: 0 0 6px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  letter-spacing: -0.03em;
}
.lead-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Sections */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-alt {
  --section-bg: var(--bg-alt);
  background: var(--bg-alt);
}
/* The label and title on the left, the introduction on the right. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head > * {
  grid-column: 1;
}
.section-head .eyebrow {
  justify-self: start;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.section-head > p:not(.eyebrow) {
  grid-row: 1 / span 2;
  grid-column: 2;
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}
.section-more {
  margin: 36px 0 0;
}
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 20px 20px 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cta-strip p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}
.cta-strip strong {
  color: var(--text);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(25, 23, 20, 0.08);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

/* Floors we install. */
.materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.material {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.material-face {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 9px);
  background: url(/wood.svg) 0 0 / 512px 240px;
}
.material-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(25, 23, 20, 0.06);
}
.face-herringbone {
  background: url(/herringbone.svg) center / 560px auto;
}
.look-grey {
  filter: var(--look-grey);
}
.look-walnut {
  filter: var(--look-walnut);
}
.material-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 18px 16px;
}
.material h3 {
  margin: 0 0 8px;
  font-size: 1.375rem;
}
.material p {
  margin: 0 0 18px;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}
/* And the rest of the job. */
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.extras li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.extras h3 {
  margin: 2px 0 6px;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.extras p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Process: a numbered timeline. */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 12px;
  background: var(--section-bg);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 22px;
}
.process h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Calculator teaser: a dark panel with an example of what it works out. */
.band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-text);
}
/* The floor, fading in from the right. */
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  background: url(/herringbone.svg) center / 640px auto;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.band .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dark-text);
}
.band .eyebrow::before {
  background: var(--accent-bright);
}
.band h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.band-copy > p:not(.eyebrow) {
  max-width: 44ch;
  margin: 0 0 32px;
  color: var(--dark-muted);
}
.band-example {
  margin: 0;
  padding: 24px 26px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(27, 24, 21, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.band-example figcaption {
  margin-bottom: 8px;
  color: var(--dark-muted);
  font-size: 0.8125rem;
}
.band-example dl {
  margin: 0;
}
.band-example div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.band-example div:last-child {
  border-bottom: 0;
}
.band-example dt {
  color: var(--dark-muted);
}
.band-example dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.band-example .highlight dd {
  color: var(--accent-bright);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.article-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  color: inherit;
  transform: translateY(-4px);
}
.article-card .meta {
  margin: 0 0 36px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.article-card h2,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.article-card .more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.article-card .more svg {
  width: 38px;
  height: 38px;
  flex: none;
  padding: 10px;
  border-radius: 50%;
  background: var(--bg-alt);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.article-card:hover .more svg {
  background: var(--text);
  color: #fff;
  transform: translateX(3px);
}

/* The last call to action, with the areas served. */
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.final-cta p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 0 28px;
  color: var(--muted);
}

/* Areas served */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}
.pills li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* FAQ: the title on the left, the questions on the right. */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-layout .section-head {
  display: block;
  margin: 0;
}
.faq-layout .section-head h2 {
  margin-bottom: 18px;
}
.faq-layout .section-head .btn {
  margin-top: 28px;
}
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A plus that turns into a cross. */
.faq summary::after {
  content: "";
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition:
    transform 0.3s var(--ease),
    background-color 0.2s var(--ease);
}
.faq summary:hover::after {
  background-color: var(--surface);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 62ch;
  margin: 0 0 24px;
  padding-right: 58px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.contact-intro > p {
  margin: 0 0 28px;
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}
.contact-intro .checks {
  margin-top: 32px;
}
.lead-form {
  display: grid;
  gap: 16px;
}
/* Inputs side by side line up, even when one label wraps. */
.lead-form .row {
  align-items: end;
}
/* Short, so the whole form fits next to the headline. */
.lead-form textarea {
  min-height: 78px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  align-content: start;
}
.field label,
.field > span {
  font-size: 0.875rem;
  font-weight: 600;
}
.field label small {
  color: var(--muted);
  font-weight: 500;
}
.field > small {
  color: var(--muted);
  font-size: 0.8125rem;
}
:where(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
:where(input:not([type="checkbox"], [type="radio"]), select, textarea):hover {
  border-color: #bdb4a7;
}
:where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(154, 83, 31, 0.15);
}
::placeholder {
  color: #a39b91;
}
select {
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191714' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center / 18px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.consent,
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
}
.consent {
  color: var(--muted);
  font-size: 0.875rem;
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.consent input,
.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--text);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.err {
  border: 1px solid #f0c4c0;
  background: #fdf0ef;
  color: #8f1d1d;
}

/* Articles and legal pages */
.page-head {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 8px;
}
.page-head:last-child {
  padding-bottom: clamp(72px, 9vw, 112px);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 28px;
  color: var(--soft);
  font-size: 0.875rem;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.breadcrumbs span {
  color: var(--muted);
}
.prose h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.prose .lede {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}
.prose h2 {
  margin: 56px 0 14px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.prose p,
.prose li {
  line-height: 1.75;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 8px;
}
.prose li::marker {
  color: var(--accent);
}
.prose a:not(.btn) {
  text-decoration-thickness: 1.5px;
}
.note {
  margin: 32px 0;
  padding: 20px 24px;
  border: 1px solid #ead9c6;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.note p {
  margin: 0;
}
.note strong {
  color: var(--accent);
}
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}
.prose tbody tr:last-child > * {
  border-bottom: 0;
}
.prose thead th {
  background: var(--bg-alt);
  font-size: 0.875rem;
}
.prose th {
  font-weight: 600;
}
.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 56px 0 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-text);
}
.prose .article-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.5rem;
}
.article-cta p {
  margin: 0;
  color: var(--dark-muted);
}
.article-cta .actions {
  flex-direction: column;
}
.article-cta .btn-primary {
  background: #fff;
  color: var(--text);
}
.article-cta .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.article-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.article-cta .btn-outline:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.related {
  margin: 56px 0 0;
}
.prose .related h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.prose .related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .related li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.prose .related a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.prose .related a::after {
  content: "→";
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.prose .related a:hover::after {
  transform: translateX(4px);
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}
.calculator.card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
}
.calc-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.calc-group + .calc-group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.calc-group > legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.calc-group > legend + * {
  clear: both;
}
.hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.rooms {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.room {
  position: relative;
  min-inline-size: 0;
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.room legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.room-fields {
  display: grid;
  clear: both;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.room-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.room-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.room-remove:hover {
  border-color: #f0c4c0;
  color: #8f1d1d;
}
.calc-options {
  display: grid;
  gap: 16px;
}
.section-tight {
  padding-top: 32px;
}
.inline-input {
  display: inline-block;
  width: 4.5em;
  min-height: 0;
  margin: 0 4px;
  padding: 2px 8px;
  border-radius: 8px;
}
/* The results, on a dark panel that stays in view. */
.results.card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 32px);
  border-color: var(--dark);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-text);
}
.results h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}
.result-list {
  margin: 0 0 24px;
}
/* A value too long to sit next to its label drops below it, whole. */
.result-list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.result-list dt {
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.result-list dd {
  margin: 0 0 0 auto;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.result-list .highlight dd {
  color: var(--accent-bright);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.results .btn-primary {
  width: 100%;
  background: #fff;
  color: var(--text);
}
.results .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.results-call {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: var(--dark-text);
  font-weight: 600;
  text-decoration: none;
}
.results-call:hover {
  color: #fff;
  text-decoration: underline;
}
.results-call svg {
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
}
.results .fine-print {
  margin: 16px 0 0;
  color: var(--dark-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.results .removal-note {
  margin: 0 0 18px;
}
.results .removal-note strong {
  color: #fff;
}
/* The floor plan preview (drawn by calculadora.js). */
.plan {
  margin: 0 0 16px;
}
.plan svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  border-radius: var(--radius-sm);
  background: #f3ece2;
}
.plan figcaption {
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background: var(--dark);
  color: var(--dark-muted);
}
.site-footer a {
  color: var(--dark-text);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand {
  margin-bottom: 16px;
  color: #fff;
}
.site-footer .brand:hover {
  text-decoration: none;
}
/* The mark's dark square, a shade lighter than the footer. */
.site-footer .brand svg > rect:first-child {
  fill: #332d27;
}
.footer-about p {
  max-width: 40ch;
  margin: 0 0 20px;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-phone svg {
  width: 20px;
  height: 20px;
  color: var(--accent-bright);
}
.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-col h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}
.footer-bottom p {
  margin: 0;
}

/* Quick contact bar (phones) */
.action-bar {
  display: none;
}

/* Simple pages (thank-you, 404) */
.page-center {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}
.page-center h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.page-center p {
  max-width: 52ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}
.page-center .actions {
  justify-content: center;
  margin-top: 32px;
}

/* Motion: the hero settles in, and sections rise into view as you scroll
   (where the browser supports scroll-driven animations). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .hero-copy > *,
  .hero .form-frame {
    animation: rise 0.9s var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero-copy > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }
  .hero .form-frame {
    animation-delay: 0.1s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  @supports (animation-timeline: view()) {
    .section-head,
    .materials > li,
    .extras > li,
    .process > li,
    .grid > li,
    .cta-strip,
    .band,
    .faq,
    .final-cta {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
  /* Answers slide open. */
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }
    .faq details::details-content {
      block-size: 0;
      overflow: hidden;
      transition:
        block-size 0.35s var(--ease),
        content-visibility 0.35s allow-discrete;
    }
    .faq details[open]::details-content {
      block-size: auto;
    }
  }
}

@media (max-width: 1080px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .hero-grid,
  .band,
  .faq-layout,
  .final-cta,
  .contact-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .form-frame {
    max-width: 640px;
  }
  .header-book {
    display: none;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .section-head > p:not(.eyebrow) {
    grid-row: auto;
    grid-column: 1;
    margin-top: 16px;
  }
  .materials,
  .extras {
    grid-template-columns: 1fr;
  }
  .material {
    flex-direction: row;
  }
  .material-face {
    width: 40%;
    height: auto;
    min-height: 220px;
    flex: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results.card {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }
  body {
    padding-bottom: 92px;
  }
  /* On phones the quick contact bar does the header's job. */
  .nav,
  .header-call span {
    display: none;
  }
  .header-call {
    width: 40px;
    padding: 0;
  }
  .actions .btn,
  .btn-phone {
    flex: 1 1 auto;
    width: 100%;
  }
  .cta-strip {
    padding: 20px;
  }
  .material {
    flex-direction: column;
  }
  .material-face {
    width: auto;
    height: 180px;
    min-height: 0;
  }
  .grid,
  .row,
  .footer-grid,
  .article-cta {
    grid-template-columns: 1fr;
  }
  /* The timeline runs down the side. */
  .process {
    position: relative;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 44px;
  }
  .process::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 13px;
    width: 1px;
    background: var(--line-strong);
  }
  .process li {
    padding-top: 0;
    border-top: 0;
  }
  .process li::before {
    top: 0;
    left: -44px;
    width: 28px;
    padding: 0;
    text-align: center;
  }
  .faq details p {
    padding-right: 0;
  }
  .band {
    padding: 28px 22px 22px;
  }
  .band-example {
    padding: 18px 18px 6px;
  }
  .action-bar {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: var(--shadow-lg);
  }
  .action-bar .btn {
    min-height: 46px;
    padding: 0 12px;
    white-space: nowrap;
  }
  .action-bar .btn-light {
    border-color: var(--line-strong);
  }
}
