/*
Theme Name: Simpleman
Theme URI: https://simpleman.com.br
Author: Simpleman
Description: Tema custom da Simpleman — Gestão e Manutenção Industrial. Gerado a partir do protótipo de reestruturação SEO (Fase 1 e Fase 2). Design system próprio, sem dependência de page builder.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: simpleman
*/

:root {
  --navy: #0A3049; --navy-deep: #062436; --blue: #0B63A6;
  --blue-light: #EAF3FA; --steel: #7C8791; --steel-light: #E7EAEC;
  --ink: #20262B; --white: #FFFFFF; --accent: #F2871E; --accent-dark: #D6720F;
  --success: #1E8E5A;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 8px 30px -12px rgba(10,48,73,.25);
  --shadow-lg: 0 20px 50px -16px rgba(10,48,73,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: .2px; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; text-transform: none; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; margin-bottom: .35em; }
p { margin: 0 0 1em; color: #40474D; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }
.section { padding: 64px 0; }
.section--alt { background: var(--blue-light); }
.kicker { text-transform: uppercase; letter-spacing: 1.6px; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 .5em; }
.section__intro { max-width: 640px; color: #4b5257; }
.prose p:last-child { margin-bottom: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--steel-light); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1180px; margin: 0 auto; gap: 20px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.site-header__logo img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--blue-light); color: var(--blue); }
.main-nav .has-children { position: relative; }
.mega.blueprint { position: absolute; }
.mega { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--steel-light); padding: 14px; min-width: 260px; display: none; }
.main-nav .has-children:hover .mega { display: block; }
.mega a { padding: 10px 14px; font-weight: 500; }
.site-header__bar .header-cta { display: none; }
@media (min-width: 900px) { .site-header__bar .header-cta { display: inline-flex; } }
.site-header__bar .mobile-toggle { display: inline-flex; }
@media (min-width: 900px) { .site-header__bar .mobile-toggle { display: none !important; } .main-nav { display: flex !important; } }
@media (max-width: 899px) {
  .main-nav { display: none; flex-direction: column; width: 100%; align-items: stretch; padding: 8px 0 4px; }
  .main-nav.open { display: flex; }
  .mega { position: static; box-shadow: none; border: none; display: block; padding-left: 12px; }
  .site-header__bar { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero { position: relative; color: var(--white); min-height: 420px; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(45%) contrast(1.08) brightness(.97); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy) 10%, var(--blue) 100%); mix-blend-mode: color; opacity: .32; pointer-events: none; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(115deg, var(--navy) 30%, rgba(10,48,73,.65) 65%, rgba(10,48,73,.35) 100%); z-index: 1; }
.hero--industrial-grid .hero__scrim, .hero--contact .hero__scrim { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero__pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px), radial-gradient(circle at 80% 20%, rgba(242,135,30,.18), transparent 45%); z-index: 1; }
.hero__content { position: relative; z-index: 2; padding: 96px 24px 56px; max-width: 820px; margin: 0 auto; box-sizing: border-box; }
@media (min-width: 640px) { .hero__content { padding-top: 120px; } }
.hero__content h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero__lead { color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 620px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 18px; display: flex; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,.7); }

/* Grid / cards */
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius); padding: 26px; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.card--link { display: block; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.card__icon { color: var(--blue); margin-bottom: 12px; }
.card__icon .icon svg, .icon svg { width: 30px; height: 30px; }
.card__arrow { position: absolute; top: 24px; right: 22px; color: var(--steel); }
.card__arrow svg { width: 18px; height: 18px; }

/* Cantos "planta técnica" — detalhe de precisão/engenharia nos cards */
.blueprint { position: relative; }
.corner { position: absolute; width: 13px; height: 13px; pointer-events: none; color: var(--steel); opacity: .5; transition: color .15s ease, opacity .15s ease; }
.corner.tl { top: 9px; left: 9px; border-top: 1.5px solid; border-left: 1.5px solid; }
.corner.tr { top: 9px; right: 9px; border-top: 1.5px solid; border-right: 1.5px solid; }
.corner.bl { bottom: 9px; left: 9px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.corner.br { bottom: 9px; right: 9px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.card--link:hover .corner, .brand-chip:hover .corner, a.contact-card:hover .corner, .has-children:hover .corner { color: var(--accent); opacity: 1; }

/* Fotos em duotone — tom da marca sobre a imagem real */
.duotone { position: relative; overflow: hidden; }
.duotone img { filter: grayscale(45%) contrast(1.08) brightness(.97); }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy) 10%, var(--blue) 100%); mix-blend-mode: color; opacity: .38; pointer-events: none; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.split__media--pattern { position: relative; height: 260px; background: var(--navy); }
.split__media--pattern .hero__pattern { position: absolute; inset: 0; }

/* Checklist */
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check { color: var(--success); flex: none; margin-top: 2px; }
.checklist .check svg { width: 20px; height: 20px; }

/* Brand grid */
.brand-logos { margin-top: 22px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.brand-logos img { display: block; width: 100%; height: auto; }
.brand-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brand-chip { padding: 14px 22px; background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; }
.brand-chip:hover { border-color: var(--blue); color: var(--blue); }

/* Stats */
.stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat__value { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--accent-dark); }
.stat__label { color: var(--steel); font-size: .92rem; }

/* Highlight */
.highlight__box { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); border-radius: var(--radius); padding: 44px; }
.highlight__box h2 { color: var(--white); }
.highlight__box p { color: rgba(255,255,255,.85); }
.highlight__box .btn { margin-top: 8px; }

/* CTA box */
.cta-box { background: var(--blue-light); border-radius: var(--radius); padding: 32px; text-align: center; }

/* FAQ */
.faq { margin-top: 16px; display: grid; gap: 10px; }
.faq__item { background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius-sm); padding: 6px 18px; }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); }
.faq__answer { padding: 0 0 16px; color: #4b5257; }

/* Related */
.related__grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.related__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--steel-light); border-radius: 999px; font-weight: 600; }
.related__link svg { width: 14px; height: 14px; }

/* SEO panel */
.seo-panel__box { border: 1px dashed var(--steel); border-radius: var(--radius-sm); padding: 14px 18px; background: #FAFBFC; }
.seo-panel__box summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.seo-panel__box dl { margin: 14px 0 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: .9rem; }
.seo-panel__box dt { color: var(--steel); font-weight: 700; }
.seo-panel__box dd { margin: 0; }
.charcount { color: var(--steel); font-size: .82em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius); padding: 26px; color: var(--ink); }
.contact-card .icon { color: var(--blue); }
.contact-card .icon svg { width: 28px; height: 28px; }
a.contact-card:hover { border-color: var(--blue); }

/* Blog cards */
.post-card { background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius); padding: 26px; color: inherit; display: block; }
.post-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.post-card__date { font-size: .8rem; color: var(--steel); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.post-card__cta { display: inline-flex; gap: 6px; align-items: center; color: var(--blue); font-weight: 700; margin-top: 8px; }
.post-card__cta svg { width: 14px; height: 14px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: rgba(255,255,255,.78); display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 30px; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; bottom: 16px; right: 16px; z-index: 50; box-shadow: var(--shadow-lg); }

/* Review banner (only in prototype) */

/* Ajustes específicos WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.wp-block-image, figure { margin: 0 0 1.4em; }
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
