/* ============================================
   RetroMáquinas - Pure CSS
   Converted from React + Tailwind CSS
   ============================================ */

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: hsl(0, 0%, 10%);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

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

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

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

.text-primary {
  color: hsl(49, 93%, 52%);
}

.text-dark {
  color: hsl(0, 0%, 10%);
}

.text-dark-muted {
  color: rgba(26, 26, 26, 0.7);
}

.text-light {
  color: #fff;
}

.text-light-muted {
  color: rgba(255, 255, 255, 0.8);
}

.hidden {
  display: none !important;
}

/* ==================== HAZARD STRIPES ==================== */
.hazard-stripes {
  background: repeating-linear-gradient(
    -45deg,
    hsl(49, 93%, 52%),
    hsl(49, 93%, 52%) 10px,
    hsl(0, 0%, 10%) 10px,
    hsl(0, 0%, 10%) 20px
  );
}

.hazard-stripes-thin {
  background: repeating-linear-gradient(
    -45deg,
    hsl(49, 93%, 52%),
    hsl(49, 93%, 52%) 6px,
    hsl(0, 0%, 10%) 6px,
    hsl(0, 0%, 10%) 12px
  );
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: hsl(49, 93%, 52%);
  color: hsl(0, 0%, 10%);
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.btn-primary:hover {
  background-color: hsl(49, 93%, 46%);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  font-size: 1.125rem;
  padding: 1.1rem 2.5rem;
  box-shadow: 4px 4px 0px 0px hsl(0, 0%, 20%);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1.1rem 2.5rem;
}

.btn-full {
  width: 100%;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: hsla(0, 0%, 10%, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(219, 213, 204, 0.2);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

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

.navbar-links {
  display: none;
  gap: 2rem;
}

.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: hsl(49, 93%, 52%);
}

.navbar-toggle {
  display: block;
  color: #fff;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  background-color: hsl(0, 0%, 10%);
  border-top: 1px solid rgba(219, 213, 204, 0.2);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  display: block;
  max-height: 200px;
  opacity: 1;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

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

  .navbar-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(0, 0%, 10%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, hsl(49, 93%, 52%) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-stripe-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.75rem;
  z-index: 2;
}

.hero-stripe-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.75rem;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-logo-wrapper {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 1.5rem 2.5rem;
  background: radial-gradient(
    ellipse at center,
    hsla(0, 0%, 10%, 0.85) 0%,
    hsla(0, 0%, 10%, 0.4) 50%,
    transparent 70%
  );
  border-radius: 0.5rem;
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.025em;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.icon-whatsapp {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.icon-whatsapp-sm {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-logo {
    max-width: 520px;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    max-width: 600px;
  }
}

/* ==================== SERVICES ==================== */
.services {
  padding: 5rem 0;
  background-color: #fff;
}

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

.section-divider {
  display: inline-block;
  height: 0.375rem;
  width: 6rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.services-grid > .reveal {
  display: flex;
}

.service-card {
  border: 2px solid hsl(40, 10%, 85%);
  background-color: #fff;
  box-shadow: 3px 3px 0px 0px hsla(49, 93%, 52%, 0.3);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: hsl(49, 93%, 52%);
}

.service-card-image {
  height: 14rem;
  overflow: hidden;
  background-color: hsl(40, 10%, 92%);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  color: hsl(0, 0%, 10%);
  margin-bottom: 0.5rem;
}

.service-card-description {
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.625;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card-content .btn {
  margin-top: auto;
}

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

  .section-title {
    font-size: 3rem;
  }

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

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

/* ==================== ABOUT ==================== */
.about {
  padding: 5rem 0;
  background-color: hsl(0, 0%, 10%);
  color: #fff;
}

.about-inner {
  max-width: 72rem;
  margin: 0 auto;
}

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

.about-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: hsla(0, 0%, 20%, 0.5);
  border-left: 4px solid hsl(49, 93%, 52%);
  padding: 1.5rem;
}

.stat-icon {
  color: hsl(49, 93%, 52%);
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: hsl(49, 93%, 52%);
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  text-transform: uppercase;
}

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

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

/* ==================== CONTACT / FOOTER ==================== */
.contact {
  background-color: hsl(0, 0%, 10%);
  color: #fff;
}

.contact-stripe {
  height: 0.75rem;
}

.contact-body {
  padding: 4rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(219, 213, 204, 0.3);
  transition: border-color 0.2s ease;
}

.contact-card:not(.contact-card-static):hover {
  border-color: hsl(49, 93%, 52%);
}

.contact-card:not(.contact-card-static):hover .contact-card-icon {
  transform: scale(1.1);
}

.contact-card-icon {
  color: hsl(49, 93%, 52%);
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.contact-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-card-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.contact-cta {
  text-align: center;
}

.contact-footer {
  border-top: 1px solid rgba(219, 213, 204, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact-body {
    padding: 5rem 0;
  }

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

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

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background-color: #25D366;
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: scale(0);
  animation: whatsappBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
}

.whatsapp-float:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

@keyframes whatsappBounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ==================== ANIMATIONS ==================== */

/* Fade up (hero) */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

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

/* Scale in (hero title box) */
.animate-scale-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.6s ease forwards;
  animation-delay: 0.2s;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade in (hero text) */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
