/*
  Compensados Colombo storefront
  Structure: tokens, base, shared components, page sections, responsive rules.
*/

/* Design tokens */
:root {
  --red: #c91f2b;
  --red-dark: #8f171d;
  --gold: #f0bf16;
  --whatsapp: #158a52;
  --whatsapp-dark: #0f6d41;
  --charcoal: #171717;
  --ink: #211c18;
  --muted: #665f55;
  --paper: #f7f2e8;
  --surface: #fffaf2;
  --warm: #ece2d3;
  --line: #d9cab8;
  --white: #ffffff;
  --radius: 8px;
  --content: 1180px;
  --shadow: 0 22px 58px rgba(42, 31, 20, 0.12);
}

/* Base */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(240, 191, 22, 0.78);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 900;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Typography */
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.section h2,
.brand-showcase h2,
.store-section h2,
.workflow-section h2,
.feature-band h2,
.contact-band h2,
.quote-card h2,
.catalog-intro h2 {
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  font-weight: 950;
}

/* Shared components */
.btn,
.header-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.btn-primary,
.header-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(201, 31, 43, 0.18);
}

.btn-primary:hover,
.header-cta:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-secondary,
.btn-dark {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.76);
  border-color: rgba(31, 27, 23, 0.25);
}

.btn-secondary:hover,
.btn-dark:hover {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.text-link {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.section {
  padding: clamp(76px, 8vw, 120px) clamp(18px, 5vw, 64px);
}

.section-heading,
.intro-grid,
.product-grid,
.location-grid,
.brand-showcase,
.audience-section,
.store-section,
.workflow-section,
.catalog-intro,
.catalog-list {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(247, 242, 232, 0.96);
  border-bottom: 1px solid rgba(42, 31, 20, 0.12);
  box-shadow: 0 18px 46px rgba(42, 31, 20, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(247, 242, 232, 0.99);
  box-shadow: 0 18px 42px rgba(42, 31, 20, 0.13);
}

.top-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  padding: 7px clamp(18px, 5vw, 64px);
  color: rgba(255, 250, 242, 0.72);
  background: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 760;
}

.top-line > * {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-line span:nth-child(2) {
  text-align: center;
}

.top-line a {
  color: var(--gold);
  text-align: right;
}

.header-main {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin: 0 auto;
  padding: 12px clamp(18px, 5vw, 64px);
}

.brand {
  width: min(280px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 30px);
  color: rgba(31, 27, 23, 0.76);
  font-size: 0.92rem;
  font-weight: 840;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--red);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--white);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.99) 0%, rgba(247, 242, 232, 0.92) 42%, rgba(247, 242, 232, 0.56) 100%),
    url("assets/showroom-service.jpeg") right center / min(900px, 60vw) auto no-repeat,
    var(--paper);
}

.hero::before,
.catalog-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(201, 31, 43, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(31, 27, 23, 0.035) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.hero::after,
.catalog-hero::after {
  position: absolute;
  right: -16vw;
  bottom: -28vh;
  width: min(760px, 58vw);
  height: 64vh;
  content: "";
  background: linear-gradient(135deg, rgba(201, 31, 43, 0.13), rgba(240, 191, 22, 0.08));
  clip-path: polygon(28% 0, 100% 0, 76% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 370px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  margin: 0 auto;
  padding: 92px 0 126px;
}

.hero-logo,
.catalog-logo {
  width: min(460px, 84vw);
  margin-bottom: 26px;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5vw, 5.35rem);
  font-weight: 950;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  gap: 18px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(42, 31, 20, 0.14);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-proof img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-proof strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.18;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 760;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  border-top: 1px solid var(--line);
}

.hero-strip span {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-weight: 900;
  border-right: 1px solid var(--line);
}

.hero-strip span:first-child {
  color: var(--white);
  background: var(--red);
}

/* Proof and intro */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 114px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 22px clamp(18px, 5vw, 64px);
  border-right: 1px solid var(--line);
}

