/**
 * CSS pontual — Total Confecções
 *
 * O design system (cores, tipografia, componentes UIkit) vive em
 * less/theme.total-confeccoes.less e só compila ao salvar o Customizer.
 * Aqui ficam os componentes da home (classes tm-*), aplicados via prop
 * `class` dos elementos do Page Builder (docs/build_home.php).
 *
 * Referência visual: docs/design/pages/01-home.html
 */

:root {
    --tc-navy: #0B1E3F;
    --tc-navy-deep: #07152E;
    --tc-yellow: #FFCC29;
    --tc-yellow-dark: #B8860B;
    --tc-gray-bg: #F3F5F9;
    --tc-border: #E2E6EE;
    --tc-input: #D5DBE5;
    --tc-text: #566079;
    --tc-text-inverse: #B9C3D6;
    --tc-whatsapp: #25D366;
}

/* =====================================================================
   Tipografia de seção
   ===================================================================== */
.tm-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-yellow-dark);
}

.tm-link-underline:hover { color: var(--tc-yellow-dark); text-decoration: none; }

/* =====================================================================
   1. Hero
   ===================================================================== */
.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
}
.tm-hero-badge .tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-yellow);
    box-shadow: 0 0 0 4px rgba(255, 204, 41, .2);
}
.tm-hero-title {
    font-size: clamp(34px, 3.6vw, 38px);
    line-height: 1.08;
}

.tm-check-list > ul,
ul.tm-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}
.tm-check-list > ul > li,
ul.tm-check-list > li { margin: 0 !important; }
.tm-check-list .el-content { color: #FFFFFF; font-size: 14px; font-weight: 700; }
.tm-check-list [uk-icon],
.tm-check-list .el-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tc-yellow);
    color: var(--tc-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tm-check-list [uk-icon] svg { width: 13px; height: 13px; }

.tm-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 13;
    object-fit: cover;
    border-radius: 24px;
    background: #1A2F55;
}

.tm-float-card {
    display: inline-flex;
    text-align: left;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(3, 10, 25, .25);
}
.tm-float-card .tm-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #E9F7EF;
    color: #1E8E4E;
}
.tm-float-card strong { display: block; color: var(--tc-navy); font-size: 14px; font-weight: 800; }
.tm-float-card span:not(.tm-float-icon) { display: block; color: var(--tc-text); font-size: 12.5px; }

.tm-float-badge {
    display: inline-block;
    text-align: left;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(11, 30, 63, .82);
    color: #FFFFFF;
    backdrop-filter: blur(6px);
}
.tm-float-badge strong { display: block; color: var(--tc-yellow); font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; line-height: 1.1; }
.tm-float-badge span { font-size: 12px; font-weight: 600; }

/* =====================================================================
   2. Clientes e números
   ===================================================================== */
.tm-trust-label p {
    color: var(--tc-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.tm-logos .el-item { display: flex; align-items: center; justify-content: center; }
.tm-logos img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s, opacity .2s;
}
.tm-logos img:hover { filter: none; opacity: 1; }

.tm-stats > .uk-grid {
    margin-left: 0;
    border-radius: 16px;
    background: var(--tc-gray-bg);
    overflow: hidden;
}
.tm-stats > .uk-grid > * { padding: 22px 28px; }
.tm-stats > .uk-grid-divider > :not(.uk-first-column)::before { border-color: var(--tc-border); top: 18px; bottom: 18px; }
.tm-stats .el-title {
    margin: 0;
    color: var(--tc-navy);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}
.tm-stats .el-content { font-size: 13px; }

/* =====================================================================
   4. Técnicas (switcher)
   ===================================================================== */
.tm-techniques .el-nav { gap: 10px; }
.tm-techniques .el-nav.uk-nav > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    background: var(--tc-gray-bg);
    color: var(--tc-navy);
    transition: background .2s, color .2s;
}
.tm-techniques .el-nav.uk-nav > li + li { margin-top: 10px; }
.tm-techniques .el-nav > li.uk-active > a {
    border-color: var(--tc-navy);
    background: var(--tc-navy);
    color: #FFFFFF;
}
.tm-sw-num { font-size: 12px; font-weight: 800; opacity: .6; }
.tm-sw-text strong { display: block; font-size: 16px; font-weight: 800; }
.tm-sw-text small { display: block; font-size: 12.5px; opacity: .75; }
.tm-techniques .el-nav.uk-subnav .tm-sw-text small,
.tm-techniques .el-nav.uk-subnav .tm-sw-num { display: none; }

