/*
Theme Name: GASB Premium
Theme URI: https://gasb.com.br/
Author: OpenAI
Description: Tema WordPress institucional para a GASB, com direção visual premium industrial e foco em 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: #08265f;
  --gasb-navy-deep: #061d4b;
  --gasb-blue: #263f91;
  --gasb-yellow: #ffbf24;
  --gasb-yellow-dark: #e9a900;
  --gasb-ink: #15213a;
  --gasb-muted: #647087;
  --gasb-light: #f4f6fa;
  --gasb-white: #fff;
  --gasb-border: #e1e6ef;
  --gasb-radius: 4px;
  --gasb-container: 1180px;
  --gasb-shadow: 0 16px 42px rgba(8, 38, 95, .10);
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gasb-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gasb-blue); }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--gasb-container), calc(100% - 40px)); 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 rgba(8,38,95,.08); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; min-width: 150px; }
.custom-logo { display: block; max-height: 58px; width: auto; }
.site-title { color: var(--gasb-navy); font-size: 1.5rem; 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: 28px; }
.primary-navigation a { color: var(--gasb-navy-deep); font-size: .78rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: #b98200; }
.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: 3px; font-weight: 700; }
.button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 21px; border: 0; border-radius: 3px; background: var(--gasb-yellow);
  color: var(--gasb-navy-deep); font-size: .83rem; font-weight: 800; letter-spacing: .025em;
  text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { color: var(--gasb-navy-deep); background: #ffd15d; transform: translateY(-1px); }
.button--outline { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.6); }
.button--outline:hover { color: var(--gasb-navy); background: #fff; }
.hero { position: relative; overflow: hidden; background: var(--gasb-navy-deep); color: #fff; min-height: 560px; 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(4,20,54,.94) 0%, rgba(4,20,54,.78) 43%, rgba(4,20,54,.18) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; padding-block: 80px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gasb-yellow); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 20px 0; color: #fff; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -.045em; }
.hero p { max-width: 590px; margin: 0 0 30px; color: rgba(255,255,255,.84); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.section { padding: 88px 0; }
.section--soft { background: var(--gasb-light); }
.section--navy { color: #fff; background: linear-gradient(135deg, var(--gasb-navy), var(--gasb-navy-deep)); }
.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading .eyebrow { color: #b98200; }
.section--navy .section-heading .eyebrow { color: var(--gasb-yellow); }
.section-heading h2 { margin: 12px 0 14px; color: var(--gasb-navy); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.035em; }
.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,.76); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px, 6vw, 80px); }
.split__media { position: relative; min-height: 360px; background: #dfe5ef; overflow: hidden; }
.split__media img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.split__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 8px; background: var(--gasb-yellow); }
.split__content h2 { margin: 12px 0 18px; color: var(--gasb-navy); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.035em; }
.split__content p { color: var(--gasb-muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--gasb-navy); font-size: .82rem; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.text-link::after { content: "→"; color: #b98200; font-size: 1.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { padding: 30px; border: 1px solid var(--gasb-border); background: #fff; box-shadow: 0 5px 22px rgba(8,38,95,.035); }
.feature-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border: 1px solid rgba(8,38,95,.2); color: var(--gasb-navy); font-size: 1.25rem; font-weight: 900; }
.feature-card h3 { margin: 0 0 12px; color: var(--gasb-navy); font-size: 1.18rem; line-height: 1.3; }
.feature-card p { margin: 0; color: var(--gasb-muted); font-size: .94rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--gasb-border); box-shadow: var(--gasb-shadow); }
.product-card__image { height: 260px; background: #dfe5ef; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { flex: 1; padding: 28px; border-top: 4px solid var(--gasb-yellow); }
.product-card h3 { margin: 0 0 12px; color: var(--gasb-navy); font-size: 1.25rem; line-height: 1.3; }
.product-card p { color: var(--gasb-muted); font-size: .94rem; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px; }
.logo-strip img { max-width: 150px; max-height: 65px; object-fit: contain; filter: grayscale(100%); opacity: .78; }
.norm-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.norm-card { padding: 28px 24px; border-top: 3px solid var(--gasb-yellow); background: #fff; }
.norm-card strong { display: block; margin-bottom: 8px; color: var(--gasb-navy); font-size: 1.5rem; }
.norm-card p { margin: 0; color: var(--gasb-muted); font-size: .92rem; }
.cta-band { padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: var(--gasb-navy); }
.cta-band h2 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }
.entry-header { padding: 70px 0 55px; color: #fff; background: var(--gasb-navy); }
.entry-header h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; }
.entry-header p { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); }
.content-area { padding: 65px 0 90px; }
.content-area .entry-content { max-width: 850px; }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content h2, .entry-content h3 { color: var(--gasb-navy); line-height: 1.2; }
.entry-content img { height: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--gasb-border); background: #fff; }
.post-card__image { height: 210px; background: #e5eaf2; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__body h2 { margin: 8px 0 12px; font-size: 1.2rem; line-height: 1.3; }
.post-card__body h2 a { text-decoration: none; }
.post-meta { color: var(--gasb-muted); font-size: .8rem; }
.site-footer { color: rgba(255,255,255,.75); background: #051a43; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding: 58px 0; }
.footer-brand img { max-width: 190px; max-height: 70px; object-fit: contain; }
.footer-brand p { max-width: 330px; font-size: .9rem; }
.footer-heading { margin: 0 0 16px; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--gasb-yellow); }
.footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-shell { padding: 30px; background: #fff; border: 1px solid var(--gasb-border); box-shadow: var(--gasb-shadow); }
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 input:not([type="submit"]), .wpcf7 select, .wpcf7 textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd3e0; border-radius: 2px; color: var(--gasb-ink); background: #fff; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid rgba(255,191,36,.45); border-color: var(--gasb-navy); }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 .wpcf7-not-valid-tip { color: #b42318; font-size: .85rem; }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 12px; border-radius: 2px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 12px; 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: 74px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px; background: #fff; border-top: 1px solid var(--gasb-border); box-shadow: var(--gasb-shadow); }
  .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: 13px 4px; }
  .header-cta { display: none; }
  .hero { min-height: 500px; }
  .split { grid-template-columns: 1fr; }
  .split__media, .split__media img { min-height: 300px; }
  .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% - 30px)); }
  .section { padding: 60px 0; }
  .hero { min-height: 570px; }
  .hero-content { padding-block: 60px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(4,20,54,.92), rgba(4,20,54,.68)); }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .hero p { font-size: 1rem; }
  .card-grid, .product-grid, .norm-list, .post-grid { grid-template-columns: 1fr; }
  .product-card__image { height: 230px; }
  .cta-band { padding: 28px; align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 42px 0; }
  .footer-bottom .container { flex-direction: column; }
  .form-shell { padding: 20px; }
}
