/* ============================================================
   ORYLAB · Site institucional
   Construído sobre o Orylab Design System (tokens oficiais).
   Mobile-first. Sem dependências externas além das fontes.
   ============================================================ */

/* ------------------------------------------------------------
   TOKENS (Orylab Design System · colors_and_type.css)
   ------------------------------------------------------------ */
:root {
  --bone-50:  #F4F2E9;
  --bone-100: #E8E6D8;
  --bone-200: #DAD6C5;
  --bone-300: #C2BCA6;

  --cacau-900: #2F231E;
  --cacau-800: #43312A;
  --cacau-700: #624A41;
  --cacau-600: #54403A;
  --cacau-500: #8A7268;

  --periwinkle-300: #B4C2F0;
  --periwinkle-400: #91A6EB;
  --periwinkle-500: #6E85DE;
  --periwinkle-700: #4A5FB5;

  --tijolo-400: #B4452A;
  --tijolo-500: #892F1A;
  --tijolo-700: #5F1F0E;

  --areia-300: #DCD09A;
  --areia-500: #BDAF62;
  --areia-700: #8A7E3E;

  --bg:          var(--bone-100);
  --bg-elevated: var(--bone-50);
  --bg-inverse:  var(--cacau-700);
  --bg-accent:   var(--periwinkle-400);
  --bg-hot:      var(--tijolo-500);

  --fg:          var(--cacau-700);
  --fg-muted:    var(--cacau-500);
  --fg-on-dark:  var(--bone-100);

  --border:         rgba(98, 74, 65, 0.16);
  --border-strong:  rgba(98, 74, 65, 0.34);
  --border-on-dark: rgba(232, 230, 216, 0.20);

  --font-display: 'Quicksand', 'Trebuchet MS', system-ui, sans-serif;
  --font-sans:    'Sora', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   'Inria Serif', Georgia, serif;
  --font-script:  'Homemade Apple', 'Segoe Script', cursive;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(42, 28, 24, 0.06), 0 1px 1px rgba(42, 28, 24, 0.04);
  --shadow-2: 0 4px 12px rgba(42, 28, 24, 0.08), 0 2px 4px rgba(42, 28, 24, 0.05);
  --shadow-3: 0 12px 32px rgba(42, 28, 24, 0.14), 0 4px 8px rgba(42, 28, 24, 0.06);

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-mid: 240ms;
  --dur-slow: 420ms;

  --header-h: 72px;
}

/* ------------------------------------------------------------
   RESET + BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--periwinkle-400); color: var(--cacau-700); }

:focus-visible {
  outline: 2px solid var(--periwinkle-500);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 880px; }

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ------------------------------------------------------------
   TIPOGRAFIA UTILITÁRIA
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.eyebrow--hot        { color: var(--tijolo-500); }
.eyebrow--periwinkle { color: var(--periwinkle-400); }
.eyebrow--ink        { color: var(--cacau-700); }

h2 {
  font-size: clamp(2.125rem, 5vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}
h2 em {
  font-style: normal;
  color: var(--tijolo-500);
}

.section--dark h2 em,
.cta-final h2 em { color: var(--periwinkle-400); }

.script-note {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--tijolo-500);
  transform: rotate(-3deg);
  display: inline-block;
  margin-top: 28px;
}
.script-note--light { color: var(--periwinkle-300); }

/* Sol-mascote */
.sun {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 4px;
  width: clamp(28px, 4vw, 52px);
  height: auto;
}
.sun--spin { animation: sun-spin 48s linear infinite; }
@keyframes sun-spin { to { transform: rotate(360deg); } }

/* Ícones inline (traço Lucide 1.75) */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--sm { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   BOTÕES — chapados, sem sombra, hover muda a cor (DS)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}
.btn:active { transform: scale(0.97); }

.btn--sm { padding: 10px 18px; font-size: 0.8125rem; border-radius: var(--radius-md); }
.btn--lg { padding: 17px 28px; font-size: 1.0625rem; border-radius: 24px; }

