/* FluxCar Design System - Vanilla CSS */

/* CSS Variables (Design System) */
:root {
  /* Base Colors */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 10%);

  /* FluxCar Brand Colors */
  --flux-black: hsl(0, 0%, 10%);
  --flux-green: hsl(123, 43%, 31%);
  --flux-green-claro: #9dce4a;
  --flux-gray-dark: hsl(0, 0%, 29%);
  --flux-gray-light: hsl(0, 0%, 88%);
  --flux-white: hsl(0, 0%, 100%);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(0, 0%, 10%), hsl(0, 0%, 29%));
  --gradient-accent: linear-gradient(
    135deg,
    hsl(123, 43%, 31%),
    hsl(123, 43%, 25%)
  );

  /* Shadows */
  --shadow-elegant: 0 10px 30px -10px hsla(0, 0%, 10%, 0.2);
  --shadow-green: 0 4px 20px -5px hsla(123, 43%, 31%, 0.3);

  /* Additional Design Tokens */
  --flux-green-light: hsla(123, 43%, 31%, 0.1);
  --flux-green-glow: hsla(123, 43%, 31%, 0.2);
  --service-card: hsla(255, 255%, 255%, 0.1);
  --service-bg: hsla(0, 0%, 88%, 0.5);
  --card-border: hsla(255, 255%, 255%, 0.2);
  --hero-overlay: linear-gradient(
    to right,
    hsla(0, 0%, 10%, 0.9),
    hsla(0, 0%, 10%, 0.7)
  );
  --background-blur: hsla(0, 0%, 100%, 0.95);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.header-logo img {
  /* width: 50%; */
  height: 3.5rem;
}

.footer-logo img {
  /* width: 50%; */
  height: 3.5rem;
}

.header-menu {
  width: 100%;
}

.font-roboto {
  font-family: "Roboto", sans-serif;
}

.font-montserrat {
  font-family: "Montserrat", sans-serif;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.overflow-hidden {
  overflow: hidden;
}

/* Display & Flexbox */
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.grid {
  display: grid;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}

/* Grid */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-16 {
  margin-bottom: 4rem;
}

/* Heights & Widths */
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-24 {
  height: 6rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-12 {
  width: 3rem;
}
.w-24 {
  width: 6rem;
}
.w-full {
  width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.min-h-screen {
  min-height: 100vh;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-6xl {
  font-size: 3.75rem;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}
.text-left {
  text-align: left;
}

/* Color Classes */
.text-flux-black {
  color: var(--flux-black);
}
.text-flux-green {
  color: var(--flux-green);
  color: var(--flux-green-claro);
}
.text-flux-gray-dark {
  color: var(--flux-gray-dark);
}
.text-flux-gray-light {
  color: var(--flux-gray-light);
}
.text-flux-white {
  color: var(--flux-white);
}
.bg-background {
  background-color: var(--background);
}
.bg-flux-black {
  background-color: var(--flux-black);
}
.bg-flux-green {
  background-color: var(--flux-green);
}
.bg-flux-gray-light {
  background-color: var(--flux-gray-light);
}
.bg-flux-white {
  background-color: var(--flux-white);
}
.bg-gradient-hero {
  background: var(--gradient-hero);
}
.bg-service-card {
  background-color: var(--service-card);
}
.bg-service-bg {
  background-color: var(--service-bg);
}
.bg-flux-green-light {
  background-color: var(--flux-green-light);
}
.bg-flux-green-glow {
  background-color: var(--flux-green-glow);
}
.bg-background-blur {
  background-color: var(--background-blur);
}
.bg-hero-overlay {
  background: var(--hero-overlay);
}

/* Borders */
.border {
  border-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-flux-gray-light {
  border-color: var(--flux-gray-light);
}
.border-flux-gray-dark {
  border-color: var(--flux-gray-dark);
}
.border-card-border {
  border-color: var(--card-border);
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Effects */
.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}
.shadow-green {
  box-shadow: var(--shadow-green);
}
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.blur-3xl {
  filter: blur(64px);
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-90 {
  opacity: 0.9;
}

/* Transforms */
.rotate-3 {
  transform: rotate(3deg);
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  padding: 0.5rem 1rem;
  height: 2.5rem;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--flux-black);
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-sm {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
}

.btn-lg {
  height: 2.75rem;
  border-radius: 0.375rem;
  padding: 0 2rem;
}

/* Button Variants */
.btn-flux-primary {
  background-color: var(--flux-black);
  color: var(--flux-white);
  box-shadow: var(--shadow-elegant);
}

.btn-flux-primary:hover {
  background-color: var(--flux-gray-dark);
}

.btn-flux-accent {
  background-color: var(--flux-green);
  color: var(--flux-white);
  box-shadow: var(--shadow-green);
}

.btn-flux-accent:hover {
  background-color: hsl(123, 43%, 28%);
}

.btn-flux-outline {
  border: 2px solid var(--flux-black);
  color: var(--flux-black);
  background-color: transparent;
}

.btn-flux-outline:hover {
  background-color: var(--flux-black);
  color: var(--flux-white);
}

/* Form Styles */
.input-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--flux-gray-light);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  background-color: var(--flux-white);
}

.input-field:focus {
  outline: none;
  border-color: var(--flux-green);
  box-shadow: 0 0 0 3px hsla(123, 43%, 31%, 0.1);
}

.resize-none {
  resize: none;
}

/* Transition Classes */
.transition-colors {
  transition: color 0.2s;
}
.transition-all {
  transition: all 0.3s;
}

/* Hover Effects */
.hover\:text-flux-black:hover {
  color: var(--flux-black);
}
.hover\:text-flux-green:hover {
  color: var(--flux-green);
}
.hover\:bg-flux-gray-light:hover {
  background-color: var(--flux-gray-light);
}

/* Space Utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.space-y-8 > * + * {
  margin-top: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
  }
  .md\:text-2xl {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:block {
    display: block;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Custom Responsive Grid for Hero */
.min-h-\[80vh\] {
  min-height: 80vh;
}

/* Additional Utilities */
.-bottom-6 {
  bottom: -1.5rem;
}
.-right-6 {
  right: -1.5rem;
}

/* Navigation Styles */
header nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}

#mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

/* Specific adjustments for FluxCar branding */
.text-4xl.md\:text-6xl {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  .text-4xl.md\:text-6xl {
    font-size: 3.75rem;
  }
}

/* Icons */
svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
