/*
  FILOHANA
  Página única, sem framework.
  Para pequenas alterações visuais, comece pelas variáveis abaixo.
*/
:root {
  --cream: #f4eee6;
  --cream-2: #ebe1d6;
  --paper: #fffaf4;
  --white: #ffffff;
  --gold: #ad7f49;
  --gold-dark: #875c31;
  --gold-light: #d8b98f;
  --brown: #5a331f;
  --brown-2: #744627;
  --ink: #3c3028;
  --muted: #6f655d;
  --line: #dfcdb7;
  --green: #25d366;
  --shadow: 0 14px 45px rgba(73, 48, 29, .11);
  --radius: 14px;
  --radius-lg: 26px;
  --container: 1280px;
  --body-size: 16px; /* nunca reduzir o texto padrão abaixo de 16px */
  --title-fade-duration: 2.16s; /* V15: pode ser alterado pelo painel */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; font-size: 1rem; }
h1,h2,h3 { margin: 0; color: var(--brown); }
h1,h2 { font-family: var(--serif); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(3.8rem, 6.1vw, 6.3rem); }
h2 { font-size: clamp(2.5rem, 3.6vw, 4.2rem); }
h3 { font-family: var(--sans); font-size: 1.05rem; line-height: 1.25; }
button, input, textarea, select { font: inherit; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section-cream { background: var(--cream); }
.section-white { background: var(--paper); }
.section-soft { background: #f0e7dd; }
.eyebrow {
  margin-bottom: .65rem;
  color: var(--gold-dark);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,250,244,.95);
  border-bottom: 1px solid rgba(173,127,73,.18);
  backdrop-filter: blur(12px);
}
.header-inner { height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: block; text-decoration: none; }
.brand img { width: 178px; height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -9px;
  height: 2px; background: var(--gold);
  transition: right .2s ease;
}
.main-nav a:hover::after { right: 0; }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; }