.btn--primary { background: var(--cacau-700); color: var(--bone-100); }
.btn--primary:hover { background: var(--cacau-800); }

.btn--accent { background: var(--periwinkle-400); color: var(--cacau-700); }
.btn--accent:hover { background: var(--periwinkle-300); }

.btn--ghost { background: transparent; color: var(--cacau-700); }
.btn--ghost:hover { background: rgba(98, 74, 65, 0.06); }
.btn--ghost .icon { width: 18px; height: 18px; transition: transform var(--dur-mid) var(--ease-soft); }
.btn--ghost:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--bone-100);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-mid) var(--ease-soft);
}
.header.is-scrolled { box-shadow: var(--shadow-2); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { height: 40px; width: auto; }

.header__nav { display: none; }

.header__cta { display: none; }

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cacau-700);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-soft), opacity var(--dur-mid) var(--ease-soft);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .header__nav {
    display: flex;
    gap: 20px;
  }
  .header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--cacau-700);
    position: relative;
  }
  .header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--periwinkle-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-mid) var(--ease-soft);
  }
  .header__nav a:hover::after { transform: scaleX(1); }

  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}
@media (min-width: 1160px) {
  .header__nav { gap: 32px; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--bone-100);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-mid) var(--ease-soft),
    transform var(--dur-mid) var(--ease-soft),
    visibility 0s linear var(--dur-mid);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--dur-mid) var(--ease-soft),
    transform var(--dur-mid) var(--ease-soft);
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cacau-700);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__cta { align-self: flex-start; }
.mobile-menu__note { margin: 0; }

body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------
   SEÇÕES — ritmo de fundos (regra de ouro do DS)
   ------------------------------------------------------------ */
.section { padding: 88px 0; }

.section--elevated   { background: var(--bone-50); }
.section--white      { background: #FFFFFF; }
.section--periwinkle { background: var(--periwinkle-300); }
.section--accent     { background: var(--periwinkle-400); }
.section--dark       { background: var(--cacau-700); color: var(--bone-100); }

@media (min-width: 900px) {
  .section { padding: 120px 0; }
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__lead {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-top: 20px;
  text-wrap: pretty;
}
.section__lead--left { margin: 20px 0 32px; }

.section--dark .section__lead { color: rgba(232, 230, 216, 0.75); }

.section__cta { text-align: center; margin-top: 56px; }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.625rem, 6.4vw, 6rem);
  line-height: 0.98;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--tijolo-500);
}
.hero__sun { vertical-align: middle; }

.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__facts {
  margin-top: 28px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

/* Etiquetas de roupa (visual do hero) */
.hero__visual {
  position: relative;
  min-height: 360px;
}

.tag {
  position: absolute;
  width: min(62%, 300px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
}
/* costura pontilhada interna */
.tag::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1.5px dashed currentColor;
  border-radius: calc(var(--radius-lg) - 8px);
  opacity: 0.35;
  pointer-events: none;
}
/* furo da etiqueta */
.tag__hole {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bone-100);
  box-shadow: inset 0 1px 2px rgba(42, 28, 24, 0.25);
}

.tag__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.tag__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tag__big .sun { width: 26px; margin-left: 2px; vertical-align: -4px; }

.tag--periwinkle {
  background: var(--periwinkle-400);
  color: var(--cacau-700);
  top: 0;
  left: 4%;
  transform: rotate(-5deg);
  z-index: 3;
}
.tag--areia {
  background: var(--areia-500);
  color: var(--cacau-700);
  top: 30%;
  right: 0;
  transform: rotate(4deg);
  z-index: 2;
}
.tag--cacau {
  background: var(--cacau-700);
  color: var(--bone-100);
  bottom: 0;
  left: 12%;
  transform: rotate(-2deg);
  z-index: 1;
}

.tag:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-3); }

