/*
Theme Name: G2X Institucional
Theme URI: https://g2x.com.br/
Author: G2X
Description: Tema institucional headless-first, com front-end em JavaScript e conteúdo servido pela REST API do WordPress.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: g2x
*/

:root {
  --g2x-blue: #0759da;
  --g2x-navy: #01255d;
  --g2x-ink: #07172e;
  --g2x-muted: #5c6a7d;
  --g2x-surface: #f3f7fc;
  --g2x-line: #dce5f1;
  --g2x-white: #fff;
  --g2x-font: "Vastago Grotesk", "Guton", "Avenir Next", "Montserrat", Arial, sans-serif;
  --g2x-radius: 28px;
  --g2x-shadow: 0 24px 70px rgba(1, 37, 93, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--g2x-ink);
  background: var(--g2x-white);
  font-family: var(--g2x-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--soft { background: var(--g2x-surface); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--g2x-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 3px; background: currentColor; content: ""; }
.section-title { max-width: 780px; margin-bottom: 52px; }
.section-title h2, .about-copy h2, .cta-copy h2 {
  margin: 0 0 18px;
  color: var(--g2x-navy);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.section-title p, .about-copy > p, .cta-copy p { margin: 0; color: var(--g2x-muted); font-size: 1.08rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(1, 37, 93, .08);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 35px rgba(1, 37, 93, .1); }
.nav { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; width: 148px; height: 58px; overflow: hidden; }
.brand img { width: 150px; height: 58px; object-fit: cover; object-position: center; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--g2x-navy); font-size: .86rem; font-weight: 750; letter-spacing: .02em; }
.nav-links a:not(.button):hover { color: var(--g2x-blue); }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--g2x-blue);
  color: var(--g2x-white) !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--g2x-navy); box-shadow: 0 12px 24px rgba(7, 89, 218, .2); }
