/*
Theme Name: SIL Theme
Author: Seu Nome
Author URI: https://sil-construction.com
Description: Tema customizado para o site SIL Construction Inc., baseado em um layout estático.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, one-column, custom-menu
Text Domain: siltheme
*/

/* CSS Variables for easy theme management */
:root {
    --primary-color: #C75B1E;
    --dark-blue: #3A3A5A;
    --darker-blue: #292E4E;
    --light-gray: #f9f9f9;
    --text-color: #333;
    --white-color: #fff;
}

/* --- Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a64c18;
}

.btn-dark {
    background-color: var(--darker-blue);
}

.btn-dark:hover {
    background-color: #1c2035;
}

/* --- Header --- */
.main-header {
    background: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container img {
    width: 250px;
    height: auto;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.phone-link i {
    color: var(--primary-color);
}

/* --- Hero Carousel Section --- */
.hero-carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slides-container {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    display: flex;
    justify-content: flex-end;
}

.hero-slide .hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-slide .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-slide .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.hero-slide .hero-content .btn {
    margin-bottom: 20px;
}

.hero-slide .locations {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Hero Carousel Navigation */
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.hero-carousel-nav button {
    background: rgba(199, 91, 30, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-nav button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Carousel Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments for hero carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
    }
    
    .hero-slide .hero-content {
        padding: 25px;
        max-width: 90%;
    }
    
    .hero-slide .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-slide .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-carousel-nav {
        padding: 0 15px;
    }
    
    .hero-carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Legacy hero styles (fallback when no slides exist) */
#hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

#hero .container {
    display: flex;
    justify-content: flex-end;
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-content .locations {
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* --- Labor Banner --- */
#labor-banner {
    background-color: var(--dark-blue);
    color: var(--white-color);
    padding: 50px 0;
}

#labor-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.labor-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

.labor-info h2 {
    font-size: 2.2rem;
    text-align: left;
    margin: 0;
    margin-bottom: 20px;
}

.labor-services ul {
    list-style: none;
    columns: 2;
    column-gap: 40px;
}

.labor-services li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.labor-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--white-color);
}

.labor-contact {
    flex-shrink: 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labor-contact.has-video {
    min-height: 300px;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.labor-contact .video-background {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.labor-contact .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.labor-contact .contact-button-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* --- Image Ticker Section --- */
#image-ticker {
    padding: 60px 0;
    background: var(--white-color);
    overflow: hidden;
}

#image-ticker h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-move {
    display: inline-flex;
    will-change: transform;
    width: max-content;
    /* A animação será aplicada dinamicamente via JavaScript */
}

.ticker-item {
    flex-shrink: 0;
    width: 250px;
    margin: 0 2.5px;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
}

.ticker-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Lightbox custom styles */
.ticker-item a {
    display: block;
    transition: transform 0.3s ease;
    position: relative;
}

.ticker-item a:hover {
    transform: scale(1.05);
}

/* Video ticker styles */
.ticker-video {
    position: relative;
}

.ticker-video .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(199, 91, 30, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ticker-video:hover .video-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.ticker-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.ticker-video:hover::before {
    opacity: 1;
}

.ticker-video img {
    transition: transform 0.3s ease;
}

.ticker-video:hover img {
    transform: scale(1.05);
}

/* Responsive video overlay */
@media (max-width: 768px) {
    .ticker-video .video-overlay {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Force 9:16 aspect ratio for ticker videos on mobile */
    .ticker-item {
        width: 225px; /* 9:16 ratio: 225x400 */
    }
    
    .ticker-item img,
    .ticker-item video {
        height: 400px; /* 9:16 aspect ratio */
        object-fit: cover;
        object-position: center;
    }
}

/* Intermediate breakpoint for tablet ticker videos */
@media (max-width: 992px) and (min-width: 769px) {
    .ticker-item {
        width: 202px; /* 9:16 ratio: 202x360 */
    }
    
    .ticker-item img,
    .ticker-item video {
        height: 360px; /* 9:16 aspect ratio */
        object-fit: cover;
        object-position: center;
    }
}

/* --- Our Services Section --- */
#services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-intro {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.services-intro div {
    flex: 2;
}

.services-intro img {
    flex: 1;
    max-width: 150px;
}

.services-intro h2 {
    text-align: left;
}

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

.service-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* GLightbox video customization for mobile */
@media (max-width: 768px) {
    /* Custom styles for GLightbox video player on mobile */
    .glightbox-container .gvideo {
        aspect-ratio: 9/16 !important;
        max-width: 90vw !important;
        max-height: 80vh !important;
    }
    
    .glightbox-container .gvideo video {
        aspect-ratio: 9/16 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Service gallery videos in modal */
    .glightbox-container .gslide-video {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ensure video thumbnails in service gallery maintain aspect ratio */
    .service-card img,
    .service-card video {
        aspect-ratio: 9/16;
        object-fit: cover;
        object-position: center;
    }
}

/* Tablet breakpoint for service gallery videos */
@media (max-width: 992px) and (min-width: 769px) {
    .glightbox-container .gvideo {
        aspect-ratio: 9/16 !important;
        max-width: 70vw !important;
        max-height: 70vh !important;
    }
    
    .service-card img,
    .service-card video {
        aspect-ratio: 9/16;
        object-fit: cover;
        object-position: center;
    }
}

.service-card h4 {
    font-size: 1.2rem;
    padding: 20px;
    font-weight: 600;
}

/* Service Gallery Enhancement */
.service-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-image-wrapper.has-gallery:hover .gallery-overlay {
    opacity: 1;
}

.service-image-wrapper.has-gallery:hover img {
    transform: scale(1.05);
}

.service-image-wrapper img {
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-icon {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-icon i {
    font-size: 1.2rem;
}

.gallery-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hidden-gallery-items {
    display: none !important;
}

/* Gallery hover effects */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
}

/* Tooltip para cards com galeria */
.gallery-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.has-gallery-card .gallery-tooltip {
    display: block;
}

.has-gallery-card:hover .gallery-tooltip {
    opacity: 1;
}

/* --- Testimonials Section --- */
#testimonials {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    transition: background-image 0.8s ease-in-out;
}

.testimonial-slider {
    position: relative;
}

.slide {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 400;
}

.slide .author {
    font-weight: 700;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* Testimonials overlay */
.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#testimonials .container {
    position: relative;
    z-index: 2;
}

.slider-nav button:hover {
    background: var(--white-color);
}

/* --- Contact Section --- */
#contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    line-height: 1.4;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--dark-blue);
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-list a:hover {
    color: var(--dark-blue);
}

.contact-details-list .fab {
    font-size: 1.8rem;
    margin-right: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-details-list .fab:hover {
    transform: scale(1.1);
}

/* Specific colors for social media icons in contact section */
.contact-details-list .fab.fa-instagram {
    color: var(--dark-blue);
}

.contact-details-list .fab.fa-instagram:hover {
    color: #E4405F;
}

.contact-details-list .fab.fa-facebook-f {
    color: var(--dark-blue);
}

.contact-details-list .fab.fa-facebook-f:hover {
    color: #1877F2;
}

.contact-details-list .fab.fa-whatsapp {
    color: var(--dark-blue);
}

.contact-details-list .fab.fa-whatsapp:hover {
    color: #25D366;
}

/* Social Media Icons Inline Styling */
.contact-details-list .social-media-icons {
    align-items: center;
}

.contact-details-list .social-icons-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 5px;
}

.contact-details-list .social-icons-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.contact-details-list .social-icons-inline a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: currentColor;
}

.contact-details-list .social-icons-inline .fab {
    font-size: 1.5rem;
    margin-right: 0;
    transition: color 0.3s ease;
}

/* Individual social media colors for inline icons */
.contact-details-list .social-icons-inline a[aria-label*="Instagram"] .fab {
    color: var(--dark-blue);
}

.contact-details-list .social-icons-inline a[aria-label*="Instagram"]:hover .fab {
    color: #E4405F;
}

.contact-details-list .social-icons-inline a[aria-label*="Facebook"] .fab {
    color: var(--dark-blue);
}

.contact-details-list .social-icons-inline a[aria-label*="Facebook"]:hover .fab {
    color: #1877F2;
}

.contact-details-list .social-icons-inline a[aria-label*="WhatsApp"] .fab {
    color: var(--dark-blue);
}

.contact-details-list .social-icons-inline a[aria-label*="WhatsApp"]:hover .fab {
    color: #25D366;
}

/* Contact Form Styling */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7 specific styling */
.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-email:focus,
.contact-form .wpcf7-tel:focus,
.contact-form .wpcf7-textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
    background-color: white;
}

.contact-form textarea,
.contact-form .wpcf7-textarea {
    height: 120px;
    resize: vertical;
    min-height: 100px;
}

.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
    background: var(--dark-blue);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 46, 63, 0.3);
}

/* Contact Form 7 validation messages */
.contact-form .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.contact-form .wpcf7-validation-errors {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form .wpcf7-mail-sent-ok {
    color: #27ae60;
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Contact Form 7 spinner */
.contact-form .wpcf7-spinner {
    margin-left: 10px;
}

/* Responsive design for contact section */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .contact-details-list {
        text-align: center;
    }
    
    .contact-details-list li {
        justify-content: center;
        font-size: 1rem;
    }
    
    /* Responsive social icons */
    .contact-details-list .social-icons-inline {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-details-list .social-icons-inline a {
        width: 40px;
        height: 40px;
    }
    
    .contact-details-list .social-icons-inline .fab {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    #contact {
        padding: 60px 0;
    }
}

/* --- Map Section --- */
/* Mapa em escala de cinza com zoom por scroll desabilitado */
/* Para fazer zoom: use Ctrl+scroll ou os controles do mapa */
#map {
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    min-height: 450px; /* Altura mínima para debug */
}

#google-map {
    width: 100% !important;
    height: 450px !important; /* Força altura para debug */
    min-height: 450px !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #e0e0e0; /* Cor de fundo para visualizar */
}

/* Google Maps Info Window Customization */
.gm-style .gm-style-iw-c {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, white 50%, transparent 50%);
    width: 15px;
    height: 15px;
}



/* --- Footer --- */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0;
    text-align: center;
}