@media (min-width: 900px) {
  .hero { padding: 88px 0 120px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero__visual { min-height: 460px; }
  .tag { width: min(68%, 340px); }
}

/* ------------------------------------------------------------
   MARQUEE — assinatura do site
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
}
.marquee--cacau { background: var(--cacau-700); color: var(--bone-100); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__group {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  line-height: 1;
  white-space: nowrap;
  padding-right: 0.9em;
}
.marquee__group i {
  font-style: normal;
  color: var(--periwinkle-400);
  padding: 0 0.35em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   SERVIÇOS
   ------------------------------------------------------------ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--bone-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.service-card--accent { background: var(--periwinkle-400); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--cacau-700);
  color: var(--bone-100);
  display: grid;
  place-items: center;
}
.service-card__icon .icon { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.375rem;
  line-height: 1.1;
}
.service-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
.service-card--accent p { color: var(--cacau-700); opacity: 0.85; }

@media (min-width: 560px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { min-height: 220px; }
}

/* ------------------------------------------------------------
   POR QUE ORYLAB
   ------------------------------------------------------------ */
.why__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.why__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(70, 47, 41, 0.18);
  align-items: baseline;
}
.why__list li:first-child { border-top: 1px solid rgba(70, 47, 41, 0.18); }

.why__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--tijolo-500);
}
.why__list h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 6px;
}
.why__list p {
  font-size: 1rem;
  color: var(--cacau-500);
}

@media (min-width: 960px) {
  .why__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .why__num { font-size: 2.25rem; }
  .why__list h3 { font-size: 1.625rem; }
}

/* ------------------------------------------------------------
   MATERIAIS
   ------------------------------------------------------------ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.tabs__btn {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  color: var(--cacau-700);
  box-shadow: inset 0 0 0 1.5px var(--cacau-700);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.tabs__btn:hover { background: rgba(98, 74, 65, 0.06); }
.tabs__btn.is-active {
  background: var(--cacau-700);
  color: var(--bone-100);
  box-shadow: none;
}

.material {
  background: var(--bone-100);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: grid;
  gap: 40px;
  box-shadow: var(--shadow-2);
}
.material[hidden] { display: none; }

.material h3 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  margin: 4px 0 16px;
}
.material__text > p:last-child {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.material__props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.material__props li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--cacau-700);
}
.material__props li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--periwinkle-500);
  flex-shrink: 0;
}

.material__tip {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--areia-300);
  color: var(--cacau-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .material {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 48px;
    align-items: center;
  }
}

/* ------------------------------------------------------------
   PRODUTOS
   ------------------------------------------------------------ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.product-card__idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.65;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.product-card--periwinkle      { background: var(--periwinkle-400); color: var(--cacau-700); }
.product-card--tijolo          { background: var(--tijolo-500);     color: var(--bone-100); }
.product-card--areia           { background: var(--areia-500);      color: var(--cacau-700); }
.product-card--cacau           { background: var(--cacau-700);      color: var(--periwinkle-400); }
.product-card--bone            { background: var(--bone-200);       color: var(--cacau-700); }
.product-card--periwinkle-deep { background: var(--periwinkle-700); color: var(--bone-100); }

@media (min-width: 900px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-card { padding: 28px; }
}

/* ------------------------------------------------------------
   CLIENTES — parede de logos sobre branco
   ------------------------------------------------------------ */
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.client-logo {
  flex: 0 0 calc(50% - 6px);
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 16px 20px;
  transition: border-color var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}
.client-logo:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.client-logo img {
  max-height: 44px;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clients__note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

@media (min-width: 640px) {
  .client-logo { flex: 0 0 calc(33.333% - 8px); height: 104px; }
  .client-logo img { max-height: 48px; }
}
@media (min-width: 1024px) {
  .clients__grid { gap: 16px; }
  .client-logo { flex: 0 0 calc(20% - 13px); height: 112px; }
  .client-logo img { max-height: 52px; }
}

/* ------------------------------------------------------------
   CASES — depoimentos (serif de destaque do DS)
   ------------------------------------------------------------ */
.cases__grid {
  display: grid;
  gap: 20px;
}

.case-card {
  margin: 0;
  background: var(--bone-50);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.case-card__mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--tijolo-500);
  margin-top: 12px;
}

