/* RESET E VARIÁVEIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a2b48;
    --accent: #4361EE;
    --accent-hover: #3b52ce;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #fff;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --container-width: 1200px;
    --transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --radius-pill: 50px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Helper Class to prevent scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.section-padding {
    padding: 80px 0
}

.text-center {
    text-align: center
}

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

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

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white p,
.text-white li,
.text-white i,
.text-white span {
    color: var(--white);
}

/* TIPOGRAFIA */
h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary)
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 10px
}

p {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(67, 97, 238, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.23);
}

.btn-ghost {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
    background: transparent;
}

.btn-ghost:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* HEADER */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: none;
    /* Removed heavy shadow for cleaner look */
}

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

.logo {
    display: flex;
    align-items: center;
    height: 50px;
    overflow: hidden;
    text-decoration: none;
    z-index: 1001;
    /* Above mobile menu */
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Navigation - Desktop */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-menu ul li a:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

/* HERO */
.hero {
    background: linear-gradient(135deg, #f4f7f9, #e9eff5);
    padding: 90px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    /* Important for preventing image overflow */
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-bullets {
    list-style: none;
    margin: 20px 0
}

.hero-bullets li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 10px;
}

/* HERO COM IMAGEM */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 120%;
    /* Slight adjustment */
    width: auto;
    height: auto;
    object-fit: cover;
    /* Removed complex masks that break layouts */
}

/* GRIDS OVERHAUL */
/* GRIDS OVERHAUL */
.grid-problems,
.grid-pillars,
.grid-services,
.grid-diffs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* FORCED 4 COLUMNS DESKTOP */
    gap: 24px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {

    .grid-problems,
    .grid-pillars,
    .grid-services,
    .grid-diffs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .grid-problems,
    .grid-pillars,
    .grid-services,
    .grid-diffs {
        grid-template-columns: 1fr;
    }
}

/* Default Card Styles */
.problem-card,
.pillar,
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    /* Light border default */
    transition: all 0.3s ease;
    /* Smoother transition */
    position: relative;
    /* Context for children */
}

.problem-card:hover,
.service-card:hover,
.pillar:hover {
    border-color: var(--accent);
    /* Blue border on hover */
    transform: translateY(-8px);
    /* Lift effect */
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
    /* Stronger blue shadow */
    z-index: 2;
}

/* FOOTER - see FOOTER REDESIGN section below for main styles */

/* RESPONSIVENESS MEDIA QUERIES */

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 2.2rem;
    }
}

/* Tablet & Mobile Header moved to bottom to ensure priority */


/* FAQ ACCORDION */
.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 22px;
}


/* =========================================
   AGENTS IA PAGE STYLES (.page-agents)
   Merged from agentes-ia.css
   ========================================= */

