/*
 Theme Name:   Storefront Santana
 Theme URI:    https://santanainformatica.com.br
 Description:  Tema filho do Storefront — Santana Informática
               Paleta: Vermelho #D32F2F, Azul escuro #1A3A5C, Cinza #F5F5F5
 Author:       Santana Informática
 Author URI:   https://santanainformatica.com.br
 Template:     storefront
 Version: 1.0.2
 License:      GNU General Public License v2
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         e-commerce, dois-precos, storefront, woocommerce
 Text Domain:  santana
*/

/* ============================================================
   VARIÁVEIS DE CORES
   ============================================================ */
:root {
    --color-primary:     #D32F2F;   /* Vermelho Santana */
    --color-primary-dark: #B71C1C;  /* Vermelho escuro hover */
    --color-secondary:  #1A3A5C;   /* Azul escuro — botões CTA */
    --color-secondary-dark: #0F2540;
    --color-accent:     #FFC107;   /* Amarelo — badges, destaques */
    --color-text:       #212121;   /* Texto principal */
    --color-text-light: #757575;   /* Texto secundário */
    --color-bg:         #FFFFFF;
    --color-bg-alt:     #F5F7FA;   /* Fundo alternado de seções */
    --color-border:     #E0E0E0;
    --font-main:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius:    8px;
    --shadow-card:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover:     0 8px 24px rgba(0,0,0,0.15);
    --transition:       all 0.25s ease;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-primary-dark); }

/* ============================================================
   CABEÇALHO
   ============================================================ */
.site-header {
    background: #FFFFFF;
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding .site-title a,
.site-branding .site-title {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Navegação principal */
.main-navigation a {
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 4px;
    transition: var(--transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
    background: rgba(211,47,47,0.06);
}

/* Botão CTA no cabeçalho */
.santana-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-secondary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin-left: 16px;
    transition: var(--transition);
    white-space: nowrap;
}
.santana-header-cta:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.button,
button,
input[type="submit"],
.wc-block-components-button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211,47,47,0.35);
}

/* Botão secundário (outline) */
.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--color-secondary);
}
.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--color-secondary-dark);
    box-shadow: 0 4px 12px rgba(26,58,92,0.35);
}

/* ============================================================
   HERO / BANNER PRINCIPAL
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F2540 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(211,47,47,0.08);
    border-radius: 50%;
}

.hero-section h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-section .hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-whatsapp-hero {
    background: #25D366;
    color: white;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-whatsapp-hero:hover {
    background: #1faf53;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.4);
}

/* ============================================================
   CARDS DE SERVIÇO
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   WOOCOMMERCE — LISTAGEM DE PRODUTOS
   ============================================================ */
.woocommerce ul.products li.product {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    background: white;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 16px 8px;
    color: var(--color-text);
}

.woocommerce ul.products li.product .price {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 16px 16px;
}

.woocommerce ul.products li.product .button {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
    text-align: center;
}

/* Preço de atacado */
.wholesale-price-container {
    padding: 8px 16px;
    background: rgba(26,58,92,0.05);
    border-radius: 6px;
    margin: 0 16px 12px;
}

.wholesale-price-container .wholesale-price {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
   PÁGINA ÚNICA DE PRODUTO
   ============================================================ */
.woocommerce div.product .price {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.woocommerce div.product form.cart .button {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
}

/* Badge "Promoção" / "Novo" */
.woocommerce span.onsale {
    background: var(--color-primary);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials-section {
    background: var(--color-bg-alt);
    padding: 64px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: #FFB400;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* ============================================================
   SEÇÃO "COMO FUNCIONA"
   ============================================================ */
.how-it-works {
    padding: 64px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(211,47,47,0.3);
}

.step-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-item p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================================
   BANNER DE AVISO LOJISTA
   ============================================================ */
.wholesale-notice-bar {
    background: var(--color-secondary);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.wholesale-notice-bar a {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
    background: #0F2540;
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--color-primary);
}

.footer-widgets h3,
.footer-widgets .widget-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   PÁGINAS DE LANDING (SEO)
   ============================================================ */
.landing-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F2540 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.landing-hero h1 {
    color: white;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* FAQ Accordion para SEO */
.faq-section { padding: 48px 0; }

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover { background: var(--color-bg-alt); }

.faq-answer {
    padding: 16px 20px;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid var(--color-border);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 768px) {
    .santana-header-cta {
        display: none; /* Ocultar no mobile, usar o botão flutuante */
    }

    .hero-section {
        padding: 48px 0;
        text-align: center;
    }

    .hero-section h1 { font-size: 1.8rem; }

    .hero-cta-group {
        justify-content: center;
    }

    .services-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer { padding: 32px 0 16px; }
}

@media (max-width: 480px) {
    .woocommerce ul.products li.product {
        width: 100% !important;
    }
}


/* === Block editor colors for service cards === */
.has-light-gray-background-color { background-color: #f5f5f5 !important; }
.has-pale-cyan-blue-background-color { background-color: #8ed1fc !important; }
.has-vivid-green-cyan-background-color { background-color: #00d084 !important; }
.wp-block-group.has-light-gray-background-color { background-color: #f5f5f5 !important; }
.wp-block-columns { margin-top: 0; margin-bottom: 0; }
.entry-content .alignfull { margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)); margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)); }
