/*
Theme Name: Tema Soma Contabilidade
Theme URI: https://somacontabilidade.com.br
Author: Soma Contabilidade
Author URI: https://somacontabilidade.com.br
Description: Tema WordPress institucional para escritório de contabilidade.
Version: 1.0
Text Domain: tema-soma
*/

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
}

:root {
    --azul: #0a3d62;
    --laranja: #f39c12;
    --cinza: #f4f6f8;
    --texto: #2c2c2c;
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--texto);
    background: #fff;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.home-hero {
    background: linear-gradient(120deg, #0a3d62, #0e5aa7);
    color: #fff;
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--laranja);
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    display: inline-flex;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

/* AUTORIDADE */
.home-authority {
    background: #fff;
    padding: 80px 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.home-authority h2 {
    color: var(--azul);
    font-size: 32px;
}

.home-authority ul {
    list-style: none;
    padding: 0;
}

.home-authority li {
    margin-bottom: 15px;
    font-weight: 500;
}

/* SERVIÇOS */
.home-services {
    background: var(--cinza);
    padding: 80px 0;
}

.home-services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--azul);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: flex-start;
}

.service-box {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    border-top: 4px solid var(--laranja);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    align-self: flex-start;
}

/* CTA */
.home-cta {
    background: var(--azul);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.home-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    max-height: 50px;
}

.site-logo a {
    font-size: 22px;
    font-weight: bold;
    color: var(--azul);
    text-decoration: none;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: var(--azul);
    font-weight: 600;
}

.menu a:hover {
    color: var(--laranja);
}

/* LOGO WORDPRESS */
.custom-logo-link img,
.site-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== SOBRE ===== */

.sobre-hero {
    background: linear-gradient(120deg, #0a3d62, #0e5aa7);
    color: #fff;
    padding: 80px 0;
}

.sobre-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.sobre-hero p {
    font-size: 18px;
    max-width: 600px;
}

.sobre-section {
    padding: 80px 0;
}

.sobre-light {
    background: #f4f6f8;
}

.sobre-section h2 {
    color: var(--azul);
    font-size: 30px;
    margin-bottom: 25px;
}

.sobre-section p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 20px;
}

.equipe-lista {
    list-style: none;
    padding: 0;
}

.equipe-lista li {
    margin-bottom: 10px;
    font-weight: 500;
}

.crc {
    margin-top: 30px;
    font-weight: 600;
}

.sobre-cta {
    background: var(--azul);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}


/* ===== FOOTER ===== */

.site-footer {
    background: #0a3d62;
    color: #fff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--laranja);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* HERO COM IMAGEM DE FUNDO */
.home-hero {
    position: relative;
    background-image:
        linear-gradient(
            rgba(10, 61, 98, 0.85),
            rgba(10, 61, 98, 0.85)
        ),
        url('/wp-content/themes/Soma-Contabilidade/assets/img/home-image.jpeg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 150px 0;
    color: #fff;
}

/* =========================
   PÁGINA SERVIÇOS
========================= */

.services-hero {
    background: linear-gradient(180deg, #0b3c5d, #0a2f47);
    color: #fff;
    padding: 100px 20px 80px;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.services-hero p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* LISTA DE SERVIÇOS */

.services-list {
    padding: 80px 20px;
    background: #f7f9fb;
}

.services-list h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--azul);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-top: 4px solid var(--laranja);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--azul);
}

.service-card p {
    color: #555;
    line-height: 1.6;
}

/* CTA */

.services-cta {
    background: var(--azul);
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}

.services-cta h2 {
    margin-bottom: 12px;
}

.services-cta p {
    margin-bottom: 24px;
    opacity: 0.9;
}

/* ACCORDION SERVIÇOS */

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.accordion-header h3 {
    margin: 0;
    color: var(--azul);
}

.accordion-icon {
    font-size: 1.6rem;
    color: var(--laranja);
    transition: transform .3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    margin-top: 0;
}

.accordion-content p {
    margin-top: 20px;
    color: #555;
}

.accordion-content ul {
    margin: 16px 0;
    padding-left: 18px;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion.active .accordion-content {
    max-height: 500px;
}

.accordion.active .accordion-icon {
    transform: rotate(45deg);
}

/* ============================= */
/* RESPONSIVO - AJUSTES GERAIS */
/* ============================= */

@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        line-height: 1.6;
    }
}


@media (max-width: 768px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 30px;
    }

    .hero-image img {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-box {
        padding: 24px;
    }

    .accordion-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================= */
/* HEADER DESKTOP */
/* ============================= */

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav .menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.site-nav .menu a {
    font-weight: 600;
    color: var(--azul);
    text-decoration: none;
}

.site-nav .menu a:hover {
    color: var(--laranja);
}

/* ============================= */
/* BOTÃO MENU MOBILE */
/* ============================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azul);
}

/* ============================= */
/* MENU MOBILE LATERAL */
/* ============================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px; /* começa fora da tela */
    width: 260px;
    height: 100%;
    background: #fff;
    padding: 30px 20px;
    z-index: 1001;
    transition: right .3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    right: 0; /* entra pela direita */
}

.menu-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azul);
    margin-bottom: 30px;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-list a {
    font-size: 18px;
    font-weight: 600;
    color: var(--azul);
    text-decoration: none;
}

.mobile-menu-list a:hover {
    color: var(--laranja);
}

/* ============================= */
/* OVERLAY */
/* ============================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {

    .site-nav {
        display: none; /* esconde menu desktop */
    }

    .menu-toggle {
        display: block;
    }

    .header-flex {
        justify-content: center;
        position: relative;
    }

    .menu-toggle {
        position: absolute;
        right: 0;
    }
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

/* ============================= */
/* NOTÍCIAS */
/* ============================= */

.news-section {
    padding: 80px 0;
    background: #f6f7f9;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--azul);
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* IMAGEM */
.news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* CONTEÚDO */
.news-content {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-content h3 {
    font-size: 18px;
    color: var(--azul);
    margin-bottom: 14px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* LINK */
.news-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--laranja);
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
}
