/* ========================================
   STOFGARD - CSS CUSTOMIZADO
   Impermeabilização e Higienização de Estofados
   ======================================== */

/* ========================================
   0. LOGO STOFGARD
   ======================================== */
.logo {
    margin-left: -15px;
}

.logo img {
    display: block !important;
    max-height: 85px;
    width: auto;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo a::before,
.logo a::after {
    content: none;
}

.header_section .logo a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ========================================
   0.1 PADRONIZAÇÃO GERAL DO SITE
   ======================================== */
body {
    background-color: #f8f9fa;
}

/* Cabeçalho páginas internas - remover espaço extra */
.header_bg {
    padding: 15px 0 20px 0 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    min-height: auto !important;
}

.header_bg .navbar {
    background: transparent !important;
}

.header_bg .nav-link {
    color: #fff !important;
}

.header_bg .nav-link:hover {
    color: #f5c729 !important;
}

/* Forçar fundo nas seções de páginas internas */
.contact_section {
    background: #f8f9fa !important;
}

/* Seções com fundo branco padronizadas */
.services_section,
.portfolio_section,
.memorial-section {
    background-color: #f8f9fa !important;
}

/* Seções com fundo escuro padronizadas */
.blog_section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

/* ========================================
   RODAPÉ PROFISSIONAL - STOFGARD
   ======================================== */
.footer_section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    padding: 60px 0 40px 0 !important;
}

/* Colunas do Footer */
.footer-column {
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #f5c729;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #f5c729;
}

.footer-column p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-column .footer-logo {
    max-width: 140px;
    margin-bottom: 20px;
    filter: brightness(1.1);
}

/* Lista de Contatos no Footer */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact-list li i {
    color: #f5c729;
    font-size: 16px;
    width: 25px;
    margin-right: 10px;
}

.footer-contact-list li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list li a:hover {
    color: #f5c729;
}

/* Links Rápidos no Footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #f5c729;
    padding-left: 5px;
}

.footer-links li a i {
    margin-right: 8px;
    font-size: 12px;
}

/* Horário de Atendimento */
.footer-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.footer-hours p {
    margin: 0;
    font-size: 13px;
}

.footer-hours strong {
    color: #f5c729;
}

