@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
:root{
  --font:'Montserrat','Segoe UI',system-ui,sans-serif;
  --c-primary:#4A3F98; --c-primary-dark:#2E2766; --c-primary-soft:#ECEAF7;
  --c-night:#17152E; --c-night-soft:#24213F;
  --c-accent:#E5502A; --c-accent-soft:#FCEBE5;
  --c1:#4A3F98; --c2:#4C6FBA; --c3:#8C4A8E; --c4:#E5502A;
  --c-bg:#F6F6F9; --c-surface:#FFFFFF; --c-border:#E6E6EE;
  --c-ink:#3D3D3D; --c-ink-strong:#1F1F26; --c-muted:#6B6B78;
  --c-hero-sub:#8CC8E8;
  --wave:linear-gradient(90deg,#8CC8E8,#4C6FBA,#4A3F98,#8C4A8E,#C94A72,#E5502A,#F39A1E,#F5C518);
  --glow1:rgba(76,111,186,.35); --glow2:rgba(201,74,114,.28);
  --radius:20px;
}
/* ===== Tema do site público (identidade dos apps) ===== */
html{scroll-behavior:smooth}
body{font-family:var(--font)!important;color:var(--c-ink);background:var(--c-bg);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font)!important;letter-spacing:-.01em}

/* Cabeçalho */
header.fixed{background:rgba(255,255,255,.92)!important;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 6px 24px -14px rgba(23,21,46,.35)!important}
header.fixed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--wave)}
header h1{color:var(--c-night)!important;font-weight:800!important}
header .text-gray-600,header .text-sm{color:var(--c-muted)!important}
header nav a{font-weight:600;font-size:.92rem;color:var(--c-ink)!important;transition:color .2s}
header nav a:hover{color:var(--c-primary)!important}
header nav a[href*="admin"],header nav a.bg-blue-600,header nav a.bg-red-600{background:var(--c-primary)!important;color:#fff!important;border-radius:999px!important;padding:.55rem 1.3rem!important;box-shadow:0 8px 18px -8px var(--c-primary)}
header nav a[href*="admin"]:hover{background:var(--c-primary-dark)!important;color:#fff!important}

/* Hero */
.hero-gradient{position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(900px 420px at 85% 10%,var(--glow1),transparent 60%),
             radial-gradient(700px 400px at 5% 95%,var(--glow2),transparent 60%),
             linear-gradient(135deg,var(--c-night) 0%,var(--c-night-soft) 55%,var(--c-primary-dark) 130%)!important}
.hero-gradient::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--wave)}
.hero-gradient h1{font-weight:800!important;letter-spacing:-.025em}
.hero-gradient h2{color:var(--c-hero-sub)!important;font-weight:600!important}
.hero-gradient p{color:rgba(255,255,255,.94)!important}
.hero-gradient img{border-radius:28px!important;box-shadow:0 34px 70px -24px rgba(0,0,0,.7),0 0 0 6px rgba(255,255,255,.07)!important}
.hero-gradient a,.hero-gradient button{border-radius:999px!important;font-weight:700!important;padding:.8rem 1.7rem!important;transition:transform .2s,box-shadow .2s}
.hero-gradient a.bg-white,.hero-gradient button.bg-white{background:#fff!important;color:var(--c-primary)!important;box-shadow:0 12px 26px -12px rgba(0,0,0,.6)}
.hero-gradient a:hover,.hero-gradient button:hover{transform:translateY(-2px)}
.hero-gradient a.border-2,.hero-gradient button.border-2{border-color:rgba(255,255,255,.55)!important;color:#fff!important;background:transparent!important}

/* Seções */
section{position:relative}
section.bg-gray-50{background:var(--c-bg)!important}
section.bg-white{background:#fff!important}
section h2.text-3xl{color:var(--c-night)!important;font-weight:800!important;position:relative;padding-bottom:1rem}
section h2.text-3xl::after{content:"";display:block;width:84px;height:4px;border-radius:4px;background:var(--wave);margin:.9rem auto 0}
section .text-gray-600,section p.text-xl{color:var(--c-muted)!important}
.text-gray-800{color:var(--c-ink-strong)!important}

/* Cartões */
.rounded-lg,.rounded-xl{border-radius:var(--radius)!important}
.shadow-lg,.shadow-md,.shadow-xl{box-shadow:0 14px 34px -18px rgba(23,21,46,.28)!important}
.bg-white.rounded-lg,.bg-gray-50.rounded-lg,.card-hover{border:1px solid var(--c-border)}
.card-hover{transition:transform .25s ease,box-shadow .25s ease}
.card-hover:hover{transform:translateY(-6px)!important;box-shadow:0 26px 44px -20px rgba(23,21,46,.38)!important}

/* Paleta do Tailwind -> marca */
.bg-blue-600,.bg-blue-500{background:var(--c1)!important;color:#fff!important}
.bg-green-600,.bg-green-500{background:var(--c2)!important;color:#fff!important}
.bg-purple-600,.bg-purple-500{background:var(--c3)!important;color:#fff!important}
.bg-orange-600,.bg-orange-500,.bg-red-600,.bg-red-500{background:var(--c4)!important;color:#fff!important}
.hover\:bg-blue-700:hover,.hover\:bg-green-700:hover,.hover\:bg-purple-700:hover,.hover\:bg-orange-700:hover,.hover\:bg-red-700:hover{filter:brightness(1.12)}
button.bg-blue-600,button.bg-green-600,button.bg-purple-600,button.bg-orange-600,button.bg-red-600{border-radius:999px!important;font-weight:700;padding-top:.7rem!important;padding-bottom:.7rem!important;box-shadow:0 12px 22px -12px rgba(23,21,46,.55);transition:transform .2s,filter .2s}
button.bg-blue-600:hover,button.bg-green-600:hover,button.bg-purple-600:hover,button.bg-orange-600:hover,button.bg-red-600:hover{transform:translateY(-2px)}
.bg-blue-100{background:var(--c-primary-soft)!important}
.bg-green-100{background:var(--c-primary-soft)!important}
.bg-purple-100{background:var(--c-primary-soft)!important}
.bg-orange-100,.bg-red-100{background:var(--c-accent-soft)!important}
.text-blue-600,.text-blue-500,.text-purple-600,.text-green-600,.text-red-600{color:var(--c1)!important}
.text-orange-600,.text-orange-500{color:var(--c4)!important}
.text-blue-100,.text-red-100{color:var(--c-hero-sub)!important}

/* Formulário de contato */
input,textarea,select{font-family:var(--font)}
input[type=text],input[type=email],input[type=tel],textarea,select{border:1.5px solid var(--c-border)!important;border-radius:14px!important;padding:.75rem 1rem!important;background:#fff;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus,select:focus{outline:none!important;border-color:var(--c1)!important;box-shadow:0 0 0 4px var(--c-primary-soft)!important}

/* Rodapé */
footer{background:var(--c-night)!important;position:relative;color:rgba(255,255,255,.85)}
footer.sabvet-gradient{background:var(--c-night)!important}
footer::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--wave)}
footer a{transition:color .2s}
footer a:hover{color:var(--c-hero-sub)!important}

/* Modais (cursos, palestras, materiais) */
.modal-overlay{background:rgba(23,21,46,.62)!important;backdrop-filter:blur(4px)}
.modal-content{border-radius:24px!important;overflow:hidden;box-shadow:0 40px 80px -30px rgba(0,0,0,.6)!important}
.modal-header{background:linear-gradient(135deg,var(--c-night),var(--c-primary-dark));color:#fff;border-bottom:0!important;position:sticky;top:0;z-index:2}
.modal-header h2{color:#fff!important}
.close-btn{color:#fff!important;opacity:.8}.close-btn:hover{opacity:1;color:#fff!important}
.modal-body{background:var(--c-bg)}

/* Seletor de idioma (SABVet) */
.language-switcher{border-radius:999px!important;border:1px solid var(--c-border);box-shadow:0 10px 24px -14px rgba(23,21,46,.4)!important}
.language-switcher button{border-radius:999px!important;font-weight:700;font-family:var(--font)}
.language-switcher button.active{background:var(--c-primary)!important;color:#fff!important}

::selection{background:var(--c-primary);color:#fff}
@media (max-width:640px){.hero-gradient h1{font-size:2.4rem!important}}