.tm-techniques .uk-switcher > .el-item {
    border-radius: 20px;
    background: var(--tc-gray-bg);
    overflow: hidden;
}
.tm-techniques .uk-switcher .el-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.tm-techniques .uk-switcher .uk-width-1-2\@m + * { padding: 36px 40px; }
.tm-indicado {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--tc-navy);
    font-size: 14px;
}
.tm-indicado span {
    display: block;
    margin-bottom: 2px;
    color: var(--tc-yellow-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =====================================================================
   5. Segmentos
   ===================================================================== */
.tm-features .el-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

/* =====================================================================
   6. Diferenciais
   ===================================================================== */
.tm-dif-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 24px; }
.tm-float-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--tc-navy);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(3, 10, 25, .18);
}
.tm-features .el-image { width: 32px; height: 32px; border-radius: 8px; background: var(--tc-yellow); color: var(--tc-navy); }
.tm-features .el-title { color: var(--tc-navy); font-size: 15px; }

/* =====================================================================
   7. Processo
   ===================================================================== */
.tm-steps .uk-card-default { border: 1px solid var(--tc-border); border-radius: 16px; box-shadow: none; }
.tm-steps .el-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--tc-navy);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}
.tm-steps .uk-grid > :last-child .el-meta { background: var(--tc-yellow); color: var(--tc-navy); }
.tm-steps .el-title { margin-top: 16px !important; color: var(--tc-navy); font-size: 15px; }

/* =====================================================================
   8. Nossa malha (banner)
   ===================================================================== */
.tm-banner > .uk-flex > .uk-tile,
.tm-banner .uk-tile { border-radius: 24px; overflow: hidden; }

/* =====================================================================
   10. Blog
   ===================================================================== */
