/* UniÓpticas Santa Luzia — Institutional/Tech (UQ-inspired) */

:root {
  /* Brand: corporate red dominant */
  --red: #e10612;
  --red-2: #c00510;
  --red-deep: #8a040c;
  --red-tint: #fce8ea;
  --red-glow: #ffd2d5;
  --red-overlay: rgba(225, 6, 18, 0.92);

  /* Neutrals: institutional clean */
  --ink: #0f1216;
  --ink-2: #1c2128;
  --ink-soft: #3d434c;
  --ink-mute: #6c7280;
  --ink-faint: #aab0b8;
  --line: #e6e8eb;
  --line-2: #d8dbe0;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-2: #eef0f3;
  --surface: #ffffff;

  --online: #16a34a;

  /* Densidade */
  --sec-y: clamp(80px, 9.5vw, 140px);
  --gap-lg: clamp(28px, 3.4vw, 48px);
  --gap-md: clamp(18px, 2vw, 28px);
  --container: 1280px;
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

[data-density="compact"]  { --sec-y: clamp(56px, 6.5vw, 96px);  --gap-lg: clamp(22px,2.6vw,34px); --gap-md: 16px; }
[data-density="cozy"]     { --sec-y: clamp(80px, 9.5vw, 140px); }
[data-density="spacious"] { --sec-y: clamp(112px,13vw,200px); --gap-lg: clamp(40px,4.4vw,72px); --gap-md: clamp(24px,2.6vw,36px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--red);
}
.eyebrow.on-red { color: #fff; }
.eyebrow.on-red::before { background: #fff; }
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-dark::before { background: var(--red); }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 3px; font-weight: 600;
  font-size: 14px; letter-spacing: 0.01em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all .2s ease;
  white-space: nowrap; font-family: var(--font-body);
  text-transform: uppercase;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ghost-red:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--red); border-color: var(--red); }

.btn svg { width: 15px; height: 15px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn.sm { padding: 9px 16px; font-size: 12px; }
.btn.lg { padding: 16px 30px; font-size: 14.5px; }

/* ─────────────── Topbar ─────────────── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; gap: 18px;
}
.topbar .left { display: flex; align-items: center; gap: 10px; }
.topbar .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--online);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.topbar .right { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; }
@media (max-width: 720px) { .topbar .right .hide-sm { display: none; } }
@media (max-width: 480px) {
  .topbar .left span:nth-child(2) { display: none; }
  .topbar .left::after { content: "Atendimento aberto"; font-weight: 500; }
}

/* ─────────────── Header ─────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  position: relative;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.04em;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .n { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand-text .s { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; font-weight: 600;}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 0; position: relative;
  transition: color .15s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px;
  height: 2px; background: var(--red); transition: right .25s ease;
}
.nav a:hover { color: var(--red); }
.nav a:hover::after { right: 0; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 560px) {
  .header .inner { padding: 14px 0; }
  .header .btn { padding: 10px 16px; font-size: 12px; }
}

/* ─────────────── Hero (full-bleed) ─────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 70vh, 760px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr;
}
.hero .bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #1a1f26 0%, #0f1216 100%);
}
.hero .bg image-slot {
  width: 100%; height: 100%; border-radius: 0;
  display: block;
  --is-placeholder-color: rgba(255,255,255,0.45);
  background: transparent;
}
.hero .bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(110deg, var(--red-overlay) 0%, rgba(138,4,12,0.78) 45%, rgba(15,18,22,0.5) 100%),
    linear-gradient(to top, rgba(15,18,22,0.45), transparent 50%);
}
.hero .bg .hex {
  position: absolute; inset: 0; z-index: 2; opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 72' preserveAspectRatio='xMidYMid slice'><path d='M21 0L42 12V36L21 48L0 36V12L21 0Z M63 0L84 12V36L63 48L42 36V12L63 0Z M21 48L42 60V84L21 96L0 84V60L21 48Z M63 48L84 60V84L63 96L42 84V60L63 48Z' fill='none' stroke='white' stroke-width='1'/></svg>");
  background-size: 100px 86px;
}
.hero .inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 8vw, 120px) 0;
  color: #fff;
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding-left: 28px; padding-right: 28px;
}
@media (max-width: 640px) { .hero .inner { padding-left: 18px; padding-right: 18px; } }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero .eyebrow::before { background: #fff; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
  color: #fff;
  text-wrap: balance;
  max-width: 18ch;
}
.hero h1 .line { display: block; }
.hero p.lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero .meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-size: 13px; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 14px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero .meta-pill .stars { color: #ffd166; letter-spacing: 1px; font-size: 12px; }
.hero .meta-pill b { color: #fff; font-weight: 600; }

/* Hero slider dots */
.hero-slider {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.hero-slider button {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.4);
  border: none; padding: 0; cursor: pointer;
  transition: background .2s, width .2s;
}
.hero-slider button.active { background: #fff; width: 44px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-arrow svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* ─────────────── Stat bar (icon-driven) ─────────────── */
.statbar {
  background: var(--ink);
  color: #fff;
  position: relative;
}
.statbar .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.statbar .item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 18px;
}
.statbar .item .ic {
  width: 44px; height: 44px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.statbar .item .ic svg { width: 22px; height: 22px; }
.statbar .item .txt { display: flex; flex-direction: column; }
.statbar .item .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.025em; line-height: 1;
}
.statbar .item .n .u { color: var(--red); }
.statbar .item .l {
  font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px;
  letter-spacing: 0.02em;
}
@media (max-width: 880px) { .statbar .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .statbar .item { padding: 22px 18px; gap: 12px; } .statbar .item .ic { width: 36px; height: 36px; } .statbar .item .n { font-size: 22px; }}

/* ─────────────── Marquee ─────────────── */
.marquee {
  background: var(--red); color: #fff;
  overflow: hidden; padding: 16px 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee .track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee span { display: inline-flex; align-items: center; gap: 56px; }
.marquee .star {
  width: 14px; height: 14px;
  background: #fff;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────── Sections ─────────────── */
.section { padding: var(--sec-y) 0; }
.section.soft { background: var(--bg-soft); }
.section.ink { background: var(--ink); color: #fff; }
.section.red {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section.red::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 72' preserveAspectRatio='xMidYMid slice'><path d='M21 0L42 12V36L21 48L0 36V12L21 0Z M63 0L84 12V36L63 48L42 36V12L63 0Z M21 48L42 60V84L21 96L0 84V60L21 48Z M63 48L84 60V84L63 96L42 84V60L63 48Z' fill='none' stroke='white' stroke-width='1'/></svg>");
  background-size: 120px 104px;
  opacity: 0.08; pointer-events: none;
}
.section.red > * { position: relative; z-index: 1; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: 1.05fr 1fr; }
.split.reverse .col-img { order: -1; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .col-img { order: 0; }
}

.head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.02;
  letter-spacing: -0.025em; margin: 16px 0 20px; color: var(--ink);
  text-wrap: balance;
}
.head h2 .red { color: var(--red); }
.section.ink .head h2 { color: #fff; }
.section.red .head h2 { color: #fff; }
.head p {
  font-size: 16.5px; color: var(--ink-soft); max-width: 60ch; line-height: 1.6;
  margin: 0 0 14px;
}
.section.ink .head p { color: rgba(255,255,255,0.7); }
.section.red .head p { color: rgba(255,255,255,0.92); }
.head p:last-of-type { margin-bottom: 0; }

/* Sobre */
.about-img-block {
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1.2fr 1fr;
  gap: 10px; min-height: 500px;
}
.about-img-block image-slot.main { grid-row: 1 / span 2; }

@media (max-width: 880px) {
  /* No mobile: foto principal em cima (landscape, sem cortar gente),
     duas menores embaixo lado a lado. */
  .about-img-block {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 8px;
  }
  /* Force block display + explicit dimensions so shadow-DOM image-slots
     render predictably on mobile (some browsers misbehave w/ inline-block
     grid items + aspect-ratio). */
  .about-img-block image-slot {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .about-img-block image-slot.main {
    grid-row: 1;
    grid-column: 1 / -1;
    height: 64vw;
    max-height: 320px;
    min-height: 200px;
  }
  .about-img-block image-slot:not(.main) {
    height: 42vw;
    max-height: 210px;
    min-height: 130px;
  }
}
.about-tag {
  position: absolute; left: -16px; bottom: -16px;
  background: var(--red); color: #fff;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 24px 50px -22px rgba(225,6,18,0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.about-tag .y { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.about-tag .l { font-size: 11.5px; color: rgba(255,255,255,0.85); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;}
@media (max-width: 560px) { .about-tag { left: 8px; bottom: 8px; padding: 14px 18px; } .about-tag .y { font-size: 28px; }}

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; max-width: 480px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);}
.about-stats .it {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stats .it .n {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.about-stats .it .n .red { color: var(--red); }
.about-stats .it .l { font-size: 12px; color: var(--ink-mute); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

/* ─────────────── História em imagens — timeline ─────────────── */
.history-strip {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
  position: relative;
}
.history-strip .h-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.history-strip .h-head .ti {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink); max-width: 24ch;
}
.history-strip .h-head .ti .red { color: var(--red); }
.history-strip .h-head .sb {
  font-size: 13px; color: var(--ink-mute); letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.history-strip .h-head .sb::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.history-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.2vw, 22px);
  position: relative;
}
.history-grid::before {
  content: ""; position: absolute;
  left: 5%; right: 5%; top: 64%;
  height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.h-item { position: relative; z-index: 1; display: flex; flex-direction: column; }
.h-item .h-frame {
  width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden; background: #f1ece4;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 24px -16px rgba(60, 25, 15, 0.18);
}
.h-item .h-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform .6s ease;
}
.h-item:hover .h-frame img { transform: scale(1.03); }
.h-item image-slot {
  width: 100%; aspect-ratio: 4 / 5;
  display: block;
}
.h-item:nth-child(even) { margin-top: clamp(20px, 3vw, 44px); }
.h-item .yr-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
}
.h-item .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red);
  flex: 0 0 auto;
}
.h-item .yr {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.h-item .cap {
  margin-top: 6px; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-soft);
}
.h-item.is-now .yr { color: var(--red); }
.h-item.is-now .dot { background: var(--red); }

@media (max-width: 900px) {
  .history-grid { display: none; }
  .history-strip .h-head .ti { font-size: 26px; }
}

/* ─── Mobile history marquee (auto-scroll) ─── */
.history-marquee { display: none; }
@media (max-width: 900px) {
  .history-marquee {
    display: block;
    position: relative;
    overflow: hidden;
    /* full-bleed beyond the wrap padding so cards run edge-to-edge */
    margin-left: -18px;
    margin-right: -18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .history-marquee .hm-track {
    display: flex;
    gap: 12px;
    width: max-content;
    padding: 4px 0 6px;
    animation: hm-scroll 60s linear infinite;
  }
  .history-marquee:hover .hm-track,
  .history-marquee:active .hm-track { animation-play-state: paused; }
  .hm-card {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 4 / 5;
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #f1ece4;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 24px -16px rgba(60, 25, 15, 0.22);
  }
  .hm-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: saturate(0.92) contrast(1.02);
  }
  .hm-card .yr {
    position: absolute; left: 12px; bottom: 10px;
    color: #fff;
    font-family: var(--font-display); font-weight: 700;
    font-size: 22px; letter-spacing: -0.02em; line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
  }
  .hm-card .yr::before {
    content: ""; display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red);
    margin-right: 8px; vertical-align: 3px;
  }
  @keyframes hm-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
  }
}
@media (max-width: 560px) {
  .hm-card { width: 168px; }
  .history-marquee .hm-track { animation-duration: 50s; }
}
@media (prefers-reduced-motion: reduce) {
  .history-marquee .hm-track { animation: none; }
  .history-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .hm-card { scroll-snap-align: start; }
}

/* ─── Memórias — mosaico ─── */
.memories { margin-top: clamp(56px, 6vw, 88px); }
.memories .m-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.memories .m-lbl {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; color: var(--ink);
  line-height: 1; white-space: nowrap;
}
.memories .m-rule {
  height: 1px; background: var(--line); width: 100%;
}
.memories .m-sb {
  font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0.02em;
  max-width: 36ch; line-height: 1.4; text-align: right;
}
.m-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 200px);
  gap: clamp(10px, 1.2vw, 18px);
}
.m-cell {
  position: relative; margin: 0;
  overflow: hidden; background: #f1ece4;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 24px -16px rgba(60, 25, 15, 0.18);
}
.m-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform .6s ease, filter .4s ease;
}
.m-cell:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.m-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(20,8,4,0.78) 0%, rgba(20,8,4,0.45) 55%, rgba(20,8,4,0) 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.m-cell:hover figcaption,
.m-cell:focus-within figcaption { opacity: 1; transform: translateY(0); }
.m-cell.m-tall { grid-row: span 2; }
.m-cell.m-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .m-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(120px, 22vw, 170px); }
  .m-cell.m-wide { grid-column: span 2; }
  .m-cell.m-tall { grid-row: span 2; }
}
@media (max-width: 560px) {
  .memories .m-head { grid-template-columns: 1fr; gap: 8px; }
  .memories .m-rule { display: none; }
  .memories .m-sb { text-align: left; }
  .m-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 38vw, 180px); }
  .m-cell.m-wide { grid-column: span 2; }
  .m-cell.m-tall { grid-row: span 1; }
  .m-cell figcaption { opacity: 1; transform: none; } /* sempre legível em mobile */
}

