/* ==========================================================================
   HRinformática - Homepage Styles
   Loaded alongside styles-shared.css on the homepage only
   ========================================================================== */


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--navbar-height);
    background: var(--color-dark, #171717);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    gap: var(--spacing-lg);
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-green);
    margin-bottom: var(--spacing-sm);
}

.hero-heading {
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow: hidden;
}

/* --- Typing animation --- */
#typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    color: var(--color-green);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subheading {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.hero-arrow {
    margin-top: var(--spacing-sm);
}

.hero-arrow a {
    display: inline-flex;
    color: var(--color-white);
    transition: transform var(--transition-base);
    animation: bounce 2s infinite;
}

.hero-arrow a svg {
    transform: rotate(90deg);
}

.hero-arrow a:hover {
    transform: translateY(8px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* --- Hero load animations --- */
.hero-label,
.hero-heading,
.hero-subheading,
.hero-actions {
    opacity: 0;
    animation: fadeSlideUp 0.6s ease forwards;
}

.hero-label       { animation-delay: 0.1s; }
.hero-heading     { animation-delay: 0.25s; }
.hero-subheading  { animation-delay: 0.4s; }
.hero-actions     { animation-delay: 0.55s; }


/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.services .section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-full);
    background: var(--color-dark);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 16px rgba(23, 23, 23, 0.4);
    border: 2px solid var(--color-green);
}

.service-card:nth-child(2n) .service-icon {
    background: var(--color-dark);
    color: var(--color-green);
    box-shadow: 0 4px 16px rgba(23, 23, 23, 0.4);
    border: 2px solid var(--color-green);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

a.service-card {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   About Preview Section
   ========================================================================== */

.about-preview {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-gray-100);
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.about-preview-content .section-label {
    color: var(--color-blue);
}

.about-preview-content .section-title {
    color: var(--color-gray-900);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.about-preview-text {
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.about-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.about-preview-link:hover {
    gap: 0.6rem;
    color: var(--color-blue-dark);
}

.about-preview-link svg {
    flex-shrink: 0;
}

.about-preview-image {
    position: relative;
}

.about-preview-image .image-frame {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background-color: var(--color-gray-200);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-preview-image .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.why-us {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.why-us .section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.why-us-card {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-us-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-full);
    background: var(--color-dark-light);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    border: 1.5px solid var(--color-green);
}

.why-us-card:nth-child(2) .why-us-icon {
    background: var(--color-dark-light);
    color: var(--color-green);
    border: 1.5px solid var(--color-green);
}

.why-us-icon svg {
    width: 24px;
    height: 24px;
}

.why-us-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.why-us-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}


/* ==========================================================================
   Google Reviews Carousel
   ========================================================================== */

.reviews-section {
    margin-top: var(--spacing-3xl);
}

.reviews-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--color-gray-100);
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--border-radius-full);
}

.google-g {
    width: 36px;
    height: 36px;
}

.google-badge-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.google-stars {
    display: flex;
    gap: 2px;
}

.google-stars svg {
    width: 24px;
    height: 24px;
}

.google-rating {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-700);
}

.reviews-wrapper {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
    opacity: 0.9;
}

.reviews-arrow:hover {
    background: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
    opacity: 1;
}

.reviews-arrow--prev { left: -4px; }
.reviews-arrow--next { right: -4px; }

.reviews-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.reviews-track {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-sm) var(--spacing-xs);
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: box-shadow var(--transition-base);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-gray-700);
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-gray-200);
}

.review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.review-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-gray-900);
    text-decoration: none;
    text-transform: capitalize;
}

.review-name:hover {
    color: var(--color-green);
}

.review-google {
    opacity: 0.5;
    margin-left: auto;
    flex-shrink: 0;
}

/* Reviews scroll animation */
.reviews-section.animate-on-scroll {
    opacity: 0;
}

.reviews-section.animate-on-scroll.visible {
    animation: fadeSlideUp 0.6s ease forwards;
}


/* ==========================================================================
   Scroll Reveal Animations (IntersectionObserver only)
   ========================================================================== */


/* --- Service cards: hidden until visible --- */
.services-grid.animate-on-scroll .service-card {
    opacity: 0;
}

