/* ==========================================================================
   IDEAL CONTABILIDADE - CSS DESIGN SYSTEM & REDESIGN
   ========================================================================== */

/* 1. Reset & Base Configs */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #0A0C0C;
    --bg-secondary: #111414;
    --bg-tertiary: #171A1A;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(212, 175, 55, 0.25);
    
    /* Vibrant Gold Palette */
    --accent: #E5B842;
    --accent-hover: #FFD700;
    --accent-light: rgba(229, 184, 66, 0.15);
    --accent-gradient: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #B38F24 100%);
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A5A5;
    --text-muted: #6B7070;
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 2. Floating Aurora Spots (Moving Ambient Background) */
.aurora-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.blur-spot {
    position: absolute;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 184, 66, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
    opacity: 0.7;
    animation: float-blur 25s infinite alternate ease-in-out;
}

.blur-spot-1 {
    top: 5%;
    right: -10%;
    animation-delay: 0s;
}

.blur-spot-2 {
    top: 30%;
    left: -15%;
    animation-direction: reverse;
    animation-duration: 30s;
    background: radial-gradient(circle, rgba(229, 184, 66, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

.blur-spot-3 {
    bottom: 25%;
    right: -10%;
    animation-delay: 5s;
    animation-duration: 28s;
}

.blur-spot-4 {
    bottom: 5%;
    left: -10%;
    animation-direction: reverse;
    background: radial-gradient(circle, rgba(229, 184, 66, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes float-blur {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
        opacity: 0.6;
    }
}

/* 3. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 12, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Footer specific logo adjustment */
footer .logo-img {
    height: 44px;
}

.logo-text {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-hover);
}

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

.nav-btn {
    background: var(--accent-gradient);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 15px rgba(229, 184, 66, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 66, 0.4);
}

/* Burger Toggle */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px;
    z-index: 1100;
}

.burger-bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 12, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: block;
}

.mobile-link:hover {
    color: var(--accent-hover);
    transform: scale(1.05);
}

.mobile-nav-btn {
    margin-top: 40px;
    display: inline-block;
}

body.no-scroll {
    overflow: hidden;
}

/* 4. Layout Framework & Reveal Animation */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 5;
}

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 5. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title span.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(229, 184, 66, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 184, 66, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.02);
}

/* 5.5 Hero Trust section */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    margin-right: -16px;
    background-color: var(--bg-tertiary);
    object-fit: cover;
}

.trust-avatar:last-child {
    margin-right: 0;
}

.trust-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
}

.trust-text strong {
    color: var(--text-primary);
}

/* Hero Rising Particles Background */
.hero-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    bottom: -250px;
    background: radial-gradient(circle, rgba(229, 184, 66, 0.12) 0%, rgba(229, 184, 66, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: rise-up linear infinite;
}

/* Individual particle settings */
.particle-1 {
    width: 180px;
    height: 180px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}
.particle-2 {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-duration: 18s;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}
.particle-3 {
    width: 240px;
    height: 240px;
    left: 45%;
    animation-duration: 32s;
    animation-delay: 2s;
}
.particle-4 {
    width: 120px;
    height: 120px;
    left: 60%;
    animation-duration: 20s;
    animation-delay: 8s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
}
.particle-5 {
    width: 200px;
    height: 200px;
    left: 75%;
    animation-duration: 28s;
    animation-delay: 6s;
}
.particle-6 {
    width: 100px;
    height: 100px;
    left: 90%;
    animation-duration: 22s;
    animation-delay: 10s;
}
.particle-7 {
    width: 70px;
    height: 70px;
    left: 35%;
    animation-duration: 15s;
    animation-delay: 1s;
}
.particle-8 {
    width: 160px;
    height: 160px;
    left: 85%;
    animation-duration: 24s;
    animation-delay: 5s;
}

@keyframes rise-up {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-130vh) scale(1.3) rotate(360deg);
        opacity: 0;
    }
}