/* Botões */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,49,22,.13); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #99672f); color: white; }
.btn-outline { border-color: var(--gold); background: rgba(255,255,255,.55); color: var(--gold-dark); }
.btn-whatsapp { background: var(--green); color: #fff; }
.contact-actions .fa-brand-icon { width: 19px; height: 19px; fill: currentColor; stroke: none; flex: 0 0 auto; }
.btn-whatsapp .fa-brand-icon { width: 21px; height: 21px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button-row.compact { gap: 10px; margin-top: 20px; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch; }
.hero-copy { align-self: center; padding: 92px 60px 92px 0; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy p { max-width: 680px; color: #5e544c; }
.hero-art {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #eadfd2;
  border-bottom-left-radius: 58px;
}

/* Os três grandes quadrantes do layout usam UMA única imagem cada.
   Envie a arte/foto já composta pelo painel /admin/. */
.image-quadrant {
  position: relative;
  overflow: hidden;
}
.quadrant-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Segunda faixa */
.split-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.photo-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #eadfd2;
}
.photo-stage .quadrant-image { position: absolute; inset: 0; }
.feature-copy { padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.feature-copy h2 { max-width: 560px; margin-bottom: 22px; }
.diamond-list { list-style: none; padding: 0; margin: 0 0 18px; }
.diamond-list li { position: relative; padding-left: 30px; margin: 10px 0; font-size: 1rem; }
.diamond-list li::before { content: "◆"; position: absolute; left: 2px; top: -.04em; color: var(--gold); font-size: .8em; }
.strong-copy { font-weight: 700; color: var(--brown-2); }

/* Cards */
.why { padding: 58px 0 72px; }
.center-title { text-align: center; margin-bottom: 34px; }
.benefit-grid { display: grid; gap: 18px; }
.benefit-grid-4 { grid-template-columns: repeat(4, 1fr); }
.benefit-grid-5 { grid-template-columns: repeat(5, 1fr); }
.benefit-grid-6 { grid-template-columns: repeat(6, 1fr); }
.info-card, .school-card {
  min-width: 0;
  padding: 26px 22px;
  text-align: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(173,127,73,.16);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(83,55,32,.045);
}
.info-card h3, .school-card h3 { margin: 14px 0 10px; color: var(--brown); }
.info-card p, .school-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.icon-circle {
  width: 58px; height: 58px; margin-inline: auto;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: #fff;
}
.icon-circle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Muitas possibilidades e produtos prontos */
.many { padding: 0; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; }
.editorial-copy { padding: 58px 46px 56px 0; }
.editorial-copy h2, .ready-panel h2 { margin-bottom: 14px; }
.mini-gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 24px; }
.mini-gallery div { height: 150px; display: grid; place-items: center; background: #fff9f2; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mini-gallery img { width: 120%; max-width: none; height: 120%; object-fit: contain; }
.ready-panel { position: relative; overflow: hidden; padding: 58px 0 34px 46px; border-left: 1px solid var(--line); }
.ready-panel h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--brown); margin-top: 12px; }
.ready-products { display: flex; align-items: flex-end; gap: 0; height: 185px; overflow: hidden; margin-top: 18px; }
.ready-products img { width: 34%; height: 210px; object-fit: contain; margin-inline: -2%; filter: drop-shadow(0 12px 16px rgba(65,38,20,.14)); }

/* Massa Filo */
.massa { padding: 0 0 64px; }
.massa-top { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 450px; align-items: stretch; }
.massa-image {
  min-height: 450px;
  position: relative;
  overflow: hidden;
  background: #eadfd2;
  border-bottom-right-radius: 48px;
}
.massa-image .quadrant-image { position: absolute; inset: 0; }
.massa-copy { padding: 72px 0 60px 62px; align-self: center; }
.massa-copy h2 { max-width: 710px; margin-bottom: 20px; }
.massa-benefits { margin-top: -28px; position: relative; z-index: 2; }
.compact-card { padding: 20px 15px; }
.compact-card .icon-circle { width: 50px; height: 50px; }
.compact-card .icon-circle svg { width: 25px; height: 25px; }
.applications { margin-top: 52px; }
.applications h2 { font-size: clamp(2.2rem,3vw,3.3rem); margin-bottom: 8px; }
.application-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 14px; }
.application-row strong, .application-row span { padding: 8px 13px; border-radius: 7px; font-size: .88rem; line-height: 1.2; }
.application-row strong { color: #fff; background: var(--gold-dark); }
.application-row span { background: #fff; border: 1px solid #eadbca; color: #64574d; }

/* Produtos — V9
   Grade fixa de 3 colunas no desktop, com imagem e texto sempre separados. */
.products { padding: 70px 0; }
.section-heading-row { margin-bottom: 28px; }
.section-heading-row h2 { max-width: 1000px; margin-bottom: 18px; }
.section-heading-row p:last-child { max-width: 1150px; }
.products .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.products .product-grid .product-card:nth-child(7) { grid-column: 2; }
.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(173,127,73,.20);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(83,55,32,.045);
}
.product-photo {
  width: 100%;
  height: 235px;
  flex: 0 0 235px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(145deg,#f6ecdf,#fffaf4);
  border-bottom: 1px solid rgba(173,127,73,.14);
}
.product-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.product-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
}
.product-card h3 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--brown);
  font-size: 1.08rem;
  line-height: 1.25;
}
.product-card p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}
.personalize-box { margin-top: 22px; display: block; padding: 18px 22px; border: 1px solid #d7bb98; border-radius: 10px; background: rgba(255,250,244,.72); }
.personalize-box h3 { font-family: var(--serif); font-size: 2rem; margin-bottom: 2px; }
.personalize-box p { margin: 0; }

/* Escola */
.school { padding: 70px 0 54px; }
.school-heading { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.school-heading h2 { max-width: 930px; margin-bottom: 16px; }
.school-grid { margin-top: 30px; }
.school-card { padding: 22px 14px; }
.school-card .icon-circle { width: 46px; height: 46px; background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.school-card .icon-circle svg { width: 26px; height: 26px; }
.school-quote { margin-top: 18px; padding: 13px 20px; text-align: center; border: 1px solid var(--gold-light); border-radius: 8px; color: var(--brown); background: var(--cream); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }

/* Empresas */
.business { padding: 64px 0 62px; }
.business-heading h2 { max-width: 1080px; margin-bottom: 12px; }
.business-cards { margin-top: 24px; }
.business-cards .info-card { text-align: left; }
.business-cards .icon-circle { margin-inline: 0; }
.business-flow { margin-top: 36px; }
.business-flow h3 { font-family: var(--serif); font-size: 2.25rem; margin-bottom: 18px; }
.flow-grid { position: relative; display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.flow-grid::before { content: ""; position: absolute; left: 6%; right: 6%; top: 21px; height: 1px; background: var(--gold-light); }
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-step > span { width: 42px; height: 42px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-dark); color: #fff; font-weight: 700; }
.flow-step strong { display: block; margin-bottom: 6px; color: var(--brown); }
.flow-step p { margin: 0; font-size: 1rem; color: var(--muted); }
.center-button { margin-top: 28px; text-align: right; }

/* Compra + contato */
.buy-contact { padding: 60px 0; }
.buy-contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; }
.buy-block h2, .contact-block h2 { margin-bottom: 14px; }
.buy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.buy-card { min-height: 180px; padding: 22px; display: flex; flex-direction: column; justify-content: center; border-radius: 10px; text-decoration: none; background: rgba(255,255,255,.72); border: 1px solid #e5d4c0; transition: transform .2s ease, box-shadow .2s ease; }
.buy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.buy-card.featured { background: linear-gradient(145deg, var(--gold), #996932); color: #fff; border-color: transparent; }
.buy-card strong { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.buy-card span:last-child { font-size: .86rem; opacity: .82; }
.contact-list { margin-top: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-number { margin-top: 14px; color: var(--muted); }

/* Rodapé V15: sem menu, com crédito editável pelo painel. */
.site-footer { background: #6f431f; color: #f8efe6; }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand img { width: 168px; filter: brightness(0) invert(1); opacity: .95; }
.footer-meta { margin-left: auto; text-align: right; display: grid; gap: 5px; }
.footer-meta p { margin: 0; font-size: .78rem; opacity: .82; }
.footer-credit a { color: #fff8ef; text-decoration: none; border-bottom: 1px solid rgba(255,248,239,.35); }
.footer-credit a:hover { border-bottom-color: currentColor; }

/* Responsividade */
@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .75rem; }
  .header-cta { display: none; }
  .benefit-grid-6 { grid-template-columns: repeat(3,1fr); }
  .benefit-grid-5 { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 34px, var(--container)); }
  .header-inner { height: 76px; }
  .brand img { width: 150px; height: 50px; }
  .nav-toggle { margin-left: auto; display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--gold); border-radius: 7px; background: transparent; color: var(--gold-dark); font-weight: 700; }
  .main-nav { display: none; position: absolute; left: 17px; right: 17px; top: 70px; padding: 20px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 1rem; padding: 8px 0; }

  .hero-grid, .split-feature, .two-column, .massa-top, .buy-contact-grid, .school-heading { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px 0 44px; }
  .hero-art { min-height: 520px; border-bottom-left-radius: 0; border-radius: 24px 24px 0 0; }
  .split-feature { display: flex; flex-direction: column; }
  /* V15: no mobile, o texto de “Vendemos possibilidades” aparece antes da segunda foto. */
  .split-feature .feature-copy { order: 1; }
  .split-feature .photo-stage { order: 2; }
  .photo-stage { min-height: 430px; }
  .feature-copy { padding: 54px 24px; }
  .editorial-copy { padding: 52px 0 36px; }
  .ready-panel { padding: 48px 0 34px; border-left: 0; border-top: 1px solid var(--line); }
  .massa-copy { padding: 50px 0; }
  .massa-benefits { margin-top: 20px; }
  .benefit-grid-4 { grid-template-columns: repeat(2,1fr); }
  .benefit-grid-5 { grid-template-columns: repeat(2,1fr); }
  .products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products .product-grid .product-card:nth-child(7) { grid-column: auto; }
  .product-photo { height: 220px; flex-basis: 220px; }
  .flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-grid::before { display: none; }
  .flow-step { display: grid; grid-template-columns: 42px 110px 1fr; gap: 12px; text-align: left; align-items: center; }
  .flow-step > span { margin: 0; }
  .flow-step strong, .flow-step p { margin: 0; }
  .center-button { text-align: left; }
  .buy-contact-grid { gap: 56px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 28px 0; }
  .footer-meta { margin-left: 0; text-align: center; }
}

@media (max-width: 620px) {
  :root { --body-size: 16px; }
  .container { width: min(100% - 28px, var(--container)); }
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-grid { min-height: 0; }
  .hero-art { min-height: 380px; }
  .button-row .btn { width: 100%; }
  .benefit-grid-4, .benefit-grid-5, .benefit-grid-6, .buy-grid { grid-template-columns: 1fr; }
  .products .product-grid { grid-template-columns: 1fr; }
  .products .product-grid .product-card:nth-child(7) { grid-column: auto; }
  .mini-gallery { grid-template-columns: repeat(2,1fr); }
  .mini-gallery div { height: 145px; }
  .ready-products { height: 160px; }
  .ready-products img { height: 180px; }
  .massa-image { min-height: 320px; }
  .applications { margin-top: 38px; }
  .application-row strong { flex: 0 0 100%; }
  .product-photo { height: 230px; }
  .product-photo img { width: 100%; height: 100%; }
  .school-heading .btn { width: 100%; }
  .flow-step { grid-template-columns: 42px 90px 1fr; }
}




/* =========================================================
   V15 — FADE DOS TÍTULOS
   O JavaScript só adiciona .title-reveal quando está ativo.
   Se o JS falhar, os títulos continuam visíveis normalmente.
   ========================================================= */
.title-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--title-fade-duration) cubic-bezier(.22,1,.36,1), transform var(--title-fade-duration) cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.title-reveal.title-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botão de topo igual ao painel administrativo */
.site-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font: 700 24px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(70,45,27,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
  z-index: 120;
}
.site-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-to-top:hover { background: var(--gold-dark); }
.site-to-top:focus-visible { outline: 3px solid rgba(173,127,73,.35); outline-offset: 3px; }