.services-grid.animate-on-scroll.visible .service-card {
    animation: fadeSlideUp 0.5s ease forwards;
}

.services-grid.animate-on-scroll.visible .service-card:nth-child(1) { animation-delay: 0s; }
.services-grid.animate-on-scroll.visible .service-card:nth-child(2) { animation-delay: 0.1s; }
.services-grid.animate-on-scroll.visible .service-card:nth-child(3) { animation-delay: 0.2s; }
.services-grid.animate-on-scroll.visible .service-card:nth-child(4) { animation-delay: 0.3s; }
.services-grid.animate-on-scroll.visible .service-card:nth-child(5) { animation-delay: 0.4s; }
.services-grid.animate-on-scroll.visible .service-card:nth-child(6) { animation-delay: 0.5s; }

/* --- About preview: hidden until visible --- */
.about-preview-grid.animate-on-scroll {
    opacity: 0;
}

.about-preview-grid.animate-on-scroll.visible {
    animation: fadeSlideUp 0.6s ease forwards;
}

/* --- Why us cards: hidden until visible --- */
.why-us-grid.animate-on-scroll .why-us-card {
    opacity: 0;
}

.why-us-grid.animate-on-scroll.visible .why-us-card {
    animation: fadeSlideUp 0.5s ease forwards;
}

.why-us-grid.animate-on-scroll.visible .why-us-card:nth-child(1) { animation-delay: 0s; }
.why-us-grid.animate-on-scroll.visible .why-us-card:nth-child(2) { animation-delay: 0.15s; }
.why-us-grid.animate-on-scroll.visible .why-us-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Section-level fade (CTA): hidden until visible --- */
/* Mobile-only CTA title swap */
.cta-title-mobile { display: none; }

/* Quote wall: mobile-only, hidden on desktop */
.quote-wall { display: none; }

.cta.animate-on-scroll {
    opacity: 0;
}

.cta.animate-on-scroll.visible {
    animation: fadeSlideUp 0.6s ease forwards;
}


