/*
Theme Name: GásPoa Hello Child
Theme URI: https://gaspoa.com/
Description: Child theme da GásPoa com header global próprio.
Author: GásPoa
Template: hello-elementor
Version: 1.0.2
Text Domain: gaspoa-hello-child
*/

:root {
  --gaspoa-header-offset: 104px;
  --gaspoa-header-navy: #00112f;
  --gaspoa-header-blue: #0b63ff;
  --gaspoa-header-white: #ffffff;
  --gaspoa-header-soft: #b8c9e7;
}

html { scroll-padding-top: var(--gaspoa-header-offset); }
[id] { scroll-margin-top: var(--gaspoa-header-offset); }
body:not(.home):not(.elementor-editor-active) { padding-top: var(--gaspoa-header-offset); }
body.gaspoa-menu-open { overflow: hidden; }

/* Blocos de logo que funcionavam como header nas páginas Elementor Canvas antigas. */
body:not(.elementor-editor-active) :is(
  .elementor-element-48077bb2,
  .elementor-element-11254e1e,
  .elementor-element-2db921ba,
  .elementor-element-493e5ae0,
  .elementor-element-5d8ff328,
  .elementor-element-507194a0
) { display: none !important; }

.gaspoa-global-header {
  position: fixed;
  top: 16px;
  right: 24px;
  left: 24px;
  z-index: 9990;
  pointer-events: none;
}

.admin-bar .gaspoa-global-header { top: 48px; }

.gaspoa-global-header__bar {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 12px 10px 22px;
  align-items: center;
  gap: 22px;
  color: var(--gaspoa-header-white);
  background: rgba(0, 17, 47, .88);
  border: 1px solid rgba(90, 163, 255, .28);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 8, 28, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.gaspoa-global-header.is-scrolled .gaspoa-global-header__bar {
  background: rgba(0, 17, 47, .96);
  box-shadow: 0 18px 46px rgba(0, 8, 28, .32);
}

.gaspoa-global-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: auto;
}

.gaspoa-global-header__brand .custom-logo-link,
.gaspoa-global-header__brand-fallback {
  display: flex;
  width: 158px;
  min-height: 52px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  color: #17233d;
  background: var(--gaspoa-header-white);
  border-radius: 12px;
}

.gaspoa-global-header__brand .custom-logo {
  display: block;
  width: 134px;
  max-width: 100%;
  height: auto;
}

.gaspoa-global-header__brand-fallback {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.gaspoa-global-header__desktop-nav .menu,
.gaspoa-global-header__mobile-nav .menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.gaspoa-global-header__desktop-nav a {
  display: flex;
  min-height: 44px;
  padding: 10px 13px;
  align-items: center;
  color: var(--gaspoa-header-soft);
  border-radius: 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.gaspoa-global-header__desktop-nav a:hover,
.gaspoa-global-header__desktop-nav a:focus-visible,
.gaspoa-global-header__desktop-nav .current-menu-item > a {
  color: var(--gaspoa-header-white);
  background: rgba(255, 255, 255, .08);
}

.gaspoa-global-header a:focus-visible,
.gaspoa-global-header button:focus-visible {
  outline: 3px solid rgba(90, 163, 255, .55);
  outline-offset: 3px;
}

.gaspoa-global-header__cta {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--gaspoa-header-blue);
  background: var(--gaspoa-header-white);
  border: 1px solid var(--gaspoa-header-white);
  border-radius: 13px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.gaspoa-global-header__cta:hover {
  color: var(--gaspoa-header-white);
  background: var(--gaspoa-header-blue);
  border-color: var(--gaspoa-header-blue);
  transform: translateY(-1px);
}

.gaspoa-global-header__toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: var(--gaspoa-header-white);
  background: var(--gaspoa-header-blue);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  cursor: pointer;
}

.gaspoa-global-header__toggle-lines,
.gaspoa-global-header__toggle-lines::before,
.gaspoa-global-header__toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transition: transform .22s ease, opacity .22s ease;
}

.gaspoa-global-header__toggle-lines::before { transform: translateY(-7px); }
.gaspoa-global-header__toggle-lines::after { transform: translateY(5px); }
.gaspoa-global-header__toggle[aria-expanded="true"] .gaspoa-global-header__toggle-lines { background: transparent; }
.gaspoa-global-header__toggle[aria-expanded="true"] .gaspoa-global-header__toggle-lines::before { transform: translateY(0) rotate(45deg); }
.gaspoa-global-header__toggle[aria-expanded="true"] .gaspoa-global-header__toggle-lines::after { transform: translateY(-2px) rotate(-45deg); }

.gaspoa-global-header__mobile-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  color: var(--gaspoa-header-white);
  background: rgba(0, 17, 47, .98);
  border: 1px solid rgba(90, 163, 255, .28);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0, 8, 28, .34);
  transform: translateY(-8px);
  pointer-events: none;
  transition: visibility .22s ease, opacity .22s ease, transform .22s ease;
}

.gaspoa-global-header__mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gaspoa-global-header__mobile-nav .menu {
  display: grid;
  gap: 2px;
}

.gaspoa-global-header__mobile-nav a {
  display: flex;
  min-height: 52px;
  padding: 12px 14px;
  align-items: center;
  color: var(--gaspoa-header-white);
  border-radius: 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.gaspoa-global-header__mobile-nav a:hover,
.gaspoa-global-header__mobile-nav a:focus-visible {
  background: rgba(255, 255, 255, .08);
}

.gaspoa-global-header__mobile-cta {
  display: flex;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 14px;
  align-items: center;
  justify-content: center;
  color: var(--gaspoa-header-blue) !important;
  background: var(--gaspoa-header-white);
  border-radius: 11px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .gaspoa-global-header { top: 10px; right: 14px; left: 14px; }
  .admin-bar .gaspoa-global-header { top: 56px; }
  .gaspoa-global-header__bar { min-height: 72px; padding: 8px 9px 8px 14px; }
  .gaspoa-global-header__brand .custom-logo-link,
  .gaspoa-global-header__brand-fallback { width: 134px; min-height: 52px; padding: 7px 10px; }
  .gaspoa-global-header__brand .custom-logo { width: 114px; }
  .gaspoa-global-header__desktop-nav,
  .gaspoa-global-header__cta { display: none; }
  .gaspoa-global-header__toggle { display: flex; }
}

@media (max-width: 782px) {
  .admin-bar .gaspoa-global-header { top: 56px; }
}

@media (max-width: 430px) {
  .gaspoa-global-header { right: 10px; left: 10px; }
  .gaspoa-global-header__bar { border-radius: 15px; }
  .gaspoa-global-header__brand .custom-logo-link,
  .gaspoa-global-header__brand-fallback { width: 132px; }
}

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