/* ───── SEÇÃO HERO ───── */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: clamp(60px, 11vh, 120px) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: 0 20px;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    color: var(--primary);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
    text-align: center;
}

.hero p {
    max-width: 400px;
    margin: 0 0 30px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease 0.1s both;
    text-align: center;
}

.hero .btn {
    display: inline-block;
    margin: 0;
}

.hero .btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 113, 19, 0.5);
}

@media screen and (max-width: 991px) {
    .hero {
        min-height: 50vh;
    }
}

@media screen and (max-width: 767px) {
    .hero {
        min-height: 45vh;
    }
}

@media screen and (max-width: 575px) {
    .hero {
        min-height: 40vh;
        padding: clamp(40px, 8vh, 80px) 0;
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }

    .hero h1 {
        color: var(--primary-dark);
    }

    .hero p {
        color: rgba(255, 255, 255, 0.95);
    }
}

/* ───── SEGMENTOS DE ATUAÇÃO ───── */

.segments-section {
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
    padding: clamp(20px, 8vw, 20px) 0;
    position: relative;
    overflow: hidden;
}

.segments-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
}

.segments-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(40px, 6vw, 60px);
    padding: 0 20px;
}

.segments-header .text-title {
    display: inline-block;
    position: relative;
}

.segments-header .text-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 3px;
}

.segments-header .text-subtitle {
    max-width: 600px;
    margin: 20px auto 0;
}

/* Grid de imagens dos segmentos */
.segments-grid-images {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 25px;
}

@media screen and (min-width: 769px) {
    .segments-grid-images {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
        max-width: 1200px;
    }
}

@media screen and (max-width: 768px) {
    .segments-grid-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .segments-grid-images {
        gap: 12px;
        padding: 0 12px;
    }
}

.segment-img-link {
    text-decoration: none;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 36px;
    transition: var(--transition);
    margin: 0 auto;
    width: 100%;
}

@media screen and (min-width: 769px) {
    .segment-img-link {
        max-width: 260px;
    }
}

@media screen and (max-width: 768px) {
    .segment-img-link {
        max-width: 100%;
    }
}

@media screen and (min-width: 1400px) {
    .segments-grid-images {
        max-width: 1300px;
    }
    
    .segment-img-link {
        max-width: 280px;
    }
}

.segment-img-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-dark);
    border-radius: 28px;
    transition: var(--transition);
}

.segment-img-link:hover .segment-img-container {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

.segment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
}

.segment-img-link:hover .segment-img {
    transform: scale(1.1);
}

.segment-img-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    letter-spacing: 1px;
    text-align: center;
    transition: var(--transition);
}

.segment-img-link:hover .segment-img-label {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.segment-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
    border-radius: 26px;
}

.segment-img-link:hover .segment-img-overlay {
    opacity: 1;
}

