/* Expone Mármores e Granitos. Mobile primeiro; desktop a partir de 881px. */

:root {
  /* Cores medidas na logo (ver identidade.md). Laranja só como acento. */
  --accent: #F04C00;
  --ink: #0B0A0A;
  --ink-2: #161514;
  --marble: #F7F7F7;
  --marble-2: #ECEBE8;
  --stone: #8C867E;
  --line-dark: rgba(247, 247, 247, 0.14);
  --line-light: rgba(11, 10, 10, 0.14);
  --muted-light: #B7B2AB;
  --muted-dark: #57534E;

  --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html.is-loading, html.is-loading body { overflow: hidden; height: 100%; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--marble);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, blockquote, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--marble); color: var(--ink); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
/* traço laranja da logo como marcador de seção */
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.eyebrow-dark { color: #6F6A63; }
h1, h2 {
  font-family: var(--f-display);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 9.4vw, 6.4rem); }
h2 { font-size: clamp(2rem, 6vw, 4.4rem); }
.lead { font-size: 1.125rem; color: var(--muted-light); margin-top: 22px; max-width: 34ch; }
.muted-light { color: var(--muted-light); margin-top: 16px; max-width: 46ch; }
.muted-dark { color: var(--muted-dark); margin-top: 16px; max-width: 52ch; }
.pending { color: var(--stone); font-style: italic; }

/* ---------- botões (alvo de toque 48px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s, color 0.35s, border-color 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--marble); color: var(--ink); }
.btn-ghost { border-color: var(--line-dark); color: var(--marble); background: transparent; }
.btn-dark { background: var(--ink); color: var(--marble); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 13px; background: var(--marble); color: var(--ink); }
.btn-xl { min-height: 60px; padding: 0 30px; font-size: 16px; }

@media (hover: hover) {
  .btn-primary:hover { background: transparent; color: var(--marble); box-shadow: inset 0 0 0 1px var(--marble); }
  .btn-ghost:hover { border-color: var(--marble); }
  .btn-dark:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .btn-small:hover { background: transparent; color: var(--marble); box-shadow: inset 0 0 0 1px var(--marble); }
}

/* ---------- tela de carregamento ---------- */
/* a palavra se "lapida" em mármore de baixo para cima; no fim, uma linha de
   corte (cor de disco diamantado) atravessa o centro e a chapa se abre em
   duas metades, revelando o site. */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); overflow: hidden;
}
.preloader-panel {
  position: absolute; left: 0; right: 0; height: 50%;
  background: var(--ink);
  background-image: radial-gradient(circle at 50% 50%, rgba(247, 247, 247, 0.05), transparent 62%);
}
.preloader-panel-top { top: 0; }
.preloader-panel-bottom { bottom: 0; }

.preloader-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px;
}
.preloader-center .eyebrow { justify-content: center; }

.preloader-mark { position: relative; line-height: 1; }
.preloader-mark span {
  display: block;
  font-family: var(--f-display); font-weight: 800; letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 13vw, 6.4rem);
}
.preloader-mark-stroke { color: transparent; -webkit-text-stroke: 1px rgba(247, 247, 247, 0.32); }
.preloader-mark-fill {
  position: absolute; inset: 0;
  clip-path: inset(100% 0 0 0);
  background: linear-gradient(120deg, #fff 0%, #E4E1DA 30%, #fff 48%, #C7C2B6 66%, #fff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: preloader-sheen 2.6s linear infinite;
}
@keyframes preloader-sheen { from { background-position: 0% 0; } to { background-position: -260% 0; } }

.preloader-caption {
  margin-top: 18px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted-light);
}
.preloader-count {
  margin-top: 26px;
  font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--stone); font-variant-numeric: tabular-nums;
}

