/*
Theme Name:   Kadence Child - Moura
Template:     kadence
Version:      1.0.0
*/

/* ─── Paleta da Marca ─── */
:root {
    /* Substitui a paleta do Kadence com as cores Moura */
    --global-palette1: #4a9fd4;   /* Azul Moura — accent, links, botões */
    --global-palette2: #2d7fb8;   /* Azul hover */
    --global-palette3: #0f1929;   /* Navy escuro — títulos */
    --global-palette4: #374151;   /* Cinza escuro — corpo de texto */
    --global-palette5: #6b7280;   /* Cinza médio — texto secundário */
    --global-palette6: #d1d5db;   /* Cinza claro — bordas */
    --global-palette7: #f4f6f9;   /* Fundo claro */
    --global-palette8: #f9fafb;   /* Fundo off-white */
    --global-palette9: #ffffff;   /* Branco puro */

    /* Extras Moura (seções escuras) */
    --moura-dark:      #0f1929;
    --moura-navy:      #1c2d45;
    --moura-blue:      #4a9fd4;
    --moura-blue-dark: #2d7fb8;
    --moura-text-dark: rgba(255,255,255,0.88);
    --moura-text-muted-dark: rgba(255,255,255,0.55);
}

/* ─── Tipografia global ─── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--global-palette4);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--global-palette3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Links e botões ─── */
a {
    color: var(--moura-blue);
    transition: color 0.2s;
}

a:hover {
    color: var(--moura-blue-dark);
}

.wp-block-button__link,
.kb-btn,
.button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 3px !important;
    transition: background-color 0.2s, transform 0.1s;
}

/* Botão azul padrão — só aplica quando não há inline style sobreescrevendo */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not([style*="background"]) {
    background-color: var(--moura-blue);
    border-color: var(--moura-blue);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:not([style*="background"]):hover {
    background-color: var(--moura-blue-dark);
    border-color: var(--moura-blue-dark);
    transform: translateY(-1px);
}

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
    border-radius: 3px !important;
}

/* ─── Seção escura (hero, banners) ─── */
.section-dark,
.moura-dark {
    background-color: var(--moura-dark);
    color: var(--moura-text-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.moura-dark h1,
.moura-dark h2,
.moura-dark h3 {
    color: var(--moura-blue);
}

.section-dark p,
.moura-dark p {
    color: var(--moura-text-dark);
}

/* ─── Seção navy (alternância) ─── */
.section-navy {
    background-color: var(--moura-navy);
    color: var(--moura-text-dark);
}

/* ─── Badge / label técnica ─── */
.moura-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--moura-blue);
    border: 1px solid var(--moura-blue);
    padding: 4px 12px;
    border-radius: 2px;
}

/* ─── Card de serviço ─── */
.moura-service-card {
    background: #1c2d45;
    border-top: 3px solid var(--moura-blue);
    padding: 32px 28px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.moura-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.moura-service-card h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.moura-service-card p {
    color: var(--moura-text-muted-dark);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── Botão WhatsApp flutuante ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* ─── Header ─── */
.site-header,
#masthead {
    background-color: var(--moura-dark) !important;
    border-bottom: 1px solid rgba(74, 159, 212, 0.15);
}

.site-header a,
#masthead a {
    color: #ffffff;
}

.site-header .main-navigation a:hover,
#masthead .main-navigation a:hover {
    color: var(--moura-blue);
}

/* ─── Footer ─── */
.site-footer,
#colophon {
    background-color: var(--moura-dark);
    color: var(--moura-text-muted-dark);
    border-top: 1px solid rgba(74, 159, 212, 0.2);
}

/* ─── Utilitários de espaçamento ─── */
.moura-section {
    padding: 80px 0;
}

.moura-section-sm {
    padding: 48px 0;
}

/* ─── Contact Form 7 ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0f1929;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #4a9fd4;
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.15);
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 .cf7-field-group {
    margin-bottom: 20px;
}

.wpcf7 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.wpcf7 label abbr {
    color: #4a9fd4;
    text-decoration: none;
}

.wpcf7 input[type="submit"] {
    background-color: #4a9fd4;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 8px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #2d7fb8;
    transform: translateY(-1px);
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #ecfdf5;
    color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: #fef2f2;
    color: #991b1b;
}

/* ─── Kadence: Header e navegação ─── */

.header-navigation .menu-item a,
.primary-navigation .menu-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── Garantir que páginas full-width não tenham padding lateral desnecessário ─── */
.wp-site-blocks > * {
    padding-left: 0;
    padding-right: 0;
}

/* ─── Parágrafo com borda lateral (credenciais) ─── */
/* has-border-color adiciona border-style:solid em todos os lados — restringe ao lado esquerdo */
p.has-border-color {
    border-style: none none none solid;
}

/* ─── Galeria de portfólio ─── */
.wp-block-gallery .wp-block-image img {
    border-radius: 4px;
    transition: opacity 0.2s;
}

.wp-block-gallery .wp-block-image:hover img {
    opacity: 0.85;
}

/* ─── Listas em sections escuras ─── */
.wp-block-group[style*="background-color:#0f1929"] ul,
.wp-block-group[style*="background-color:#1c2d45"] ul {
    color: rgba(255,255,255,0.75);
}

/* ─── Seletor de edificação no CF7 ─── */
.wpcf7 select {
    appearance: auto;
    background-image: none;
}

/* ─── Footer premium ─── */
.moura-footer {
    background-color: #0f1929;
    border-top: 1px solid rgba(74,159,212,0.2);
}

.moura-footer-main {
    padding: 72px 24px 56px;
}

.moura-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.6fr;
    gap: 64px;
}

.moura-footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.moura-footer-tagline {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin: 0 0 12px;
}

.moura-footer-crea {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(74,159,212,0.7);
    margin: 0 0 24px;
}

.moura-footer-social {
    display: flex;
    gap: 12px;
}

.moura-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(74,159,212,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.moura-footer-social a:hover {
    color: #ffffff;
    border-color: #4a9fd4;
    background: rgba(74,159,212,0.12);
}

.moura-footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a9fd4;
    margin: 0 0 20px;
}

.moura-footer-nav ul,
.moura-footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.moura-footer-nav ul li {
    margin-bottom: 10px;
}

.moura-footer-nav ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.moura-footer-nav ul li a:hover {
    color: #ffffff;
}

.moura-footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
}

.moura-footer-contact ul li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #4a9fd4;
}

.moura-footer-contact ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.moura-footer-contact ul li a:hover {
    color: #ffffff;
}

.moura-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 24px;
}

.moura-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.moura-footer-bottom-inner p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.moura-footer-bottom-inner a {
    color: rgba(74,159,212,0.7);
    text-decoration: none;
}

.moura-footer-bottom-inner a:hover {
    color: #4a9fd4;
}

@media (max-width: 900px) {
    .moura-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .moura-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .moura-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .moura-footer-brand {
        grid-column: auto;
    }
    .moura-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