.main-footer .logo-container-footer img{
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
    width: 250px;
    height: auto;
}

.footer-contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-contact-info a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info a:hover {
    color: var(--white-color);
}

.social-icons{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a{
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Specific colors for social media icons */
.social-icons a[aria-label*="Instagram"]:hover {
    color: #E4405F;
}

.social-icons a[aria-label*="Facebook"]:hover {
    color: #1877F2;
}

.social-icons a[aria-label*="WhatsApp"]:hover {
    color: #25D366;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    #labor-banner .container { flex-direction: column; text-align: center; }
    .labor-info h2 { text-align: center; }
    .labor-services ul { columns: 1; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    /* Adjust video background for mobile */
    .labor-contact.has-video {
        min-height: 320px;
        width: 180px; /* Aspect ratio 9:16 */
        max-width: 180px;
    }
    
    .labor-contact .video-background video {
        object-fit: cover;
        object-position: center;
        /* Force portrait aspect ratio on mobile */
        aspect-ratio: 9/16;
    }
}

/* Intermediate breakpoint for tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .labor-contact.has-video {
        min-height: 360px;
        width: 202px; /* Intermediate size maintaining 9:16 ratio */
        max-width: 202px;
    }
    
    .labor-contact .video-background video {
        aspect-ratio: 9/16;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    
    /* Ensure video background is properly sized on mobile */
    .labor-contact.has-video {
        min-height: 400px;
        width: 225px; /* Aspect ratio 9:16 (225:400) */
        max-width: 225px;
    }
    
    .labor-contact .video-background video {
        object-fit: cover;
        object-position: center;
        /* Force portrait aspect ratio on smaller screens */
        aspect-ratio: 9/16;
        height: 100%;
    }
    .header-contact .phone-link { display: none; } /* Hide phone, keep button */
    .main-header .container {
        /* Add space for a future hamburger menu if needed */
    }
    #hero { padding: 50px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.2rem; }

    .services-intro { flex-direction: column; text-align: center; }
    .services-intro h2 { text-align: center; }
    
    .slider-nav {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

/* Ticker animation keyframes - movimento contínuo */
/* Os keyframes específicos serão gerados dinamicamente via JavaScript */

/* Pause animation on hover for better UX */
.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

/* Fallback para quando o JavaScript não carregar */
.ticker-move:not(.dynamic-animation) {
    animation: ticker-fallback 40s linear infinite;
}

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

/* Admin/Meta box video previews responsive */
@media (max-width: 768px) {
    /* Gallery image meta box video previews */
    .gallery-item-preview video,
    .service-gallery-manager video {
        aspect-ratio: 9/16 !important;
        max-width: 180px !important;
        height: auto !important;
        object-fit: cover;
    }
    
    /* Admin video controls styling */
    .gallery-item-preview,
    .service-gallery-manager .gallery-item-preview {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 320px;
    }
}

/* Debug/test video styling for mobile */
@media (max-width: 768px) {
    /* Debug video elements */
    video[style*="max-width: 300px"] {
        max-width: 180px !important;
        height: 320px !important;
        aspect-ratio: 9/16 !important;
        object-fit: cover !important;
    }
}

/* Universal video aspect ratio for mobile - catch-all rule */
@media (max-width: 768px) {
    /* Apply 9:16 aspect ratio to ALL video elements on mobile */
    video:not([data-keep-aspect]) {
        aspect-ratio: 9/16 !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Specific rule for inline video elements */
    video[width][height] {
        width: auto !important;
        height: auto !important;
        max-width: 225px !important;
        aspect-ratio: 9/16 !important;
    }
    
    /* Video containers should respect the aspect ratio */
    .video-container,
    .video-wrapper,
    .gvideo-wrapper {
        aspect-ratio: 9/16 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Tablet universal video rules */
@media (max-width: 992px) and (min-width: 769px) {
    video:not([data-keep-aspect]) {
        aspect-ratio: 9/16 !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    video[width][height] {
        width: auto !important;
        height: auto !important;
        max-width: 270px !important;
        aspect-ratio: 9/16 !important;
    }
}

/* ===== CONTACT FORMS WITH TABS ===== */

/* Container for contact forms with tabs */
.contact-forms-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Form tabs navigation */
.form-tabs {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(199, 91, 30, 0.05);
    color: var(--dark-blue);
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-button i {
    font-size: 1.1rem;
}

/* Tab content areas - forçar regras específicas */
.contact-forms-container .tab-content,
#careers-tab, 
#contact-tab {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mostrar aba ativa - deve ter prioridade sobre o display: none */
.contact-forms-container .tab-content.js-active,
.contact-forms-container .tab-content.active,
#careers-tab.js-active, 
#careers-tab.active, 
#contact-tab.js-active,
#contact-tab.active {
    display: block !important;
}

.tab-content h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: left;
}

.tab-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===== CAREERS FORM STYLES ===== */

.careers-form {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
}

.careers-form-html {
    max-width: 100%;
}

.careers-form-html .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.careers-form-html .form-group {
    display: flex;
    flex-direction: column;
}

.careers-form-html label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 1rem;
}

.careers-form-html input,
.careers-form-html select,
.careers-form-html textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.careers-form-html input:focus,
.careers-form-html select:focus,
.careers-form-html textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(199, 91, 30, 0.1);
}

.careers-form-html textarea {
    resize: vertical;
    min-height: 100px;
}

.careers-form-html input[type="file"] {
    padding: 8px;
    background: white;
    border: 2px dashed #ddd;
    cursor: pointer;
}

.careers-form-html input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(199, 91, 30, 0.02);
}

.careers-form-html small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Checkbox styling */
.careers-form-html input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.careers-form-html label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.4;
    color: #555;
    font-size: 0.95rem;
}

/* Submit button */
.careers-form-html .btn {
    margin-top: 15px;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ===== RESPONSIVE DESIGN FOR TABS ===== */

/* Tablet adjustments */
@media (max-width: 992px) {
    .contact-wrapper {
        gap: 40px;
    }
    
    .careers-form-html .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-button {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .tab-content {
        padding: 25px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
        padding: 15px 20px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-button.active {
        border-bottom-color: transparent;
        border-left: 4px solid var(--primary-color);
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .tab-content p {
        text-align: center;
    }
    
    .careers-form-html .form-row {
        grid-template-columns: 1fr;
    }
    
    .careers-form-html input,
    .careers-form-html select,
    .careers-form-html textarea {
        padding: 10px 12px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .careers-form-html .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para o formulário com abas de Contato e Carreiras */
.contact-forms-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-forms-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Abas superiores */
.form-tabs {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    background: rgba(199, 91, 30, 0.05);
    color: var(--primary-color);
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button i {
    font-size: 1.1rem;
}

/* Conteúdo das abas */
.tab-content {
    display: none;
    padding: 35px;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Estilos específicos para formulário de carreiras */
.careers-form h3 {
    color: var(--darker-blue);
    margin-bottom: 15px;
    font-size: 1.6rem;
    text-align: left;
}

/* Estilos para formulário de contato com botões duplos */
.contact-form-dual {
    max-width: 100%;
}

.contact-form-dual .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-dual .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-dual label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--darker-blue);
    font-size: 0.95rem;
}

.contact-form-dual input,
.contact-form-dual select,
.contact-form-dual textarea {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.contact-form-dual input:focus,
.contact-form-dual select:focus,
.contact-form-dual textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(199, 91, 30, 0.1);
}

.contact-form-dual textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botões duplos de envio */
.dual-submit-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 15px;
}

.btn-email {
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-email:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 58, 90, 0.3);
}

.btn-whatsapp-send {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.btn-whatsapp-send:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-email:active,
.btn-whatsapp-send:active {
    transform: translateY(0);
}

/* Nota informativa dos botões */
.form-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 15px 0 0;
}

.form-note small {
    color: #666;
    line-height: 1.5;
}

/* Loading states para os botões */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.careers-form p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.careers-form-html {
    max-width: 100%;
}

.careers-form-html .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.careers-form-html .form-group {
    display: flex;
    flex-direction: column;
}

.careers-form-html label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--darker-blue);
    font-size: 0.95rem;
}

.careers-form-html input,
.careers-form-html select,
.careers-form-html textarea {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.careers-form-html input:focus,
.careers-form-html select:focus,
.careers-form-html textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(199, 91, 30, 0.1);
}

.careers-form-html textarea {
    resize: vertical;
    min-height: 80px;
}

.careers-form-html input[type="file"] {
    padding: 10px;
    background: white;
    cursor: pointer;
}

.careers-form-html input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 500;
}

.careers-form-html small {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

.careers-form-html input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.careers-form-html label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
}

.careers-form-html .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a64c18 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.careers-form-html .btn:hover {
    background: linear-gradient(135deg, #a64c18 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 91, 30, 0.3);
}

.careers-form-html .btn:active {
    transform: translateY(0);
}

/* Estilos responsivos para as abas */
@media (max-width: 992px) {
    .contact-wrapper {
        gap: 40px;
    }
    
    .careers-form-html .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-button {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .tab-content {
        padding: 25px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
        padding: 15px 20px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-button.active {
        border-bottom-color: transparent;
        border-left: 4px solid var(--primary-color);
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .tab-content p {
        text-align: center;
    }
    
    .careers-form-html .form-row {
        grid-template-columns: 1fr;
    }
    
    .careers-form-html input,
    .careers-form-html select,
    .careers-form-html textarea {
        padding: 10px 12px;
    }
}

/* Small mobile adjustments para abas */
@media (max-width: 480px) {
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .careers-form-html .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Botões de contato em telas pequenas */
    .dual-submit-buttons {
        gap: 10px;
    }
    
    .btn-email,
    .btn-whatsapp-send {
        padding: 16px 15px;
        font-size: 0.9rem;
    }
    
    .contact-form-dual input,
    .contact-form-dual select,
    .contact-form-dual textarea {
        padding: 10px 12px;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .form-note {
        padding: 12px;
        margin: 10px 0 0;
    }
    
    .form-note small {
        font-size: 0.85rem;
    }
}