/* ==========================================================================
   Responsive -- Tablet (769px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   Responsive -- Mobile (max 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* ==========================================================================
       Mobile Snap Scroll (TikTok-style full-page sections)
       ========================================================================== */

    /* --- Snap scroll container --- */
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .snap-wrapper {
        height: 100dvh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .snap-wrapper.snap-disabled {
        scroll-snap-type: none;
    }

    [data-slide] {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* dvh fallback */
    @supports not (height: 100dvh) {
        .snap-wrapper { height: 100vh; }
        [data-slide] { height: 100vh; min-height: 100vh; max-height: 100vh; }
    }

    /* --- Hero slide --- */
    .hero[data-slide] {
        min-height: 0;
        padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
    }

    .hero-heading {
        font-size: 2rem;
    }

    .hero-subheading {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Show scroll hint on mobile snap */
    .hero-arrow.scroll-hint {
        display: block;
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .hero-arrow.scroll-hint a {
        display: inline-flex;
        color: rgba(255, 255, 255, 0.6);
        animation: bounce 2s infinite;
    }

    .hero-arrow.scroll-hint a svg {
        transform: rotate(90deg);
    }

    /* --- Services slide --- */
    .services[data-slide] {
        padding: calc(var(--navbar-height) + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .services[data-slide] .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .services[data-slide] .section-header {
        margin-bottom: var(--spacing-xl);
        text-align: center;
    }

    .services[data-slide] .section-header .section-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .services[data-slide] .section-header .section-title {
        font-size: 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .service-card {
        padding: 14px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        border-left: none;
        border-radius: var(--border-radius-lg, 12px);
    }

    .service-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-bottom: 0;
    }

    .service-icon svg {
        width: 18px;
        height: 18px;
    }

    .service-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .service-card p {
        display: none;
    }

    /* --- Showcase section wrapper (height-transparent) --- */
    .showcase-section {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        scroll-snap-align: unset;
        scroll-snap-stop: unset;
        overflow: visible;
    }

    .showcase-header,
    .showcase-extras {
        display: none;
    }

    /* --- Why Us slide (Card Tiles — Option D) --- */
    .why-us[data-slide] {
        padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .why-us[data-slide] .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .why-us[data-slide] .section-header {
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }

    .why-us[data-slide] .section-header .section-label {
        display: none;
    }

    .why-us[data-slide] .section-header .section-title {
        font-size: 1.3rem;
    }

    .why-us-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        max-width: 323px;
    }

    .why-us-card {
        background: #111111;
        border-left: 3px solid var(--color-green);
        border-radius: 11px;
        padding: 18px;
        text-align: left;
        display: grid;
        grid-template-columns: 42px 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 3px;
    }

    .why-us-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        grid-row: 1 / -1;
        align-self: center;
        background-color: rgba(124, 184, 48, 0.12);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: var(--color-green);
    }

    .why-us-icon svg {
        width: 20px;
        height: 20px;
    }

    .why-us-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0;
        color: var(--color-white);
        align-self: end;
    }

    .why-us-card p {
        font-size: 0.74rem;
        line-height: 1.4;
        color: var(--color-gray-400, #9ca3af);
        align-self: start;
    }

    /* --- Reviews slide (separate from why-us) --- */
    .reviews-slide[data-slide] {
        padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-dark, #171717);
    }

    /* Hide desktop carousel on mobile, show quote wall */
    .reviews-section-desktop { display: none !important; }

    .quote-wall {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 340px;
        gap: 0;
    }

    .quote-wall-rating {
        margin-bottom: 32px;
    }

    .quote-wall-number {
        display: block;
        font-size: 3.2rem;
        font-weight: 700;
        color: white;
        line-height: 1;
        margin-bottom: 8px;
    }

    .quote-wall-stars {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-bottom: 8px;
    }

    .quote-wall-stars svg {
        width: 22px;
        height: 22px;
    }

    .quote-wall-count {
        font-size: 0.8rem;
        color: var(--color-gray-400, #9ca3af);
    }

    .quote-wall-quotes {
        width: 100%;
    }

    .quote-wall-item {
        padding: 16px 0;
        text-decoration: none;
        display: block;
    }

    .quote-wall-text {
        font-size: 1.1rem;
        font-weight: 500;
        color: white;
        line-height: 1.5;
        margin-bottom: 8px;
        quotes: "\201C" "\201D";
    }

    .quote-wall-text::before {
        content: open-quote;
        color: var(--color-green, #7CB830);
    }

    .quote-wall-text::after {
        content: close-quote;
        color: var(--color-green, #7CB830);
    }

    .quote-wall-author {
        font-size: 0.85rem;
        color: var(--color-gray-400, #9ca3af);
    }

    .quote-wall-divider {
        height: 1px;
        background: #333;
        width: 60%;
        margin: 0 auto;
    }

    /* --- CTA / Contact slide --- */
    .cta-title-desktop { display: none; }
    .cta-title-mobile { display: inline; }

    .cta[data-slide] {
        padding: 24px var(--spacing-lg) 20px;
        display: flex;
        justify-content: center;
        align-items: stretch;
        overflow-y: auto;
    }

    .cta[data-slide] .container {
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cta[data-slide] .cta-content {
        gap: 10px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cta[data-slide] .cta-title {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .cta[data-slide] .cta-contact {
        margin-bottom: 4px;
    }

    .cta[data-slide] .cta-contact-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
    }

    .cta[data-slide] .cta-phone,
    .cta[data-slide] .cta-whatsapp {
        font-size: 0.9rem;
        padding: 10px 18px;
        white-space: nowrap;
    }

    .cta[data-slide] .cta-phone svg,
    .cta[data-slide] .cta-whatsapp svg {
        width: 20px;
        height: 20px;
    }

    /* Form fills remaining space */
    .cta[data-slide] .cta-form {
        margin-top: 12px;
        padding: 0;
        background: none;
        border-radius: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .cta[data-slide] .cta-form form {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Name + Email side-by-side */
    .cta[data-slide] .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cta[data-slide] .form-group {
        margin-bottom: 8px;
    }

    .cta[data-slide] .form-group label {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .cta[data-slide] .form-group input,
    .cta[data-slide] .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }

    /* Textarea grows to fill available space */
    .cta[data-slide] .form-group:has(textarea) {
        flex: 0.8;
        display: flex;
        flex-direction: column;
    }

    .cta[data-slide] .form-group textarea {
        min-height: 60px;
        flex: 1;
    }

    .cta[data-slide] .btn-large {
        padding: 12px;
        font-size: 0.9rem;
        margin-top: 4px;
    }

    /* --- Footer slide (Option E: Refined 2x2 Grid) --- */
    #footer-placeholder[data-slide] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        background: var(--color-black, #171717);
    }

    #footer-placeholder[data-slide] .footer {
        border-top: none;
    }

    /* Hide desktop footer-top (CTA + desktop socials) */
    #footer-placeholder[data-slide] .footer-top {
        display: none;
    }

    /* --- 2x2 grid --- */
    #footer-placeholder[data-slide] .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
        padding: 20px 24px 12px;
        text-align: left;
    }

    /* Column order: Contacto(4)=1, Servicos(2)=2, IA(3)=3, Sobre(1)=4 */
    #footer-placeholder[data-slide] .footer-col:nth-child(1) { order: 4; }
    #footer-placeholder[data-slide] .footer-col:nth-child(2) { order: 2; }
    #footer-placeholder[data-slide] .footer-col:nth-child(3) { order: 3; }
    #footer-placeholder[data-slide] .footer-col:nth-child(4) { order: 1; }

    /* Green section headers with subtle underline */
    #footer-placeholder[data-slide] .footer-col-title {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-green, #8FC93A);
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(143, 201, 58, 0.15);
    }

    /* --- Sobre column (bottom-right) --- */
    #footer-placeholder[data-slide] .footer-about-text {
        font-size: 0.75rem;
        line-height: 1.4;
        color: var(--color-gray-500, #9ca3af);
    }

    #footer-placeholder[data-slide] .footer-about-icon {
        width: 36px;
        margin-top: 8px;
    }

    /* Social icons stay in Sobre column */
    #footer-placeholder[data-slide] .footer-socials-mobile {
        margin-top: 10px;
        justify-content: flex-start;
    }

    /* --- Link columns (Servicos + IA) --- */
    #footer-placeholder[data-slide] .footer-links {
        gap: 4px;
        align-items: flex-start;
    }

    #footer-placeholder[data-slide] .footer-links a {
        font-size: 0.78rem;
        color: var(--color-gray-500, #9ca3af);
    }

    /* --- Contact column (top-left) --- */
    #footer-placeholder[data-slide] .footer-contact-item {
        font-size: 0.75rem;
        margin-bottom: 5px;
        justify-content: flex-start;
        color: var(--color-gray-400, #d1d5db);
    }

    #footer-placeholder[data-slide] .footer-contact-item svg {
        width: 13px;
        height: 13px;
        color: var(--color-green, #8FC93A);
    }

    /* --- Social icon buttons --- */
    #footer-placeholder[data-slide] .footer-socials {
        gap: 8px;
    }

    #footer-placeholder[data-slide] .footer-social-icon {
        width: 32px;
        height: 32px;
    }

    #footer-placeholder[data-slide] .footer-social-icon svg {
        width: 14px;
        height: 14px;
    }

    /* --- Footer bottom bar --- */
    #footer-placeholder[data-slide] .footer-bottom {
        padding: 10px 24px;
        border-top: 1px solid var(--color-gray-800, #262626);
    }

    #footer-placeholder[data-slide] .footer-bottom p {
        font-size: 0.7rem;
    }

    #footer-placeholder[data-slide] .footer-complaints {
        font-size: 0.65rem;
    }

    /* --- About Preview (hide on mobile snap, or make it fit) --- */
    .about-preview {
        padding: var(--spacing-3xl) 0;
    }

    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-preview-content .section-title {
        font-size: 1.5rem;
    }

    .about-preview-image {
        order: -1;
    }
}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-label,
    .hero-heading,
    .hero-subheading,
    .hero-actions,
    .services-grid.animate-on-scroll .service-card,
    .about-preview-grid.animate-on-scroll,
    .why-us-grid.animate-on-scroll .why-us-card,
    .reviews-section.animate-on-scroll,
    .cta.animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .typing-cursor {
        animation: none !important;
        opacity: 1 !important;
    }
}
