:root {
    --primary: #0f172a; /* Slate 900 */
    --primary-light: #1e293b;
    --dark: #020617;
    --light: #f8fafc;
    --accent: #3b82f6; /* Blue 500 */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --success: #10b981; /* Emerald 500 */
    --text-gray: #64748b;
    --text-dark: #334155;
}

* { margin:0; padding:0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--light); color: var(--text-dark); line-height: 1.7; overflow-x: hidden; }

/* Typography Modern - Heading as Outfit, Body as Inter */
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--primary); font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -0.01em; }
p { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 400; }

/* Subpagina Headers Custom */
.subpage-hero {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(15, 23, 42, 0.9) 100%), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 160px 5% 100px;
    text-align: center;
}
.subpage-hero h1 { color: white; margin-bottom: 20px;}
.subpage-hero p { color: #cbd5e1; max-width: 700px; margin: 0 auto 30px; font-size: 1.25rem;}
.subpage-content { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }

/* Header & Nav */
header { 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; 
    top:0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--primary); letter-spacing: -1px; text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: 0.3s; position: relative;}
nav a:hover { color: var(--accent); }
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* Hero Section */
.hero { 
    padding: 140px 5% 120px; 
    text-align: center; 
    background-image: url('images/banner.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff; 
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: 20px;}
.hero h1 span { color: var(--accent); display: inline-block; position: relative; }
.hero p { color: #e2e8f0; margin-bottom: 40px; font-weight: 400; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn-main { 
    background: var(--accent); 
    color: #fff; 
    padding: 16px 36px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    font-family: 'Inter', sans-serif;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: none; 
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}
.btn-main:hover { 
    background: #2563eb; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); 
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 16px 36px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-flex;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-card {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-card i { transform: translateX(0); transition: 0.3s; margin-left: 5px; font-size: 0.9em; }
.btn-card:hover { color: #2563eb; }
.btn-card:hover i { transform: translateX(5px); }

/* Seções Gerais */
section { padding: 90px 5%; }

/* Glassmorphism Elements */
.glass-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px 30px; 
    border-radius: 24px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Grid de Cards da Home */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card-icon-wrap {
    width: 60px; height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
}
.glass-card:hover .card-icon-wrap { background: var(--accent); }
.glass-card .card-icon-wrap i { font-size: 1.8rem; color: var(--accent); transition: 0.3s;}
.glass-card:hover .card-icon-wrap i { color: #fff; }
.glass-card h3 { margin-bottom: 15px; font-size: 1.4rem; color: var(--primary); }
.glass-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 15px;}

/* Detalhes dos Serviços */
.detalhes-header { text-align: center; margin-bottom: 60px; }
.glass-container {
    display: flex; 
    align-items: center; 
    gap: 60px; 
    margin-bottom: 80px; 
    background: #fff;
    padding: 50px;
    border-radius: 32px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.glass-container.reverse { flex-direction: row-reverse; }
.detalhe-img { flex: 1; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.detalhe-img img { width: 100%; height: auto; max-height: 480px; object-fit: contain; transition: transform 0.7s ease; }
.glass-container:hover .detalhe-img img { transform: scale(1.05); }

.detalhe-info { flex: 1; }
.badge { 
    display: inline-block; padding: 6px 14px; background: #eff6ff; 
    color: var(--accent); font-weight: 600; font-size: 0.85rem; 
    border-radius: 50px; margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
.detalhe-info h2 { font-size: 2.2rem; margin-bottom: 20px; }
.detalhe-info p { color: var(--text-dark); margin-bottom: 25px; }
.detalhe-info ul { list-style: none; margin-bottom: 35px; }
.detalhe-info li { margin-bottom: 15px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-gray); font-weight: 500;}
.detalhe-info li i { color: var(--success); margin-top: 4px; font-size: 1.2rem; }

.btn-detalhe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-detalhe:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }
.btn-detalhe i { transition: 0.3s; }
.btn-detalhe:hover i { transform: translateX(5px); }

/* Seção Sobre */
.sobre-section {
    padding: 120px 5%;
    text-align: center;
    background-color: var(--dark); 
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
}
.sobre-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(2, 6, 23, 0.9); z-index: 1; 
}
.sobre-content-container { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.sobre-content-container h2 { color: #fff; margin-bottom: 30px; }
.sobre-content-container p { font-size: clamp(1.1rem, 2.5vw, 1.25rem); color: #cbd5e1; max-width: 800px; margin: 0 auto 25px auto; }
.sobre-content-container p strong { color: var(--accent); font-weight: 600; }
.sobre-icon-bar { display: flex; justify-content: center; gap: 50px; margin: 60px 0; flex-wrap: wrap; }
.sobre-icon-item { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.sobre-icon-item i { font-size: 3rem; color: var(--accent); }
.sobre-icon-item span { font-weight: 600; font-size: 1rem; color: #fff; }
.punchline { font-size: clamp(1.3rem, 3vw, 1.8rem); font-family: 'Outfit', sans-serif; color: #fff; margin: 40px 0; }

/* Mega Footer */
.mega-footer { background: var(--primary); color: #f1f5f9; padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col .logo { color: #fff; display: inline-block; margin-bottom: 20px;}
.footer-col h4 { color: var(--accent); margin-bottom: 25px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer-col p { color: #94a3b8; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: #fff; padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #64748b; font-size: 0.85rem; }

/* Botão WhatsApp */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--success); color: white;
    border-radius: 50%; width: 65px; height: 65px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; text-decoration: none; z-index: 1001;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
    transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Clientes Secção */
.clientes-section { background: var(--dark); padding: 100px 20px; }
.clientes-container { max-width: 1200px; margin: 0 auto; }
.clientes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.cliente-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px;
    display: flex; align-items: center; justify-content: center;
    width: 200px; height: 120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}
.cliente-card img { max-width: 80%; max-height: 80%; transition: all 0.3s ease; }
.cliente-card .logo-mono { opacity: 0.5; filter: grayscale(100%) brightness(200%); }
.cliente-card .logo-color { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; }
.cliente-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.cliente-card:hover .logo-mono { opacity: 0; transform: scale(1.05); }
.cliente-card:hover .logo-color { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

/* Subpages Content Styling */
.subpage-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.subpage-grid.reverse { grid-template-columns: 1.2fr 1fr; }
.subpage-text h2 { margin-bottom: 25px; font-size: 2.2rem; }
.subpage-text p { margin-bottom: 20px; color: var(--text-dark); }
.subpage-text ul { list-style: none; margin: 30px 0; }
.subpage-text ul li { margin-bottom: 15px; display: flex; gap: 15px; align-items: flex-start; font-weight: 500; font-size: 1.1rem; }
.subpage-text ul li i { color: var(--accent); margin-top: 5px; font-size: 1.2rem; }
.subpage-img img { width: 100%; border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }

.call-to-action-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}
.call-to-action-banner h2 { color: white; margin-bottom: 20px; }
.call-to-action-banner p { color: #eff6ff; margin-bottom: 30px; font-size: 1.2rem; }
.btn-white {
    background: white; color: var(--accent); font-weight: 700;
    padding: 15px 35px; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Cookie Popup */
.cookie-popup {
    position: fixed; bottom: -150%; left: 0; width: 100%;
    background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    color: #fff; padding: 25px 5%; box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    z-index: 9999; transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; justify-content: center;
}
.cookie-popup.show { bottom: 0; }
.cookie-content { max-width: 1200px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cookie-content p { margin: 0; font-size: 0.95rem; color: #cbd5e1; }
.cookie-buttons { display: flex; gap: 15px; flex-shrink: 0; }
.btn-cookie { padding: 12px 24px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-accept { background: var(--success); color: #fff; }
.btn-accept:hover { background: #059669; }
.btn-decline { background: transparent; color: #94a3b8; border: 1px solid #475569; }
.btn-decline:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Animation Base */
.fade-in { animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsiveness */
@media (max-width: 992px) {
    .glass-container, .glass-container.reverse { flex-direction: column; gap: 40px; padding: 40px 30px; }
    .detalhe-img { width: 100%; }
    .detalhe-img img { height: auto; max-height: 350px; }
    .subpage-grid, .subpage-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    nav { display: none; }
    header .btn-main { padding: 8px 16px; font-size: 0.85rem; }
    .hero { min-height: 80vh; padding: 120px 5% 80px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .whatsapp-btn { width: 55px; height: 55px; font-size: 28px; bottom: 20px; right: 20px; }
    .clientes-grid { grid-template-columns: repeat(2, 1fr); }
    .cliente-card { width: 100%; }
    .cookie-content { flex-direction: column; text-align: center; gap: 20px;}
    .cookie-buttons { width: 100%; justify-content: center; }
}