.case-card blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--cacau-700);
  flex: 1;
  text-wrap: pretty;
}

.case-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.case-card figcaption strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cacau-700);
}
.case-card figcaption em {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.case-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--bone-100);
  flex-shrink: 0;
}
.case-card__avatar--cacau  { background: var(--cacau-700); }
.case-card__avatar--tijolo { background: var(--tijolo-500); }
.case-card__avatar--areia  { background: var(--areia-700); }

@media (min-width: 900px) {
  .cases__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .case-card { padding: 32px 30px; }
}

.cases__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.cases__grid .reveal:nth-child(3) { transition-delay: 160ms; }

/* ------------------------------------------------------------
   NÚMEROS
   ------------------------------------------------------------ */
.section--accent .eyebrow { color: var(--cacau-700); }

.stats__grid {
  display: grid;
  gap: 8px;
}

.stat {
  padding: 28px 0;
  border-top: 2px solid var(--cacau-700);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cacau-700);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}
.stat__sub {
  font-size: 0.9375rem;
  opacity: 0.78;
}

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .stat { padding: 28px 24px 0 0; }
}

/* ------------------------------------------------------------
   SOBRE
   ------------------------------------------------------------ */
.about__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.about__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  order: 2;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
/* scrim funcional para legibilidade da legenda sobre a foto */
.about__visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(to top, rgba(47, 35, 30, 0.62), transparent);
  pointer-events: none;
}
.about__caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--bone-100);
  opacity: 0.95;
  letter-spacing: 0.04em;
}

.about__content { order: 1; }

.about__content h2 { margin-bottom: 24px; }

.about__body {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 540px;
  text-wrap: pretty;
}
.about__body + .about__body { margin-top: 14px; }

.about__purpose {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--cacau-700);
  color: var(--bone-100);
}
.about__purpose .eyebrow { margin-bottom: 14px; }
.about__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.about__quote em {
  font-style: normal;
  color: var(--periwinkle-400);
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about__visual { order: 1; }
  .about__visual img { aspect-ratio: 4 / 5; }
  .about__content { order: 2; }
}

/* ------------------------------------------------------------
   PROCESSO
   ------------------------------------------------------------ */
.process__list {
  display: grid;
  counter-reset: passo;
}

.process__list li {
  padding: 28px 0;
  border-bottom: 1px dashed var(--border-on-dark);
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: baseline;
}
.process__list li:last-of-type { border-bottom: 0; }

.process__num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--periwinkle-400);
  letter-spacing: -0.02em;
}
.process__list h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.process__list p {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.75;
}

@media (min-width: 1024px) {
  .process__list {
    grid-template-columns: repeat(5, 1fr);
  }
  .process__list li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 22px;
    border-bottom: 0;
    border-right: 1px dashed var(--border-on-dark);
  }
  .process__list li:last-of-type { border-right: 0; }
  .process__num { font-size: 4.5rem; }
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { border-bottom: 1px solid var(--border); }

.faq__item { border-top: 1px solid var(--border); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--cacau-700);
}
.faq__q > span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.2;
}

.faq__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bone-200);
  flex-shrink: 0;
  transition: background var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
}
.faq__toggle::before,
.faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cacau-700);
  border-radius: 1px;
  transition: background var(--dur-mid) var(--ease-soft);
}
.faq__toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__toggle::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }

.faq__q[aria-expanded="true"] .faq__toggle {
  background: var(--cacau-700);
  transform: rotate(45deg);
}
.faq__q[aria-expanded="true"] .faq__toggle::before,
.faq__q[aria-expanded="true"] .faq__toggle::after { background: var(--bone-100); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-soft);
}
.faq__a > p {
  overflow: hidden;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 720px;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 24px; }

