/* ===== CSS Variables ===== */
:root {
    --primary-dark: #254377;
    --primary-medium: #25749C;
    --primary-light: #00AEF0;
    --primary-lightest: #E8F7FF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset e Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Tipografia ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--heading-color, var(--text-dark));
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.2; }
h3 { font-size: 1.8rem; line-height: 1.3; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===== Rich Text (HTML digitado no textarea das seções) ===== */
.rich-text {
    font-family: 'Roboto', sans-serif;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
    margin: 0 0 0.5em;
}

.rich-text h1 { font-size: 1.6rem; }
.rich-text h2 { font-size: 1.4rem; }
.rich-text h3 { font-size: 1.2rem; }
.rich-text h4,
.rich-text h5,
.rich-text h6 { font-size: 1.05rem; }

.rich-text p {
    color: inherit;
    font: inherit;
    margin: 0 0 0.75em;
}

.rich-text ul,
.rich-text ol {
    color: inherit;
    margin: 0 0 0.75em;
    padding-left: 1.3rem;
}

.rich-text li {
    margin-bottom: 0.3em;
}

.rich-text strong, .rich-text b { font-weight: 700; }

.rich-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.rich-text > *:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ===== Botões ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--text-white);
    border: 2px solid var(--primary-light);
}

.btn-primary:hover {
    background-color: var(--primary-medium);
    border-color: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-dark {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border: 2px solid var(--primary-dark);
}

.btn-primary-dark:hover {
    background-color: var(--primary-medium);
    border-color: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--text-white);
    color: var(--primary-dark);
    border: 2px solid var(--text-white);
}

.btn-light:hover {
    background-color: var(--primary-lightest);
    color: var(--primary-dark);
    border-color: var(--primary-lightest);
}


/* ===== Navegação ===== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 52px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--nav-text-color, var(--text-dark));
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* ===== Seletor de Idiomas ===== */
.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.lang-switcher a {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-switcher a:after {
    display: none !important;
}

.lang-switcher a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--bg-white) 100%);
}

.hero-content h1 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobFloat 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

@keyframes blobFloat {
    0%, 100% {
        transform: scale(1) translateY(0px);
    }
    50% {
        transform: scale(1.05) translateY(-30px);
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-header.light {
    color: var(--text-white);
}

.section-header.light h2 {
    color: var(--text-white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Sobre Section ===== */
.sobre {
    padding: 5rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sobre-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
}

.sobre-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.sobre-card h3 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 1rem;
}

.sobre-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Carousel Banner ===== */
.sobre-carousel {
    width: 100%;
    position: relative;
}

.carousel-container {
    display: grid;
}

.carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    pointer-events: none;
    transform: translateY(10px);
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: var(--primary-medium);
    transform: scale(1.2);
}

/* ===== Serviços Section ===== */
.servicos {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    border-bottom: 1px solid var(--border-color);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.servico-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servico-card h3 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 1rem;
}

.servico-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.servico-lista {
    list-style: none;
    padding: 0;
}

.servico-lista li {
    color: var(--primary-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.servico-lista li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.2em;
}

/* ===== Localizações Section ===== */
.localizacao {
    padding: 5rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.localizacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.localizacao-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary-light);
    transition: var(--transition);
}

.localizacao-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.localizacao-card h3 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 1rem;
}

.localizacao-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.localizacao-info {
    background: var(--text-white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-light);
}

.localizacao-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.localizacao-info strong {
    color: var(--heading-color, var(--primary-dark));
}

/* ===== Diferenciais Section ===== */
.diferenciais {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.diferencial {
    background: var(--bg-white);
    padding: 3rem 2rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.diferencial:hover {
    transform: none;
}

.numero {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: var(--primary-light);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.diferencial h4 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.diferencial p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 4rem;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    text-align: center;
    border-radius: 20px;
    margin: 5rem 0;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== Contato Section ===== */
.contato {
    padding: 5rem 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contato-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contato-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.localizacoes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--heading-color, var(--primary-dark));
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 174, 240, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    --footer-text-muted: color-mix(in srgb, var(--footer-text, var(--text-white)) 80%, transparent);
    --footer-text-faint: color-mix(in srgb, var(--footer-text, var(--text-white)) 60%, transparent);
    --footer-border: color-mix(in srgb, var(--footer-text, var(--text-white)) 12%, transparent);
    background: var(--footer-bg, var(--primary-dark));
    color: var(--footer-text, var(--text-white));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--footer-text-muted);
    padding: 7px 13px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: var(--primary-light);
    background: var(--footer-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-logo {
    max-width: 380px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heading-color, var(--primary-light));
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--footer-border);
}

.footer-section p {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-light);
    margin-left: 5px;
}

.footer-contact-list {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--footer-text-muted);
}

.footer-contact-list strong {
    color: var(--footer-text);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--primary-light);
    font-size: 0.9rem;
    border: 1px solid var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.footer-bottom {
    background: var(--footer-copyright-bg, var(--footer-bg));
    color: var(--footer-copyright-text, var(--footer-text-faint));
    border-top: 1px solid var(--footer-border);
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom p {
    color: inherit;
    margin: 0;
    
}

/* ===== Redes Sociais Flutuantes ===== */
.floating-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
}

.floating-btn.linkedin { background-color: #0A66C2; }
.floating-btn.facebook { background-color: #1877F2; }
.floating-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.floating-btn.whatsapp { background-color: #25D366; }

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .lang-switcher {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contato-info {
        grid-template-columns: 1fr;
    }

    .localizacoes-container {
        grid-template-columns: 1fr;
    }

    .sobre-grid,
    .servicos-grid,
    .localizacoes-grid,
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .logo-image {
        height: 44px;
    }

    .cta-section {
        padding: 2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    section {
        padding: 2rem 0 !important;
    }

    .floating-social {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }
}

/* ===== Animações Gerais ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Espaçamento ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
