/* ==========================================
   DUOART DIGITAL - CSS BASE (style.css)
   Usado em todas as páginas
   ========================================== */

/* ---------- FONTES ---------- */
@font-face {
    font-family: 'Exo 2';
    src: url('Exo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* ---------- VARIÁVEIS ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: rgba(255, 255, 255, 0.03);
    --cyan: #00d9ff;
    --purple: #b439ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient: linear-gradient(120deg, var(--cyan), var(--purple));
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --radius: 1.25rem;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-title: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 100%; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: min(100% - 3rem, 75rem);
    margin-inline: auto;
}

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0, 217, 255, 0.07) 0%,
        rgba(180, 57, 255, 0.05) 35%,
        transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .cursor-glow { display: none; }
}

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden { opacity: 0; visibility: hidden; }

.loader {
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--cyan);
    border-right-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-menu a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--text-primary); }

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 1.6rem;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(0.55rem) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-0.55rem) rotate(-45deg); }

/* ---------- BOTÕES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-primary);
    box-shadow: 0 0 1.5rem rgba(0, 217, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 2.5rem rgba(0, 217, 255, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
}

/* ---------- TÍTULOS ---------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.35);
    box-shadow: 0 0 2rem rgba(0, 217, 255, 0.12),
                0 0 4rem rgba(180, 57, 255, 0.08);
}

/* ---------- ANIMAÇÕES DE SCROLL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    z-index: 90;
    box-shadow: 0 0 1.2rem rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img { height: 3rem; margin-bottom: 1rem; }

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 20rem;
}

.footer h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--cyan); }

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border: var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: var(--border-glass);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== bloco de horário no footer ===== */
.footer-horario {
    margin-top: 1.4rem;
}

.footer-horario h4 i {
    font-size: 0.8em;
    margin-right: 0.4rem;
}

.footer-horario p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 20rem);
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    .nav-menu.active { right: 0; }

    .hamburger { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- CTA BOX (compartilhado - igual ao da home) ---------- */
.cta-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.cta-box {
    text-align: center;
    padding: 4.5rem 2rem;
    position: relative;
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.08), transparent 65%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

select,
select option {
    background-color: #0a0a0f !important;
    color: #ffffff !important;
}