/* ─────────────── Diferenciais — RED dominant ─────────────── */
.diff-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 880px) { .diff-grid { grid-template-columns: 1fr; } }
.diff {
  background: var(--red);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background .2s ease;
}
.diff:hover { background: var(--red-2); }
.diff .num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: #fff; letter-spacing: -0.01em;
}
.diff .num .hex {
  width: 32px; height: 32px;
  background: #fff; color: var(--red);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.diff h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.018em;
  margin: 6px 0 0; color: #fff;
}
.diff p { color: rgba(255,255,255,0.85); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ─────────────── Pull quote ─────────────── */
.pull-band {
  padding: clamp(56px, 7vw, 100px) 0;
  background: var(--bg-soft);
  text-align: center;
  position: relative;
}
.pull-band .pull {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05;
  color: var(--ink); letter-spacing: -0.025em;
  max-width: 22ch; margin: 0 auto;
  text-wrap: balance;
}
.pull-band .pull .red { color: var(--red); }
.pull-band .att {
  margin-top: 24px; font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}

/* ─────────────── Depoimentos slider ─────────────── */
.testi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); }
.testi-nav { display: flex; gap: 8px; }
.testi-nav button {
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-2);
  background: #fff; cursor: pointer; display: grid; place-items: center;
  transition: all .2s ease;
  color: var(--ink);
}
.testi-nav button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.testi-nav button svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .testi-nav { display: none; } }