/* Redes Sociais com Labels */
.footer-social {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social-links a i {
    margin-right: 8px;
    font-size: 18px;
}

.footer-social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-social-links a.whatsapp:hover {
    background: #25D366;
}

.footer-social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-links a.facebook:hover {
    background: #1877F2;
}

.footer-social-links a.email:hover {
    background: #f5c729;
    color: #1a1a2e;
}

.copyright_section {
    background: #0f0f1a !important;
    padding: 20px 0 !important;
}

.copyright_text {
    color: #aaa !important;
    margin: 0 !important;
    font-size: 13px;
}

/* Ícones do rodapé padronizados */
.location_text li a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.location_text li a:hover {
    background-color: #f5c729 !important;
    color: #1a1a2e !important;
    transform: translateY(-3px);
}

/* WhatsApp icon verde no rodapé */
.location_text li a[title="WhatsApp"]:hover {
    background-color: #25D366 !important;
    color: #fff !important;
}

/* Instagram gradiente no rodapé */
.location_text li a[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #fff !important;
}

/* Facebook azul no rodapé */
.location_text li a[title="Facebook"]:hover {
    background-color: #1877F2 !important;
    color: #fff !important;
}

.header_bg+.services_section,
.header_bg+.contact_section,
.header_bg+.portfolio_section,
.header_bg+.blog_section,
.header_bg+.about_section,
.header_bg+.memorial-section,
.header_section+.services_section {
    margin-top: 0 !important;
    padding-top: 40px !important;
}

/* ========================================
   1. BOTÃO WHATSAPP FLUTUANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float i {
    margin: 0;
    line-height: 60px;
}

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

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

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

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

    .whatsapp-float i {
        line-height: 50px;
    }
}

/* ========================================
   1.4 ESTILO LINKTREE - PÁGINA DE CONTATO
   ======================================== */
.linktree-btn {
    display: block;
    width: 100%;
    padding: 18px 25px;
    margin-bottom: 15px;
    border-radius: 50px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.linktree-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.linktree-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.linktree-links {
    margin-top: 30px;
}

@media (max-width: 576px) {
    .linktree-btn {
        padding: 15px 20px;
        font-size: 14px;
    }

    .linktree-btn i {
        font-size: 18px;
    }
}

/* ========================================
   1.5 ÍCONES DE SERVIÇOS - CÍRCULOS PERFEITOS
   ======================================== */

/* Remover círculo externo do box_main completamente */
.box_main {
    border-radius: 0 !important;
    border: none !important;
    padding: 20px 0px !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Círculo único grande com a imagem - DOBRO do tamanho */
.app_icon,
.app_icon_1 {
    width: 280px !important;
    height: 280px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 5px solid #f5c729 !important;
    box-shadow: 0 8px 30px rgba(245, 199, 41, 0.35) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: #fff !important;
}

.app_icon img,
.app_icon_1 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.box_main:hover .app_icon,
.box_main:hover .app_icon_1 {
    border-color: #fa7e23 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(250, 126, 35, 0.45) !important;
}

.box_main:hover .app_icon img,
.box_main:hover .app_icon_1 img {
    transform: scale(1.1) !important;
}

/* ========================================
   2. ÁREA DE ATUAÇÃO - CARDS DE CIDADES
   ======================================== */
.area-atuacao-section {
    width: 100%;
    float: left;
    padding: 70px 0;
    background-color: #f9f9f9;
}

.area-title {
    font-size: 40px;
    color: #f5c729;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.area-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.city-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-top: 4px solid #f5c729;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.city-card h4 {
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5c729;
    padding-bottom: 10px;
}

.city-card h4 i {
    color: #f5c729;
    margin-right: 10px;
}

.city-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-card ul li {
    padding: 8px 0;
    color: #555;
    font-size: 16px;
}

.city-card ul li i {
    color: #f5c729;
    margin-right: 10px;
    font-size: 14px;
}

.city-card ul li.city-base {
    font-weight: bold;
    color: #333;
}

.city-card ul li.city-base i {
    font-size: 16px;
}

/* ========================================
   3. VÍDEOS COM HOVER-TO-PLAY
   ======================================== */
.video-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    display: block;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(245, 199, 41, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.video-play-overlay i {
    color: #fff;
    font-size: 30px;
    margin-left: 5px;
}

.video-container:hover .video-play-overlay {
    opacity: 0;
}

.video-container.playing .video-play-overlay {
    display: none;
}

/* ========================================
   4. MEMORIAL - LAYOUT DUAS COLUNAS
   ======================================== */
.memorial-section {
    width: 100%;
    float: left;
    padding: 90px 0;
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
}

.memorial-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 5px solid #f5c729;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.memorial-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.memorial-content h2 {
    font-size: 36px;
    color: #f5c729;
    font-weight: bold;
    margin-bottom: 20px;
}

.memorial-content h3 {
    font-size: 24px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.memorial-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.memorial-quote {
    background-color: #fff;
    border-left: 5px solid #f5c729;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.memorial-timeline {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.timeline-year {
    background-color: #f5c729;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    min-width: 100px;
    text-align: center;
    margin-right: 20px;
}

.timeline-text {
    flex: 1;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   5. SERVIÇOS DETALHADOS - CARDS
   ======================================== */
.service-detail-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border-top: 5px solid #f5c729;
    scroll-margin-top: 100px;
    /* Para smooth scroll com header fixo */
}

@media (max-width: 768px) {
    .service-detail-card {
        padding: 20px;
    }
}

.service-detail-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-detail-card h3 {
    color: #f5c729;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-detail-card h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #3b5d50;
    transition: width 0.3s ease;
}

.service-detail-card:hover h3::after {
    width: 100%;
}

.service-detail-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.service-detail-card h4 {
    color: #333;
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-detail-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-detail-card ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    transition: transform 0.2s ease, color 0.2s ease;
}

.service-detail-card ul li:hover {
    transform: translateX(5px);
    color: #3b5d50;
    font-weight: 500;
}

.service-detail-card ul li:before {
    content: none;
}

.service-whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.service-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: #fff !important;
}

.service-whatsapp-btn i {
    margin-right: 8px;
}

/* ========================================
   6. GALERIA - FILTROS E LABELS
   ======================================== */
.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #f5c729;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #f5c729;
    color: #fff;
}

.gallery-item {
    position: relative;
    margin-bottom: 30px;
}

.before-after-label {
    position: absolute;
    top: 15px;
    background-color: rgba(245, 199, 41, 0.95);
    color: #fff;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 0 5px 5px 0;
    z-index: 10;
}

.before-after-label.before {
    left: 0;
    background-color: rgba(231, 76, 60, 0.95);
}

.before-after-label.after {
    right: 0;
    left: auto;
    background-color: rgba(46, 204, 113, 0.95);
    border-radius: 5px 0 0 5px;
}

/* ========================================
   7. SMOOTH SCROLL
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   8. RESPONSIVIDADE GERAL
   ======================================== */
@media (max-width: 991px) {
    .memorial-section {
        padding: 60px 0;
    }

    .memorial-content h2 {
        font-size: 30px;
        margin-top: 30px;
    }

    .service-detail-card {
        padding: 25px;
    }

    .service-detail-card h3 {
        font-size: 26px;
    }

    .area-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }


    .timeline-year {
        margin-bottom: 10px;
    }

    .filter-btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto !important; /* Forces center alignment */
    }

    .gallery-card {
        margin-bottom: 20px;
    }

    .gallery-info h4 {
        font-size: 16px;
    }

    .gallery-info p {
        font-size: 13px;
    }
}