.segment-img-overlay span {
    color: white;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.segment-img-link:hover .segment-img-overlay span {
    transform: translateY(0);
}

.segment-img-overlay span i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.segment-img-link:hover .segment-img-overlay span i {
    transform: translateX(5px);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .segment-img-label {
        bottom: 12px;
        left: 12px;
        right: 12px;
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .segment-img-overlay span {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
}

@media screen and (max-width: 576px) {
    .segment-img-label {
        bottom: 10px;
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .segment-img-overlay span {
        font-size: 0.65rem;
        padding: 6px 12px;
    }
}

@media screen and (max-width: 380px) {
    .segment-img-label {
        bottom: 8px;
        font-size: 0.55rem;
        padding: 4px 6px;
    }

    .segment-img-overlay span {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
}

/* Tema escuro - Segmentos */
[data-theme="dark"] .segment-img-label {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .segment-img-overlay {
    background: linear-gradient(135deg, rgba(0, 77, 140, 0.9), rgba(204, 90, 14, 0.9));
}

/* ───── GALERIA PLANETA CONEXÃO ───── */

.moments-gallery {
    padding: clamp(40px, 8vw, 20px) 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
    overflow: hidden;
}

.gallery-section {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 32px;
}

.gallery-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 0 -4px;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
    padding: 20px 4px 30px;
    touch-action: pan-y;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 16px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.gallery-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: var(--secondary);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-slide:hover img {
    transform: scale(1.08);
}

.gallery-slide .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: white;
    padding: 30px 20px 20px;
}

.gallery-slide .gallery-caption h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 4px;
    color: white;
}

.gallery-slide .gallery-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--surface);
    color: var(--primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.gallery-nav:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot:hover {
    background-color: var(--secondary);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: scale(1.2);
    width: 32px;
    border-radius: 20px;
}

@media screen and (max-width: 1199px) {
    .gallery-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media screen and (max-width: 767px) {
    .gallery-slide {
        flex: 0 0 100%;
    }

    .gallery-nav {
        display: none;
    }

    .gallery-dots {
        gap: 8px;
    }

    .gallery-dot.active {
        width: 24px;
    }
}

/* ───── TRABALHE CONOSCO ───── */

.work-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: clamp(40px, 6vw, 20px);
    background: var(--surface);
    text-align: center;
}

.work-banner-img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: unset;
    border-radius: 0;
}

.work-banner-overlay {
    display: none;
}

.work-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary) 50%, 
        transparent 100%);
    z-index: 2;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .work-banner {
        margin-bottom: 40px;
        padding: 15px 0;
    }
    
    .work-banner-img {
        max-width: 100%;
        height: auto;
    }
    
    .work-banner::after {
        height: 3px;
    }
}

@media screen and (max-width: 480px) {
    .work-banner {
        margin-bottom: 30px;
        padding: 10px 0;
    }
    
    .work-banner::after {
        height: 2px;
    }
}

/* Tema escuro - Trabalhe Conosco */
[data-theme="dark"] .work-card {
    background: var(--surface);
}

[data-theme="dark"] .work-card .card-icon {
    background: var(--muted);
}

[data-theme="dark"] .work-card:hover .card-icon {
    background: var(--secondary);
}

/* ───── VENHA NOS VISITAR ───── */

.visit-section {
    padding: clamp(40px, 8vw, 80px) 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.visit-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(40px, 6vw, 60px);
    padding: 0 20px;
}

.visit-header .text-title span {
    color: var(--secondary);
    position: relative;
}

.visit-header .text-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    opacity: 0.25;
    border-radius: 4px;
    z-index: -1;
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 25px);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.info-card:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--secondary);
    transition: var(--transition);
}

.info-card:hover .info-icon i {
    color: white;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 12px;
}

.info-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list span,
.hours-list strong {
    color: var(--text-light);
    font-size: 0.95rem;
}

.hours-list strong {
    color: var(--primary);
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--muted);
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.info-link:hover {
    background: var(--secondary);
    color: white;
    gap: 12px;
}

.phone-link,
.email-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 4px;
}

.phone-link:hover,
.email-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.visit-map {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.store-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.store-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 30px 20px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-caption i {
    color: var(--secondary);
}

.image-caption span {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

@media screen and (max-width: 991px) {
    .visit-content {
        grid-template-columns: 1fr;
    }

    .visit-info {
        max-width: 600px;
        margin: 0 auto;
    }

    .map-container {
        height: 400px;
    }
}

@media screen and (max-width: 767px) {
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-icon {
        margin-bottom: 10px;
    }

    .hours-list li {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .info-link {
        width: 100%;
        justify-content: center;
    }

    .map-container {
        height: 350px;
    }

    .image-caption {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 575px) {
    .map-container {
        height: 300px;
    }
}

/* ───── ANIMAÇÕES ───── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.segments-header,
.segments-grid-images {
    animation: fadeInUp 0.6s ease-out forwards;
}

.segments-grid-images {
    animation-delay: 0.2s;
}

/* ───── ALTO CONTRASTE ───── */

@media (prefers-contrast: high) {

    .highlight-card,
    .work-card,
    .segment-img-container {
        border: 2px solid #000000;
    }
}

/* ───── ANIMAÇÕES REDUZIDAS ───── */

@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;
    }
}