/*
Theme Name: Elemental Revestimentos
Theme URI: https://www.elementalrevestimentos.com
Author: Elemental Revestimentos
Description: Tema do site da Elemental Revestimentos: revestimentos minerais e peças especiais. Responsivo para computador e celular.
Version: 1.6.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: elemental
*/

:root {
  --bg: #F5F2EC;
  --bg-2: #E9E3D8;
  --bg-3: #EEE9E0;
  --ink: #26231F;
  --ink-2: #3A362F;
  --muted: #4A453E;
  --muted-2: #5A554D;
  --line: #CFC7B9;
  --chip: #B9AE9C;
  --accent: #8A5E22;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 40px 0; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }
.bg-dark { background: var(--ink); color: var(--bg); }

.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.h1 { font-size: clamp(48px, 8vw, 80px); line-height: .95; }
.h2 { font-size: clamp(34px, 5vw, 52px); }
.h3 { font-size: clamp(28px, 3.6vw, 44px); }
.lead { font-size: clamp(16px, 2vw, 18px); line-height: 1.7; color: var(--ink-2); }
.text { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 18px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* Cabeçalho */
.site-header { background: var(--bg); border-bottom: 1px solid #DDD5C8; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; max-width: 1320px; }
.logo { flex: none; display: block; }
.logo img { height: 44px; width: auto; max-width: none; aspect-ratio: 768 / 250; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a.is-active { border-bottom-color: var(--accent); }
.header-cta { font-size: 14px; min-height: 44px; padding: 0 20px; }
.header-parceiro { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.header-parceiro.is-active { border-bottom-color: var(--accent); }
@media (max-width: 1439px) and (min-width: 1241px) { .main-nav ul { gap: 14px; } .header-cta { padding: 0 14px; } .site-header .wrap { gap: 14px; } }
.main-nav a, .header-cta { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }
.menu-toggle svg { display: block; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta, .header-parceiro { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid #DDD5C8; padding: 8px 24px 24px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { min-height: 52px; font-size: 16px; width: 100%; border-bottom: 0; }
  .main-nav a.is-active { color: var(--accent); }
  .main-nav .nav-cta { display: flex; margin-top: 20px; }
  .logo img { height: 38px; }
}
@media (min-width: 1241px) { .main-nav .nav-cta { display: none; } }

/* Hero da página inicial */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; background: #3A362F; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(24, 21, 17, .45); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 120px; }
.hero h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; max-width: 760px; margin-bottom: 20px; }
.hero p { font-size: clamp(16px, 2vw, 18px); max-width: 600px; margin-bottom: 28px; }
.hero .eyebrow { color: #fff; }

/* Diferenciais */
.difs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.dif { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dif-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); min-width: 36px; }
.dif strong { display: block; font-size: 16px; margin-bottom: 4px; }
.dif span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Títulos de seção com texto ao lado */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head p { max-width: 440px; font-size: 15px; color: var(--muted); }

/* Cartões */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.card img { width: 100%; height: 360px; object-fit: cover; }
.card .card-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.card .card-text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.card .card-meta { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.cards--small .card img { height: 240px; }
.cards--small .card-title { font-size: 28px; }
.cards--pecas .card img { height: 320px; }
.cards--pecas .card-title { font-family: var(--sans); font-size: 16px; font-weight: 600; }

/* Blocos de imagem + texto */
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split--reverse { flex-wrap: wrap-reverse; }
.split-img { width: 100%; height: 540px; object-fit: cover; }

/* Página de linha */
.page-hero { width: 100%; height: 560px; object-fit: cover; }
.crumbs { font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.crumbs a { color: var(--muted-2); }
.crumbs strong { color: var(--ink); }
.intro { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; align-items: flex-start; }
.intro-text { flex: 999 1 520px; min-width: 0; }
.specs { flex: 1 1 340px; min-width: 0; background: var(--bg-2); padding: 28px 28px 12px; }
.specs h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.specs dl { margin: 0; }
.specs .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.formato { position: relative; width: 100%; max-width: 600px; aspect-ratio: 600 / 340; }
.formato img { position: absolute; left: 1.67%; top: 2.94%; width: 86%; height: 82.9%; object-fit: contain; }
.formato svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--chip); font-size: 14px; font-weight: 600; }

/* Seletor de cores */
.picker { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.picker-viewer { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--bg-2); }
.picker-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform 6s ease; }
.picker-img.is-hidden { opacity: 0; }
.picker-viewer:hover .picker-img:not(.is-hidden) { transform: scale(1.06); }
.picker-plate { position: absolute; left: 20px; bottom: 20px; background: rgba(245, 242, 236, .94); padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.picker-plate-name { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; }
.picker-plate-meta { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.picker-info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.picker-current { border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.picker-name { font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); font-weight: 500; line-height: .95; }
.picker-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 5px 10px; }
.picker-avail { font-size: 14px; color: var(--ink-2); }
.picker-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
.picker-chip { font: inherit; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); }
.picker-dot { width: 64px; height: 64px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(38, 35, 31, .14); outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .2s, transform .2s; }
.picker-chip:hover .picker-dot { transform: translateY(-2px); }
.picker-chip[aria-pressed="true"] .picker-dot { outline-color: var(--ink); }
.picker-chip:focus-visible { outline: none; }
.picker-chip:focus-visible .picker-dot { outline-color: var(--accent); }
.picker-label { font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; }
.picker-chip[aria-pressed="true"] .picker-label { color: var(--accent); }
.picker-cta { align-self: flex-start; }
@media (max-width: 860px) {
  .picker { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .picker-viewer { aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  .picker-chips { gap: 16px 6px; }
  .picker-dot { width: 56px; height: 56px; }
  .picker-plate { left: 12px; bottom: 12px; min-width: 0; padding: 10px 14px 8px; }
  .picker-plate-name { font-size: 26px; }
  .picker-cta { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .picker-img, .picker-dot { transition: none; }
  .picker-viewer:hover .picker-img:not(.is-hidden) { transform: none; }
}

/* Página de cuba */
.cuba-desenho { width: 100%; max-width: 520px; height: auto; justify-self: center; }
.nota-artesanal { background: var(--bg-2); padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.nota-artesanal strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.gallery--tall img { height: 620px; }
.cuba-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; align-items: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--bg); padding: 10px; max-width: 460px; }
.cuba-mini img { grid-row: span 2; width: 120px; height: 120px; object-fit: cover; }
.cuba-mini span { font-size: 13px; color: var(--muted); }
.cuba-mini strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; }
@media (max-width: 640px) { .gallery--tall img { height: 440px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 440px; object-fit: cover; }

/* Formatos da Romana */
.formatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; margin-top: 40px; }
.formatos svg { width: 240px; max-width: 100%; height: auto; }
.formatos rect { fill: var(--bg); stroke: #8A7F70; stroke-width: 1; }
.formatos strong { display: block; font-size: 16px; margin-top: 10px; }
.formatos span { display: block; font-size: 14px; color: var(--muted); }
.scale { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

/* Linha do tempo */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.timeline div { border-top: 2px solid var(--ink); padding-top: 16px; }
.timeline strong { display: block; font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; margin-bottom: 8px; }
.timeline span { font-size: 15px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); margin-top: 32px; }
.features div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.features strong { display: block; font-size: 17px; margin-bottom: 6px; }
.features span { font-size: 15px; color: var(--ink-2); }

/* Faixa de chamada */
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 12px; }
.cta-band p { color: #D9D2C6; max-width: 640px; }

/* Contato */
.contact-list { border-top: 1px solid var(--line); margin-top: 8px; }
.contact-list > * { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 16px; }
.contact-list span:first-child { color: var(--muted); }
.contact-list span:last-child { font-weight: 600; }
.form { background: var(--bg-2); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form h2 { font-size: 36px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .row label { flex: 1 1 200px; min-width: 0; }
.form input, .form select, .form textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--chip); background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); border-radius: 0; width: 100%; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.form small { font-size: 13px; color: var(--muted); font-weight: 400; }
.revendas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.revenda { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.revenda .city { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.revenda strong { font-size: 18px; }
.revenda span { font-size: 14px; color: var(--ink-2); }

/* Rodapé */
.site-footer { background: var(--bg-2); padding: 64px 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-cols h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; font-size: 14px; }
.footer-cols a { text-decoration: none; }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted-2); }

/* Conteúdo padrão do WordPress (páginas sem modelo próprio) */
.entry { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.entry h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 24px; }
.entry img { margin: 24px 0; }

/* Celular */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero .wrap { padding-bottom: 48px; }
  .hero .btns .btn { flex: 1 1 100%; }
  .page-hero { height: 340px; }
  .card img { height: 280px; }
  .split-img { height: 380px; }
  .gallery img { height: 320px; }
  .specs { padding: 24px 20px 8px; }
  .form { padding: 24px 20px; }
  .formatos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .formatos strong { font-size: 15px; }
  .formatos span { font-size: 13px; }
}
.cuba-minis { display: flex; flex-direction: column; gap: 10px; }
