/*
Theme Name: GASB Minimalista
Theme URI: https://gasb.com.br/
Author: OpenAI
Description: Tema WordPress minimalista para a GASB, com foco em clareza, engenharia e segurança do trabalho.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: gasb-premium
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --gasb-navy: #0a285e;
  --gasb-navy-deep: #071d45;
  --gasb-blue: #30477c;
  --gasb-yellow: #eeb51e;
  --gasb-yellow-dark: #c99608;
  --gasb-ink: #202b3d;
  --gasb-muted: #667085;
  --gasb-light: #f7f8fa;
  --gasb-white: #fff;
  --gasb-border: #e5e7eb;
  --gasb-radius: 2px;
  --gasb-container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--gasb-ink); background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gasb-navy); text-underline-offset: 4px; }
a:hover { color: var(--gasb-yellow-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--gasb-container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 999; background: #fff; padding: 12px; }
.skip-link:focus { left: 10px; }
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--gasb-border); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; min-width: 130px; }
.custom-logo { display: block; max-height: 48px; width: auto; }
.site-title { color: var(--gasb-navy); font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.site-description { display: none; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.primary-navigation a { color: var(--gasb-navy); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--gasb-yellow-dark); }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; border: 1px solid var(--gasb-border); background: #fff; color: var(--gasb-navy); padding: 9px 12px; border-radius: 2px; font-weight: 700; }
.button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px; border: 1px solid var(--gasb-yellow); border-radius: 2px;
  background: var(--gasb-yellow); color: var(--gasb-navy-deep); font-size: .78rem;
  font-weight: 750; letter-spacing: .035em; text-decoration: none; text-transform: uppercase;
  cursor: pointer; transition: background .18s, border-color .18s;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { color: var(--gasb-navy-deep); background: #f7ca55; border-color: #f7ca55; }
.button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.button--outline:hover { color: var(--gasb-navy); background: #fff; border-color: #fff; }
.hero { position: relative; overflow: hidden; background: var(--gasb-navy-deep); color: #fff; min-height: 540px; display: flex; align-items: stretch; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,22,53,.88) 0%, rgba(5,22,53,.67) 48%, rgba(5,22,53,.18) 100%); }
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; padding-block: 78px; }
.hero-copy { max-width: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gasb-yellow); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 18px 0; color: #fff; font-size: clamp(2.45rem, 4.7vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 750; }
.hero p { max-width: 560px; margin: 0 0 28px; color: rgba(255,255,255,.84); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section { padding: 82px 0; }
.section--soft { background: var(--gasb-light); }
.section--navy { color: #fff; background: var(--gasb-navy-deep); }
.section-heading { max-width: 710px; margin: 0 auto 38px; text-align: center; }
.section-heading .eyebrow { color: var(--gasb-yellow-dark); }
.section--navy .section-heading .eyebrow { color: var(--gasb-yellow); }
.section-heading h2 { margin: 12px 0 12px; color: var(--gasb-navy); font-size: clamp(1.9rem, 2.8vw, 2.55rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 750; }
.section--navy .section-heading h2 { color: #fff; }
.section-heading p { margin: 0; color: var(--gasb-muted); }
.section--navy .section-heading p { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(34px, 5.5vw, 72px); }
.split__media { position: relative; min-height: 340px; background: #e9edf3; overflow: hidden; }
.split__media img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; background: var(--gasb-yellow); }
.split__content h2 { margin: 12px 0 16px; color: var(--gasb-navy); font-size: clamp(1.9rem, 2.8vw, 2.55rem); line-height: 1.16; letter-spacing: -.035em; }
.split__content p { color: var(--gasb-muted); }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--gasb-navy); font-size: .78rem; font-weight: 750; text-transform: uppercase; text-decoration: none; }
.text-link::after { content: "→"; color: var(--gasb-yellow-dark); font-size: 1.15rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 26px 24px; border: 1px solid var(--gasb-border); background: #fff; }
.feature-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border: 1px solid #d9dee8; color: var(--gasb-navy); font-size: .9rem; font-weight: 800; }
.feature-card h3 { margin: 0 0 10px; color: var(--gasb-navy); font-size: 1.08rem; line-height: 1.35; }
.feature-card p { margin: 0; color: var(--gasb-muted); font-size: .92rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--gasb-border); }
.product-card__image { height: 245px; background: #e9edf3; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { flex: 1; padding: 24px; border-top: 3px solid var(--gasb-yellow); }
.product-card h3 { margin: 0 0 10px; color: var(--gasb-navy); font-size: 1.15rem; line-height: 1.35; }
.product-card p { color: var(--gasb-muted); font-size: .92rem; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; }
.logo-strip img { max-width: 145px; max-height: 60px; object-fit: contain; filter: grayscale(100%); opacity: .72; }
.norm-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.norm-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-top: 2px solid var(--gasb-yellow); background: rgba(255,255,255,.035); }
.norm-card strong { display: block; margin-bottom: 8px; color: #fff; font-size: 1.35rem; }
.norm-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.cta-band { padding: 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--gasb-border); border-bottom: 1px solid var(--gasb-border); }
.cta-band h2 { max-width: 650px; margin: 0; color: var(--gasb-navy); font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.25; }
.entry-header { padding: 62px 0 48px; color: #fff; background: var(--gasb-navy-deep); }
.entry-header h1 { margin: 0 0 10px; font-size: clamp(2.1rem, 3.7vw, 3.2rem); line-height: 1.12; letter-spacing: -.035em; }
.entry-header p { max-width: 700px; margin: 0; color: rgba(255,255,255,.75); }
.content-area { padding: 58px 0 82px; }
.content-area .entry-content { max-width: 840px; }
.entry-content > * { margin-block: 0 1.35em; }
.entry-content h2, .entry-content h3 { color: var(--gasb-navy); line-height: 1.25; }
.entry-content img { height: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.post-card { overflow: hidden; border: 1px solid var(--gasb-border); background: #fff; }
.post-card__image { display: block; height: 200px; background: #e9edf3; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__body h2 { margin: 8px 0 10px; font-size: 1.1rem; line-height: 1.35; }
.post-card__body h2 a { text-decoration: none; }
.post-meta { color: var(--gasb-muted); font-size: .78rem; }
.site-footer { color: rgba(255,255,255,.72); background: #071d45; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding: 48px 0; }
.footer-brand img { max-width: 175px; max-height: 62px; object-fit: contain; }
.footer-brand p { max-width: 320px; font-size: .88rem; }
.footer-heading { margin: 0 0 14px; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--gasb-yellow); }
.footer-bottom { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-shell { padding: 26px; background: #fff; border: 1px solid var(--gasb-border); }
.wpcf7 form p { margin: 0 0 13px; }
.wpcf7 input:not([type="submit"]), .wpcf7 select, .wpcf7 textarea { width: 100%; padding: 12px 13px; border: 1px solid #d0d5dd; border-radius: 2px; color: var(--gasb-ink); background: #fff; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid rgba(238,181,30,.35); border-color: var(--gasb-navy); }
.wpcf7 textarea { min-height: 115px; resize: vertical; }
.wpcf7 .wpcf7-not-valid-tip { color: #b42318; font-size: .84rem; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0; padding: 11px; }
.pagination .nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 7px 11px; border: 1px solid var(--gasb-border); text-decoration: none; }
.pagination .current { color: #fff; background: var(--gasb-navy); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
@media (max-width: 960px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 18px 24px; background: #fff; border-top: 1px solid var(--gasb-border); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation li { border-bottom: 1px solid var(--gasb-border); }
  .primary-navigation a { display: block; padding: 12px 4px; }
  .header-cta { display: none; }
  .hero { min-height: 490px; }
  .split { grid-template-columns: 1fr; }
  .split__media, .split__media img { min-height: 290px; }
  .card-grid, .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(var(--gasb-container), calc(100% - 32px)); }
  .section { padding: 58px 0; }
  .hero { min-height: 550px; }
  .hero-content { padding-block: 54px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(5,22,53,.91), rgba(5,22,53,.70)); }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .hero p { font-size: .98rem; }
  .card-grid, .product-grid, .norm-list, .post-grid { grid-template-columns: 1fr; }
  .product-card__image { height: 220px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .footer-bottom .container { flex-direction: column; }
  .form-shell { padding: 18px; }
}


/* Ajuste: preservar a largura e as margens do container no banner principal.
   A classe .hero-content não deve sobrescrever a largura definida por .container. */
.hero-content.container {
  width: min(var(--gasb-container), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .hero-content.container {
    width: min(var(--gasb-container), calc(100% - 32px));
  }
}
