/* Modern CSS Reset & Vars */
:root {
    --primary: #0077B6;
    --primary-light: #00B4D8;
    --primary-dark: #023047;
    --accent: #FFB703;
    --accent-hover: #FB8500;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;

    --font-main: 'Outfit', sans-serif;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

img,
svg {
    max-width: 100%;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--accent);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(0, 119, 182, 0.39);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-dark);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.5);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(0, 180, 216, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 183, 3, 0.1) 0%, transparent 40%);
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 180, 216, 0.3);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 183, 3, 0.2);
    bottom: 100px;
    left: -50px;
    animation: float 8s infinite ease-in-out alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 119, 182, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.cta-note {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    margin: 0 !important;
}

/* Mascot Animation */
.hero-mascot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.boneco {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 119, 182, 0.15));
    animation: hoverMascot 4s infinite ease-in-out;
}

.mascot-speech-bubble {
    position: absolute;
    top: 10%;
    right: -10%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 250px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s both;
    z-index: 10;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes hoverMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mascot-rays {
    animation: spin 30s linear infinite;
    transform-origin: 250px 250px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.arm-move {
    animation: wipe 3s infinite alternate ease-in-out;
    transform-origin: 150px 260px;
}

@keyframes wipe {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(15deg);
    }
}

.sparkle {
    animation: blink 2s infinite alternate;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Ticker Ribbon */
.ticker-wrapper {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    gap: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
}

.benefit-card:hover::before {
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    background: var(--primary);
}

.benefit-card:hover .icon-wrapper svg {
    stroke: white;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 200px;
    background-color: #E2E8F0;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Use elegant CSS gradients as images since we can't generate images */
.residencial {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.8), rgba(0, 119, 182, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"/></svg>') center/contain;
}

.comercial {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.8), rgba(251, 133, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>') center/contain;
}

.usinas {
    background: linear-gradient(135deg, rgba(2, 48, 71, 0.8), rgba(0, 119, 182, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>') center/contain;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    margin-bottom: 1rem;
}

/* Bottom CTA */
.bottom-cta {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.2) 0%, transparent 60%);
    z-index: 1;
}

.bottom-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
}

.cta-text {
    flex: 1;
    color: white;
    max-width: 600px;
}

.cta-text h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-text .btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.cta-text .btn-primary:hover {
    background-color: white;
}

.cta-mascot-img {
    width: 250px;
}

.boneco-mini {
    width: 100%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.cheer {
    animation: wave 1.5s infinite alternate ease-in-out;
    transform-origin: bottom center;
}

@keyframes wave {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.cta-bump {
    animation: bump 2s infinite;
}

@keyframes bump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo svg path {
    stroke: white !important;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #94A3B8;
    max-width: 300px;
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: #94A3B8;
    margin-bottom: 0.75rem;
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 0.875rem;
}

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

    .hero-content {
        order: 1;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-mascot {
        order: 0;
        margin-bottom: 2rem;
    }

    .mascot-speech-bubble {
        right: 0;
        top: -10%;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .cta-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-mascot {
        max-width: 280px;
        margin: 0 auto;
    }

    .mascot-speech-bubble {
        position: relative;
        right: auto;
        top: auto;
        margin: 20px auto 0;
        width: 90%;
    }
}


@media (max-width: 768px) {

    .nav-links,
    .navbar .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile Menu Open State */
    .nav-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-active .mobile-menu-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-active .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-active .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}