.proof-strip strong {
  color: var(--red);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.proof-strip span {
  color: var(--muted);
  font-weight: 760;
}

.intro,
.gallery-section,
.location,
.catalog-main,
.quote-section {
  background: var(--paper);
}

.intro-grid,
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.intro-copy,
.showcase-copy p,
.store-copy p,
.workflow-copy p,
.catalog-intro p {
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-copy p,
.showcase-copy p,
.store-copy p,
.workflow-copy p {
  margin: 0 0 18px;
}

.audience-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(76px, 8vw, 112px);
}

.audience-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-top: 6px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audience-card:nth-child(2) {
  border-top-color: var(--charcoal);
}

.audience-card:nth-child(3) {
  border-top-color: var(--gold);
}

.audience-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audience-card strong {
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.16;
}

/* Visual sections */
.brand-showcase,
.store-section,
.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
}

.brand-showcase {
  padding: 0 0 clamp(76px, 8vw, 112px);
}

.showcase-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-section,
.workflow-section {
  padding: clamp(74px, 8vw, 118px) 0;
}

.store-copy h2,
.workflow-copy h2 {
  max-width: 650px;
}

.store-copy p,
.workflow-copy p {
  max-width: 560px;
  margin-top: 22px;
}

.store-visual-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-visual,
.workflow-card,
.gallery-item {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.store-visual,
.workflow-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
}

.store-visual::before,
.workflow-card::before,
.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.04), rgba(23, 23, 23, 0.78));
}

.store-visual > *,
.workflow-card > *,
.gallery-item span {
  position: relative;
  z-index: 1;
}

.store-visual span,
.workflow-card span,
.gallery-item span,
.catalog-media figcaption {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.store-visual strong,
.workflow-card strong {
  max-width: 300px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.workflow-card p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.94rem;
}

.store-visual-showroom { background: url("assets/showroom-service.jpeg") center / cover no-repeat; }
.store-visual-stock { background: url("assets/stock-machinery.jpeg") center / cover no-repeat; }
.store-visual-expedition { background: url("assets/store-expedition.jpeg") center / cover no-repeat; }
.workflow-plan { background: url("assets/showroom-service.jpeg") center / cover no-repeat; }
.workflow-cut { background: url("assets/area-corte-fitagem.jpeg") center / cover no-repeat; }
.workflow-stock { background: url("assets/stock-machinery.jpeg") center / cover no-repeat; }
.workflow-delivery { background: url("assets/store-expedition.jpeg") center / cover no-repeat; }

/* Products */
.products,
.quick-quote,
.contact-band,
.brands-section,
.feature-band {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(236, 226, 211, 0.92)),
    var(--warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 31, 43, 0.28);
  box-shadow: 0 28px 62px rgba(42, 31, 20, 0.16);
}

.product-photo {
  width: calc(100% + 48px);
  height: 150px;
  margin: -24px -24px 20px;
  object-fit: cover;
  border-bottom: 1px solid rgba(42, 31, 20, 0.12);
  transition: transform 220ms ease;
}

.product-card:hover .product-photo {
  transform: scale(1.025);
}

.product-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 950;
}

.product-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.product-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
}

.product-card-dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 31, 43, 0.18), transparent 58%),
    var(--charcoal);
  border-color: rgba(23, 23, 23, 0.9);
}

.product-card-dark p {
  color: rgba(255, 250, 242, 0.72);
}

/* Brands, gallery and feature band */
.brands-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: clamp(76px, 8vw, 112px) clamp(18px, 5vw, 64px);
}

.brands-section > * {
  width: min(100%, 580px);
}

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-cloud span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(42, 31, 20, 0.08);
  font-weight: 950;
}