/* ------------------------------------------------------------
   CTA FINAL
   ------------------------------------------------------------ */
.cta-final {
  background: var(--tijolo-500);
  color: var(--bone-100);
  padding: 88px 0;
  text-align: center;
}
.cta-final h2 { margin-bottom: 18px; }
.cta-final__sub {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.cta-final .script-note { display: block; margin-top: 32px; transform: rotate(-2deg); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--cacau-700);
  color: var(--bone-100);
}

.footer__grid {
  padding-top: 64px;
  padding-bottom: 40px;
  display: grid;
  gap: 40px;
}

.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.65;
  max-width: 320px;
}

.footer__col .eyebrow { margin-bottom: 16px; }
.footer__col ul {
  display: grid;
  gap: 10px;
}
.footer__col li,
.footer__col a,
.footer__plain {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--bone-100);
  opacity: 0.8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  border-top: 1px solid var(--border-on-dark);
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.5;
}

@media (min-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
}

/* ------------------------------------------------------------
   BOTÃO FLUTUANTE WHATSAPP
   ------------------------------------------------------------ */
.whats-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--cacau-700);
  color: var(--bone-100);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity var(--dur-mid) var(--ease-soft),
    transform var(--dur-mid) var(--ease-bounce),
    background var(--dur-fast) var(--ease-soft);
}
.whats-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.whats-float:hover { background: var(--cacau-800); }
.whats-float .icon { width: 20px; height: 20px; color: var(--periwinkle-400); }

@media (max-width: 560px) {
  .whats-float span { display: none; }
  .whats-float { padding: 14px; }
}

/* ------------------------------------------------------------
   REVEAL ON SCROLL (fade + translateY 12px, DS)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-slow) var(--ease-soft),
    transform var(--dur-slow) var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger sutil em grades */
.services__grid .reveal:nth-child(2n) { transition-delay: 60ms; }
.services__grid .reveal:nth-child(3n) { transition-delay: 100ms; }
.products__grid .reveal:nth-child(2n) { transition-delay: 60ms; }
.products__grid .reveal:nth-child(3n) { transition-delay: 100ms; }
.stats__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.stats__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.why__list .reveal:nth-child(2) { transition-delay: 60ms; }
.why__list .reveal:nth-child(3) { transition-delay: 120ms; }
.why__list .reveal:nth-child(4) { transition-delay: 180ms; }
.process__list .reveal:nth-child(2) { transition-delay: 60ms; }
.process__list .reveal:nth-child(3) { transition-delay: 120ms; }
.process__list .reveal:nth-child(4) { transition-delay: 180ms; }
.process__list .reveal:nth-child(5) { transition-delay: 240ms; }

/* ------------------------------------------------------------
   ACESSIBILIDADE — movimento reduzido
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun--spin { animation: none; }
  .marquee__track { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   GALERIA — peças em movimento (fotos reais de produção)
   ------------------------------------------------------------ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  background: var(--bone-50);
  transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}
.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.gallery__grid .reveal:nth-child(2n) { transition-delay: 60ms; }
.gallery__grid .reveal:nth-child(3n) { transition-delay: 100ms; }
.gallery__grid .reveal:nth-child(4n) { transition-delay: 140ms; }

@media (min-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* ------------------------------------------------------------
   AJUSTES MOBILE / iOS
   Notch e home indicator (safe-area), toque e zoom do Safari.
   ------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a, button, summary {
  -webkit-tap-highlight-color: rgba(98, 74, 65, 0.14);
}

/* Respeita o recorte da tela (notch) em retrato e paisagem */
.container {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
@media (min-width: 768px) {
  .container {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}

/* Botão flutuante acima da barra de gestos do iPhone */
.whats-float {
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Menu mobile: respiro para o notch e rolagem contida */
.mobile-menu {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* iOS ignora overflow:hidden no body; travar de fato com position fixed
   (a posição da rolagem é guardada e restaurada pelo main.js) */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