/* ========================================
   8. GALLERY STYLES
   ======================================== */
.gallery-filters {
    margin-bottom: 40px;
    text-align: center; /* Center buttons horizontally */
}

.gallery-filters .filter-btn {
    background: transparent;
    border: 2px solid #f5c729;
    color: #252f2d;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: linear-gradient(135deg, #f5c729 0%, #fa7e23 100%);
    color: #fff;
    border-color: #fa7e23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 199, 41, 0.3);
}

.gallery-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 30px;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: rgba(37, 47, 45, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f5c729 0%, #fa7e23 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.gallery-label {
    background: #f5c729;
    color: #252f2d;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #252f2d;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

/* ========================================
   CORREÇÕES DE RESPONSIVIDADE - STOFGARD
   ======================================== */

/* === MOBILE SMALL (até 480px) === */
@media (max-width: 480px) {

    /* Tipografia */
    .banner_taital {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .banner_text {
        font-size: 16px !important;
    }

    .services_taital,
    .portfolio_taital,
    .blog_taital,
    .contact_taital,
    .area-title {
        font-size: 24px !important;
    }

    /* Banner */
    .banner_taital_main {
        padding: 20px 15px !important;
    }

    .banner_section {
        padding: 20px 0 !important;
    }

    /* Serviços */
    .app_icon,
    .app_icon_1 {
        width: 150px !important;
        height: 150px !important;
    }

    .box_main {
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
    }

    .services_text {
        font-size: 16px !important;
    }

    /* Cards */
    .service-detail-card {
        padding: 15px !important;
    }

    .service-detail-card h3 {
        font-size: 20px !important;
    }

    /* Blog */
    .prep_text {
        padding: 80px 10px 10px 10px !important;
        font-size: 14px !important;
    }

    .blog_box {
        margin-bottom: 20px;
    }

    /* Footer */
    .location_text li a {
        width: 45px !important;
        font-size: 16px !important;
        padding: 12px 0 !important;
        margin: 0 4px !important;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }

    /* Botões */
    .btn-lg {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    /* Linktree buttons */
    .linktree-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

/* === MOBILE (até 767px) === */
@media (max-width: 767px) {

    /* Header */
    .header_section {
        min-height: auto;
    }

    .logo {
        margin-left: 0 !important;
    }

    .logo img {
        max-height: 55px !important;
    }

    .navbar-toggler {
        background-color: #f5c729 !important;
        border: none !important;
        padding: 8px 12px !important;
    }

    .navbar-collapse {
        background: rgba(37, 47, 45, 0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 12px 15px !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

    .navbar-light .navbar-nav .nav-link:hover {
        background-color: #f5c729;
        color: #252f2d !important;
    }

    /* Títulos */
    .services_taital,
    .portfolio_taital,
    .blog_taital,
    .contact_taital,
    .area-title {
        font-size: 26px !important;
    }

    /* Banner */
    .banner_taital {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .banner_taital_main {
        padding: 30px 15px !important;
        text-align: center !important;
    }

    /* Serviços */
    .app_icon,
    .app_icon_1 {
        width: 180px !important;
        height: 180px !important;
    }

    /* Blog */
    .blog_section {
        height: auto !important;
        margin-bottom: 0 !important;
        padding: 40px 0 !important;
    }

    .prep_text {
        padding: 120px 15px 15px 15px !important;
        font-size: 16px !important;
    }

    .blog_section_2 {
        padding-top: 30px !important;
    }

    /* Contato */
    .mail_section_1 {
        width: 100% !important;
    }

    /* Memorial/About */
    .memorial-section img {
        width: 100% !important;
    }

    .memorial-content h2 {
        font-size: 26px !important;
    }

    .memorial-quote {
        padding: 20px !important;
    }

    /* Galeria */
    .gallery-card img,
    .gallery-overlay {
        height: 200px !important;
    }

    /* Footer spacing para WhatsApp button */
    .copyright_section {
        padding-bottom: 20px !important;
    }

    /* Service detail cards */
    .service-detail-card {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    .service-detail-card h3 {
        font-size: 22px !important;
    }

    .service-detail-card h4 {
        font-size: 18px !important;
    }
}

/* === TABLET (768px - 991px) === */
@media (min-width: 768px) and (max-width: 991px) {
    .banner_taital {
        font-size: 36px !important;
    }

    .app_icon,
    .app_icon_1 {
        width: 220px !important;
        height: 220px !important;
    }

    .box_main {
        margin-bottom: 30px !important;
    }

    .service-detail-card {
        padding: 30px !important;
    }

    .navbar-collapse {
        background: rgba(37, 47, 45, 0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
    }

    .navbar-light .navbar-nav .nav-link {
        color: #fff !important;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-width: 767px) and (orientation: landscape) {
    .header_section {
        min-height: auto !important;
        height: auto !important;
    }

    .banner_section {
        padding: 20px 0 30px 0 !important;
    }

    .banner_taital {
        font-size: 24px !important;
    }
}

/* === MELHORIAS GERAIS DE TOUCH === */
@media (hover: none) and (pointer: coarse) {

    /* Aumentar área de toque */
    .nav-link,
    .btn,
    .filter-btn,
    .linktree-btn {
        min-height: 44px;
    }

    /* Manter overlay visível em touch */
    .gallery-overlay {
        opacity: 0.7 !important;
    }
}

/* === PREFERS REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-float {
        animation: none !important;
    }
}

/* === FOOTER RESPONSIVO === */
@media (max-width: 767px) {
    .footer_section {
        padding: 40px 0 30px 0 !important;
    }

    .footer-column {
        text-align: center;
        margin-bottom: 35px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-hours {
        text-align: center;
    }

    .footer-links li a {
        justify-content: center;
    }

    .footer-social-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social-links a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-column h4 {
        font-size: 16px;
    }

    .footer-contact-list li {
        font-size: 13px;
    }

    .footer-social-links a {
        padding: 8px 15px;
        font-size: 13px;
    }
}
/* ========================================
   10. MELHORIAS DE ESPAÇAMENTO E TIPOGRAFIA
   ======================================== */
body p {
    line-height: 1.8 !important;
    font-size: 16px !important;
    margin-bottom: 25px !important;
    color: #555;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    color: #292929;
}

.untree_co-section {
    padding: 80px 0 !important;
}

/* Espaçamento em barras de navegação no mobile */
@media (max-width: 768px) {
    .custom-navbar {
        padding: 15px 0 !important;
    }
    .hero {
        padding: 60px 0 !important;
        text-align: center;
    }
    .untree_co-section {
        padding: 50px 0 !important;
    }
    h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    h2 {
        font-size: 28px !important;
    }
}

/* ========================================
   11. IMAGE PROPORTIONS & ASPECT RATIOS
   ======================================== */
/* Product Thumbnails (Sofas, Impermeabilizacao, Colchao) */
.product-item .product-thumbnail {
    aspect-ratio: 4/3 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important; /* Override hardcoded 250px if any */
}

/* Why Choose Us Hero Image */
.img-wrap img {
    max-height: 600px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    width: 100% !important;
}

/* Hero primary images (when they aren't background) */
.hero-img-wrap img {
    max-height: 70vh !important;
    object-fit: cover !important;
    width: 100% !important;
}

/* Video Containers */
.video-container video {
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    background: #000 !important;
    width: 100% !important;
    height: auto !important;
}

/* Fix overlapping Sofa Image in footers, especially on about.html */
.sofa-img {
    max-width: 300px !important;
    z-index: -1;
}

@media (max-width: 768px) {
    .sofa-img {
        display: none !important; /* Hide on mobile to prevent overlap */
    }
}

/* ========================================
   12. LAYOUT & RESPONSIVENESS FIXES (2026-03)
   ======================================== */

/* --- Reduzir espaço entre "Nossos Serviços" e "Por que nos escolher?" --- */
.product-section {
    padding-bottom: 3rem !important;
}
.why-choose-section {
    padding-top: 3rem !important;
}

/* --- Ocultar imagem decorativa do "Por que nos escolher?" no mobile --- */
@media (max-width: 991px) {
    .why-choose-section .img-wrap {
        display: none !important;
    }
}

/* --- Portfólio: reordenar colunas para texto aparecer antes das imagens no mobile --- */
@media (max-width: 991px) {
    .we-help-section .row.justify-content-between {
        flex-direction: column;
    }
    .we-help-section .col-lg-7 {
        order: 2;
    }
    .we-help-section .col-lg-5 {
        order: 1;
        margin-bottom: 2rem;
    }
    /* Grid de imagens fica em 1 coluna e com altura controlada */
    .we-help-section .imgs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .we-help-section .imgs-grid .grid.grid-1,
    .we-help-section .imgs-grid .grid.grid-2,
    .we-help-section .imgs-grid .grid.grid-3 {
        grid-column: 1 !important;
    }
    .we-help-section .imgs-grid .grid img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

/* --- Ajuste da imagem flutuante do footer (sofa-img) --- */
/* Restringe o tamanho para não criar espaço vazio excessivo */
.footer-section .sofa-img {
    top: -100px !important;
    max-width: 220px !important;
    right: 0 !important;
}

@media (max-width: 1200px) {
    .footer-section .sofa-img {
        display: none !important;
    }
}

/* --- Cabeçalho EXTREMAMENTE compacto nas páginas internas --- */
/* Adicionar classe inner-hero ao div.hero nas páginas internas (não na index) */
.inner-hero {
    padding: 15px 0 20px 0 !important;
}

@media (min-width: 768px) {
    .inner-hero {
        padding: 15px 0 20px 0 !important;
    }
}

@media (min-width: 992px) {
    .inner-hero {
        padding: 15px 0 25px 0 !important;
    }
}

/* Ocultar imagens no hero das páginas internas e remover min-height */
.inner-hero .hero-img-wrap {
    display: none !important;
}

/* Libera o título para ocupar uma linha inteira sem quebrar */
.inner-hero .intro-excerpt {
    max-width: 100% !important;
}

/* Estilização Premium dos Títulos Internos */
.inner-hero h1 {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 1px;
    margin-bottom: 12px !important;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 576px) {
    .inner-hero h1 {
        font-size: 26px !important;
    }
}

.inner-hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 80px;
    height: 4px;
    background-color: #f5c729;
    border-radius: 2px;
}

.inner-hero p {
    font-size: 16px !important;
    color: #e0e0e0 !important;
    font-weight: 300;
    margin-bottom: 0 !important;
    margin-top: 5px !important;
    max-width: 600px;
}




/* Fix Mobile Whitespace */
@media (max-width: 768px) {
    .product-section, .why-choose-section, .we-help-section, .testimonial-section, .blog-section { padding: 3rem 0 !important; }
    .hero { padding: 3rem 0 !important; }
    .product-section .product-item { padding-bottom: 2rem !important; }
    .area-atuacao-section { padding: 3rem 0 !important; }
    .memorial-section { padding: 3rem 0 !important; }
}

/* --- CTA Block Styles --- */
.cta-block {
    background: #3b5d50;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
}

.cta-block h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cta-block p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #f8f9fa; /* Garante que o texto fique legível (claro) sobre o verde */
}

.cta-block .btn-secondary {
    font-weight: 700;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .cta-block {
        padding: 30px 15px; /* Reduz o gordão verde em telas de cel */
    }
    .cta-block h2 {
        font-size: 26px;
    }
    .cta-block p {
        font-size: 16px;
    }
}
