/* Firmamento — Components (Spec-aligned header/footer/buttons/cards/menu) */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 16px 40px rgba(3, 19, 53, .22);
}

.btn--primary:hover {
  background: var(--c-navy-light);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy) !important;
  border-color: rgba(3, 19, 53, .20);
  box-shadow: 0 16px 40px rgba(240, 203, 122, .22);
}

.btn--gold:hover {
  background: var(--c-gold-bright);
}

.btn--link {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  min-height: 44px;
  color: var(--c-blue-professional);
  background: transparent;
}

.btn--link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section--dark .btn--link {
  color: var(--c-azure-bright);
}

/* ===== Kicker ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(3, 19, 53, .70);
  margin: 0 0 var(--s-md);
}

.section--dark .kicker {
  color: rgba(232, 235, 239, .75);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

/* ===== Cards ===== */
.card {
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-18);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform var(--speed-2) var(--ease),
    border-color var(--speed-2) var(--ease),
    box-shadow var(--speed-2) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 127, 255, .40);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .14);
}

.card--dark {
  background: var(--bg-dark-elev);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-dark);
  color: var(--text-dark);
}

.card--dark:hover {
  border-color: rgba(95, 127, 255, .40);
}

.card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.2px;
  color: inherit;
}

.card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(74, 74, 74, .92);
}

.card--dark .card__text {
  color: rgba(232, 235, 239, .86);
}

.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Header (Spec) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform var(--speed-3) var(--ease),
    height var(--speed-3) var(--ease),
    background var(--speed-3) var(--ease),
    border-color var(--speed-3) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-compact {
  height: var(--header-h-compact);
}

body[data-header-theme="light"] .site-header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--c-navy);
}

