/* Root Variables */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #fafafa;
  --card-foreground: #0a0a0a;
  --primary: #c1272d;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #404040;
  --accent-foreground: #ffffff;
  --border: #e5e5e5;
  --ring: #c1272d;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 1.5rem;
  width: auto;
}

@media (min-width: 480px) {
  .logo {
    height: 1.75rem;
  }
}

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

.desktop-nav {
  display: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .header-right {
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .header-right {
    gap: 1rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
}

.language-dropdown {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.icon-globe {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.language-dropdown:has(.dropdown-menu.show) .icon-chevron {
  transform: rotate(180deg);
}

.language-label {
  font-weight: 500;
  font-size: 0.875rem;
  display: none;
}

@media (min-width: 400px) {
  .language-label {
    display: inline;
  }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  display: none;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--muted);
}

.desktop-only {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
}

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

.mobile-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-check {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%),
    url("public/industrial-facility.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  padding: 3rem 1rem;
}

.hero-text {
  max-width: 48rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  display: block;
  color: var(--primary);
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.hero-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

/* Sections */
.section {
  padding: 3rem 0;
}

.bg-muted {
  background-color: rgba(245, 245, 245, 0.5);
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* About Grid */
.about-grid {
  display: grid;
  gap: 2rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  transition: box-shadow 0.2s;
}

.service-icon {
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius);
  background-color: rgba(193, 39, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  gap: 1.5rem;
}

.reason-card {
  text-align: center;
}

.reason-icon {
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  background-color: rgba(193, 39, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.reason-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.reason-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reason-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

.portfolio-image {
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
  overflow: hidden;
}

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

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--primary);
  color: var(--primary);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-client {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: rgba(245, 245, 245, 0.5);
  padding: 3rem 0;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 480px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.contact-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-info {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.contact-service {
  margin-top: 0.5rem;
  font-style: italic;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hours-grid .closed {
  color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}

.cookie-card {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted-foreground);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--background);
  border-radius: var(--radius);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  z-index: 101;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-option-text {
  flex: 1;
}

.cookie-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--muted);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Utilities */
.hidden {
  display: none !important;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Responsive */

/* Extra small devices */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

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

  .language-btn {
    padding: 0.375rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .logo {
    height: 1.25rem;
  }

  .header-right {
    gap: 0.375rem;
  }
}

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

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

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

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

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

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

  .modal-footer {
    flex-direction: row;
  }
}

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

  .desktop-only {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    padding: 6rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .section {
    padding: 5rem 0;
  }

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

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

  .footer-left {
    align-items: flex-start;
  }

  .cookie-text {
    margin-bottom: 0;
    margin-right: 1rem;
  }

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

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 1rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

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

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

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

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

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