/* Mais Tintas — Premium designer-paint brand
   Anchor: Organic / Editorial-warm (plaster surface, muted swatch palette,
   humanist sans, subtle grain, rounded corners, gentle motion).
   Signature: live color configurator that repaints a preview wall. */

:root {
  --plaster: #EDE6DA;        /* warm off-white, greyer than cream — escapes the cliché */
  --plaster-deep: #E3D9C8;
  --panel: #FBF8F3;
  --ink: #2A2622;            /* deep warm charcoal */
  --ink-soft: #5A5248;
  --line: #D7CBB6;

  /* the brand's designer paint colors (used as color-fields + swatches) */
  --clay: #C4623D;
  --sage: #9AA88B;
  --ochre: #D9A441;
  --teal: #2F6B6A;
  --plum: #6E4A5A;
  --slate: #6B7E9B;
  --olive: #74764B;
  --terracotta-soft: #CC8A6A;

  --accent: var(--clay);
  --radius: 20px;
  --radius-lg: 30px;
  --maxw: 1200px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 18px 40px -22px rgba(42,38,34,.45);
  --shadow-sm: 0 10px 24px -16px rgba(42,38,34,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--ink); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,230,218,.9);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand .dab {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px;
  background: linear-gradient(135deg, var(--clay), var(--ochre));
  transform: rotate(-8deg);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.12);
}
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--plaster-deep); color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav-cta { background: var(--ink); color: var(--plaster) !important; font-weight: 600; }
.nav-cta:hover { background: var(--clay); color: #fff !important; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--plaster);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--clay); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--plaster); }
.btn-lg { padding: 17px 36px; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Type ---------- */
h1,h2,h3 { letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 .45em; font-weight: 700; }
.display { font-size: clamp(44px, 8vw, 92px); line-height: .98; }
.display .serif-em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
h2.section-title { font-size: clamp(30px, 4.6vw, 54px); }
h3 { font-size: clamp(20px, 2.3vw, 26px); }
.kicker { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.serif { font-family: var(--serif); }
section { padding: 92px 0; }
.section-head { max-width: 66ch; margin-bottom: 48px; }

/* ---------- Hero + Configurator (signature) ---------- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.configurator { }
.wall-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--sage);
  transition: background .6s cubic-bezier(.4,0,.2,1);
  position: relative;
  aspect-ratio: 4 / 3;
}
@media (prefers-reduced-motion: reduce) { .wall-preview { transition: none; } }
.wall-preview .room { position: absolute; inset: 0; }
.wall-preview .swatch-label {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,255,255,.92); color: var(--ink);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.wall-preview .swatch-label .nm { font-weight: 700; font-size: 18px; }
.wall-preview .swatch-label .cd { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.swatch-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.swatch {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  cursor: pointer; padding: 0;
  transition: transform .2s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .swatch { transition: none; } }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Color strip ---------- */
.colorstrip { display: flex; height: 14px; }
.colorstrip span { flex: 1; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Feature list (numbered editorial) */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 74px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 34px; color: var(--accent); font-style: italic; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Products / store ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .product { transition: none; } .product:hover { transform: none; } }
.product .can { height: 190px; display: grid; place-items: center; position: relative; }
.product .can .tin { width: 92px; height: 108px; border-radius: 10px; position: relative; box-shadow: inset 0 -10px 20px rgba(0,0,0,.15), var(--shadow-sm); }
.product .can .tin::before { content: ""; position: absolute; left: 14px; right: 14px; top: 18px; height: 34px; background: rgba(255,255,255,.85); border-radius: 4px; }
.product .can .tin::after { content: ""; position: absolute; left: 50%; top: -8px; width: 60px; height: 12px; transform: translateX(-50%); background: rgba(0,0,0,.18); border-radius: 999px; }
.product .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product .finish { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.product .pname { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.product .pdesc { font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.product .prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.product .price { font-weight: 700; font-size: 24px; }
.product .price small { font-size: 13px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Color catalog ---------- */
.color-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.chip { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm); }
.chip .fill { height: 150px; }
.chip .meta { padding: 16px 18px; }
.chip .meta .nm { font-weight: 700; }
.chip .meta .cd { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.fig { text-align: center; }
.fig .n { font-size: clamp(38px,5vw,60px); font-weight: 700; letter-spacing: -0.03em; }
.fig .l { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Checkout ---------- */
.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary .sh { background: var(--ink); color: var(--plaster); padding: 18px 22px; font-weight: 600; }
.summary .sbody { padding: 22px; }
.line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.line.total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 15px; font-weight: 700; font-size: 21px; color: var(--ink); }
.pay-mark { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.pay-mark span { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--ink-soft); }
.co-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--accent); }
.faq .fbody { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Split / banner ---------- */
.banner { border-radius: var(--radius-lg); overflow: hidden; }
.banner-inner { padding: 74px 54px; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.mailrow { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.mailrow .tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--plaster); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.mailrow a { font-weight: 600; text-decoration: none; }

/* ---------- Legal card ---------- */
.legal-card { background: var(--plaster-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.legal-card h3 { margin-top: 0; }
.legal-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; font-size: 15px; }
.legal-card dt { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.legal-card dd { margin: 0; font-weight: 600; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(24px,3vw,34px); margin-top: 46px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose a { color: var(--clay); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--plaster); }
.footer .wrap { padding: 62px 26px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); margin: 0 0 16px; }
.footer a { color: var(--plaster); text-decoration: none; display: block; margin-bottom: 9px; opacity: .82; font-size: 15px; }
.footer a:hover { opacity: 1; }
.footer .brand-lg { font-weight: 700; font-size: 25px; letter-spacing: -0.02em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer .fine { font-size: 13px; opacity: .62; line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 42px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: .68; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pill { display: inline-block; font-size: 13px; background: var(--plaster-deep); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; margin: 0 6px 8px 0; }
.bleed { background: var(--panel); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .grid-2, .co-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .prod-grid { grid-template-columns: 1fr 1fr; }
  .color-grid { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 62px 0; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--plaster); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { border-radius: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 20px; cursor: pointer; color: var(--ink); }
  .grid-3, .prod-grid, .color-grid, .field-row, .figures { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
}
