/* ============================================
   ÓTICAS GUIMAR — Design System
   Mobile First | Editorial Minimalista
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&family=Nunito:wght@400;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-red: #600000;
  --color-black: #111111;
  --color-graphite: #3C3C3C;
  --color-cream: #F8F8F6;
  --color-cream-card: #EFEFED;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DAE54;
  --color-divider: #E8E2DA;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-xxl: 120px;

  --radius-card: 12px;
  --radius-btn: 8px;

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --header-height: 72px;
  --max-width: 1100px;
  --pad-mobile: 20px;
  --pad-tablet: 32px;
  --pad-desktop: 40px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-cream);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
}

.section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 0;
}

/* ============================================
   CATEGORY TAG
   ============================================ */

.category-tag {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-whatsapp);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: var(--color-whatsapp-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-red);
  color: var(--color-white);
}

/* WhatsApp Floating Button */
.btn-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-float:hover,
.btn-whatsapp-float:focus-visible {
  background: var(--color-whatsapp-hover);
  transform: scale(1.05);
}

.btn-whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-divider);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
  height: calc(var(--header-height) - 10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

/* Hamburger button */
.header-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.header-hamburger:hover {
  background: rgba(0,0,0,0.05);
}

.header-hamburger span {
  display: block;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1023px) {
  .header-cta { display: none; }
}

@media (min-width: 1024px) {
  .header-hamburger { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: var(--color-cream);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-sm);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--color-graphite);
  margin-bottom: var(--space-sm);
  line-height: 1;
  padding: 4px;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-graphite);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-red);
}

.mobile-nav-cta {
  margin-top: var(--space-md);
}

/* Open state */
.mobile-nav.open {
  pointer-events: all;
}

.mobile-nav.open .mobile-nav-overlay {
  background: rgba(0,0,0,0.4);
}

.mobile-nav.open .mobile-nav-drawer {
  transform: translateX(0);
}

.header-nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-graphite);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.header-nav-link:hover {
  background: rgba(96, 0, 0, 0.06);
  border-color: rgba(96, 0, 0, 0.2);
  color: var(--color-red);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.header-logo-img {
  height: 54px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header-logo-img {
    height: 66px;
  }
}

.header-cta {
  font-size: 13px;
  padding: 10px 16px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: var(--color-cream);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  min-height: min(56.25vw, 88vh);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.90);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-text {
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: 32px;
  color: var(--color-black);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--color-red);
}

.hero h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-graphite);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

/* --- Hero Banner Section (1ª dobra) --- */
.hero-banner-section {
  background: var(--color-cream);
  padding: 0 var(--pad-mobile);
}

@media (min-width: 768px) {
  .hero-banner-section {
    background: var(--color-black);
    padding: 0;
  }
}

/* --- Carousel --- */
/* Mobile: caixa que segue o tamanho natural da imagem */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: transparent;
  margin: var(--space-md) 0;
  cursor: pointer;
}

/* Desktop: full-width com altura fixa */
@media (min-width: 768px) {
  .carousel-wrapper {
    height: 53vh;
    border-radius: 0;
    margin: 0;
    background: var(--color-cream-card);
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.35);
}

.carousel-arrow-prev { left: 14px; }
.carousel-arrow-next { right: 14px; }

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: auto;
  position: relative;
  display: block;
  overflow: hidden;
}

/* Mobile: imagem no tamanho natural */
.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

/* Desktop: cover para preencher altura fixa */
@media (min-width: 768px) {
  .carousel-slide {
    height: 100%;
  }

  .carousel-slide img {
    height: 100%;
    object-fit: cover;
  }
}

.carousel-placeholder-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-graphite);
  text-align: center;
  opacity: 0.6;
}

.carousel-placeholder-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-graphite);
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-divider);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--color-red);
  transform: scale(1.25);
}

/* ============================================
   PROVA DE LOCALIDADE
   ============================================ */

.locality {
  background: var(--color-cream);
}

.locality h1 {
  font-size: 26px;
  margin-bottom: var(--space-sm);
}

.locality h1 .accent {
  color: var(--color-red);
}

