/* ==========================================================================
   Vantafloor — base: tokens, reset, typography, layout, buttons, fields.
   Palette: forest #1F3A2E · oak #B07A45 · linen #F4EFE6 · charcoal #222
   ========================================================================== */

:root {
  --forest: #1F3A2E;
  --forest-2: #2B4C3D;
  --forest-3: #3E6553;
  --oak: #B07A45;
  --oak-2: #C9935D;
  --oak-ink: #8A5A2B;
  --linen: #F4EFE6;
  --linen-2: #EAE2D4;
  --paper: #FBF8F3;
  --charcoal: #222222;
  --ink: #2A2925;
  --muted: #69655C;
  --line: #E1D8C8;
  --line-2: #EDE6DA;
  --ok: #2F6B4A;
  --warn: #9A5B12;
  --err: #A33A2B;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-4xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.25rem);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 58, 46, 0.06), 0 2px 8px rgba(31, 58, 46, 0.05);
  --shadow-md: 0 8px 30px -10px rgba(31, 58, 46, 0.25);
  --shadow-lg: 0 30px 60px -24px rgba(20, 32, 26, 0.45);
  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --header-h: 76px;
  --topbar-h: 38px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open, body.modal-open { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oak-ink); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
ul, ol { padding-inline-start: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2rem; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--forest); margin: 0 0 0.6em; letter-spacing: -0.01em; font-optical-sizing: auto; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; inset-block-start: 1rem; inset-inline-start: 1rem; z-index: 1000; width: auto; height: auto; clip: auto; padding: 0.75rem 1rem; background: var(--forest); color: #fff; border-radius: var(--radius); }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--text { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--linen { background: var(--linen); }
.section--forest { background: var(--forest); color: #E9EFE9; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section-foot { margin-block-start: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; font-size: var(--fs-sm); }

.section-head { max-width: 720px; margin-block-end: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--fs-2xl); margin-block-end: 0.4em; }
.section-head .lead, .lead { font-size: var(--fs-lg); color: var(--muted); margin: 0; }
.section--forest .lead, .section--forest .eyebrow { color: #C9D6CD; }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oak-ink); margin: 0 0 0.75rem; }
.eyebrow--light { color: #F1D9BC; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.3rem; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease); white-space: nowrap; }
.btn .icon { inline-size: 18px; block-size: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-2); color: #fff; }
.btn--accent { background: var(--oak); color: #fff; }
.btn--accent:hover { background: var(--oak-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost.is-active { border-color: var(--forest); color: var(--forest); background: #fff; }
.btn--light { background: var(--paper); color: var(--forest); }
.btn--light:hover { background: #fff; color: var(--forest); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { color: var(--forest); background: #fff; }
.btn--text { padding: 0.35rem 0.25rem; color: var(--forest); border-radius: var(--radius); }
.btn--text:hover, .btn--text.is-active { color: var(--oak-ink); }
.btn--text.is-active .icon { color: var(--oak); }
.btn--whatsapp { background: #1F7A4D; color: #fff; }
.btn--whatsapp:hover { background: #17633e; color: #fff; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--fs-xs); }
.btn--lg { padding: 0.9rem 1.5rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-active[data-vf-sample] { background: var(--linen); border-color: var(--oak); color: var(--oak-ink); }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: var(--fs-sm); color: var(--forest); text-decoration: none; border-block-end: 1px solid currentColor; padding-block-end: 1px; }
.text-link:hover { color: var(--oak-ink); }
.text-link .icon { inline-size: 16px; block-size: 16px; }
.text-link--light { color: #F1D9BC; }
.icon { flex: none; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; transition: border-color var(--dur), background var(--dur); }
.chip:hover, .chip:has(input:checked) { border-color: var(--forest); background: var(--linen); color: var(--forest); }
.chip input { accent-color: var(--forest); }
.tone-dot { inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--tone, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; }

/* Fields */
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field .req { color: var(--err); }
.field input, .field select, .field textarea, .search-inline input, .search-bar input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem; transition: border-color var(--dur), box-shadow var(--dur); min-height: 46px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field__error { margin: 0; font-size: var(--fs-xs); color: var(--err); }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); }
.field--check input { margin-block-start: 0.3rem; accent-color: var(--forest); inline-size: 18px; block-size: 18px; }
.field--compact select { min-height: 42px; padding-block: 0.5rem; }

/* Media with graceful fallback */
.vf-media { position: relative; margin: 0; overflow: hidden; background: linear-gradient(135deg, var(--linen-2), #D9C7AC); aspect-ratio: var(--ratio, auto); }
.vf-media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.vf-media.is-missing { min-block-size: 160px; display: grid; place-items: center; }
.vf-media__label { padding: 1rem; font-family: var(--font-head); color: var(--forest); opacity: 0.7; text-align: center; }
.vf-media__caption, .media-caption { position: absolute; inset-block-end: 0.6rem; inset-inline-end: 0.6rem; z-index: 3; margin: 0; padding: 0.2rem 0.55rem; font-size: 11px; letter-spacing: 0.04em; color: #fff; background: rgba(20, 32, 26, 0.55); border-radius: var(--radius-pill); backdrop-filter: blur(4px); }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); }

/* Entry content */
.entry-content > * + * { margin-block-start: 1em; }
.entry-content h2 { font-size: var(--fs-xl); margin-block: 2em 0.6em; }
.entry-content h3 { font-size: var(--fs-lg); margin-block: 1.6em 0.5em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3rem; }
.entry-content li + li { margin-block-start: 0.35em; }
.entry-content li::marker { color: var(--oak); }
.entry-content a { color: var(--forest); }
.entry-content table { font-size: var(--fs-sm); }
.entry-content th, .entry-content td { border-block-end: 1px solid var(--line); padding: 0.6rem; text-align: start; }
.entry-content .vf-illustrative { font-size: var(--fs-sm); color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.vf-note { font-size: var(--fs-sm); color: var(--muted); }
.vf-empty, .vf-empty-state { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--muted); }
.vf-empty-state h2 { font-size: var(--fs-xl); }
.vf-empty-state--large { padding: clamp(1.5rem, 1rem + 3vw, 3rem); max-width: 820px; }
.vf-empty-state__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li { padding-inline-start: 1.6rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.45em; inline-size: 0.9rem; block-size: 0.5rem; border-inline-start: 2px solid var(--oak); border-block-end: 2px solid var(--oak); transform: rotate(-45deg); }

/* viewport-fit=cover: keep content clear of landscape notches (0 elsewhere). */
.site { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