/* 6. Marquee Solutions */
.marquee-wrapper {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: marquee 35s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee-item i {
    color: var(--accent);
    font-size: 0.75rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 7. Bento Grid Separator Layout (Thin Lines CSS Grid) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; /* Space out the cards so the running border stands out beautifully */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.bento-item {
    background: var(--bg-secondary);
    padding: 48px;
    position: relative;
    border-radius: 16px;
    z-index: 1;
    overflow: hidden; /* Clips the border mask pseudoclass */
    border: 1px solid rgba(255, 255, 255, 0.06); /* Base thin line */
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    background: rgba(25, 29, 29, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Beautiful thin glowing white line running along the card border */
.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px; /* Thin border thickness */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent, rgba(255, 255, 255, 0.75), transparent);
    background-size: 300% 100%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: border-run-light 8s linear infinite;
    opacity: 0.9; /* Visible all the time */
    transition: opacity var(--transition-smooth);
}

.bento-item:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, #fff, transparent, #fff, transparent);
    background-size: 300% 100%;
    animation-duration: 4s; /* Speed up on hover */
}

@keyframes border-run-light {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.bento-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229,184,66,0.1) 0%, rgba(229,184,66,0.02) 100%);
    border: 1px solid rgba(229, 184, 66, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.bento-item:hover .bento-icon-wrapper {
    border-color: var(--accent);
    background: rgba(229, 184, 66, 0.15);
    transform: scale(1.05);
}

.bento-icon-wrapper i {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.bento-item-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.bento-link {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.bento-link i {
    transition: var(--transition-smooth);
}

.bento-item:hover .bento-link {
    color: var(--accent-hover);
}

.bento-item:hover .bento-link i {
    transform: translateX(4px);
}

/* Services Infinite Carousel Layout */
.services-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* Leave space for buttons */
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0; /* Prevents shadow clipping */
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Base style for carousel items */
.carousel-track .bento-item {
    flex: 0 0 calc((100% - (2 * 24px)) / 3); /* Default 3 columns for desktop */
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .carousel-track .bento-item {
        flex: 0 0 calc((100% - (1 * 24px)) / 2); /* 2 columns for tablet */
    }
    .services-carousel-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .carousel-track .bento-item {
        flex: 0 0 100%; /* 1 column for mobile */
    }
    .services-carousel-wrapper {
        padding: 0 10px;
    }
}

/* Navigation buttons styling */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 12, 12, 0.85);
    border: 1px solid rgba(229, 184, 66, 0.3);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(229, 184, 66, 0.4);
}

.prev-btn {
    left: -20px;
}

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

@media (max-width: 768px) {
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .prev-btn { left: -5px; }
    .next-btn { right: -5px; }
}

/* Dots styling */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    width: 100%;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--accent);
}

/* 8. Contador (Nossos Números) Section */
.counters-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.counter-item {
    padding: 16px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.counter-label {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
}

/* 9. Institucional / "Sobre a Ideal" with Fixed Parallax Image */
.about-section {
    background-image: linear-gradient(180deg, rgba(10, 12, 12, 0.95) 0%, rgba(10, 12, 12, 0.88) 100%), url('imagensdaideal/fotodaideal.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-content-left {
    padding-right: 24px;
}

.about-text-bold {
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #fff;
    border-left: 3px solid var(--accent);
    padding-left: 24px;
}

.about-text-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-benefits-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-benefit-item i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 4px;
}

.about-visual-right {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.about-right-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent);
}

.about-right-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-right-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-right-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-right-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.about-right-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 10. Sócios / Quem Somos (4 Columns Grid) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.partner-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 30px rgba(229, 184, 66, 0.1);
}

.partner-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Elegant aspect ratio for headshots */
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.partner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

.partner-card:hover .partner-img {
    transform: scale(1.06);
}

.partner-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.partner-role {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.partner-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #fff;
}

.partner-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Pulsing partner direct WhatsApp button */
.partner-cta-btn {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    animation: pulse-gold-btn 2.2s infinite;
}

.partner-cta-btn span {
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.25;
    display: inline-block;
}

.partner-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine-swipe 3s infinite ease-in-out;
}

.partner-cta-btn i {
    font-size: 1.1rem;
}

.partner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 66, 0.5);
}

@keyframes shine-swipe {
    0% {
        left: -150%;
    }
    40% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes pulse-gold-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 184, 66, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 184, 66, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 184, 66, 0);
    }
}

/* 11. Simulador Widget */
.simulador-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.simulador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.simulador-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: #fff;
}

.sim-select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.sim-select:focus {
    border-color: var(--accent);
}

.range-slider-wrapper {
    position: relative;
}

.sim-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
}

.sim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(229, 184, 66, 0.5);
    transition: var(--transition-smooth);
}

.sim-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.revenue-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
}

.simulador-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.result-title {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-regime {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.result-body {
    flex-grow: 1;
}

.result-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-cta {
    margin-top: 24px;
}

.result-cta .btn-primary {
    width: 100%;
    justify-content: center;
}

/* 12. Instagram Section */
.insta-mockup-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.insta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.insta-feed-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.insta-post {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    aspect-ratio: 1;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.insta-post:hover img {
    transform: scale(1.05);
}

.insta-post:hover .insta-post-overlay {
    opacity: 1;
}

.insta-overlay-item {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.insta-overlay-item i {
    margin-right: 4px;
}

/* Seção B2B (Terceirização de Departamento Pessoal) */
.partners-b2b-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.caduceus-3d-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    width: 100%;
}

.caduceus-3d-img {
    width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(229, 184, 66, 0.25));
    animation: rotate-float-caduceus 12s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes rotate-float-caduceus {
    0% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) rotateY(90deg);
    }
    50% {
        transform: translateY(0) rotateY(180deg);
    }
    75% {
        transform: translateY(15px) rotateY(270deg);
    }
    100% {
        transform: translateY(0) rotateY(360deg);
    }
}

/* 13. Contato & Mapa Layout */
.contact-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.contact-card-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0;
}

