/* ============================================================
   Generalbelt — estilos globais (paridade com o projeto Lovable)
   As cores usam oklch(), suportado por todos os navegadores atuais.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --radius: 0.625rem;
  --background: oklch(0.995 0 0);
  --foreground: oklch(0.16 0.005 20);
  --card: oklch(1 0 0);
  --primary: oklch(0.56 0.222 27.5);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.966 0.003 20);
  --secondary-foreground: oklch(0.16 0.005 20);
  --muted: oklch(0.966 0.003 20);
  --muted-foreground: oklch(0.5 0.012 25);
  --accent: oklch(0.955 0.02 27);
  --accent-foreground: oklch(0.4 0.18 27.5);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.912 0.005 25);
  --input: oklch(0.9 0.005 25);
  --ring: oklch(0.56 0.222 27.5);
}

/* Modo escuro do painel admin — ativado via classe .dark na <html> (admin/includes/layout_top.php) */
html.dark {
  color-scheme: dark;
  --background: oklch(0.16 0.01 20);
  --foreground: oklch(0.96 0.004 20);
  --card: oklch(0.205 0.01 20);
  --primary: oklch(0.62 0.2 27.5);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.24 0.01 20);
  --secondary-foreground: oklch(0.96 0.004 20);
  --muted: oklch(0.24 0.01 20);
  --muted-foreground: oklch(0.65 0.012 20);
  --accent: oklch(0.28 0.04 27);
  --accent-foreground: oklch(0.9 0.05 27);
  --destructive: oklch(0.65 0.2 25);
  --border: oklch(0.3 0.01 20);
  --input: oklch(0.3 0.01 20);
  --ring: oklch(0.62 0.2 27.5);
}

* { border-color: var(--border); box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

.font-display { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; }
h1.font-display { font-weight: 700; }

::selection { background: var(--primary); color: var(--primary-foreground); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Motion & elegance utilities ---------- */

@keyframes gb-reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gb-kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
@keyframes gb-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }

.reveal { opacity: 0; will-change: opacity, transform; }
.reveal[data-visible="true"] {
  animation: gb-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.ken-burns { animation: gb-kenburns 12s ease-out forwards; }

.hairline {
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 70%, transparent), transparent);
}

.shine-hover { position: relative; overflow: hidden; }
.shine-hover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, white 55%, transparent), transparent);
  width: 40%; transform: translateX(-120%) skewX(-20deg); opacity: 0;
}
.shine-hover:hover::after { opacity: 1; animation: gb-shine 0.9s ease-out; }

.lift {
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .45s ease, background-color .45s ease;
}
.lift:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- CTA button (fill diagonal on hover) ---------- */
.cta-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .625rem;
  border-radius: .375rem; padding: .75rem 1.5rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; transition: color .3s;
}
.cta-btn .cta-fill {
  position: absolute; inset: -2px -8px; transform: translateX(-115%) skewX(12deg);
  transition: transform .3s ease-out; background: var(--primary); z-index: 0;
}
.cta-btn:hover .cta-fill { transform: translateX(0) skewX(12deg); }
.cta-btn .cta-label, .cta-btn .cta-arrow { position: relative; z-index: 1; }
.cta-btn .cta-arrow { transition: transform .3s; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }
.cta-solid { background: var(--foreground); color: var(--background); }
.cta-solid:hover { color: var(--background); }
.cta-outline { border: 1px solid var(--border); background: transparent; color: var(--foreground); }
.cta-outline:hover { color: var(--primary-foreground); }
.cta-outline-dark { border: 1px solid oklch(0.995 0 0 / 0.4); background: transparent; color: oklch(0.995 0 0); }
.cta-outline-dark:hover { color: var(--primary-foreground); }
.cta-light { background: var(--background); color: var(--foreground); }
.cta-light:hover { color: var(--primary-foreground); }
.cta-invert { background: var(--foreground); color: var(--background); }
.cta-invert:hover { color: var(--foreground); }
.cta-invert .cta-fill { background: var(--background); }

