/* Olaria Irmãos Rosada - tema escuro único, laranja do logo como única cor de acento.
   Raios: botões e chips em pílula, cards e imagens 16px, campos 12px. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #121110;
  --surface: #1b1917;
  --surface-2: #26221f;
  --line: rgba(243, 238, 232, 0.13);
  --text: #f3eee8;
  --muted: #b9b1a7;
  --accent: #f0a42a;
  --accent-deep: #d18709;
  --accent-light: #f4ae2e;
  --on-accent: #17120c;
  --r-card: 16px;
  --r-field: 12px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent-deep), var(--accent-light));
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(240, 164, 42, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(240, 164, 42, 0.7); }
.btn-ghost { border-color: rgba(243, 238, 232, 0.4); color: var(--text); background: rgba(18, 17, 16, 0.55); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; transition: margin 0.25s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.01em; line-height: 1.15; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: auto;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88dvh, 780px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 17, 16, 0.94) 0%, rgba(18, 17, 16, 0.78) 42%, rgba(18, 17, 16, 0.3) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-copy { max-width: 880px; padding-block: 72px 88px; }
.hero h1 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 20px; font-size: 1.1875rem; color: #d9d2c9; max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { max-width: 62ch; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }

/* Bento de categorias */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; background: var(--surface-2);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 17, 16, 0.92) 0%, rgba(18, 17, 16, 0.2) 62%); }
.tile:hover img { transform: scale(1.05); }
.tile-body { padding: 24px; }
.tile h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.tile p { margin-top: 4px; color: #d9d2c9; font-size: 0.9375rem; }
.section-foot { margin-top: 32px; }

/* Entrega com munck */
.delivery { background: var(--surface); }
.delivery-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.delivery-photos { position: relative; padding-bottom: 56px; }
.delivery-photos .main { border-radius: var(--r-card); aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.delivery-photos .inset {
  position: absolute; right: -24px; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-card); border: 6px solid var(--surface);
}
.facts { margin-top: 36px; }
.note { margin-top: 20px; color: var(--text); font-weight: 600; }
.note a { color: var(--accent); }
.facts div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; color: var(--accent); }
.facts dd { color: var(--muted); }

/* Galeria da fábrica */
.gallery {
  margin-top: 44px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(16px, calc((100vw - var(--wrap)) / 2)) 24px;
  scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2)); scrollbar-color: var(--accent-deep) var(--surface);
}
.gallery.auto { scroll-snap-type: none; scrollbar-width: none; }
.gallery.auto::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 min(78vw, 400px); scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }

/* Orçamento */
.quote { background: var(--surface); }
.quote-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--muted); }
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-weight: 800;
}
.steps strong { color: var(--text); }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); }
.field + .field { margin-top: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }
.field .hint { color: var(--muted); font-size: 0.875rem; margin-top: 6px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-field); border: 1px solid rgba(243, 238, 232, 0.28);
  background: var(--surface); color: var(--text); font: inherit;
}
.field input::placeholder { color: #8f877d; }
.field input:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .error { display: none; margin-top: 6px; color: #ff9d8a; font-size: 0.875rem; font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: #ff9d8a; }
.field.invalid .error { display: block; }
.field .check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; margin: 0; padding: 16px; border: 1px solid rgba(243, 238, 232, 0.28); border-radius: var(--r-field); background: var(--surface); transition: border-color 0.2s; }
.field .check:hover { border-color: var(--accent); }
.field .check input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; height: 24px; min-height: 0; margin-top: 2px; padding: 0; border-radius: 7px; border: 2px solid rgba(243, 238, 232, 0.5); background: transparent; display: grid; place-items: center; cursor: pointer; }
.field .check input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--on-accent); border-bottom: 3px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.15s var(--ease); }
.field .check input:checked { background: var(--accent); border-color: var(--accent); }
.field .check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.field .check:has(input:checked) { border-color: var(--accent); }
.field .check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.field .check strong { display: block; font-size: 0.9375rem; }
.field .check small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.form-card .btn { width: 100%; margin-top: 28px; }

/* Localização */
.place-grid { margin-top: 44px; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.map { border-radius: var(--r-card); overflow: hidden; min-height: 420px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contacts div { padding-block: 16px; border-top: 1px solid var(--line); }
.contacts div:first-child { padding-top: 0; border-top: 0; }
.contacts dt { color: var(--accent); font-weight: 800; font-size: 0.9375rem; }
.contacts dd { margin-top: 4px; color: var(--text); }
.contacts a { text-underline-offset: 3px; }
.contacts .btn { margin-top: 12px; }

/* FAQ */
.faq { margin-top: 40px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 700; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; color: var(--accent); font-size: 1.75rem; font-weight: 500;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 220px; }
.footer-grid h3 { font-size: 0.9375rem; color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* Botão flutuante (celular) */
.float-wa { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; transition: opacity 0.25s, transform 0.25s var(--ease); }
.float-wa.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- Catálogo ---------- */
.page-head { padding-block: 64px 24px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 56ch; font-size: 1.0625rem; }
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(243, 238, 232, 0.28);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cat { padding-top: 56px; }
.cat:last-of-type { padding-bottom: 96px; }
.cat[hidden] { display: none; }
.cat h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.015em; }
.cat > p { margin-top: 6px; color: var(--muted); }
.grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.7s var(--ease); }
.card-media { overflow: hidden; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.125rem; font-weight: 800; }
.card .size { color: var(--accent); font-weight: 700; font-size: 0.9375rem; }
.card .btn { margin-top: auto; }
.card-body .btn { margin-top: 16px; }
.cat .sub { margin-top: 40px; font-size: 1.0625rem; font-weight: 700; color: var(--accent); }
.cat .sub + .grid { margin-top: 16px; }

/* ---------- Movimento (só com JS ativo e sem preferência por menos movimento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-links .btn { margin-top: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2; }
  .tile { aspect-ratio: 1; }
  .delivery-grid, .quote-grid, .place-grid { grid-template-columns: 1fr; }
  .delivery-photos { max-width: 480px; margin-inline: auto; width: 100%; }
  .delivery-photos .inset { right: -8px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-wa { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
  .hero { min-height: 82dvh; }
  .hero::before { background: linear-gradient(0deg, rgba(18, 17, 16, 0.95) 8%, rgba(18, 17, 16, 0.6) 100%); }
  .hero-copy { padding-block: 56px 64px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile:last-child:nth-child(odd) { aspect-ratio: 1; }
}
@media (max-width: 420px) {
  .btn { padding-inline: 22px; }
  .hero-actions .btn { width: 100%; }
}
