/* ===== Google Fonts ===== */
@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 (from Tailwind config) ===== */
:root {
  --primary: hsl(228, 52%, 23%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(38, 91%, 55%);
  --secondary-foreground: hsl(228, 52%, 15%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(228, 52%, 23%);
  --muted: hsl(220, 20%, 96%);
  --muted-foreground: hsl(220, 10%, 46%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(228, 52%, 23%);
  --border: hsl(220, 20%, 88%);
  --radius: 0.5rem;
  --green-500: #22c55e;
  --green-600: #16a34a;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(28, 43, 89, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header__logo img {
  height: 3.5rem;
  width: auto;
}

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

.header__nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--secondary);
}

.header__cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  transition: filter 0.2s;
}

.header__cta:hover {
  filter: brightness(1.1);
}

/* Mobile toggle */
.header__toggle {
  display: flex;
  color: var(--primary-foreground);
}

.header__toggle svg {
  width: 28px;
  height: 28px;
}

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

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

.mobile-nav__link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav__link:hover {
  color: var(--secondary);
}

.mobile-nav__cta-wrap {
  padding: 0.5rem 1.5rem 0;
}

.mobile-nav__cta {
  display: block;
  text-align: center;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  transition: filter 0.2s;
}

.mobile-nav__cta:hover {
  filter: brightness(1.1);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 89, 0.85);
}

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

.hero__content {
  max-width: 48rem;
  text-align: left;
}

.hero__badge {
  display: inline-block;
  background: rgba(240, 168, 37, 0.2);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

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

.hero__title span {
  color: var(--secondary);
}

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

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

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: calc(var(--radius) - 2px);
  transition: filter 0.2s;
}

.hero__btn-primary:hover {
  filter: brightness(1.1);
}

.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.2s, color 0.2s;
  background: transparent;
}

.hero__btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.25rem;
}

.hero__stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* ===== Diferenciais Section ===== */
.diferenciais {
  padding: 5rem 0;
  background: var(--muted);
}

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

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

.section-header h2 span {
  color: var(--secondary);
}

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

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

.diferencial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.diferencial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  border-color: rgba(240, 168, 37, 0.4);
}

.diferencial-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(28, 43, 89, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.diferencial-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: color 0.3s;
}

.diferencial-card:hover .diferencial-card__icon {
  background: rgba(240, 168, 37, 0.2);
}

.diferencial-card:hover .diferencial-card__icon svg {
  color: var(--secondary);
}

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

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

/* ===== Catalogo Section ===== */
.catalogo {
  padding: 5rem 0;
  background: var(--background);
}

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

.equip-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.equip-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(240, 168, 37, 0.4);
}

.equip-card__img-wrap {
  height: 14rem;
  overflow: hidden;
}

.equip-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.equip-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.equip-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.equip-card__body p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.equip-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  transition: filter 0.2s;
}

.equip-card__cta:hover {
  filter: brightness(1.1);
}

.equip-card__cta svg {
  width: 16px;
  height: 16px;
}

/* ===== Sobre Section ===== */
.sobre {
  padding: 5rem 0;
  background: var(--muted);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.sobre__text h2 span {
  color: var(--secondary);
}

.sobre__text p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.sobre__text p.highlight {
  color: var(--foreground);
  font-weight: 500;
}

.sobre__image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.sobre__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===== CTA Section ===== */
.cta {
  padding: 5rem 0;
  background: var(--primary);
}

.cta__inner {
  text-align: center;
}

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

.cta__inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  transition: filter 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.cta__btn:hover {
  filter: brightness(1.1);
}

.cta__btn svg {
  width: 24px;
  height: 24px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo img {
  height: 3rem;
  width: auto;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-align: center;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

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

.footer__social svg {
  width: 22px;
  height: 22px;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 4rem;
  height: 4rem;
  background: var(--green-500);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-float:hover {
  background: var(--green-600);
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ===== Responsive ===== */

/* sm: 640px */
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }

  .diferenciais__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* md: 768px */
@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .header__toggle {
    display: none;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__stat-value {
    font-size: 1.875rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .catalogo__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sobre__text h2 {
    font-size: 2.25rem;
  }

  .cta__inner h2 {
    font-size: 2.25rem;
  }

  .cta__btn {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    gap: 0.75rem;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem;
  }

  .diferenciais__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sobre__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.6s ease-out forwards;
}