.brand-cloud span:nth-child(odd) {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.gallery-grid {
  width: min(var(--content), 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.gallery-item {
  min-height: 190px;
}

.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 16px;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-service { background: url("assets/showroom-service.jpeg") center / cover no-repeat; }
.gallery-mdf-samples { background: url("assets/mdf-samples.jpeg") center / cover no-repeat; }
.gallery-cutting { background: url("assets/corte-mdf-real.jpeg") center / cover no-repeat; }
.gallery-edgebanding-area { background: url("assets/area-corte-fitagem.jpeg") center / cover no-repeat; }
.gallery-edgebanding-machine { background: url("assets/maquina-fitagem.jpeg") center / cover no-repeat; }
.gallery-stock { background: url("assets/stock-machinery.jpeg") center / cover no-repeat; }
.gallery-expedition { background: url("assets/store-expedition.jpeg") center / cover no-repeat; }
.gallery-loading { background: url("assets/unloading-logistics.jpeg") center / cover no-repeat; }
.gallery-tools { background: url("assets/tools-accessories-new.jpeg") center / cover no-repeat; }
.gallery-glues { background: url("assets/glues-supplies.jpeg") center / cover no-repeat; }

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1fr);
  min-height: 610px;
}

.feature-image {
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.06), rgba(23, 23, 23, 0.48)),
    url("assets/area-corte-fitagem.jpeg") center / cover no-repeat;
}

.feature-content {
  align-self: center;
  padding: clamp(56px, 8vw, 106px);
}

.feature-list {
  display: grid;
  gap: 0;
  max-width: 640px;
  margin-top: 34px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(42, 31, 20, 0.12);
}

.feature-list strong {
  color: var(--red);
  font-size: 1.22rem;
}

.feature-list span {
  color: var(--muted);
}

/* Quote builder and contact */
.quick-quote,
.contact-band {
  position: relative;
  overflow: hidden;
}