.form-success-message i {
    font-size: 3.5rem;
    color: #27C93F;
    margin-bottom: 20px;
}

.form-success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success-message p {
    color: var(--text-secondary);
}

/* Map visual wrapper */
.map-visual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-container {
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-secondary);
}

.contact-info-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-info-item h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info-item p a {
    color: var(--accent) !important;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.contact-info-item p a:hover {
    color: var(--accent-hover) !important;
    text-decoration: underline !important;
}

/* Fallback for Safari's automatically parsed phone/email links to ensure they match our styling */
a[href^="tel:"], a[href^="mailto:"] {
    color: var(--accent) !important;
    text-decoration: none !important;
}

/* 14. Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-social-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 15. Pulsing Float WhatsApp Button & CTA elements */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 16. Responsiveness Constraints (Media Queries) */
@media (max-width: 1024px) {
    .section-padding {
        padding: 90px 0;
    }
    .hero-title {
        font-size: 3.25rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Prevent all horizontal page overflows and layout shifting */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    main, section {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Prevent any long words/emails from overflowing margins */
    p, a, span, div, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Disable heavy animated blurs and background elements to cure iPhone rendering lag */
    .blur-spot {
        display: none !important;
        animation: none !important;
    }
    .hero-bg-particles {
        display: none !important;
        animation: none !important;
    }
    
    /* Fix iPhone/iOS fixed background scroll rendering lag and overflow bug */
    .about-section {
        background-attachment: scroll !important;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-padding {
        padding: 60px 0; /* Compress vertical padding between sections on mobile */
    }
    
    .section-header {
        margin-bottom: 36px; /* Reduce title headers margins */
    }
    
    .section-title {
        font-size: 1.8rem; /* Extremely safe title size to prevent line/margin overflows */
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Make bento items (cards) much more compact on mobile */
    .bento-item {
        padding: 24px;
    }
    
    .bento-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .bento-icon-wrapper i {
        font-size: 1.25rem;
    }
    
    .bento-item-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .bento-item-desc {
        font-size: 0.9rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    .carousel-track {
        gap: 16px;
    }
    
    /* Optimize counters section on mobile */
    .counters-grid {
        gap: 16px;
        padding: 0 10px;
    }
    
    .counter-item {
        padding: 8px;
    }
    
    .counter-number {
        font-size: 2.5rem; /* Prevent layout clipping */
        margin-bottom: 4px;
    }
    
    .counter-label {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    header {
        padding: 16px 0;
    }
    .logo-img {
        height: 44px;
    }
    .nav-menu, .nav-btn {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    
    /* Hero mobile spacing and fonts */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.3rem; /* Slightly smaller for mobile screens */
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    .hero-ctas .btn-primary, .hero-ctas .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-trust {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }
    .trust-text {
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .services-bento {
        grid-template-columns: 1fr;
    }
    
    /* Optimize Partners/Quem Somos section on mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 360px; /* Reduced card width to avoid looking massive on screens */
        margin: 0 auto;
        gap: 20px;
    }
    .partner-info {
        padding: 20px;
        text-align: center;
    }
    .partner-name {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    .partner-bio {
        font-size: 0.88rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    .partner-cta-btn {
        width: 100%;
    }
    
    /* Center and optimize "Sobre a Ideal" on mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-content-left {
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-content-left .btn-primary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .about-text-bold {
        border-left: none;
        border-top: 2px solid var(--accent);
        border-bottom: 2px solid var(--accent);
        padding: 16px 0;
        margin: 20px auto;
        max-width: 500px;
        text-align: center;
    }
    .about-visual-right {
        padding: 24px;
        text-align: center;
    }
    
    .simulador-container {
        padding: 24px 16px;
    }
    .simulador-results {
        padding: 20px;
        min-height: auto;
    }
    .result-cta {
        margin-top: 16px;
    }
    .result-cta .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.92rem !important;
        border-radius: 30px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }
    .simulador-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .contact-card-wrapper {
        padding: 24px;
        text-align: center;
    }
    .contact-info-item p {
        word-break: break-word;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* B2B Partnership Mobile Overrides */
    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .partnership-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .partnership-content .about-benefits-list {
        align-items: center;
        text-align: left;
    }
    .caduceus-3d-img {
        width: 200px;
    }
}