/* ---------- Article / rich text content ---------- */
.article-content { color: var(--muted-foreground); line-height: 1.75; }
.article-content :is(h2, h3, h4) {
  font-family: 'Sora', system-ui, sans-serif; color: var(--foreground); text-transform: uppercase;
  line-height: 1.2; margin-top: 2.25rem; margin-bottom: .75rem;
}
.article-content h2 { font-size: 1.4rem; }
.article-content h3 { font-size: 1.15rem; }
.article-content h4 { font-size: 1rem; }
.article-content p { margin-block: .85rem; }
.article-content :is(ul, ol) { margin-block: 1rem; padding-left: 1.25rem; display: grid; gap: .5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li::marker { color: var(--primary); }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content strong { color: var(--foreground); }
.article-content blockquote {
  border-left: 3px solid var(--primary); padding: .25rem 0 .25rem 1rem; margin-block: 1.25rem;
  color: var(--foreground); font-style: italic;
}
.article-content img { border-radius: .9rem; margin-block: 1.5rem; }
.article-content hr { border: 0; border-top: 1px solid var(--border); margin-block: 2rem; }

/* ---------- Botões de compartilhar (blog) ---------- */
.share-btn {
  --share-color: var(--foreground);
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid color-mix(in oklab, var(--share-color) 35%, transparent);
  color: var(--share-color); background: transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.share-btn svg { height: 1rem; width: 1rem; }
.share-btn:hover { background: var(--share-color); color: #fff; border-color: var(--share-color); transform: translateY(-2px); }
.share-btn-copy { position: relative; }
.share-btn-copy .share-copied-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 10;
  transform: translateX(-50%) translateY(4px);
  background: var(--foreground); color: var(--background); font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.share-btn-copy.is-copied .share-copied-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Line clamp fallback ---------- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Hero slider (home) ---------- */
/* Troca de slide: fade suave + zoom leve contínuo na imagem */
@keyframes gb-hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gb-hero-zoom { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes gb-hero-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.gb-hero { background: var(--background); }
.gb-hero-frame {
  position: relative; isolation: isolate; overflow: hidden; background: oklch(0.16 0.005 20);
  min-height: clamp(500px, 68vh, 680px); display: flex;
}
@media (min-width: 768px) {
  .gb-hero { padding: 14px 14px 0; }
  .gb-hero-frame { border-radius: 28px; }
}
.gb-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; }
.gb-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.gb-slide.is-prev { opacity: 1; z-index: 1; }
.gb-slide.is-active { opacity: 1; z-index: 2; animation: gb-hero-fade 1.4s ease-in-out both; }
/* mesmo animation no ativo e no anterior: o zoom continua sem "pular" enquanto o próximo aparece por cima */
.gb-slide.is-active img, .gb-slide.is-prev img { animation: gb-hero-zoom 10s ease-out both; }
.gb-hero.is-first .gb-slide.is-active { animation: none; }

.gb-hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(100deg, oklch(0.13 0.005 20 / 0.92) 0%, oklch(0.13 0.005 20 / 0.62) 42%, oklch(0.13 0.005 20 / 0.08) 75%),
    linear-gradient(to top, oklch(0.13 0.005 20 / 0.85) 0%, transparent 38%);
}
.gb-hero-inner {
  position: relative; z-index: 4; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(3rem, 7vh, 4.5rem); padding-bottom: 1.5rem;
}
.gb-hero-copy { display: grid; max-width: 46rem; }
.gb-slide-text { grid-area: 1 / 1; visibility: hidden; }
.gb-slide-text.is-active { visibility: visible; }
.gb-slide-text .gb-anim { opacity: 0; }
.gb-slide-text.is-active .gb-anim { animation: gb-hero-rise 1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0ms) + 250ms); }

.gb-hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem; border-radius: 999px;
  padding: .45rem .95rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gb-hero-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 30%, transparent); }
