/* ================================================
   GRUPO GESPLAM — DESIGN SYSTEM GLOBAL
   Fonte: DM Sans | Paleta: Azul Institucional
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── Variáveis ── */
:root {
  --blue:        #1A3C8F;
  --blue-dark:   #0F2460;
  --blue-mid:    #1E4DB7;
  --blue-light:  #EBF0FA;
  --blue-accent: #2563EB;
  --white:       #FFFFFF;
  --gray-bg:     #F5F7FC;
  --gray-light:  #E8ECF4;
  --gray-mid:    #9CA3AF;
  --graphite:    #1F2937;
  --graphite-2:  #374151;
  --text-body:   #4B5563;
  --border:      #DDE3F0;

  --font: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(26,60,143,0.08);
  --shadow-md: 0 6px 24px rgba(26,60,143,0.12);
  --shadow-lg: 0 12px 48px rgba(26,60,143,0.16);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --container: 1200px;
  --section-py: 100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--graphite); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.25; color: var(--graphite); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1.0625rem; color: var(--text-body); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.0625rem; color: var(--text-body); max-width: 600px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,60,143,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,60,143,0.35);
}
.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ── Placeholder de imagem ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue-mid);
  border: 2px dashed var(--blue);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  padding: 24px;
}
.img-placeholder svg { width: 48px; height: 48px; opacity: 0.45; }
.img-placeholder span { opacity: 0.65; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,60,143,0.1);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header-logo img { height: 44px; width: auto; transition: filter var(--transition); }
.site-header:not(.scrolled) .header-logo img { filter: brightness(0) invert(1); }
.header-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--graphite);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.site-header:not(.scrolled) .nav-menu a { color: var(--white); }
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.site-header:not(.scrolled) .nav-menu a::after { background: rgba(255,255,255,0.8); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a:hover { color: var(--blue); }
.site-header:not(.scrolled) .nav-menu a:hover { color: rgba(255,255,255,0.85); }
.nav-menu a.active { color: var(--blue); font-weight: 600; }
.site-header:not(.scrolled) .nav-menu a.active { color: var(--white); }

.header-cta { margin-left: 16px; }
.site-header:not(.scrolled) .header-cta .btn-primary {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  box-shadow: none;
}
.site-header:not(.scrolled) .header-cta .btn-primary:hover {
  background: var(--white);
  color: var(--blue);
}

/* Hambúrguer */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--graphite); border-radius: 2px; transition: var(--transition); }
.site-header:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--graphite);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn { margin-top: 24px; width: fit-content; border-bottom: none; }
.mobile-menu a.btn-primary { color: var(--white); padding: 14px 28px; }
.mobile-menu a.btn-primary:hover { color: var(--white); opacity: 0.9; }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--graphite);
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9375rem; margin-top: 20px; opacity: 0.75; line-height: 1.7; color: rgba(255,255,255,0.75); }
.footer-logo img { height: 40px; }
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9375rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9375rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.5); }
.footer-contact-item span { font-size: 0.9375rem; color: rgba(255,255,255,0.7); }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-socials a:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.4); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.875rem; opacity: 0.7; color: var(--white); margin: 0; }
.developer-link {
  background: var(--white);
  color: var(--blue) !important;
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 700;
  margin-left: 6px;
  transition: var(--transition);
  display: inline-block;
  opacity: 1 !important;
}
.developer-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: var(--blue-light);
}

/* ── INNER PAGE BANNER ── */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  font-family: var(--font);
  line-height: 1;
}
.page-banner .eyebrow { color: rgba(255,255,255,0.65); }
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.breadcrumb a, .breadcrumb span { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── UTILITÁRIOS ── */
.text-blue { color: var(--blue); }
.text-white { color: var(--white); }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-bg); }
.bg-blue { background: var(--blue); }
.bg-blue-dark { background: var(--blue-dark); }
.bg-blue-light { background: var(--blue-light); }
.divider { width: 56px; height: 4px; background: var(--blue); border-radius: 2px; margin: 16px 0 28px; }
.divider.centered { margin: 16px auto 28px; }

/* ── Responsividade Global ── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }
  .nav-menu, .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-banner { padding: 130px 0 60px; }
}