.preloader-blade {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, #FFD9B8 50%, var(--accent) 82%, transparent 100%);
  box-shadow: 0 0 28px 3px rgba(240, 76, 0, 0.55);
  transform: translateY(-50%) scaleX(0); transform-origin: center;
  pointer-events: none;
}
.preloader-spark {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  background: radial-gradient(circle, #fff 0%, var(--accent) 55%, transparent 75%);
  border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
}

/* ---------- cabeçalho e logo ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  transition: background-color 0.4s, padding 0.4s;
}
.site-header.scrolled { background: rgba(11, 10, 10, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: 10px; padding-bottom: 10px; }

.logo { display: inline-flex; text-decoration: none; line-height: 0; }
.logo img { width: 112px; height: auto; transition: width 0.4s var(--ease); }
.site-header.scrolled .logo img { width: 96px; }

.nav-desk { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  min-height: 44px; min-width: 88px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--marble); border: 1px solid var(--line-dark);
  font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer;
}

.menu-mobile {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px var(--gutter) 32px;
  overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.15;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-dark); min-height: 56px;
  display: flex; align-items: center;
}
.menu-wa { width: 100%; min-height: 56px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 112px var(--gutter) 88px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-wordmark {
  position: absolute; left: 0; right: 0; bottom: -0.16em; z-index: -1;
  text-align: center; pointer-events: none; user-select: none; overflow: hidden;
}
.hero-wordmark span {
  display: inline-block;
  font-family: var(--f-display); font-weight: 800; line-height: 0.8; letter-spacing: 0.02em;
  font-size: min(19vw, 300px);
  color: transparent; -webkit-text-stroke: 1px rgba(247, 247, 247, 0.16);
  white-space: nowrap;
}
.hero-wordmark .ch { display: inline-block; }

.hero-grid { display: grid; gap: 36px; align-items: center; position: relative; }
.hero-copy { position: relative; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.cta-row .btn { width: 100%; }

.hero-photo {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 22px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-light);
  padding: 12px 0; min-height: 44px; display: flex; align-items: center;
}

/* ---------- faixa ---------- */
.band { background: var(--marble); color: var(--ink); overflow: hidden; padding: 16px 0; }
.band-track { display: flex; width: max-content; animation: band 34s linear infinite; }
.band span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 4vw, 2.2rem); text-transform: uppercase;
  letter-spacing: 0.02em; white-space: nowrap; padding-right: 0.9em;
}
.band span::after { content: "•"; margin-left: 0.9em; color: var(--accent); }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: 96px var(--gutter); position: relative; }
.section-dark { background: var(--ink); color: var(--marble); }
.section-light { background: var(--marble); color: var(--ink); }
.section-head { margin-bottom: 40px; }

/* antes e depois */
.ba { max-width: 620px; margin: 0 auto; }
.ba-view {
  position: relative; width: 100%; height: auto; overflow: hidden;
  background: var(--marble-2); aspect-ratio: auto;
  cursor: pointer;
  transition: height 0.8s var(--ease);
}
.ba-view img {
  width: 100%; height: auto; display: block;
  transform-origin: 0 0;
  transition: transform 0.8s var(--ease);
}
.ba-controls {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px;
}
.ba-btn {
  min-height: 52px; border: 1px solid var(--line-light); background: transparent; color: var(--ink);
  font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; border-radius: 999px;
  transition: background-color 0.35s, color 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.ba-btn[aria-pressed="true"] { background: var(--ink); color: var(--marble); border-color: var(--ink); }

/* escadas e pedras */
.split { display: grid; gap: 40px; align-items: center; }
.split-copy h2 { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--muted-light);
}
.section-light .tags li { border-color: var(--line-light); color: var(--muted-dark); }
.btn-dark { margin-top: 28px; }

.frame { position: relative; width: 100%; max-width: 360px; margin: 0 auto; overflow: hidden; background: var(--ink-2); }
.frame-tall { aspect-ratio: 9 / 16; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption {
  position: absolute; left: 14px; bottom: 14px; font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--marble);
  background: rgba(11, 10, 10, 0.72); padding: 8px 12px;
}

/* projetos */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-item { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.05); }
}

/* serviços */
.service-list { border-top: 1px solid var(--line-dark); }
.service-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark);
  transition: color 0.35s, padding 0.35s var(--ease);
}
.service-list .num { font-family: var(--f-display); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; min-width: 26px; }
.service-list .name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 6vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; }
@media (hover: hover) {
  .service-list li:hover { color: var(--stone); padding-left: 12px; }
}

.service-list .desc { color: var(--muted-light); font-size: 1rem; margin-top: 10px; max-width: 58ch; }

