/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
   :root {
    /* Colors - Educational Blue Palette (SESI inspired) */
    --color-primary: #0056b3; /* Main Blue */
    --color-primary-dark: #003d82;
    --color-primary-light: #e6f0fa;
    --color-secondary: #00a859; /* Green accent / success */
    --color-accent: #f5a623; /* Warm accent for contrast */
    
    /* WhatsApp Color */
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    /* Neutrals */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-main: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #eaeaea;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--color-primary);
    font-weight: 400;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.hero-image {
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.hero-illustration {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-shape svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Sobre Nós
   ========================================================================== */
.sobre-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-text p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.sobre-image {
    position: relative;
}

.rounded-image {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-main);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--color-text-muted);
}

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-grid {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
    background: var(--color-bg-main);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-icon.whatsapp {
    background-color: #e8f5e9;
    color: var(--color-whatsapp);
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.info-item p, .info-item a {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-brand h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand .logo-highlight {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--color-whatsapp-dark);
    color: white;
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .sobre-container {
        grid-template-columns: 1fr;
    }
    
    .sobre-image {
        order: -1;
    }

    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        padding: 40px 24px;
        transition: left var(--transition-normal);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
