/*
Theme Name:   Kadence Child – Estruturei
Theme URI:    https://estruturei.com.br
Description:  Child theme do Kadence para o site Estruturei. Aplica identidade visual da marca: Titillium Web, paleta de cores, tipografia e overrides de componentes.
Author:       Estruturei
Template:     kadence
Version:      1.0.0
Text Domain:  kadence-child-estruturei
*/

/* =====================================================================
   IMPORT FONT — Titillium Web (mesma fonte da marca)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap');


/* =====================================================================
   VARIÁVEIS DE MARCA
   ===================================================================== */
:root {
    --est-navy:    #273881;   /* Azul primário */
    --est-blue:    #23BAED;   /* Azul claro / destaque */
    --est-yellow:  #FEC00F;   /* Amarelo */
    --est-orange:  #F58220;   /* Laranja */
    --est-dark:    #1a1a2e;   /* Texto escuro */
    --est-light:   #f5f7fa;   /* Fundo claro */
    --est-white:   #ffffff;

    /* Tipografia */
    --est-font:    'Titillium Web', sans-serif;

    /* Raios de borda */
    --est-radius:  6px;
    --est-radius-lg: 12px;

    /* Sombras */
    --est-shadow:  0 2px 16px rgba(39, 56, 129, 0.10);
    --est-shadow-lg: 0 8px 32px rgba(39, 56, 129, 0.18);
}


/* =====================================================================
   TIPOGRAFIA GLOBAL
   ===================================================================== */
body,
.wp-block-paragraph,
p {
    font-family: var(--est-font);
    color: var(--est-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--est-font);
    font-weight: 700;
    color: var(--est-navy);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

a {
    color: var(--est-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--est-blue);
}


/* =====================================================================
   HEADER
   ===================================================================== */
.site-header,
#masthead {
    background: var(--est-navy) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Logo texto fallback */
.site-title a,
.custom-logo-link {
    font-family: var(--est-font);
    font-weight: 900;
    color: var(--est-white) !important;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* Itens do menu principal */
.main-navigation a,
.kadence-navigation a {
    font-family: var(--est-font);
    font-weight: 600;
    color: var(--est-white) !important;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
}
.main-navigation a:hover,
.kadence-navigation a:hover {
    color: var(--est-blue) !important;
}

/* CTA no header */
.header-cta-btn,
.header-button a {
    background: var(--est-blue) !important;
    color: var(--est-white) !important;
    border-radius: var(--est-radius) !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 700 !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}
.header-cta-btn:hover,
.header-button a:hover {
    background: var(--est-yellow) !important;
    color: var(--est-navy) !important;
    transform: translateY(-1px);
}


/* =====================================================================
   BOTÕES
   ===================================================================== */

/* Primário — Navy */
.wp-block-button__link,
.btn,
button[type="submit"],
input[type="submit"] {
    font-family: var(--est-font) !important;
    font-weight: 700 !important;
    border-radius: var(--est-radius) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.wp-block-button.is-style-fill .wp-block-button__link,
.btn-primary {
    background: var(--est-navy) !important;
    color: var(--est-white) !important;
    border: 2px solid var(--est-navy) !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.btn-primary:hover {
    background: var(--est-blue) !important;
    border-color: var(--est-blue) !important;
    transform: translateY(-2px);
    box-shadow: var(--est-shadow);
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-outline {
    background: transparent !important;
    color: var(--est-navy) !important;
    border: 2px solid var(--est-navy) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-outline:hover {
    background: var(--est-navy) !important;
    color: var(--est-white) !important;
}

/* Destaque — Azul claro */
.btn-accent {
    background: var(--est-blue) !important;
    color: var(--est-white) !important;
    border: 2px solid var(--est-blue) !important;
}
.btn-accent:hover {
    background: var(--est-navy) !important;
    border-color: var(--est-navy) !important;
}


/* =====================================================================
   FORMULÁRIOS (Contact Form 7)
   ===================================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    font-family: var(--est-font);
    border: 1.5px solid #d1d5db;
    border-radius: var(--est-radius);
    padding: 0.65rem 0.9rem;
    width: 100%;
    font-size: 0.95rem;
    color: var(--est-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--est-white);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--est-blue);
    box-shadow: 0 0 0 3px rgba(35, 186, 237, 0.15);
}

.wpcf7 input[type="submit"] {
    background: var(--est-navy) !important;
    color: var(--est-white) !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    width: auto;
}
.wpcf7 input[type="submit"]:hover {
    background: var(--est-blue) !important;
    transform: translateY(-2px);
    box-shadow: var(--est-shadow);
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.wpcf7-mail-sent-ok {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: var(--est-radius);
    padding: 0.75rem 1rem;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: var(--est-radius);
    padding: 0.75rem 1rem;
}


/* =====================================================================
   CARDS DE SERVIÇO (CPT servico)
   ===================================================================== */
.servico-card,
.post-type-servico .entry-card {
    background: var(--est-white);
    border-radius: var(--est-radius-lg);
    box-shadow: var(--est-shadow);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--est-navy);
}
.servico-card:hover,
.post-type-servico .entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--est-shadow-lg);
    border-top-color: var(--est-blue);
}


/* =====================================================================
   SEÇÕES HERO
   ===================================================================== */
.hero-section,
.wp-block-cover.hero {
    background: linear-gradient(135deg, var(--est-navy) 0%, #1a2a6c 100%);
    color: var(--est-white);
    padding: 5rem 1.5rem;
    text-align: center;
}
.hero-section h1,
.wp-block-cover.hero h1 {
    color: var(--est-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}
.hero-section .subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}


/* =====================================================================
   SEÇÃO DE DESTAQUE (fundo azul claro)
   ===================================================================== */
.section-accent {
    background: var(--est-blue);
    color: var(--est-white);
    padding: 3rem 1.5rem;
}
.section-accent h2,
.section-accent h3 {
    color: var(--est-white);
}


/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer,
#colophon {
    background: var(--est-navy) !important;
    color: rgba(255,255,255,0.75) !important;
    font-family: var(--est-font);
}
.site-footer a,
#colophon a {
    color: var(--est-blue) !important;
}
.site-footer a:hover,
#colophon a:hover {
    color: var(--est-yellow) !important;
}
.site-footer h3,
.site-footer h4,
#colophon h3,
#colophon h4 {
    color: var(--est-white) !important;
    font-weight: 700;
}