.gb-hero-title {
  margin-top: 1.6rem; font-family: 'Sora', system-ui, sans-serif; font-weight: 600; color: #fff;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.035em;
}
.gb-hero-title em { font-style: normal; display: block; color: oklch(0.66 0.215 27); }
.gb-hero-text { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.7; color: oklch(1 0 0 / 0.72); }
.gb-hero-link {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem .25rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff;
  border-bottom: 1px solid oklch(1 0 0 / 0.3); transition: border-color .3s, color .3s;
}
.gb-hero-link:hover { color: oklch(0.66 0.215 27); border-color: currentColor; }

.gb-hero-nav { margin-top: 2.25rem; display: flex; align-items: flex-end; gap: 1.5rem; }
.gb-hero-tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gb-slide-progress { text-align: left; color: oklch(1 0 0 / 0.5); background: none; border: 0; padding: 0 0 .25rem; cursor: pointer; transition: color .4s; }
.gb-slide-progress:hover, .gb-slide-progress.is-active { color: #fff; }
.gb-tab-bar { position: relative; display: block; height: 2px; border-radius: 2px; overflow: hidden; background: oklch(1 0 0 / 0.2); }
.gb-tab-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--primary); }
.gb-slide-progress.is-done .gb-tab-bar > span { width: 100%; background: oklch(1 0 0 / 0.55); }
.gb-tab-num { display: inline-block; margin-top: .9rem; font-family: 'Sora', system-ui, sans-serif; font-size: .75rem; font-weight: 600; }
.gb-tab-label { display: none; margin-left: .6rem; font-size: .8rem; font-weight: 600; }
@media (min-width: 640px) { .gb-tab-label { display: inline; } }
.gb-hero-arrows { display: flex; gap: .5rem; flex-shrink: 0; }
.gb-hero-arrows button {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer;
  color: #fff; background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s, border-color .3s, color .3s;
}
.gb-hero-arrows button:hover { background: #fff; border-color: #fff; color: var(--foreground); }
@media (max-width: 639px) { .gb-hero-arrows { display: none; } }

/* ---------- WhatsApp flutuante ---------- */
@keyframes gb-wa-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes gb-wa-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.gb-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: 'Manrope', system-ui, sans-serif; }
.gb-wa-btn {
  position: relative; display: flex; height: 62px; width: 62px; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; background: linear-gradient(145deg, #2EE07A, #1EBE5A);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .65), 0 0 0 8px rgba(37, 211, 102, .12);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.gb-wa-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 36px -8px rgba(37, 211, 102, .75), 0 0 0 10px rgba(37, 211, 102, .14); }
.gb-wa-icon { position: relative; z-index: 1; height: 30px; width: 30px; }
.gb-wa-ring { position: absolute; inset: 0; border-radius: 999px; background: #25D366; animation: gb-wa-ring 2.2s ease-out infinite; }
.gb-wa.is-open .gb-wa-ring { animation: none; opacity: 0; }
.gb-wa-badge {
  position: absolute; top: -2px; right: -2px; z-index: 2; display: flex; height: 20px; min-width: 20px; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid #fff; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.gb-wa.has-badge .gb-wa-badge { transform: scale(1); }

.gb-wa-pop {
  position: relative; width: min(340px, calc(100vw - 40px)); overflow: hidden; border-radius: 20px; background: #fff;
  box-shadow: 0 30px 70px -20px rgba(20, 18, 18, .35), 0 0 0 1px rgba(20, 18, 18, .06);
  display: none; transform-origin: bottom right;
}
.gb-wa.is-open .gb-wa-pop { display: block; animation: gb-wa-in .4s cubic-bezier(.22, 1, .36, 1) both; }
.gb-wa-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; height: 28px; width: 28px; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .16); transition: background-color .2s;
}
.gb-wa-close:hover { background: rgba(255, 255, 255, .3); }
.gb-wa-close svg { height: 14px; width: 14px; }
.gb-wa-head { display: flex; align-items: center; gap: 12px; padding: 18px 48px 18px 18px; background: linear-gradient(135deg, #075E54, #128C7E); color: #fff; }
.gb-wa-avatar { position: relative; display: flex; height: 44px; width: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: #fff; }
.gb-wa-avatar img { height: 30px; width: 30px; object-fit: contain; }
.gb-wa-online { position: absolute; right: 0; bottom: 1px; height: 11px; width: 11px; border-radius: 999px; border: 2px solid #128C7E; background: #2EE07A; }
.gb-wa-name { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.2; }
.gb-wa-status { margin: 2px 0 0; font-size: 12px; opacity: .8; }
.gb-wa-body { padding: 18px; background: #F2EEE8 radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px) 0 0 / 14px 14px; }
.gb-wa-bubble {
  position: relative; margin: 0; max-width: 92%; border-radius: 0 14px 14px 14px; background: #fff; padding: 12px 14px;
  font-size: 14px; line-height: 1.5; color: #1B1717; box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.gb-wa-bubble strong { color: #075E54; }
.gb-wa-options { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gb-wa-options a {
  display: block; border-radius: 12px; border: 1px solid rgba(18, 140, 126, .25); background: #fff; padding: 10px 14px;
  font-size: 13px; font-weight: 700; color: #128C7E; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.gb-wa-options a:hover { background: #128C7E; border-color: #128C7E; color: #fff; }
.gb-wa-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; background: #25D366; color: #fff;
  font-size: 14px; font-weight: 800; text-decoration: none; transition: background-color .2s;
}
.gb-wa-cta:hover { background: #1EBE5A; }
.gb-wa-cta-icon { height: 20px; width: 20px; }
@media (max-width: 640px) { .gb-wa { right: 14px; bottom: 14px; } .gb-wa-btn { height: 56px; width: 56px; } }
@media print { .gb-wa { display: none !important; } }

/* ---------- Selo "Sobre nós" (home) ---------- */
@keyframes gb-seal-spin { to { transform: rotate(360deg); } }
@keyframes gb-seal-pulse { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.gb-seal {
  position: absolute; z-index: 2; left: 0; bottom: -1.5rem; width: 9rem; height: 9rem; border-radius: 9999px;
  display: grid; place-items: center; background: var(--foreground); color: #fff;
  box-shadow: 0 0 0 6px var(--background);
}
.gb-seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: gb-seal-spin 18s linear infinite; }
.gb-seal-ring text { fill: currentColor; font-family: 'Manrope', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; }
.gb-seal-ring .gb-seal-accent { fill: oklch(0.66 0.215 27); }
.gb-seal-icon {
  --gb-seal-icon: 3.6rem; position: relative; display: flex; width: var(--gb-seal-icon); height: var(--gb-seal-icon); align-items: center; justify-content: center;
  border-radius: 9999px; background: #fff; padding: .55rem; transition: width .4s cubic-bezier(.22, 1, .36, 1), height .4s cubic-bezier(.22, 1, .36, 1);
}
.gb-seal-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--primary); animation: gb-seal-pulse 2.4s ease-out infinite; }
.gb-seal-icon img { width: 100%; height: 100%; object-fit: contain; }
/* cresce por width/height, não por transform: transform amplia a imagem já rasterizada e o SVG fica embaçado */
.gb-seal:hover .gb-seal-icon { width: calc(var(--gb-seal-icon) * 1.1); height: calc(var(--gb-seal-icon) * 1.1); }
@media (max-width: 639px) { .gb-seal { left: 1rem; } }
@media (max-width: 480px) { .gb-seal { width: 7.25rem; height: 7.25rem; } .gb-seal-icon { --gb-seal-icon: 3rem; } }
/* Variante da página Sobre: selo sobre o canto inferior esquerdo da foto */
.gb-seal--corner { left: -2.5rem; bottom: -2.5rem; }
@media (max-width: 1023px) { .gb-seal--corner { left: 1rem; bottom: -2rem; } }
@media (prefers-reduced-motion: reduce) { .gb-slide img { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .gb-seal-ring, .gb-seal-icon::after { animation: none; } .gb-seal-icon::after { opacity: 0; } }