body[data-header-theme="dark"] .site-header {
  background: rgba(3, 19, 53, .76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  color: var(--c-white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.brand__logo img {
  width: 180px;
  /* Spec */
  height: auto;
  transition: width var(--speed-3) var(--ease);
}

.site-header.is-compact .brand__logo img {
  width: 160px;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  /* Spec */
}

.nav a {
  font-size: 16px;
  /* Spec */
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
  padding: 10px 0;
  position: relative;
  color: inherit;
  opacity: .92;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: -8px;
  /* Spec */
  background: var(--c-azure-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed-2) var(--ease);
}

.nav a:hover {
  color: var(--c-azure-bright);
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.is-active {
  opacity: 1;
}

.nav a.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  border-radius: 999px;
  border: 1px solid rgba(3, 19, 53, .18);
  background: rgba(255, 255, 255, .70);
  padding: 6px;
  min-height: 44px;
  display: flex;
  gap: 6px;
  cursor: pointer;
}

body[data-header-theme="dark"] .lang-toggle {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(3, 19, 53, .35);
}

.lang-toggle__pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: var(--fw-medium);
  opacity: .70;
}

.lang-toggle__pill.is-on {
  opacity: 1;
  background: rgba(95, 127, 255, .18);
  border: 1px solid rgba(95, 127, 255, .40);
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: var(--r-14);
  border: 1px solid currentColor;
  background: transparent;
  opacity: .92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

/* ===== Mobile menu (Spec: full-screen overlay + slide from right) ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .50);
  /* Spec */
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  transform: translateX(102%);
  transition: transform 300ms var(--ease);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-header-theme="dark"] .mobile-menu__panel {
  background: var(--c-navy);
  color: var(--c-white);
  border-left: 1px solid var(--line-dark);
}

body[data-header-theme="light"] .mobile-menu__panel {
  background: var(--c-white);
  color: var(--c-navy);
  border-left: 1px solid var(--line);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid;
}

body[data-header-theme="dark"] .mobile-menu__top {
  border-bottom-color: var(--line-dark);
}

body[data-header-theme="light"] .mobile-menu__top {
  border-bottom-color: var(--line);
}

.mobile-menu__brand img {
  width: 180px;
  height: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-14);
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.mobile-menu__nav {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.mobile-menu__link {
  min-height: 48px;
  /* Spec: 48px height */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Spec: centered stack */
  text-align: center;
  border-radius: var(--r-14);
  border: 1px solid;
  padding: 12px 14px;
  font-size: 20px;
  /* Spec */
  letter-spacing: .2px;
}

body[data-header-theme="dark"] .mobile-menu__link {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
}

body[data-header-theme="light"] .mobile-menu__link {
  border-color: rgba(3, 19, 53, .16);
  background: rgba(3, 19, 53, .03);
}

.mobile-menu__link:hover {
  border-color: rgba(95, 127, 255, .40);
}

.mobile-menu__sub {
  display: grid;
  gap: 10px;
  padding: 0 0 8px;
}

.mobile-menu__sublink {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--r-14);
  border: 1px solid;
  padding: 12px 14px;
  font-size: 18px;
  /* Spec */
  opacity: .92;
}

body[data-header-theme="dark"] .mobile-menu__sublink {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
}

body[data-header-theme="light"] .mobile-menu__sublink {
  border-color: rgba(3, 19, 53, .14);
  background: rgba(3, 19, 53, .02);
}

.mobile-menu__meta {
  border-top: 1px solid;
  padding-top: 14px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

body[data-header-theme="dark"] .mobile-menu__meta {
  border-top-color: var(--line-dark);
  color: rgba(232, 235, 239, .90);
}

body[data-header-theme="light"] .mobile-menu__meta {
  border-top-color: var(--line);
  color: rgba(74, 74, 74, .95);
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.meta-k {
  opacity: .72;
}

.meta-v {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-menu__badges {
  display: grid;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 13px;
  letter-spacing: .04em;
}

body[data-header-theme="dark"] .badge {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: rgba(232, 235, 239, .92);
}

body[data-header-theme="light"] .badge {
  border-color: rgba(3, 19, 53, .14);
  background: rgba(3, 19, 53, .03);
  color: rgba(3, 19, 53, .86);
}

.mobile-menu__cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid;
}

body[data-header-theme="dark"] .mobile-menu__cta {
  border-top-color: var(--line-dark);
}

body[data-header-theme="light"] .mobile-menu__cta {
  border-top-color: var(--line);
}

/* ===== Footer (Spec: always dark) ===== */
.site-footer {
  background: var(--c-navy);
  color: var(--c-white);
}

.footer__top {
  padding: var(--s-3xl) 0;
}

.footer__grid {
  display: grid;
  gap: var(--s-2xl);
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
  }
}

.footer__logo {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.footer__h {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-white);
}

.footer__p {
  margin: 0 0 12px;
  color: var(--c-gray-100);
  font-size: 14px;
  line-height: 1.65;
}

.footer__legaltext {
  display: grid;
  gap: 8px;
  font-size: 12px;
  /* Spec tiny text */
  color: var(--c-gray-100);
  line-height: 1.55;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer__links {
  display: grid;
  gap: 12px;
}

.footer__links a {
  color: var(--c-gray-100);
  padding: 6px 0;
  transition: color var(--speed-2) var(--ease), transform var(--speed-2) var(--ease);
}

.footer__links a:hover {
  color: var(--c-azure);
  transform: translateX(4px);
}

.footer__sublinks {
  display: grid;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer__contact a {
  color: var(--c-gray-100);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact a:hover {
  color: var(--c-azure);
}

.newsletter {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-18);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.newsletter__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 220px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--c-white);
}

.newsletter input::placeholder {
  color: rgba(232, 235, 239, .70);
}

.newsletter__note {
  font-size: 12px;
  color: rgba(232, 235, 239, .78);
  margin: 0;
}

.newsletter__note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--c-azure);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 18px 0;
}

.footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: 12px;
  color: rgba(232, 235, 239, .80);
}

.footer__legal a:hover {
  color: var(--c-azure);
  text-decoration: underline;
}

.footer__copy {
  font-size: 12px;
  color: rgba(232, 235, 239, .80);
}

/* Mobile footer stacking (Spec) */
@media (max-width: 767px) {
  .footer__grid {
    gap: var(--s-2xl);
  }

  .footer__badges {
    flex-direction: row;
  }
}