.locality h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-graphite);
  margin-bottom: var(--space-md);
  max-width: 520px;
  line-height: 1.6;
}

.locality-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--color-cream-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.locality-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--color-cream-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.locality-image-placeholder span {
  font-size: 13px;
  color: var(--color-graphite);
  opacity: 0.6;
}

.locality-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.locality-address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 15px;
  color: var(--color-graphite);
}

.locality-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.locality-hours p {
  font-size: 14px;
  color: var(--color-graphite);
}

.locality-hours p strong {
  font-weight: 600;
  color: var(--color-black);
}

.locality-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.locality-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-graphite);
}

/* ============================================
   MARCAS
   ============================================ */

.brands {
  background: var(--color-white);
  overflow: hidden;
}

.brands h2.section-title {
  font-size: 26px;
  margin-bottom: var(--space-md);
  text-align: center;
}

.brands-row-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
  margin-bottom: var(--space-xs);
}

.brands-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.brands-marquee {
  display: flex;
  align-items: center;
  padding: 8px 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.brands-marquee-wrapper.brands-marquee-reverse .brands-marquee {
  animation: marquee-reverse 28s linear infinite;
}

.brands-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes marquee-reverse {
  0%   { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}

.brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 203px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(0%);
  opacity: 0.85;
  transition: opacity 0.2s;
  margin-right: 40px;
}

.brand-logo-img:hover {
  opacity: 1;
}

/* ============================================
   POR QUE A ÓTICAS GUIMAR (DIFERENCIAIS)
   ============================================ */

.features {
  background: var(--color-cream);
}

.features h2.section-title {
  font-size: 26px;
  margin-bottom: var(--space-md);
}

.features h2.section-title .accent {
  color: var(--color-red);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.feature-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-card-img {
  transform: scale(1.04);
}

.feature-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.feature-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.3;
}

.feature-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.feature-card-title a:hover {
  color: var(--color-red);
}

.feature-card-text {
  font-size: 14px;
  color: var(--color-graphite);
  line-height: 1.6;
}

/* ============================================
   OFERTA DO MÊS
   ============================================ */

.offer {
  background: var(--color-cream);
}

.offer-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  margin-bottom: var(--space-md);
}

.offer-banner {
  width: 100%;
  min-height: 200px;
  background: var(--color-cream-card);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.offer-banner-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-graphite);
}

.offer-banner-sub {
  font-size: 13px;
  color: var(--color-graphite);
  opacity: 0.6;
}

/* ============================================
   FORMAS DE PAGAMENTO
   ============================================ */

.payment {
  background: var(--color-black);
  color: var(--color-white);
}

.payment .category-tag {
  background: var(--color-red);
}

.payment h2.section-title {
  font-size: 26px;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.payment h2.section-title .accent {
  color: var(--color-red);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.payment-card {
  background: #1C1C1C;
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.payment-card-icon {
  color: var(--color-red);
  margin-bottom: 4px;
}

.payment-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
}

.payment-card-main {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
}

.payment-card-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.payment-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-xs);
}

.payment-card-img-placeholder {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  background: #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

/* ============================================
   EYEWEAR
   ============================================ */

.eyewear {
  background: var(--color-black);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
}

.eyewear-content {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.eyewear-content .btn-whatsapp {
  align-self: flex-start;
}

.eyewear-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-white);
  line-height: 1.15;
}

.eyewear-h1 .accent {
  color: var(--color-red);
}

.eyewear-accent {
  color: var(--color-white);
}

.eyewear-h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.eyewear-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.eyewear-body p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.btn-eyewear-models {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 10px 24px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-eyewear-models:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
}

.eyewear-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 767px) {
  .eyewear::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    pointer-events: none;
  }

  .eyewear .container {
    position: relative;
    z-index: 1;
  }

  .eyewear-content {
    max-width: 100%;
  }

  .eyewear-h1 {
    font-size: 26px;
  }
}

/* ============================================
   DEPOIMENTOS — MODERN
   ============================================ */

.testimonials {
  background: var(--color-cream);
  overflow: hidden;
}

/* Wrapper */
.tm-wrapper {
  position: relative;
  padding: var(--space-lg) 0;
}