/* Grid Overrides for Agents Page */
@media (min-width: 1024px) {
    .page-agents .grid-problems {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .page-agents .grid-benefits {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Problem Card - Agents Version */
.page-agents .problem-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-agents .problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.page-agents .problem-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pricing Highlight (Unique) */
.pricing-highlight {
    background: #fff;
    max-width: 600px;
    margin: 40px auto;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(67, 97, 238, 0.15);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-highlight:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.pricing-highlight h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.pricing-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.pricing-features {
    text-align: left;
    margin: 30px 0;
    font-size: 1.1rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.price-tag {
    margin: 30px 0;
    color: var(--primary);
}

.price-tag .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.price-tag .value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-tag .period {
    color: var(--text-light);
    font-size: 1rem;
    display: block;
    margin-top: 5px;
}

.pulsing-btn {
    animation: pulse-accent 2s infinite;
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Carousel (Unique) */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 60px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
}

.slide {
    display: none;
    animation: fadeEffect 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 0;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* FAQ (Scoped to Agents Page) */
.page-agents .faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-agents .faq-item {
    margin-bottom: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* HERO BREAKOUT & FLIP (Scoped to override style.css) */
/* Shared Breakout for Agents, Home, and Traffic */
.page-agents .hero,
.page-home .hero,
.page-traffic .hero,
.page-tracking .hero {
    position: relative;
    overflow: visible;
}

.page-agents .hero-content,
.page-home .hero-content,
.page-traffic .hero-content,
.page-tracking .hero-content {
    position: relative;
    z-index: 2;
}

.page-agents .hero-image,
.page-home .hero-image,
.page-traffic .hero-image,
.page-tracking .hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60vw;
    z-index: 0;

    /* Override standard image mask from style.css */
    mask-image: linear-gradient(to right, transparent 20%, black 55%);
    -webkit-mask-image: linear-gradient(to right, transparent 20%, black 55%);
}

/* Force override of .hero-image img from style.css */
.page-agents .img-flip {
    transform: scaleX(-1) scale(1.0) translateX(-15%);
    width: 100%;
    height: 100%;
    object-position: left;
    object-fit: cover;
    mask-image: none;
    -webkit-mask-image: none;
}

.page-home .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    mask-image: none;
    -webkit-mask-image: none;
}

.page-traffic .hero-image img {
    width: 100%;
    height: calc(100% + 80px);
    margin-top: -150px;
    object-fit: cover;
    object-position: center top;
    display: block;
    mask-image: none;
    -webkit-mask-image: none;
}

@media (max-width: 900px) {

    .page-agents .hero-grid,
    .page-home .hero-grid,
    .page-traffic .hero-grid,
    .page-contact .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-agents .hero-content,
    .page-home .hero-content,
    .page-traffic .hero-content,
    .page-contact .hero-content {
        order: 2;
    }

    .page-agents .hero-image,
    .page-home .hero-image,
    .page-traffic .hero-image,
    .page-contact .hero-image {
        position: relative;
        width: 100%;
        order: 1;
        height: 300px;
        overflow: hidden;
    }

    .page-agents .hero-image {
        margin-bottom: 150px;
    }

    .page-home .hero-image,
    .page-traffic .hero-image,
    .page-contact .hero-image {
        margin-bottom: 50px;
    }

    .page-agents .img-flip,
    .page-home .hero-image img,
    .page-contact .hero-image img {
        width: 100%;
        /* Mobile Mask: Bottom fade */
        mask-image: linear-gradient(to bottom, transparent, black 10%);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%);
    }

    .page-traffic .hero-image img {
        width: 100%;
        height: 100%;
        margin-top: 0;
        mask-image: linear-gradient(to bottom, transparent, black 10%);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%);
    }

    .page-agents .grid-benefits {
        grid-template-columns: 1fr;
    }
}

/* PAGE SPECIFIC: TRAFFIC PAGE */
@media (min-width: 1024px) {
    .page-traffic .grid-diffs {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.page-traffic .problem-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Base subtle shadow */
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.page-traffic .problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    /* Hover strong shadow */
    border-color: var(--accent);
}

.page-traffic .problem-card .icon {
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 1;
    color: var(--accent);
    /* Ensure brand color */
    font-size: 1.8rem;
}

.page-traffic .problem-card h3 {
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 2;
    color: var(--primary);
}

.page-traffic .problem-card p {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 15px;
    line-height: 1.5;
    color: var(--text-light);
}

/* Service Card Alignment */
/* Service Card Alignment - Simplified */
.page-traffic .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-traffic .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-traffic .service-card>div:first-child {
    margin-bottom: 20px !important;
}

.page-traffic .service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.page-traffic .service-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-traffic .service-card ul {
    margin-top: auto;
    /* Push to bottom if needed, or just let it flow */
    padding-left: 0;
}

/* FOOTER REDESIGN - SOCIAL FORTRESS */
.main-footer {
    background-color: #ffffff;
    color: #333;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    /* 3 columns: Logo, Social, Contact */
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
    justify-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Specific adjustment for Logo column to be centered */
.footer-brand .logo {
    margin-bottom: 0;
}

/* New Social Column Styles */
.footer-social h3,
.footer-contact h3,
.footer-services h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 700;
    text-align: left;
}

.social-fortress {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
}

.social-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.social-group span {
    display: block;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    /* Make it look like a subtitle */
    min-width: unset;
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons a {
    color: #555;
    font-size: 1.2rem;
    /* Reduced from 1.5rem to match contact icons better */
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* BRAND COLORS */
.social-icons .fa-instagram {
    color: #E1306C;
}

.social-icons .fa-linkedin {
    color: #0077B5;
}

.social-icons .fa-facebook {
    color: #1877F2;
}

.social-icons .fa-youtube {
    color: #FF0000;
}

.footer-contact ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-contact li,
.footer-services li {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    /* Flex alignment for icon + text */
    align-items: flex-start;
    /* Top align if text wraps, or center if single line */
    gap: 10px;
    /* Space between icon and text */
    text-align: left;
}

.footer-contact li a,
.footer-services li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact li a:hover,
.footer-services li a:hover {
    color: var(--accent);
}

.footer-contact i,
.footer-services i {
    color: var(--accent);
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
    margin-right: 0;
    /* Handled by gap */
    margin-top: 3px;
    /* Visual adjustment for text alignment */
}

/* Specific color for WhatsApp icon */
.footer-contact .fa-whatsapp {
    color: #25D366;
    /* WhatsApp Green */
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.bible-verse {
    margin-top: 15px;
    font-style: italic;
    color: #999;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand .logo {
        margin-bottom: 30px;
    }

    .social-fortress {
        flex-direction: row !important;
        align-items: flex-start;
        justify-content: center;
        gap: 25px;
    }
}

@keyframes pulse-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* VIDEO TESTIMONIALS */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 480px;
    /* Vertical aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover video {
    opacity: 0.6;
}

.play-button {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    border: 2px solid #fff;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background: var(--accent);
    border-color: var(--accent);
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    z-index: 2;
    text-align: left;
}

.video-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: #fff;
}

.video-info p {
    font-size: 0.95rem;
    color: #ddd;
    margin: 0;
}

/* VIDEO LIGHTBOX */
.video-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.video-lightbox-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.video-lightbox video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

/* RESTORED: Service Card Links (Engrenagens) */
a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

a.service-card:hover h3 {
    color: var(--accent);
}

.link-service {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

a.service-card:hover .link-service {
    transform: translateX(5px);
}

.service-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.link-service.muted {
    color: var(--text-light);
}

/* RESTORED: Numbered Pillars (Sistema AlfaVirgo) */
.pillar {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(67, 97, 238, 0.08);
    /* Watermark effect */
    z-index: -1;
    transition: all 0.3s ease;
    line-height: 1;
}

.pillar:hover .pillar-number {
    color: rgba(67, 97, 238, 0.15);
    transform: scale(1.1);
}

.pillar h3 {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.pillar p {
    position: relative;
    z-index: 1;
}

a.service-card:hover h3 {
    color: var(--accent);
}

.link-service {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

a.service-card:hover .link-service {
    transform: translateX(5px);
}

.service-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.link-service.muted {
    color: var(--text-light);
}

/* RESTORED: Numbered Pillars (Sistema AlfaVirgo) */
.pillar {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(67, 97, 238, 0.15);
    /* Subtle accent watermark */
    position: absolute;
    top: -5px;
    right: 20px;
    transition: all 0.3s ease;
    z-index: 0;
}

.pillar:hover .pillar-number {
    transform: translateY(-5px);
    color: rgba(67, 97, 238, 0.3);
}

.pillar h3 {
    margin-top: 20px;
    /* Space for number */
    position: relative;
    z-index: 1;
}

.pillar p {
    position: relative;
    z-index: 1;
}

a.service-card:hover h3 {
    color: var(--accent);
}

.link-service {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

a.service-card:hover .link-service {
    transform: translateX(5px);
}

.service-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.link-service.muted {
    color: var(--text-light);
}

/* RESTORED: Numbered Pillars (Sistema AlfaVirgo) */
.pillar {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(67, 97, 238, 0.08);
    /* Watermark effect */
    z-index: -1;
    transition: all 0.3s ease;
    line-height: 1;
}

.pillar:hover .pillar-number {
    color: rgba(67, 97, 238, 0.15);
    transform: scale(1.1);
}

/* =========================================
   MOBILE RESPONSIVENESS (Approved Fixes)
   Moved to end of file to guarantee priority
   ========================================= */

/* Tablet & Mobile Header (Max Width 900px) */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100% !important;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 90px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Force hide desktop CTA in header */
    .header-container .btn-small {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-image img {
        max-width: 80%;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-ghost {
        margin-left: 0;
    }

    /* Fix Agent Page Hero on Mobile */
    .page-agents .hero-image,
    .page-home .hero-image,
    .page-traffic .hero-image {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        margin-bottom: 20px !important;
    }
}

/* RESTORED: PROBLEMS & ICONS */
.problem-card .icon,
.problem-card span.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: #cb2027;
    /* Deep Red for problems */
    font-weight: bold;
}

.page-traffic .problem-card .icon {
    color: var(--accent);
    /* Blue for features/benefits */
}

/* RESTORED: PILLAR COLORS (Google Ads Theme) */
.pillar-1 {
    border-top: 4px solid #4285F4;
}

.pillar-1 .pillar-number {
    color: rgba(66, 133, 244, 0.15);
}

.pillar-1:hover .pillar-number {
    color: rgba(66, 133, 244, 0.3);
}

.pillar-2 {
    border-top: 4px solid #EA4335;
}

.pillar-2 .pillar-number {
    color: rgba(234, 67, 53, 0.15);
}

.pillar-2:hover .pillar-number {
    color: rgba(234, 67, 53, 0.3);
}

.pillar-3 {
    border-top: 4px solid #FBBC05;
}

.pillar-3 .pillar-number {
    color: rgba(251, 188, 5, 0.15);
}

.pillar-3:hover .pillar-number {
    color: rgba(251, 188, 5, 0.3);
}

.pillar-4 {
    border-top: 4px solid #34A853;
}

.pillar-4 .pillar-number {
    color: rgba(52, 168, 83, 0.15);
}

.pillar-4:hover .pillar-number {
    color: rgba(52, 168, 83, 0.3);
}

/* RESTORED: VIDEO GRID */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 9/16;
    background: #000;
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover video {
    opacity: 0.4;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    z-index: 2;
}

.video-card:hover .play-button {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    z-index: 2;
    text-align: left;
}

.video-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* RESTORED: PROCESS TIMELINE (Como implementamos) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.step {
    text-align: center;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid #eee;
}

.step:hover span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* FIX: Footer Logo Alignment */
.footer-brand .logo {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
}

.footer-brand .logo img {
    height: auto !important;
    max-height: none !important;
    margin-top: 0 !important;
    width: 150px !important;
    object-fit: contain;
    display: block;
}

.main-header .logo img {
    display: block;
}

/* Small Mobile (Max Width 600px) */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-image img {
        max-width: 100%;
    }

    .grid-problems,
    .grid-pillars,
    .grid-services,
    .grid-diffs,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .problem-card,
    .pillar,
    .service-card {
        padding: 20px;
    }
}

.grid-diffs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-diffs {
        grid-template-columns: 1fr;
    }
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-services {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITY CLASSES - Moved from inline styles
   ======================================== */

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 120px 0;
}

/* Hero Gradient with centered text */
.hero-gradient-centered {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 120px 0;
    text-align: center;
}

/* Subtitle on dark backgrounds */
.subtitle-light {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Legal page text color */
.legal-text {
    color: rgb(68, 68, 68);
}

/* Centered content container */
.content-centered {
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Founder section background */
.bg-founder {
    background-color: #f8f9fa;
}

/* Accent colored headings */
.heading-accent {
    color: var(--accent);
}

/* Accent heading with top margin */
.heading-accent-spaced {
    color: var(--accent);
    margin-top: 30px;
}

/* Lead paragraph styling */
.lead-text {
    font-weight: 500;
    color: #555;
}

/* Form Styles (moved from contato.html) */
.form-section {
    background: #fff;
    padding: 60px 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    text-align: center;
}

/* CONTACT PAGE RESPONSIVE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-container {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 0 15px;
    }

    .contact-info,
    .form-container {
        padding: 25px !important;
        max-width: 100% !important;
    }

    .map-container iframe {
        height: 200px !important;
    }

    /* Mobile menu must start hidden */
    .nav-menu {
        right: -100% !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }
}

/* Desktop menu reset - must come after mobile rules */
@media (min-width: 901px) {
    .nav-menu {
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: flex !important;
    }

    .nav-menu ul {
        flex-direction: row !important;
        gap: 20px !important;
    }

    .nav-menu a {
        font-size: 1rem !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}