/* ========================================================
   Top 10 Farma - design tokens (tema único, claro)
   ======================================================== */
:root {
  --yellow: #FFD400;
  --yellow-deep: #F0BE00;
  --navy: #12266B;
  --navy-deep: #0A1740;
  --red: #E1222E;
  --whatsapp: #0F7A3E;
  --whatsapp-deep: #0B6B36;
  --whatsapp-bright: #25D366;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F4EA;
  --ink: #14183A;
  --ink-soft: #565C82;
  --border: #E8E3D2;

  --shadow-color: 34 45 100;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ========================================================
   Icons (sprite <use>)
   ======================================================== */
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.icon-lg { width: 2.4em; height: 2.4em; }

.icon-png {
  object-fit: contain;
}
.icon-invert {
  filter: invert(1);
}

/* ========================================================
   Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease;
}
.btn .icon { font-size: 1.15em; }
.btn:active { transform: scale(0.97); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgb(15 122 62 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.22), 0 0 0 0 rgb(37 211 102 / 0.35);
  animation: whatsapp-pulse 3.6s ease-in-out infinite;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
  box-shadow: 0 14px 28px -8px rgb(15 122 62 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.22);
  transform: translateY(-2px);
  animation-play-state: paused;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 10px 24px -8px rgb(15 122 62 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.22), 0 0 0 0 rgb(37 211 102 / 0.32);
  }
  50% {
    box-shadow: 0 10px 24px -8px rgb(15 122 62 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.22), 0 0 0 8px rgb(37 211 102 / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp { animation: none; }
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgb(18 38 107 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgb(18 38 107 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

/* ========================================================
   Barra de entrega + Header (empilhados, fixos no topo)
   ======================================================== */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 55;
}

.top-bar {
  background: var(--navy-deep);
  color: #fff;
}
.top-bar .top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}
.top-bar-inner .icon { width: 1em; height: 1em; color: var(--yellow); flex-shrink: 0; }
.top-bar-highlight { color: var(--yellow); }

@media (max-width: 480px) {
  .top-bar .top-bar-inner { font-size: 0.72rem; padding: 7px 16px; gap: 6px; }
}

.site-header {
  position: relative;
  z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgb(var(--shadow-color) / 0.18);
}
.brand-logo-lg { width: 60px; height: 60px; border-radius: 14px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
  flex-shrink: 0;
}
.status-dot.is-open { background: var(--whatsapp-bright); box-shadow: 0 0 0 3px rgb(37 211 102 / 0.2); }
.status-dot.is-closed { background: var(--red); box-shadow: 0 0 0 3px rgb(225 34 46 / 0.18); }

.tel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .tel-link span { display: none; }
  .status-chip { display: none; }
}
@media (max-width: 560px) {
  .btn-sm span { display: none; }
  .btn-sm { padding: 10px 12px; }
}

/* ========================================================
   Hero
   ======================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgb(255 212 0 / 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-navy {
  position: absolute;
  inset: auto -15% -25% -20%;
  height: 520px;
  background: radial-gradient(closest-side, rgb(18 38 107 / 0.08), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(18 38 107 / 0.16) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 82% 12%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 82% 12%, black 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-spark {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgb(255 212 0 / 0.45));
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero-copy h1 .highlight {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.34em;
  background-position: 0 90%;
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.cristo-watermark {
  position: absolute;
  width: 220px;
  height: auto;
  object-fit: contain;
  opacity: 0.08;
  right: 6%;
  top: 0;
  pointer-events: none;
}

/* Composição do herói: medalhão com o Cristo + cartões flutuantes de diferenciais */
.hero-art {
  position: relative;
  width: min(360px, 82%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hero-art-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFE568, var(--yellow) 58%, var(--yellow-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -20px rgb(var(--shadow-color) / 0.35), inset 0 -14px 26px rgb(10 23 64 / 0.08);
}

.cristo-hero {
  width: 44%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(10 23 64 / 0.28));
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 16px 32px -14px rgb(var(--shadow-color) / 0.35);
}
.floating-card .icon { width: 1.5em; height: 1.5em; color: var(--navy); flex-shrink: 0; }
.floating-card strong { display: block; font-family: var(--font-display); font-size: 0.85rem; color: var(--ink); }
.floating-card span { display: block; font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; }

.floating-card-1 { top: 4%; right: -4%; transform: rotate(-3deg); }
.floating-card-2 { bottom: 8%; left: -6%; transform: rotate(2deg); }
.floating-card-3 { bottom: -3%; right: 14%; transform: rotate(-2deg); padding: 10px 16px; }
.floating-card-4 { top: -2%; left: -12%; transform: rotate(4deg); padding: 12px 18px; }
.floating-card-4 img { height: 32px; width: auto; display: block; }

@media (max-width: 560px) {
  .hero-art { width: min(280px, 76%); }
  .floating-card { padding: 9px 12px; gap: 8px; max-width: 160px; }
  .floating-card .icon { width: 1.3em; height: 1.3em; }
  .floating-card strong { font-size: 0.76rem; }
  .floating-card span { font-size: 0.66rem; }
  .floating-card-1 { top: 0; right: -2%; }
  .floating-card-2 { bottom: 4%; left: -2%; }
  .floating-card-3 { bottom: -3%; right: 6%; }
  .floating-card-4 { top: -4%; left: -4%; padding: 9px 14px; }
  .floating-card-4 img { height: 24px; }
}

/* ========================================================
   Trust bar
   ======================================================== */
.trust-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 28px -20px rgb(var(--shadow-color) / 0.45);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon .icon { width: 1.5rem; height: 1.5rem; color: var(--navy); }
.trust-item strong { font-family: var(--font-display); font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .trust-grid { gap: 8px; }
  .trust-item { padding: 14px 6px; gap: 6px; }
  .trust-icon { width: 36px; height: 36px; }
  .trust-icon .icon { width: 1.1rem; height: 1.1rem; }
  .trust-item strong { font-size: 0.7rem; line-height: 1.25; }
  .trust-item span { font-size: 0.62rem; line-height: 1.3; }
}

/* ========================================================
   Gallery / carousel
   ======================================================== */
.gallery-inline {
  grid-column: 1 / -1;
  align-self: start;
  min-width: 0;
}
.gallery-inline h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 40px;
}

