/* CSS Variables & Reset */
:root {
    /* Brand Colors */
    --color-primary: #982D76;
    /* Magenta Convexa */
    --color-primary-dark: #7a235e;
    --color-secondary: #442949;
    /* Dark Purple/Grey for Headings */
    --color-text: #666666;
    /* Body Text */
    --color-text-dark: #1a1a1a;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e1e4e8;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Grid */
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Smooth Scroll & Custom Scrollbar */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-alt);
}

/* Webkit Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 6px;
    border: 3px solid var(--color-bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-dark);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(152, 45, 118, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(152, 45, 118, 0.4);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-secondary);
    margin-left: 1rem;
}

.btn--outline:hover {
    border-color: var(--color-secondary);
    background-color: rgba(68, 41, 73, 0.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-lg) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #fefeff 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero__content {
    z-index: 2;
    padding-right: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(152, 45, 118, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

.hero__title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    gap: 1rem;
}

.hero__actions .btn+.btn {
    margin-left: 0;
    /* Reset margin for gap property */
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.trust-label {
    font-size: 0.875rem;
    color: #888;
}

/* Hero Image & Glassmorphism */
.hero__image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image-mask {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    /* Innovative shape masking or simple rounded rect */
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    box-shadow: 20px 20px 0px rgba(152, 45, 118, 0.05);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero__image:hover {
    transform: scale(1.03);
}

/* Glass Card */
.glass-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    z-index: 3;
}

.glass-icon {
    width: 48px;
    height: 48px;
    background: rgba(152, 45, 118, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.glass-content {
    display: flex;
    flex-direction: column;
}

.glass-title {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1rem;
}

.glass-sub {
    font-size: 0.875rem;
    color: #666;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Section: Differentials (Bento Grid) */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
}

/* --- SECTION 4: DIFFERENTIALS (Grid 4x2) --- */
.differentials {
    background: var(--color-bg-alt);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.diff-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.diff-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.diff-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152, 45, 118, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.diff-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.diff-item:hover .diff-icon {
    background: rgba(152, 45, 118, 0.15);
    transform: scale(1.1);
}

.diff-item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.diff-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .differentials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .diff-item {
        padding: 1.5rem;
    }

    .diff-icon {
        width: 64px;
        height: 64px;
    }

    .diff-icon img {
        width: 36px;
        height: 36px;
    }
}

/* Legacy bento-grid styles (kept for compatibility) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    background: var(--color-bg-alt);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: white;
    border-color: rgba(152, 45, 118, 0.1);
}

.bento-item--tall:hover {
    background: linear-gradient(to bottom right, var(--color-secondary), #2a182d) !important;
}

.bento-item--large {
    grid-column: span 2;
}

.bento-item--tall {
    grid-row: span 2;
    background: linear-gradient(to bottom right, var(--color-secondary), #2a182d);
    color: white;
}

.bento-item--tall h3,
.bento-item--tall p {
    color: white;
}

.bento-item--tall .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(152, 45, 118, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .hero__content {
        padding-right: 0;
        text-align: center;
    }

    .hero__actions,
    .trust-indicators {
        justify-content: center;
    }

    /* Esconder imagem e card flutuante no mobile */
    .hero__image-wrapper {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item--large,
    .bento-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- SECTION 2: ABOUT --- */
.about {
    padding: 100px 0;
    background-color: white;
}

.container--narrow {
    max-width: 800px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.about__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-secondary);
    line-height: 1.2;
}

.about__body {
    border-left: 4px solid var(--color-primary);
    padding-left: 24px;
}

.about__body p {
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* --- SECTION 3: SERVICES (MASONRY) --- */
.services {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* FIX: Allow grid to grow automatically instead of fixed 2 rows */
    grid-auto-rows: 280px;
    gap: 24px;
}

.masonry-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ddd;
}

.masonry-img,
.placeholder-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;

    /* FIX: Force height confinement to parent to avoid overflowing giant images */
    position: absolute;
    top: 0;
    left: 0;
}

.placeholder-bg {
    width: 100%;
    background-color: var(--color-secondary);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: all 0.3s ease;
}

.masonry-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.masonry-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-desc p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-desc {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

/* Grid Spans */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-auto-rows: 250px;
    }

    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    .item-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services .section-header {
        margin-bottom: 48px;
    }

    .item-large,
    .item-tall,
    .item-wide,
    .masonry-item {
        grid-column: span 1;
        grid-row: span 1;
        height: 280px;
    }

    .masonry-desc {
        max-height: 100px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTION 5: LOGOS (CARROSSEL INFINITO) --- */
.section--logos {
    padding: 80px 0;
    background: white;
    border-top: 1px solid var(--color-border);
}

.center-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logos-title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 0.5rem;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: scroll-logos 40s linear infinite;
    width: max-content;
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

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

.logo-item {
    flex-shrink: 0;
    width: 220px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- SECTION 6: TESTIMONIALS (COMPACT) --- */
/* --- SECTION 6: TESTIMONIALS (GRID 3 COL) --- */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--color-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.quote-icon {
    color: var(--color-primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 2rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-style: normal;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.author-role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    text-transform: none;
    font-weight: 400;
}

@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .testimonial-card {
        text-align: center;
        padding: 2rem;
    }
}

/* --- SECTION 7: VIDEO (CONTAINER) --- */
.video-highlight {
    padding: 80px 0;
    background: white;
}

.video-container-frame {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.video-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.video-subtitle {
    color: #666;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- SECTION 8: LOCATION & FAQ --- */
.location-faq {
    padding: 100px 0;
    background: white;
}

.container--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Location Col */
.location-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-title {
    font-size: 2.25rem;
    color: var(--color-secondary);
}

.location-address {
    font-style: normal;
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.6;
}

.map-embed {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    margin-top: 1rem;
}

/* FAQ Col */
.faq-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.accordion {
    border-top: 1px solid var(--color-border);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-header .icon {
    font-weight: 400;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    color: var(--color-text);
    padding-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .container--split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- SECTION 9: FOOTER --- */
.footer {
    background-color: var(--color-bg-alt);
    padding: 80px 0 0;
    color: var(--color-text);
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: invert(1) brightness(0.2);
    /* Ensures white logo is visible on light bg if needed, or adjust based on actual logo color */
}

.footer-text {
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

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

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto 1.5rem;
    }
}/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- CONTACT MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-header p {
    color: var(--color-text);
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(152, 45, 118, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn--submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.btn--submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

/* --- PERFORMANCE: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- PERFORMANCE: Will-Change for Logo Carousel --- */
.logo-track {
    will-change: transform;
}

/* --- PERFORMANCE: Content Containment --- */
.section {
    contain: layout paint;
}

/* --- PERFORMANCE: Video Facade --- */
.video-facade {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #000;
}
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.video-facade:hover .video-thumb {
    opacity: 1;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}
.play-btn-bg {
    fill: #212121;
    fill-opacity: 0.8;
    transition: fill 0.3s;
}
.video-facade:hover .play-btn-bg {
    fill: #ff0000; /* YouTube Red */
}
