@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ───── CSS Variables (Design Tokens) ───── */
:root {
  --background: hsl(0, 0%, 99%);
  --foreground: hsl(220, 30%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 30%, 15%);
  --primary: hsl(220, 97%, 21%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(43, 84%, 50%);
  --secondary-foreground: hsl(220, 97%, 12%);
  --muted: hsl(220, 20%, 96%);
  --muted-foreground: hsl(220, 10%, 45%);
  --border: hsl(220, 15%, 90%);
  --radius: 0.5rem;
  --whatsapp: hsl(142, 70%, 45%);
  --whatsapp-hover: hsl(142, 70%, 40%);
}

/* ───── Reset & Base ───── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.min-h-screen {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* ───── Utility ───── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }
}

.text-secondary {
  color: var(--secondary);
}

.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;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-full {
  white-space: normal;
  text-align: center;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background-color: hsl(43, 84%, 45%);
}

.btn-secondary-lg {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-secondary-lg:hover {
  background-color: hsl(43, 84%, 45%);
}

.btn-outline-lg {
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-outline-lg:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.btn-full {
  width: 100%;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ───── SVG Icons ───── */
.icon {
  display: inline-block;
  flex-shrink: 0;
}

.icon svg {
  display: block;
}

/* ───── Top Bar ───── */
.topbar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  display: none;
}

@media (min-width: 768px) {
  .topbar {
    display: block;
  }
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-left a, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.topbar-left a:hover {
  color: var(--secondary);
}

.topbar-right {
  color: rgba(255, 255, 255, 0.8);
}

/* ───── Header ───── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header .container {
    height: 5rem;
  }
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo img {
    height: 3.5rem;
  }
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a:not(.btn) {
  color: rgba(26, 26, 32, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-desktop a:not(.btn):hover {
  color: var(--primary);
}

/* Mobile toggle */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding-bottom: 1rem;
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a:not(.btn) {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(26, 26, 32, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-mobile a:not(.btn):hover {
  color: var(--primary);
}

.nav-mobile .mobile-cta {
  padding: 0.5rem 1.5rem;
}

/* ───── Hero ───── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary) url('assets/hero-bg.jpg') center/cover no-repeat;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero { padding: 8rem 0; }
}

@media (min-width: 1024px) {
  .hero { padding: 10rem 0; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.7;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 48rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-tag img {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-tag span {
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-foreground);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; line-height: 1.5; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero p { font-size: 1.25rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Decorative polygons */
.hero .polygon-deco {
  z-index: 2;
}

.polygon-deco {
  position: absolute;
  pointer-events: none;
}

@media (max-width: 640px) {
  .polygon-deco {
    transform: scale(0.5) !important;
  }
}

/* ───── Equipamentos ───── */
.equipamentos {
  padding: 5rem 0;
  background-color: var(--muted);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .equipamentos { padding: 7rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 { font-size: 2.25rem; }
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

/* Tabs */
.tabs-list {
  display: flex;
  gap: 0.25rem;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.tabs-list::-webkit-scrollbar {
  display: none;
}

.tab-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  background: transparent;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.tab-trigger:hover {
  background-color: rgba(1, 33, 105, 0.05);
}

.tab-trigger.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.tab-trigger .tab-label {
  display: inline;
  white-space: nowrap;
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.equip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .equip-grid { grid-template-columns: repeat(4, 1fr); }
}

.equip-card {
  position: relative;
  overflow: hidden;
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s;
}

.equip-card-deco {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 1;
  pointer-events: none;
}

.equip-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.equip-card .equip-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.equip-card .equip-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equip-card:hover .equip-img img {
  transform: scale(1.05);
}

.equip-card .icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(1, 33, 105, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.equip-card .icon-circle svg {
  color: var(--primary);
}

.equip-card h4 {
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.equip-card .btn {
  margin-top: auto;
}

/* ───── Sobre ───── */
.sobre {
  padding: 3rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sobre { padding: 7rem 0; }
}

.sobre-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .sobre-grid { gap: 3rem; }
}

@media (min-width: 1024px) {
  .sobre-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.sobre h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .sobre h2 { font-size: 2.25rem; }
}

.sobre-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.sobre-setores {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .sobre-setores { margin-top: 2.5rem; }
}

.sobre-setores h3 {
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.setores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 400px) {
  .setores-grid {
    grid-template-columns: 1fr;
  }
}

.setor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--muted);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.setor-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.setor-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Valores box */
.valores-box {
  background-color: var(--primary);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 400px) {
  .valores-box { padding: 1.25rem; }
}

@media (min-width: 768px) {
  .valores-box { padding: 2.5rem; }
}

.valores-box h3 {
  font-weight: 700;
  color: var(--primary-foreground);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  flex: 1;
}

@media (min-width: 768px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.valor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1.25rem 1rem;
}

.valor-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.valor-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.valor-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.valor-item p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.valores-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.valores-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ───── Diferenciais ───── */
.diferenciais {
  padding: 5rem 0;
  background-color: var(--muted);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .diferenciais { padding: 7rem 0; }
}

.diferenciais .section-header {
  margin-bottom: 3.5rem;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .diferenciais-grid { grid-template-columns: repeat(5, 1fr); }
}

.dif-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.dif-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dif-card .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  background-color: rgba(1, 33, 105, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dif-card .icon-box svg {
  color: var(--primary);
}

.dif-card h3 {
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.dif-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ───── Contato ───── */
.contato {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contato { padding: 7rem 0; }
}

.contato .container {
  position: relative;
  z-index: 10;
}

.contato-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contato-grid { grid-template-columns: 1fr 1fr; }
}

.contato-info {
  background-color: var(--primary);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .contato-info { padding: 2.5rem; }
}

.contato-info h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contato-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contato-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contato-info-item .icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato-info-item .icon-box svg {
  color: var(--secondary);
}

.contato-info-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-line;
  line-height: 1.6;
}

.contato-whatsapp-btn {
  margin-top: 1.5rem;
}

.contato-map {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 350px;
}

.contato-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* ───── Footer ───── */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-main {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-main { padding: 4rem 0; }
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand img {
  height: 2.5rem;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 20rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.footer-social a:hover {
  background-color: rgba(230, 168, 23, 0.2);
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links nav a:hover {
  color: var(--secondary);
}

.footer-contact h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item.align-top {
  align-items: flex-start;
}

.footer-contact-item svg {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ───── WhatsApp Button ───── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

.whatsapp-float svg {
  color: white;
}

/* ───── Scroll Animations ───── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.animate-from-right {
  transform: translateX(30px);
}

@media (max-width: 640px) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children animation */
.stagger-children .animate-on-scroll {
  transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

/* Hero entrance animation */
.hero-animate {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 0.7s ease-out forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Equipment cards animation */
.equip-card-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.equip-card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