.button--ghost { border-color: rgba(255,255,255,.42); background: transparent; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--g2x-surface); color: var(--g2x-navy); }

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 90px;
  color: #fff;
  background: var(--g2x-navy);
}
.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1,37,93,.97) 0%, rgba(1,37,93,.89) 40%, rgba(1,37,93,.26) 72%, rgba(1,37,93,.12) 100%), var(--hero-image) center/cover no-repeat;
  content: "";
}
.hero::after {
  position: absolute;
  right: -120px;
  bottom: -250px;
  width: 560px;
  height: 560px;
  border: 70px solid rgba(7,89,218,.54);
  border-radius: 44% 56% 50% 50%;
  transform: rotate(25deg);
  content: "";
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 690px; }
.hero .eyebrow { color: #8ec2ff; }
.hero h1 { margin: 0 0 24px; font-size: clamp(3rem, 7vw, 6.25rem); font-weight: 800; letter-spacing: -.06em; line-height: .94; }
.hero h1 span { color: #76adff; }
.hero p { max-width: 650px; margin: 0 0 36px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  position: absolute;
  right: 0;
  bottom: -38px;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(7,89,218,.92);
  color: white;
  text-align: center;
  box-shadow: var(--g2x-shadow);
}
.hero-badge strong { display: block; font-size: 2.6rem; line-height: 1; }
.hero-badge span { display: block; max-width: 105px; margin-top: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.trust-strip { position: relative; z-index: 3; margin-top: -34px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 22px; background: white; box-shadow: var(--g2x-shadow); }
.trust-item { display: flex; align-items: center; gap: 18px; padding: 28px 32px; border-right: 1px solid var(--g2x-line); }
.trust-item:last-child { border: 0; }
.trust-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 16px; background: #e9f2ff; color: var(--g2x-blue); font-size: 1.25rem; font-weight: 900; }
.trust-item strong { display: block; color: var(--g2x-navy); line-height: 1.2; }
.trust-item span { color: var(--g2x-muted); font-size: .84rem; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 76px; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 1.14; border-radius: var(--g2x-radius); object-fit: cover; box-shadow: var(--g2x-shadow); }
.about-media::after { position: absolute; right: -18px; bottom: -18px; z-index: -1; width: 62%; height: 62%; border-radius: 26px; background: var(--g2x-blue); content: ""; }
.check-list { display: grid; gap: 15px; margin: 32px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; color: var(--g2x-navy); font-weight: 700; }
.check-list li::before { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--g2x-blue); color: white; content: "✓"; font-size: .75rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; overflow: hidden; min-height: 330px; padding: 34px; border: 1px solid var(--g2x-line); border-radius: var(--g2x-radius); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-7px); box-shadow: var(--g2x-shadow); }
.card-number { display: inline-grid; width: 52px; height: 52px; place-items: center; margin-bottom: 72px; border-radius: 16px; background: var(--g2x-surface); color: var(--g2x-blue); font-weight: 900; }
.card h3 { margin: 0 0 12px; color: var(--g2x-navy); font-size: 1.45rem; line-height: 1.15; }
.card p { margin: 0; color: var(--g2x-muted); font-size: .95rem; }
.card::after { position: absolute; right: -55px; top: -55px; width: 150px; height: 150px; border: 28px solid rgba(7,89,218,.08); border-radius: 50%; content: ""; }

.applications { overflow: hidden; color: white; background: var(--g2x-navy); }
.applications-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.applications .eyebrow, .applications h2 { color: white; }
.applications .about-copy > p { color: rgba(255,255,255,.72); }
.applications-media { position: relative; padding: 36px; border-radius: var(--g2x-radius); background: white; }
.applications-media img { width: 100%; min-height: 350px; object-fit: cover; object-position: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.stat { padding: 20px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.06); }
.stat strong { display: block; font-size: 1.8rem; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { overflow: hidden; border: 1px solid var(--g2x-line); border-radius: 24px; background: white; }
.post-card-image { height: 210px; background: linear-gradient(135deg, var(--g2x-blue), var(--g2x-navy)); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 26px; }
.post-card time { color: var(--g2x-blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 11px 0 12px; color: var(--g2x-navy); font-size: 1.3rem; line-height: 1.25; }
.post-card p { margin: 0; color: var(--g2x-muted); font-size: .9rem; }

.contact { padding-bottom: 0; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 32px; background: var(--g2x-blue); color: white; box-shadow: var(--g2x-shadow); }
.cta-copy { padding: 64px; }
.cta-copy .eyebrow, .cta-copy h2 { color: white; }
.cta-copy p { color: rgba(255,255,255,.72); }
.contact-details { display: grid; gap: 16px; margin-top: 32px; }
.contact-details a, .contact-details span { font-weight: 700; }
.contact-form { display: grid; gap: 14px; padding: 52px; background: var(--g2x-navy); }
.contact-form label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; outline: 0; background: rgba(255,255,255,.08); color: white; padding: 15px 17px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #76adff; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .button { justify-self: start; background: white; color: var(--g2x-navy) !important; cursor: pointer; }
.form-note { min-height: 24px; margin: 0; color: #b9d5ff; font-size: .85rem; }

.site-footer { margin-top: 110px; padding: 54px 0 30px; background: #001a40; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-brand { width: 160px; padding: 10px 14px; border-radius: 12px; background: white; }
.footer-grid p { max-width: 390px; color: rgba(255,255,255,.58); font-size: .88rem; }
.footer-grid h4 { margin: 0 0 15px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; color: rgba(255,255,255,.7); font-size: .9rem; }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .78rem; }
.loading { min-height: 100vh; background: var(--g2x-navy); }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 86px 0 auto; display: none; padding: 30px 24px; flex-direction: column; align-items: stretch; background: white; box-shadow: var(--g2x-shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-badge { display: none; }
  .about-grid, .applications-grid, .contact-panel { grid-template-columns: 1fr; }
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .applications-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .hero { min-height: 700px; padding-top: 140px; }
  .hero::before { background: linear-gradient(rgba(1,37,93,.88), rgba(1,37,93,.94)), var(--hero-image) 63% center/cover no-repeat; }
  .trust-grid, .cards, .posts, .stats { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--g2x-line); }
  .about-grid { gap: 50px; }
  .contact-panel { border-radius: 22px; }
  .cta-copy, .contact-form { padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