/* Número de fundo */
.tm-bg-number {
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(8rem, 28vw, 22rem);
  color: var(--color-black);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

@keyframes tmNumberIn {
  from { opacity: 0; filter: blur(16px); transform: translateY(-50%) scale(0.88); }
  to   { opacity: 0.04; filter: blur(0); transform: translateY(-50%) scale(1); }
}
.tm-bg-number.tm-anim {
  animation: tmNumberIn 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Layout interno */
.tm-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Sidebar */
.tm-sidebar {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-right: var(--space-lg);
  border-right: 1px solid var(--color-divider);
  margin-right: var(--space-lg);
}

.tm-sidebar-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-graphite);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tm-progress-track {
  width: 1px;
  height: 100px;
  background: var(--color-divider);
  margin-top: var(--space-md);
  position: relative;
  overflow: hidden;
}

.tm-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--color-red);
  transition: height 0.5s cubic-bezier(0.22,1,0.36,1);
}

/* Conteúdo principal */
.tm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 260px;
}

.tm-stars {
  color: var(--color-red);
  font-size: 16px;
  letter-spacing: 3px;
}

/* Quote com animação por palavra */
.tm-quote {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--color-black);
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 120px;
}

@keyframes tmWordIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tm-word {
  display: inline-block;
  opacity: 0;
  animation: tmWordIn 0.45s ease forwards;
}

@keyframes tmFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

.tm-quote.tm-exit .tm-word,
.tm-author-name.tm-exit {
  animation: tmFadeOut 0.2s ease forwards !important;
}

/* Footer: autor + nav */
.tm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tm-author-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tm-author-line {
  width: 32px;
  height: 1px;
  background: var(--color-black);
  transform-origin: left;
  animation: tmLineIn 0.6s 0.3s ease forwards;
  transform: scaleX(0);
}

@keyframes tmLineIn {
  to { transform: scaleX(1); }
}

.tm-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-black);
  transition: opacity 0.2s;
}

/* Botões nav */
.tm-nav {
  display: flex;
  gap: var(--space-sm);
}

.tm-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: transparent;
  cursor: pointer;
  color: var(--color-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.tm-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-black);
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.tm-btn-next::before {
  transform: translateX(105%);
}

.tm-btn:hover::before {
  transform: translateX(0);
}

.tm-btn svg {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.tm-btn:hover svg {
  color: var(--color-white);
}

/* Ticker inferior */
.tm-ticker-outer {
  overflow: hidden;
  margin-top: var(--space-lg);
  opacity: 0.07;
  pointer-events: none;
}

.tm-ticker-inner {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-black);
  letter-spacing: -0.02em;
  animation: tmTicker 25s linear infinite;
}

@keyframes tmTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Desktop: mostra sidebar */
@media (min-width: 768px) {
  .tm-sidebar {
    display: flex;
  }
  .tm-quote {
    min-height: 140px;
  }
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  background: var(--color-black);
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: 26px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.cta-final .btn-whatsapp {
  margin-bottom: var(--space-md);
}

.cta-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
}

.cta-contact-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-black);
  color: var(--color-cream);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-logo-img {
  height: 86px;
  width: auto;
  display: block;
}


.footer-tagline-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  max-width: 280px;
}

.footer-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a,
.footer-links p {
  font-size: 14px;
  color: var(--color-cream);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  line-height: 1.5;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-red);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer-map-placeholder {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #222;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-credit:hover {
  color: rgba(255,255,255,0.7);
}

.footer-credit-logo {
  height: 24px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  vertical-align: middle;
}

.footer-credit:hover .footer-credit-logo {
  opacity: 1;
}

/* ============================================
   SUBPÁGINA — TESTE DE VISÃO
   ============================================ */

/* Hero subpage */
/* ============================================
   PÁGINA — TESTE DE VISÃO
   ============================================ */

/* Hero subpage */
.hero-subpage {
  background: var(--color-cream);
  background-size: cover;
  background-position: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  min-height: min(56.25vw, 80vh);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-subpage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.50);
  pointer-events: none;
}

.hero-subpage .container {
  position: relative;
  z-index: 1;
}