.quick-quote::before,
.contact-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(201, 31, 43, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(31, 27, 23, 0.03) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.quote-builder {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
  margin: 0 auto;
}

.builder-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.builder-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.builder-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.builder-label {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 900;
}

.builder-label-spaced {
  margin-top: 20px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-grid button {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(42, 31, 20, 0.045);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.option-grid button:hover,
.option-grid button.is-selected {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.option-grid-profile button.is-selected {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.message-preview {
  margin-top: 18px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(201, 31, 43, 0.16);
  border-radius: var(--radius);
}

.message-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.message-preview p {
  margin: 0;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quote-card {
  position: relative;
  width: min(var(--content), calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-card p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
  padding: clamp(66px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.contact-band > * {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
}

.contact-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-actions {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-actions a {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(42, 31, 20, 0.075);
  font-weight: 900;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.contact-actions a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--red), var(--gold));
}

.contact-actions a::after {
  content: "Abrir";
  margin-left: 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-actions a:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.contact-actions a:hover::after {
  color: var(--white);
}

.contact-actions a[href*="wa.me"] {
  border-color: rgba(21, 138, 82, 0.28);
}

.contact-actions a[href*="wa.me"]::before {
  background: linear-gradient(180deg, var(--whatsapp), var(--gold));
}

/* Location and catalog */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-panel {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.34rem;
}

.info-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

.info-panel .btn-secondary {
  color: var(--red);
  border-color: var(--red);
}

.info-panel .btn-secondary:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.hours-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hours-list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.hours-list span {
  color: var(--muted);
}

.catalog-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 96px clamp(18px, 5vw, 64px) 76px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.98), rgba(247, 242, 232, 0.8)),
    url("assets/mdf-samples.jpeg") center / cover no-repeat,
    var(--paper);
}

.catalog-hero > div {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.catalog-hero h1 {
  max-width: 840px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 950;
}

.catalog-hero p {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
}

.catalog-intro {
  padding: clamp(70px, 8vw, 112px) 0 34px;
}

.catalog-intro p {
  margin: 0;
}

.catalog-list {
  display: grid;
  gap: 16px;
  padding: 34px 0 clamp(76px, 8vw, 116px);
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 31, 43, 0.28);
  box-shadow: 0 28px 62px rgba(42, 31, 20, 0.15);
}

.catalog-media {
  position: relative;
  height: 156px;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.catalog-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(23, 23, 23, 0), rgba(23, 23, 23, 0.62));
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.catalog-media figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
}

.catalog-card:hover .catalog-media img {
  transform: scale(1.04);
}

.catalog-card:nth-child(even) .catalog-media figcaption {
  color: var(--white);
  background: var(--red);
}

.catalog-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.42rem, 2vw, 1.95rem);
  line-height: 1.13;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--warm);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 850;
}

.catalog-card .btn {
  white-space: nowrap;
}

/* Footer and motion */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 250, 242, 0.9);
  background: var(--charcoal);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer span,
.site-footer p {
  color: rgba(255, 250, 242, 0.62);
}

.site-footer p {
  margin: 0;
}

.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 109, 65, 0.26);
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.float-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 109, 65, 0.32);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Responsive layout */
@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: minmax(190px, 260px) max-content;
    justify-content: space-between;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav.is-open {
    position: fixed;
    top: 102px;
    right: clamp(18px, 5vw, 64px);
    display: grid;
    width: min(360px, calc(100vw - 36px));
    gap: 2px;
    padding: 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 16px;
  }

  .hero-content,
  .intro-grid,
  .brand-showcase,
  .store-section,
  .workflow-section,
  .feature-band,
  .quote-builder,
  .contact-band,
  .brands-section,
  .catalog-intro,
  .catalog-card {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: none;
  }

  .hero-strip {
    position: relative;
  }

  .proof-strip,
  .gallery-grid,
  .product-grid,
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-visual-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .quote-card,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-card .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-content: min(420px, calc(100vw - 28px));
  }

  html {
    scroll-padding-top: 82px;
  }

  body {
    padding-bottom: 78px;
  }

  .top-line {
    display: none;
  }

  .header-main {
    grid-template-columns: minmax(0, 1fr) 46px;
    justify-content: stretch;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 10px;
  }

  .brand {
    width: min(220px, 68vw);
    min-height: 50px;
  }

  .brand img {
    height: 38px;
  }

  .menu-toggle {
    display: inline-flex !important;
    justify-self: end;
  }

  .main-nav {
    display: none !important;
  }

  .main-nav.is-open {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: grid !important;
    width: auto;
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
    padding: 12px;
    overflow: visible;
    color: var(--ink);
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    background: var(--paper);
    border: 1px solid rgba(42, 31, 20, 0.12);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 900;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(23, 23, 23, 0.06) 0, rgba(23, 23, 23, 0.1) 230px, rgba(247, 242, 232, 0.98) 315px, rgba(247, 242, 232, 1) 100%),
      url("assets/showroom-service.jpeg") center top / 100% 330px no-repeat,
      var(--paper);
  }

  .hero::after,
  .catalog-hero::after {
    display: none;
  }

  .hero-content {
    width: var(--mobile-content);
    padding: 238px 0 44px;
  }

  .hero-logo,
  .catalog-logo {
    display: none;
  }

  .hero-copy h1,
  .catalog-hero h1,
  .section h2,
  .brand-showcase h2,
  .store-section h2,
  .workflow-section h2,
  .feature-band h2,
  .contact-band h2,
  .quote-card h2,
  .catalog-intro h2 {
    max-width: 100%;
    font-size: clamp(1.95rem, 10vw, 2.72rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .hero-copy p:not(.eyebrow),
  .catalog-hero p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .quote-card .btn,
  .builder-actions .btn,
  .catalog-card .btn {
    width: 100%;
  }

  .audience-section,
  .product-grid,
  .gallery-grid,
  .workflow-grid,
  .location-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    background: var(--charcoal);
    border-top: 0;
    scrollbar-width: none;
  }

  .hero-strip::-webkit-scrollbar {
    display: none;
  }

  .hero-strip span {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    color: rgba(255, 250, 242, 0.92);
    background: rgba(255, 250, 242, 0.08);
    border: 1px solid rgba(255, 250, 242, 0.16);
    border-radius: var(--radius);
    font-size: 0.78rem;
  }

  .hero-strip span:first-child {
    color: var(--charcoal);
    background: var(--gold);
    border-color: var(--gold);
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip div {
    min-height: 92px;
    padding: 18px 16px;
  }

  .section,
  .quote-section {
    padding-top: 58px;
    padding-bottom: 58px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-grid,
  .section-heading,
  .product-grid,
  .gallery-grid,
  .location-grid,
  .quote-builder,
  .quote-card,
  .audience-section,
  .brand-showcase,
  .store-section,
  .workflow-section,
  .brands-section,
  .feature-band,
  .catalog-intro,
  .catalog-list {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
  }

  .brand-showcase,
  .store-section,
  .workflow-section,
  .brands-section,
  .feature-band,
  .catalog-intro,
  .catalog-list {
    margin-left: 16px;
    margin-right: auto;
  }

  .store-visual-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .store-visual,
  .workflow-card {
    min-height: 238px;
    padding: 20px;
  }

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-content {
    padding: 48px 18px;
  }

  .feature-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .catalog-hero {
    min-height: auto;
    padding: 230px 16px 54px;
    background:
      linear-gradient(180deg, rgba(23, 23, 23, 0.04) 0, rgba(23, 23, 23, 0.08) 210px, rgba(247, 242, 232, 0.98) 292px, rgba(247, 242, 232, 1) 100%),
      url("assets/mdf-samples.jpeg") center top / 100% 306px no-repeat,
      var(--paper);
  }

  .catalog-hero > div,
  .contact-band > * {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
    margin-left: 0;
    margin-right: auto;
  }

  .catalog-media {
    height: 190px;
  }

  .catalog-card {
    gap: 14px;
    padding: 12px;
  }

  .product-card {
    padding: 18px;
  }

  .product-photo {
    width: calc(100% + 36px);
    height: 178px;
    margin: -18px -18px 18px;
  }

  .contact-band {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-actions a {
    min-height: 60px;
    padding: 0 16px 0 18px;
  }

  .contact-actions a::after {
    display: none;
  }

  .float-whatsapp {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: auto;
    min-width: 132px;
    min-height: 50px;
    padding: 0 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  body.has-scrolled .float-whatsapp {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* SEO landing sections */
.seo-section {
  background: var(--paper);
}

.seo-grid,
.service-grid {
  width: min(var(--content), 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.seo-grid article,
.service-grid article {
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(42, 31, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-grid h3,
.service-grid h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.seo-grid p,
.service-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.service-hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  padding: 96px clamp(18px, 5vw, 64px) 78px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.98), rgba(247, 242, 232, 0.78)),
    var(--service-image) center / cover no-repeat,
    var(--paper);
}

.service-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(201, 31, 43, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(31, 27, 23, 0.035) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.service-hero > div {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.service-hero h1 {
  max-width: 860px;
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  font-weight: 950;
}

.service-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
}

@media (max-width: 1180px) {
  .seo-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .seo-grid,
  .service-grid {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
  }

  .service-hero {
    min-height: auto;
    padding: 230px 16px 54px;
    background:
      linear-gradient(180deg, rgba(23, 23, 23, 0.04) 0, rgba(23, 23, 23, 0.08) 210px, rgba(247, 242, 232, 0.98) 292px, rgba(247, 242, 232, 1) 100%),
      var(--service-image) center top / 100% 306px no-repeat,
      var(--paper);
  }

  .service-hero > div {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
  }

  .service-hero h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10vw, 2.85rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
}
