/* CSS Variables */
:root {
  --background: 210 20% 98%;
  --foreground: 220 30% 15%;

  --card: 0 0% 100%;
  --card-foreground: 220 30% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 30% 15%;

  /* TITAN Red - bold industrial red */
  --primary: 0 75% 45%;
  --primary-foreground: 0 0% 100%;

  /* FUCHS Blue - professional deep blue */
  --secondary: 220 70% 35%;
  --secondary-foreground: 0 0% 100%;

  --muted: 210 20% 96%;
  --muted-foreground: 220 15% 45%;

  --accent: 220 70% 45%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 220 20% 88%;
  --input: 220 20% 88%;
  --ring: 220 70% 35%;

  --radius: 0.5rem;

  /* Custom brand colors */
  --titan-red: 0 75% 45%;
  --titan-red-dark: 0 80% 35%;
  --fuchs-blue: 220 70% 35%;
  --fuchs-blue-light: 220 65% 50%;
  --fuchs-blue-dark: 220 75% 25%;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(220 70% 35%) 0%, hsl(220 75% 25%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(0 75% 45%) 0%, hsl(0 80% 35%) 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* Header */
.header {
  background-color: hsl(var(--card));
  padding: 1rem 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-content {
    gap: 2rem;
  }
}

.header-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header-logo-titan {
    height: 3.5rem;
  }
  .header-logo-fuchs {
    height: 4rem;
  }
}

.header-divider {
  width: 1px;
  height: 2rem;
  background-color: hsl(var(--border));
}

@media (min-width: 768px) {
  .header-divider {
    height: 3rem;
  }
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 0;
  }
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333333%;
  height: 100%;
  background: linear-gradient(to left, hsla(var(--primary), 0.2), transparent);
}

.hero-container {
  padding: 2rem 1rem 4rem;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-container {
    padding: 5rem 0;
  }
}

.hero-text {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-text {
    margin-bottom: 3rem;
  }
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title-line {
  display: block;
  margin-top: 0.25rem;
}

.hero-break {
  display: none;
}

@media (min-width: 640px) {
  .hero-break {
    display: block;
  }
}

.hero-subtitle {
  color: white;
  font-size: 1rem;
  max-width: 42rem;
  margin: 1rem auto 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-image-container {
    margin-bottom: 3.5rem;
  }
}

.hero-image {
  width: 100%;
  max-width: 56rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.25));
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
}

@media (min-width: 768px) {
  .hero-wave {
    height: 6rem;
  }
}

.hero-wave-svg {
  width: 100%;
  height: 100%;
}

/* Contact Buttons */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
}

@media (min-width: 640px) {
  .contact-btn {
    width: auto;
  }
}

.contact-btn:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.contact-btn-email {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.contact-btn-email:hover {
  opacity: 0.9;
}

.contact-btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.contact-btn-whatsapp:hover {
  background-color: #1fb855;
}

.contact-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Products Section */
.products-section {
  padding: 3rem 0;
  background-color: hsl(var(--background));
}

@media (min-width: 768px) {
  .products-section {
    padding: 5rem 0;
  }
}

.products-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.products-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .products-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .products-title {
    font-size: 2.25rem;
  }
}

.products-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: hsl(var(--primary));
  margin: 0 auto;
  border-radius: 9999px;
}

.products-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--secondary-foreground));
}

.product-name {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Contact CTA Section */
.contact-cta-section {
  padding: 3rem 0;
  background-color: hsl(var(--secondary));
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-cta-section {
    padding: 4rem 0;
  }
}

.cta-decor {
  position: absolute;
  border-radius: 9999px;
  background-color: hsla(var(--primary), 0.1);
  pointer-events: none;
}

.cta-decor-1 {
  top: 0;
  left: 0;
  width: 8rem;
  height: 8rem;
  transform: translate(-50%, -50%);
}

.cta-decor-2 {
  bottom: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  transform: translate(25%, 25%);
}

.cta-container {
  position: relative;
  z-index: 10;
}

.cta-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.875rem;
  }
}

.cta-subtitle {
  color: white;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background-color: hsl(220 75% 25%);
  color: hsl(var(--card));
  position: relative;
  overflow: hidden;
}

.footer-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-accent::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8rem;
  height: 100%;
  background: linear-gradient(to top left, hsl(var(--primary)), hsl(var(--primary)) 50%, transparent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
  .footer-accent::before {
    width: 12rem;
  }
}

.footer-container {
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .footer-container {
    padding: 3.5rem 0;
  }
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-logos {
    gap: 1.5rem;
  }
}

.footer-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .footer-logo-titan {
    height: 2.5rem;
  }
  .footer-logo-fuchs {
    height: 3rem;
  }
}

.footer-divider {
  width: 1px;
  height: 2rem;
  background-color: hsla(var(--card), 0.3);
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.footer-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: hsla(var(--card), 0.1);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
}

.footer-contact-info {
  flex: 1;
}

.footer-contact-label {
  color: hsla(var(--card), 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-contact-link {
  color: hsl(var(--card));
  font-weight: 600;
  display: block;
  word-break: break-all;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: hsl(var(--primary));
}

.footer-contact-info .footer-contact-label + .footer-contact-link {
  margin-bottom: 0.5rem;
}

.footer-copyright {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(var(--card), 0.2);
}

.footer-copyright p {
  color: hsla(var(--card), 0.6);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-fade-in-delay-0 {
  animation: fade-in 0.6s ease-out 0s forwards;
  opacity: 0;
}

.animate-fade-in-delay-1 {
  animation: fade-in 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fade-in 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fade-in 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-4 {
  animation: fade-in 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.animate-fade-in-delay-5 {
  animation: fade-in 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

.animate-fade-in-delay-6 {
  animation: fade-in 0.6s ease-out 0.6s forwards;
  opacity: 0;
}

.animate-fade-in-delay-7 {
  animation: fade-in 0.6s ease-out 0.7s forwards;
  opacity: 0;
}

.animate-fade-in-delay-8 {
  animation: fade-in 0.6s ease-out 0.8s forwards;
  opacity: 0;
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