.gallery-shell {
  position: relative;
  min-width: 0;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px clamp(16px, 16vw, 180px) 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 auto;
  width: clamp(300px, 42vw, 480px);
  aspect-ratio: 1 / 1;
  margin: 0;
  scroll-snap-align: center;
  transform: scale(0.86);
  opacity: 0.5;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 20px 40px -18px rgb(var(--shadow-color) / 0.45);
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  background: var(--surface-2);
  color: var(--navy);
}
.slide-placeholder .icon { opacity: 0.55; }
.slide-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 12px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgb(var(--shadow-color) / 0.4);
  z-index: 2;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}
.gallery-nav:hover { background: var(--navy-deep); transform: translateY(-50%) scale(1.06); }
.gallery-nav:active { transform: translateY(-50%) scale(0.94); }
.gallery-prev { left: -8px; }
.gallery-next { right: -8px; }

@media (max-width: 640px) {
  /* Só arrastar no mobile: as setas somem, o dedo já troca o slide. */
  .gallery-nav { display: none; }

  /* Um slide por vez, centralizado, ocupando a largura visível da galeria. */
  .gallery-track { padding: 4px 0 12px; scroll-padding-left: 0; }
  .gallery-slide { width: 100%; scroll-snap-align: center; }
}

/* ========================================================
   How it works
   ======================================================== */
.how-it-works { padding: 96px 0; }
.how-it-works h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-offset { transform: translateY(-22px); }
.step-number {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: rgb(18 38 107 / 0.07);
}
.step .icon { font-size: 1.8rem; color: var(--navy); }
.step h3 { margin-top: 16px; font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step-offset { transform: none; }
}

/* ========================================================
   Final CTA
   ======================================================== */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding: 72px 0;
}
.final-cta .cristo-cta {
  filter: invert(1);
  opacity: 0.1;
  width: 340px;
  right: -40px;
  top: -20px;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.final-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 14ch;
}
.final-cta p {
  margin-top: 12px;
  color: rgb(255 255 255 / 0.75);
  max-width: 40ch;
}
.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.phone-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--yellow);
}

@media (max-width: 720px) {
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ========================================================
   Mapa
   ======================================================== */
.map-section {
  padding: 40px 0;
  background: var(--surface);
}
.map-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.map-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.map-info p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 40ch;
}
.map-info .btn {
  margin-top: 20px;
}
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px -20px rgb(var(--shadow-color) / 0.45);
  border: 1px solid var(--border);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .map-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-embed { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .map-section { padding: 32px 0 0; }
  .map-grid { gap: 16px; }
  .map-info p,
  .map-info .btn { display: none; }
  .map-info h2 {
    font-size: 1.5rem;
    text-align: center;
    padding: 0 18px;
  }
  .map-embed { border-radius: 0; border: none; aspect-ratio: 4 / 3; }
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 32ch; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.footer-col a, .footer-col span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}
.footer-col a:hover { color: var(--navy); }
.footer-col .icon { margin-top: 3px; color: var(--navy); }
.footer-indent { padding-left: 24px; color: var(--ink-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   Floating WhatsApp
   ======================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgb(15 122 62 / 0.5);
  z-index: 60;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-whatsapp .icon { width: 1.6em; height: 1.6em; }
.floating-whatsapp:hover { transform: scale(1.08); }
.floating-whatsapp:active { transform: scale(0.95); }

@media (min-width: 861px) {
  .floating-whatsapp { display: none; }
}

/* ========================================================
   Scroll reveal
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================================
   Responsive: hero + section rhythm
   ======================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .hero-copy h1 { max-width: none; }

  /* No mobile, a galeria de fotos aparece logo abaixo dos botões do herói,
     antes do mockup do WhatsApp. */
  .hero-copy { order: 1; }
  .gallery-inline { order: 2; }
  .hero-visual { order: 3; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 56px; }
  .how-it-works { padding: 64px 0; }
  .final-cta { padding: 56px 0; }
}
