/* Mobile First - Estilos base para dispositivos móveis */

/* Prevenir overflow horizontal */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

.container .logo {
    width: 100%;
    max-width: 100%;
}

/* Header */
#header {
    padding: 10px 0;
    min-height: 80px; /* Altura mínima para acomodar duas linhas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3; /* Altura de linha adequada para quebra */
    max-width: 100%; /* Garantir que não ultrapasse a largura */
    padding: 0 10px; /* Padding lateral para evitar colar nas bordas */
}

/* Hero Section */
.hero-section {
    min-height: auto;
    height: auto !important; /* Força altura dinâmica baseada no conteúdo */
    background-attachment: scroll; /* Remove fixed attachment on mobile */
    margin-top: 0;
    padding-top: 160px; /* Aumentado para compensar header fixo e títulos longos */
    padding-bottom: 100px; /* Aumentado para evitar sobreposição na próxima seção */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* CTAs do Hero */
.hero-ctas {
    flex-direction: column;
    gap: 15px;
}

.cta-primary,
.cta-secondary,
.cta-tertiary,
.cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    bottom: 20px;
    right: 20px;
}

.whatsapp-link {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
}

/* Seções SEO */
.seo-section {
    padding: 60px 0;
    margin-top: 0;
}

.seo-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.seo-section p {
    font-size: 1rem;
    padding: 0 10px;
}

/* GBP Embed */
.gbp-embed {
    padding: 50px 0;
}

.gbp-embed iframe {
    height: 350px;
    border-radius: 8px;
}

/* WhatsApp CTA */
.whatsapp-cta-section {
    padding: 40px 0;
    margin: 30px 0;
}

.whatsapp-cta-button {
    padding: 15px 30px;
    font-size: 1rem;
    gap: 10px;
}

.whatsapp-cta-button i {
    font-size: 1.3rem;
}

/* Related Links */
.related-links {
    padding: 50px 0;
}

.related-links h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-link {
    padding: 25px 15px;
    gap: 12px;
}

.related-link i {
    font-size: 2rem;
}

.related-link span {
    font-size: 1rem;
}

/* Map Section */
.map-section {
    padding: 50px 0;
}

.map-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.map-section iframe {
    height: 300px;
}

/* Footer */
#footer {
    padding: 30px 0 20px;
}

.footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
}

.footer-section h3 {
    font-size: 1.3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.contact-info p {
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Sitemap */
.sitemap-main {
    padding: 100px 0 50px;
}

.sitemap-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.sitemap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.sitemap-category {
    padding: 20px;
}

.sitemap-category h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    /* Container */
    .container {
        padding: 0 25px;
    }

    /* Header */
    #header {
        padding: 15px 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        margin-top: 0;
    }

    /* CTAs do Hero */
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-button {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    /* WhatsApp Flutuante */
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }

    .whatsapp-link {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Seções SEO */
    .seo-section {
        padding: 70px 0;
    }

    .seo-section h2 {
        font-size: 2.2rem;
    }

    .seo-section p {
        font-size: 1.05rem;
        padding: 0 20px;
    }

    /* GBP Embed */
    .gbp-embed {
        padding: 70px 0;
    }

    .gbp-embed iframe {
        height: 400px;
    }

    /* WhatsApp CTA */
    .whatsapp-cta-section {
        padding: 50px 0;
        margin: 35px 0;
    }

    .whatsapp-cta-button {
        padding: 16px 35px;
        font-size: 1.1rem;
    }

    .whatsapp-cta-button i {
        font-size: 1.4rem;
    }

    /* Related Links */
    .related-links {
        padding: 70px 0;
    }

    .related-links h3 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .related-link {
        padding: 28px 20px;
    }

    .related-link i {
        font-size: 2.3rem;
    }

    .related-link span {
        font-size: 1.05rem;
    }

    /* Map Section */
    .map-section {
        padding: 70px 0;
    }

    .map-section h2 {
        font-size: 2.3rem;
    }

    .map-section iframe {
        height: 400px;
    }

    /* Footer */
    #footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-section h3 {
        font-size: 1.4rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    /* Sitemap */
    .sitemap-main {
        padding: 110px 0 60px;
    }

    .sitemap-intro {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .sitemap-category {
        padding: 25px;
    }

    .sitemap-category h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* Container */
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    /* Header */
    #header {
        padding: 20px 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        height: auto;
        background-attachment: fixed; /* Re-enable fixed attachment on desktop */
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-content {
        max-width: 1000px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
        margin-bottom: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
        margin-top: 0;
    }

    /* CTAs do Hero */
    .hero-ctas {
        gap: 25px;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-button {
        padding: 16px 35px;
        font-size: 1.15rem;
    }

    /* Seções SEO */
    .seo-section {
        padding: 80px 0;
    }

    .seo-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .seo-section p {
        font-size: 1.1rem;
        padding: 0;
        max-width: 850px;
    }

    /* GBP Embed */
    .gbp-embed {
        padding: 80px 0;
    }

    .gbp-embed iframe {
        height: 450px;
    }

    /* WhatsApp CTA */
    .whatsapp-cta-section {
        padding: 60px 0;
        margin: 40px 0;
    }

    .whatsapp-cta-button {
        padding: 18px 40px;
        font-size: 1.2rem;
    }

    .whatsapp-cta-button i {
        font-size: 1.5rem;
    }

    /* Related Links */
    .related-links {
        padding: 80px 0;
    }

    .related-links h3 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .related-link {
        padding: 30px 20px;
    }

    .related-link i {
        font-size: 2.5rem;
    }

    .related-link span {
        font-size: 1.1rem;
    }

    /* Map Section */
    .map-section {
        padding: 80px 0;
    }

    .map-section h2 {
        font-size: 2.5rem;
    }

    .map-section iframe {
        height: 450px;
    }

    /* Footer */
    #footer {
        padding: 50px 0 20px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    /* Sitemap */
    .sitemap-main {
        padding: 120px 0 80px;
    }

    .sitemap-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }

    .sitemap-category {
        padding: 30px;
    }

    .sitemap-category h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 3.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .seo-section p {
        max-width: 900px;
    }

    .links-grid {
        max-width: 1200px;
    }
}

/* Extra Large Screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .hero-content h1 {
        font-size: 4.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .seo-section h2 {
        font-size: 3rem;
    }

    .related-links h3 {
        font-size: 3rem;
    }

    .links-grid {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    #header {
        display: none !important;
    }

    .hero-section {
        height: auto;
        background: none !important;
        color: black !important;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: black;
        padding: 20px 0;
    }

    .hero-content h1 {
        background: none !important;
        color: black !important;
        -webkit-text-fill-color: black !important;
        font-size: 2rem;
    }

    .hero-ctas {
        display: none;
    }

    body {
        background: white !important;
    }

    .seo-section,
    .map-section {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }

    .seo-section:nth-child(even) {
        background: #f8f9fa !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.9) !important;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        border: 2px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-section {
        background-attachment: scroll !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }

    .seo-section,
    .sitemap-main {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .seo-section:nth-child(even) {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }

    .sitemap-category {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }

    .seo-section h2,
    .sitemap-category h2 {
        color: #e0e0e0;
    }

    .seo-section p {
        color: #ccc;
    }

    .sitemap-category ul li a {
        color: #ccc;
    }

    .sitemap-category ul li a:hover {
        color: #4da6ff;
    }
}