.testi-track {
  position: relative; overflow: hidden;
}
.testi-row {
  display: flex; gap: 16px;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.testi {
  background: #fff; border: 1px solid var(--line);
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
}
@media (max-width: 980px) { .testi { flex: 0 0 calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .testi { flex: 0 0 100%; padding: 28px 24px 24px; } }
.testi .qm {
  position: absolute; right: 24px; top: 22px;
  width: 32px; height: 32px;
  background: var(--red-tint); color: var(--red);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1; padding-top: 4px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.testi .stars { color: var(--red); letter-spacing: 2px; font-size: 13px; }
.testi .body {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18.5px; line-height: 1.4; color: var(--ink);
  letter-spacing: -0.012em; flex: 1;
  padding-right: 32px;
}
.testi .body .red { color: var(--red); }
.testi .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.testi .who .av {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.testi .who .nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi .who .ti { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

/* ─────────────── Lojas — 3 cards lado a lado ─────────────── */
.lojas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(36px, 4vw, 52px);
}
@media (max-width: 980px) { .lojas-grid { grid-template-columns: 1fr; } }

.loja-mini {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.loja-mini:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -28px rgba(0,0,0,0.22); border-color: var(--ink-faint); }

.loja-mini .map {
  position: relative; height: 200px;
  background: #e0e3e8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.loja-mini .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loja-mini .pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 3;
}
.loja-mini .pin .bubble {
  background: var(--ink); color: #fff;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
  position: relative; margin-bottom: 6px;
}
.loja-mini .pin .bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--ink);
}
.loja-mini .pin .marker {
  width: 22px; height: 22px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: 0 0 0 5px rgba(225,6,18,0.22), 0 0 0 10px rgba(225,6,18,0.08);
}
.loja-mini .pin .marker svg { width: 11px; height: 11px; }

.loja-mini .body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.loja-mini .loja-badge {
  align-self: flex-start;
  background: var(--bg-soft); color: var(--ink-soft);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.loja-mini .loja-badge.red {
  background: var(--red); color: #fff; border-color: var(--red);
}
.loja-mini h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.022em; line-height: 1.1;
  margin: 0; color: var(--ink);
}
.loja-mini .addr { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.loja-mini .row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft);
}
.loja-mini .row .ic {
  width: 26px; height: 26px;
  background: var(--bg-soft); color: var(--red);
  display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  flex-shrink: 0;
}
.loja-mini .row .ic svg { width: 12px; height: 12px; }
.loja-mini .row b { color: var(--ink); font-weight: 600; }
.loja-mini .actions {
  margin-top: auto; padding-top: 8px;
  display: flex; gap: 8px; align-items: stretch;
}
.loja-mini .actions .btn-red { flex: 1; padding: 12px 14px; font-size: 12.5px; }
.loja-mini .actions .btn-light { flex: 0 0 auto; padding: 12px 14px; }
.loja-mini .actions .btn-light svg { width: 14px; height: 14px; }

/* ─────────────── CTA Final ─────────────── */
.cta-final {
  background: var(--red);
  color: #fff;
  position: relative; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 72' preserveAspectRatio='xMidYMid slice'><path d='M21 0L42 12V36L21 48L0 36V12L21 0Z M63 0L84 12V36L63 48L42 36V12L63 0Z M21 48L42 60V84L21 96L0 84V60L21 48Z M63 48L84 60V84L63 96L42 84V60L63 48Z' fill='none' stroke='white' stroke-width='1'/></svg>");
  background-size: 140px 120px; opacity: 0.1;
}
.cta-final::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 50%, rgba(0,0,0,0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 30%, rgba(255,255,255,0.08), transparent 60%);
}
.cta-final .inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; padding: 0 28px; }
.cta-final h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.0; letter-spacing: -0.03em;
  margin: 18px auto 22px; max-width: 16ch; text-wrap: balance; color: #fff;
}
.cta-final p { color: rgba(255,255,255,0.92); max-width: 52ch; margin: 0 auto 36px; font-size: 17px; }

/* ─────────────── Footer ─────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 80px 0 32px; font-size: 14px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 56px; }
@media (max-width: 880px) { .footer .top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer .top { grid-template-columns: 1fr; } }
.footer h5 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .brand-text .n { color: #fff; }
.footer .brand-text .s { color: rgba(255,255,255,0.5); }
.footer .tag { margin-top: 16px; max-width: 36ch; line-height: 1.55; color: rgba(255,255,255,0.5);}
.footer .bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
@media (max-width: 560px) { .footer .bot { flex-direction: column; align-items: flex-start; } }

/* ─────────────── Brand logos ─────────────── */
.brand-logo {
  height: 46px; width: auto; display: block;
}
.footer .brand-logo { height: 52px; }
@media (max-width: 560px) {
  .brand-logo { height: 38px; }
  .footer .brand-logo { height: 44px; }
}
image-slot {
  display: block; width: 100%; height: 100%;
  background: var(--bg-2);
  --is-placeholder-color: var(--ink-mute);
  overflow: hidden;
}

/* ─────────────── WhatsApp float ─────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 35;
  width: 60px; height: 60px;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.6), 0 0 0 6px rgba(37,211,102,0.12);
  cursor: pointer; transition: transform .2s ease;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ─────────────── Reveal ─────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