/* perguntas frequentes */
.section.faq-section { padding-top: 0; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.faq > div { padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.faq h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.faq p { color: var(--muted-dark); margin-top: 8px; max-width: 70ch; }

/* avaliações */
.rating { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.rating-score { font-family: var(--f-display); font-weight: 800; font-size: clamp(4.5rem, 20vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; }
.rating-label { font-size: 15px; color: var(--muted-dark); }
.quotes { display: grid; gap: 16px; }
.quotes blockquote {
  border-top: 1px solid var(--line-light); padding: 26px 0 0;
}
.quotes p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; }
.quotes cite { display: block; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); margin-top: 16px; }

/* contato */
.contact-head { margin-bottom: 48px; }
.contact-head h2 { margin-top: 0; }
.contact-head .btn { margin-top: 32px; width: 100%; }
.info-grid { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.info-grid > div { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.info-grid dt { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.info-grid dd { font-size: 17px; line-height: 1.5; }
.info-grid dd a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; display: inline-block; min-height: 44px; line-height: 44px; transition: color 0.3s; }
@media (hover: hover) { .info-grid dd a:hover { color: var(--accent); } }
/* dia em cima, horário embaixo: cabe na coluna estreita sem quebrar o horário */
.hours { display: flex; flex-direction: column; }
.hours span { white-space: nowrap; }
.hours span:nth-child(odd) { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); }
.hours span:nth-child(odd):not(:first-child) { margin-top: 10px; }

.contact-map {
  margin-top: 40px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.contact-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  /* mapa no tom do site: escuro e sem cor */
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* rodapé */
.site-footer {
  background: var(--ink); color: var(--muted-light); padding: 48px var(--gutter) 110px;
  border-top: 1px solid var(--line-dark);
  display: grid; gap: 28px;
}
.footer-logo { width: 150px; height: auto; }
.footer-info { font-size: 14px; line-height: 1.7; }
.footer-info a { text-decoration: none; transition: color 0.3s; }
@media (hover: hover) { .footer-info a:hover { color: var(--marble); } }
.footer-copy { margin-top: 10px; font-size: 12px; color: var(--stone); }

/* whatsapp flutuante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; min-width: 56px; padding: 0 18px; border-radius: 999px;
  background: var(--marble); color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.wa-float span { display: none; }
.wa-float:active { transform: scale(0.94); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- entrada (CSS de fallback; o JS anima com GSAP) ---------- */
.eyebrow, h1, .lead, .cta-row { will-change: transform, opacity; }

/* ---------- desktop ---------- */
@media (min-width: 881px) {
  :root { --gutter: 48px; }
  .site-header { padding: 22px var(--gutter); }
  .site-header.scrolled { padding-top: 14px; padding-bottom: 14px; }
  .logo img { width: 136px; }
  .site-header.scrolled .logo img { width: 112px; }
  .nav-desk { display: flex; gap: 28px; }
  .nav-desk a {
    font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; color: var(--muted-light); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center;
    transition: color 0.3s;
  }
  .nav-desk a:hover { color: var(--marble); }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .menu-mobile { display: none !important; }

  .hero { padding: 140px var(--gutter) 120px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-photo { max-width: 440px; margin: 0 0 0 auto; }
  .cta-row { flex-direction: row; }
  .cta-row .btn { width: auto; }
  .lead { font-size: 1.25rem; }
  .hero-wordmark { bottom: -0.34em; }

  .section { padding: 140px var(--gutter); }
  .ba { max-width: 900px; }
  .ba-controls { max-width: 620px; margin: 16px auto 0; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split-rev .split-copy { order: 2; }
  .split-rev .frame { order: 1; }
  .frame, .frame-tall { max-width: 340px; }
  .btn-dark { margin-top: 36px; }

  .quotes { grid-template-columns: 1fr 1fr; gap: 56px; }
  .rating { flex-direction: row; align-items: flex-end; gap: 24px; }
  .rating-label { padding-bottom: 14px; }

  .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .contact-head { margin-bottom: 0; }
  .contact-head .btn { width: auto; }
  .info-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .info-grid > div { border-top: 1px solid var(--line-dark); }
  .contact-map { grid-column: 1 / -1; margin-top: 0; aspect-ratio: 21 / 8; }

  .wa-float { right: 32px; bottom: 32px; }
  .wa-float span { display: inline; }
  /* fundo maior que o botão flutuante do WhatsApp, pra ele não cobrir o texto */
  .site-footer { padding: 56px var(--gutter) 128px; grid-template-columns: auto 1fr; align-items: end; gap: 64px; }
  .footer-info { text-align: right; }
}

@media (min-width: 1600px) {
  h1 { font-size: 7.4rem; }
  .hero-photo { max-width: 500px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
  .ba-view, .ba-view img, .btn, .service-list li, .wa-float { transition: none !important; }
}