.tm-post .el-meta {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
}
.tm-post--yellow .el-meta { background: #FFF4CC; color: #7A5A00; }
.tm-post--blue .el-meta { background: #E6EEFB; color: #1D3F7A; }
.tm-post--green .el-meta { background: #E9F7EF; color: #1E6B40; }

/* =====================================================================
   11. Orçamento
   ===================================================================== */
/* Card do WhatsApp: o unico contato verde (sem variavel de tema para essa cor).
   Com panel_link, a classe do item fica no wrapper; o card e o filho .uk-card. */
.tm-contact--wa > .uk-card { border-color: var(--tc-whatsapp); background: var(--tc-whatsapp); }
.tm-contact--wa > .uk-card:hover { border-color: #1FB957; background: #1FB957; }
.tm-contact--wa > .uk-card :is(.el-title, .el-meta, .el-image) { color: #06301A; }
.tm-contact--wa > .uk-card .el-image[uk-icon] { background: rgba(6, 48, 26, .14); }

.tm-form-orcamento label {
    display: block;
    margin-bottom: 6px;
    color: var(--tc-navy);
    font-size: 13px;
    font-weight: 700;
}
/* Especificidade extra: o card branco fica dentro de .uk-section-primary, cuja
   regra .uk-section-primary:not(.uk-preserve-color) .uk-input pinta o campo
   para fundo escuro (branco translucido, borda transparente). */
.uk-section .tm-form-card .tm-form-orcamento .uk-input,
.uk-section .tm-form-card .tm-form-orcamento .uk-select,
.uk-section .tm-form-card .tm-form-orcamento .uk-textarea {
    border: 1px solid var(--tc-input);
    border-radius: 10px;
    background: #FAFBFD;
    color: var(--tc-navy);
    font-size: 14px;
}
.uk-section .tm-form-card .tm-form-orcamento .uk-input:focus,
.uk-section .tm-form-card .tm-form-orcamento .uk-select:focus,
.uk-section .tm-form-card .tm-form-orcamento .uk-textarea:focus { border-color: var(--tc-navy); background: #FFFFFF; color: var(--tc-navy); }
.uk-section .tm-form-card .tm-form-orcamento ::placeholder { color: #8C94A6; }
.tm-label-block { margin-top: 16px; }
.tm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.uk-section .tm-form-card .tm-form-actions a { color: #1E8E4E; font-size: 14px; font-weight: 700; }
.tm-form-micro { margin: 12px 0 0; color: #8C94A6; font-size: 12.5px; }
.tm-form-ok,
.tm-form-error { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.tm-form-ok { border: 1px solid #CDEBD8; background: #EAF7EF; color: #1E6B3A; }
.uk-section .tm-form-card .tm-form-ok a { font-weight: 700; color: #1E6B3A; text-decoration: underline; }
.tm-form-error { border: 1px solid #F3C6C6; background: #FDEDED; color: #A33030; }
/* Erro por campo do NextForms (fieldError) */
.tm-field-error { display: block; margin-top: 4px; color: #A33030; font-size: 12.5px; }

/* =====================================================================
   Páginas internas (Personalização, Segmentos)
   ===================================================================== */
.tm-breadcrumb > * > * { color: var(--tc-text-inverse); font-size: 12.5px; }
.tm-breadcrumb > :last-child > * { color: #FFFFFF; font-weight: 700; }
.tm-breadcrumb > * > a:hover { color: var(--tc-yellow); }
.tm-hero-title--page { font-size: clamp(32px, 3.2vw, 32px); }

/* Cards das técnicas no hero */

/* Passos em fundo escuro */

.tm-faq-cards .uk-card-default { border: 1px solid var(--tc-border); border-radius: 16px; box-shadow: none; }

/* Faixas de chamada (coluna com tile + fragment) */
.tm-cta > .uk-tile,
.tm-cta.uk-tile,
.tm-cta .uk-tile { border-radius: 24px; padding: 36px 40px; }
.tm-cta--dark p { color: var(--tc-text-inverse); }
.uk-section .tm-cta--dark .uk-button-default { border-color: var(--tc-whatsapp); background: var(--tc-whatsapp); color: #06301A; }

/* Segmentos: nav no hero conectado ao switcher da seção abaixo */
.tm-seg-nav > * > a {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    box-sizing: border-box; min-height: 128px; padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    color: #FFFFFF; font-size: 14px; font-weight: 800; text-decoration: none;
    transition: border-color .2s, background .2s;
}
.tm-seg-nav > * > a:hover { border-color: rgba(255, 204, 41, .5); color: #FFFFFF; text-decoration: none; }
.tm-seg-nav > .uk-active > a { border-color: var(--tc-yellow); background: var(--tc-yellow); color: var(--tc-navy); }
.tm-seg-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255, 204, 41, .14); color: var(--tc-yellow);
}
.tm-seg-nav > .uk-active .tm-seg-ico { background: var(--tc-navy); color: var(--tc-yellow); }

/* =====================================================================
   Menu: botão Orçamento (item com classe tm-nav-cta)
   ===================================================================== */
.uk-navbar-nav > li.tm-nav-cta { display: flex; align-items: center; }
.uk-navbar-nav > li.tm-nav-cta > a {
    min-height: 0;
    height: 42px;
    margin-left: 14px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--tc-yellow);
    color: var(--tc-navy);
    font-weight: 800;
    transition: background .2s ease;
}
.uk-navbar-nav > li.tm-nav-cta > a:hover,
.uk-navbar-nav > li.tm-nav-cta > a:focus { background: #FFD95E; color: var(--tc-navy); }

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 959px) {
    .tm-cta .uk-tile { padding: 28px 24px; }
    .tm-seg-nav > * > a { min-height: 96px; }
    .tm-float-card { min-width: 0; }
    .tm-techniques .uk-switcher .uk-width-1-2\@m + * { padding: 24px; }
    .tm-stats > .uk-grid > * { padding: 18px; }
}