/* =====================================================================
   BLOG
   ===================================================================== */
.blog-card,
.post-card,
article.post {
    border-radius: var(--est-radius-lg);
    overflow: hidden;
    box-shadow: var(--est-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover,
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--est-shadow-lg);
}
.entry-title a {
    color: var(--est-navy);
    font-weight: 700;
}
.entry-title a:hover {
    color: var(--est-blue);
}

/* Categoria badge */
.cat-links a,
.category-label {
    background: var(--est-blue);
    color: var(--est-white) !important;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* =====================================================================
   UTILIDADES
   ===================================================================== */
.text-navy  { color: var(--est-navy); }
.text-blue  { color: var(--est-blue); }
.text-yellow { color: var(--est-yellow); }
.text-orange { color: var(--est-orange); }
.bg-navy    { background: var(--est-navy); color: var(--est-white); }
.bg-blue    { background: var(--est-blue); color: var(--est-white); }
.bg-light   { background: var(--est-light); }

.section-pad {
    padding: 4rem 1.5rem;
}
@media (max-width: 768px) {
    .section-pad { padding: 2.5rem 1rem; }
}


/* =====================================================================
   ACESSIBILIDADE — foco visível
   ===================================================================== */
:focus-visible {
    outline: 3px solid var(--est-blue);
    outline-offset: 2px;
    border-radius: 3px;
}



/* ============================================================
   VISUAL UPGRADE — Moderno / Tech  (Estruturei 2026)
   ============================================================ */

/* --- Downloads Archive Hero --- */
.post-type-archive-download .entry-hero {
  background: linear-gradient(135deg, #1a2a6c 0%, #273881 45%, #1e5fa3 100%) !important;
  min-height: 200px;
}
.post-type-archive-download .entry-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(35,138,233,.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.post-type-archive-download .entry-title,
.post-type-archive-download .hero-title,
.post-type-archive-download .entry-hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.post-type-archive-download .entry-hero .hero-container { position: relative; z-index: 1; }
.post-type-archive-download .entry-hero .hero-section-overlay { opacity: 0 !important; }

/* Subtitle under archive title */
.post-type-archive-download .entry-hero::after {
  content: 'Guias, e-books e planilhas gratuitos para sua operação logística';
  display: block;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* --- Archive Cards --- */
.post-type-archive-download .loop-entry.type-download {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(39,56,129,.08) !important;
  border: 1px solid #e8edf5;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.post-type-archive-download .loop-entry.type-download:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(39,56,129,.14) !important;
}
.post-type-archive-download .loop-entry .entry-title a {
  color: #273881;
}
.post-type-archive-download .loop-entry .entry-title a:hover {
  color: #238AE9;
}
.post-type-archive-download .loop-entry .post-more-link {
  display: inline-block;
  background: linear-gradient(135deg, #238AE9, #1a6fc4);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 0.3px;
}
.post-type-archive-download .loop-entry .post-more-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(35,138,233,.35);
}
/* Clip the "Continuar" out of the link text */
.post-type-archive-download .loop-entry .post-more-link .screen-reader-text { display: none; }

/* Image zoom on hover */
.post-type-archive-download .loop-entry .post-thumbnail {
  overflow: hidden;
}
.post-type-archive-download .loop-entry .post-thumbnail img {
  transition: transform .35s ease;
}
.post-type-archive-download .loop-entry:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* --- Blog Archive & Posts --- */
.blog .loop-entry,
.archive.category .loop-entry,
.archive.tag .loop-entry {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(39,56,129,.07);
  border: 1px solid #e8edf5;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.blog .loop-entry:hover,
.archive.category .loop-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(39,56,129,.12);
}
.blog .loop-entry .post-thumbnail img,
.archive .loop-entry .post-thumbnail img {
  transition: transform .35s ease;
}
.blog .loop-entry:hover .post-thumbnail img {
  transform: scale(1.04);
}

/* --- Global Button Polish --- */
.wp-element-button,
.kt-button,
a.kt-button,
.button,
input[type="submit"] {
  transition: transform .15s ease, box-shadow .15s ease !important;
}

/* --- Serviços page card improvements --- */
.kt-blocks-icon-list-item,
.kadence-icon-list-item {
  transition: color .2s;
}

/* --- Single post/page headings --- */
.single .entry-title,
.page .entry-title {
  color: #273881;
}

/* --- Smooth focus rings --- */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(35,138,233,.5);
  outline-offset: 2px;
}

/* --- Subtle gradient on the main header/nav bar --- */
.site-header {
  box-shadow: 0 2px 16px rgba(39,56,129,.08);
}

/* --- Footer link hover --- */
.site-footer a:hover {
  color: #238AE9;
}

/* --- Testimonials / quotes section polish --- */
blockquote, .wp-block-quote {
  border-left: 4px solid #238AE9;
  padding-left: 20px;
}

undefined


/* ============================================================
   VISUAL UPGRADE — Part 3: Blog Hero & Archive Hero Fixes
   ============================================================ */

/* Blog archive hero — force gradient with very specific selectors */
body.blog .site-content .entry-hero,
body.blog .entry-hero.post-archive-hero-section,
body.archive.category .entry-hero,
body.archive.tag .entry-hero,
body.archive.author .entry-hero {
  background: linear-gradient(135deg, #1a2a6c 0%, #273881 45%, #1e5fa3 100%) !important;
}
body.blog .entry-hero *,
body.archive.category .entry-hero *,
body.blog .entry-hero h1,
body.blog .entry-hero .entry-title,
body.blog .entry-hero .wp-block-post-title {
  color: #fff !important;
}
body.blog .entry-hero .hero-section-overlay,
body.archive .entry-hero .hero-section-overlay {
  display: none !important;
}

/* Single post hero */
body.single-post .entry-hero,
body.single .entry-hero.single-hero-section {
  background: linear-gradient(135deg, #1a2a6c 0%, #273881 45%, #1e5fa3 100%) !important;
}
body.single-post .entry-hero .hero-section-overlay { display: none !important; }
body.single-post .entry-hero h1,
body.single-post .entry-hero .entry-title { color: #fff !important; }
body.single-post .entry-hero .posted-on,
body.single-post .entry-hero .entry-meta,
body.single-post .entry-hero .entry-categories a { color: rgba(255,255,255,.8) !important; }

/* Archive hero subtitle — blog */
body.blog .entry-hero::after {
  content: 'Insights e práticas para gestores de logística e supply chain';
  display: block;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  margin-top: 6px;
}


/* Fix: hero inner container must be transparent so gradient on parent shows */
body.blog .entry-hero-container-inner,
body.archive.category .entry-hero-container-inner,
body.single-post .entry-hero-container-inner,
.post-type-archive-download .entry-hero-container-inner {
  background: transparent !important;
}

/* Apply gradient directly on container-inner too (belt-and-suspenders) */
body.blog .entry-hero .entry-hero-container-inner,
body.archive.category .entry-hero .entry-hero-container-inner,
body.single-post .entry-hero .entry-hero-container-inner,
.post-type-archive-download .entry-hero .entry-hero-container-inner {
  background: linear-gradient(135deg, #1a2a6c 0%, #273881 45%, #1e5fa3 100%) !important;
}