.hero-subpage-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-red);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}

.hero-subpage-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-black);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-subpage-h1 .accent {
  color: var(--color-red);
}

.hero-subpage-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 700;
  color: var(--color-graphite);
  margin-top: 6px;
  letter-spacing: 0;
}

.hero-subpage-h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-graphite);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

/* Como funciona */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (min-width: 1024px) {
  .how-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .hero-subpage-h1 { font-size: 52px; }
}

.how-step {
  padding: 0 var(--space-md) 0 0;
}

@media (max-width: 1023px) {
  .how-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: 0;
  }
}

.how-step-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

@media (max-width: 1023px) {
  .how-step-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

.how-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.how-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-red), rgba(96,0,0,0.15));
  margin-left: var(--space-sm);
}

@media (max-width: 1023px) {
  .how-connector {
    width: 2px;
    height: 32px;
    flex: none;
    margin-left: 0;
    margin-top: var(--space-sm);
    background: linear-gradient(to bottom, var(--color-red), rgba(96,0,0,0.15));
  }
}

.how-step-body {
  flex: 1;
}

.how-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.how-text {
  font-size: 14px;
  color: var(--color-graphite);
  line-height: 1.6;
}

/* Se você... */
.if-you-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .if-you-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.if-you-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.if-you-content h2 .accent { color: var(--color-red); }

.if-you-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.if-you-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-graphite);
  line-height: 1.5;
}

.if-you-list li::before {
  content: '✓';
  color: var(--color-red);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

.if-you-cta-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-graphite);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.if-you-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.if-you-card {
  background: var(--color-cream-card);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  border-left: 3px solid var(--color-red);
}

.if-you-card-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.35);
  margin-bottom: 4px;
}

.if-you-card-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 2px;
}

.if-you-card-sub {
  font-size: 13px;
  color: var(--color-graphite);
}

.if-you-img-box {
  border-radius: var(--radius-card);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.if-you-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Para quem é — legado removido */
.for-who { background: var(--color-cream); }

/* FAQ */
.faq {
  background: var(--color-cream);
}

.faq h2.section-title {
  font-size: 26px;
  margin-bottom: var(--space-md);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-divider);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-black);
  user-select: none;
  -webkit-user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-red);
  transition: transform 0.3s ease;
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-red);
  border-radius: 1px;
}

.faq-toggle::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: var(--space-md);
  font-size: 14px;
  color: var(--color-graphite);
  line-height: 1.7;
  max-width: 620px;
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .container {
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
  }

  .section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 18px;
  }

  /* aspect-ratio já definido globalmente como 16/7 */

  .locality-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .locality-image-placeholder {
    margin-bottom: 0;
    aspect-ratio: 1;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-scroll {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .testimonial-card {
    min-width: unset;
  }

  .testimonials-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    overflow: visible;
  }

  .hero-subpage h1 {
    font-size: 38px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .footer-map {
    height: 300px;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .container {
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero h2 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .locality h1 {
    font-size: 38px;
  }

  .locality h2 {
    font-size: 18px;
  }

  .features h2.section-title {
    font-size: 38px;
  }

  .payment h2.section-title {
    font-size: 38px;
  }

  .testimonials h2.section-title {
    font-size: 38px;
  }

  .testimonials-scroll {
    overflow-x: visible;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }

  .cta-final h2 {
    font-size: 42px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.4fr;
  }

  .brand-logo-placeholder {
    height: 52px;
    width: 120px;
  }
}

/* ============================================
   SECTION TITLES ACCENT
   ============================================ */

.section-title .accent {
  color: var(--color-red);
}

/* ============================================
   BRANDS DESKTOP — logos maiores
   ============================================ */

@media (min-width: 768px) {
  .brand-logo-img {
    height: 88px;
    max-width: 254px;
  }
}

/* ============================================
   TESTIMONIALS — DESKTOP STATIC GRID
   ============================================ */

@media (min-width: 768px) {
  .testimonials-scroll {
    display: grid;
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }

  .testimonials-scroll.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-scroll.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    min-width: unset;
    flex-shrink: unset;
  }
}
