/* CS Transitários — identidade visual */
:root {
  /* Paleta: #243d6e | #3e865d | #beaf86 */
  --brand-navy: #243d6e;
  --brand-green: #3e865d;
  --brand-gold: #beaf86;

  --font-sans: "Orbitron", "Arial Narrow", "Helvetica Neue", sans-serif;

  --background: #0b121a;
  --foreground: #eee;
  --card: #121c26;
  --card-foreground: #eee;
  --popover: #0f171f;
  --popover-foreground: #eee;
  --primary: var(--brand-navy);
  --primary-foreground: #f8f8f8;
  --secondary: var(--brand-green);
  --secondary-foreground: #f8f8f8;
  --muted: #212a33;
  --muted-foreground: #a4a4a4;
  --accent: var(--brand-gold);
  --accent-foreground: #1a1a1a;
  --destructive: #e40014;
  --destructive-foreground: #f8f8f8;
  --border: #2a3c4f;
  --input: #1a222b;
  --ring: var(--brand-green);
  --chart-1: var(--brand-navy);
  --chart-2: var(--brand-green);
  --chart-3: var(--brand-gold);
}

body {
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

/* Gradientes e efeitos com a nova paleta */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-navy) 55%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-primary {
  box-shadow: 0 0 40px rgba(36, 61, 110, 0.35);
}

.glow-secondary {
  box-shadow: 0 0 40px rgba(62, 134, 93, 0.35);
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(36, 61, 110, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 61, 110, 0.25) 1px, transparent 1px);
  background-size: 60px 60px;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-navy);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

/* Estados UI */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.is-open {
  max-height: 24rem;
  opacity: 1;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 10rem;
  z-index: 60;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  display: block;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tabs-trigger.is-active {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo */
.site-logo {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: min(52vw, 11rem);
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo {
    height: 4.5rem;
    max-width: none;
  }
}

.site-logo--footer {
  height: 3.5rem;
  max-width: 14rem;
}

@media (min-width: 768px) {
  .site-logo--footer {
    height: 4.5rem;
    max-width: 18rem;
  }
}

.site-logo--hero {
  height: 5rem;
  max-width: 20rem;
}

@media (min-width: 768px) {
  .site-logo--hero {
    height: 6.5rem;
    max-width: 24rem;
  }
}

/* Header */
#site-header nav {
  min-height: 4.5rem;
}

@media (min-width: 768px) {
  #site-header nav {
    min-height: 5.5rem;
  }
}

/* Mobile */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .hero-icons {
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-icons > div > div:first-child {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .hero-icons svg {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  .hero-cta {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero-cta a {
    width: 100%;
    font-size: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #site-header nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #mobile-menu-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .mobile-menu.is-open {
    max-height: 28rem;
  }

  .lang-dropdown__menu {
    right: 0;
    left: auto;
  }

  section[id] {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .services-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
  }

  .contact-form,
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
}

@media (max-width: 390px) {
  .site-logo {
    height: 2.75rem;
    max-width: 46vw;
  }
}

/* Formulário - estado sucesso */
.contact-success {
  display: none;
}

.contact-form-wrapper.is-submitted .contact-form-inner {
  display: none;
}

.contact-form-wrapper.is-submitted .contact-success {
  display: flex;
}

.contact-map iframe {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
