:root {
  --bg: hwb(0 100% 0%);
  --card: #ffffff;
  --accent: #d32f2f;
  --muted: #666;
  --container-width: 1100px;
  --header-height: 70px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #222;
  background: var(--bg);
  padding-top: var(--header-height, 70px);
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem; /* Changed from "1rem 0" to add side spacing */
  height: var(--header-height);
  width: 100%; /* Ensures it uses full width */
}
/* Container for Logo + Text */
/* Container: Stacks Logo and Text Vertically and Centers them */
.brand-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the text under the logo */
  justify-content: center;
  line-height: 1; /* Tightens the spacing */
}

/* Logo Image Sizing */
.site-logo {
  height: 38px; /* Slightly adjusted for better proportion */
  width: auto;
  margin-bottom: 3px;
  object-fit: contain;
  display: block;
}

/* Text Sizing - FORCED SMALLER */
h1.brand {
  font-size: 10px !important; /* Force size to be small (approx 0.6rem) */
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Optional: Slight adjustment for larger screens if 10px is too small for desktop */
@media (min-width: 900px) {
  h1.brand {
    font-size: 12px !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .site-logo {
    height: 35px;
  }
  .brand {
    font-size: 0.65rem; /* Even smaller on mobile */
  }
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}
.site-nav a {
  margin-left: 1rem;
  color: #222;
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--accent);
}
.hero {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.9)
  );
  padding: 0; /* Removed the huge 2.25rem padding */
  padding-bottom: 2rem; /* Keeps some space at the very bottom only */
}
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem; /* Controls space between Image and Text */
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: center;
}
.hero-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}
.hero-content p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.95;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.section {
  padding: 2rem 0;
}
.section h3 {
  margin: 0 0 0.25rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.services-grid {
  display: grid;
  /* Automatically fit columns with a minimum width of 250px */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.service-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.work-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.work-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.table-wrap {
  overflow: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
.price-table th,
.price-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.spareparts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sparepart-card {
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sparepart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sparepart-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
}

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

.sparepart-card h4 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
}

.part-description {
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.part-spec {
  padding: 0 1rem;
  font-size: 0.85rem;
  margin: 0.35rem 0;
  color: #333;
}

.btn-small {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0.5rem 1rem 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}
.contact-form {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
}
/* --- Workshop Info Styles --- */
.contact-info {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.info-item svg {
  color: var(--accent); /* Uses your red color */
  flex-shrink: 0;
  margin-top: 3px;
}

.info-item p {
  margin: 0.2rem 0;
  line-height: 1.4;
  color: #444;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0.2rem;
}

/* Clickable Links styling */
.link-small {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.link-small:hover {
  text-decoration: underline;
}

.link-phone {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.link-phone:hover {
  color: var(--accent);
}

/* --- Footer & Payment Badges --- */
.info-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* Allows wrapping on small screens */
  gap: 1.5rem;
}

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

.payment-badges {
  display: flex;
  gap: 8px;
}

.pay-icon {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.pay-icon:hover {
  transform: translateY(-2px);
}

.footer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #555;
  transition: color 0.2s;
  background: #f5f5f5;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--accent);
  background: #fff0f0;
}

.site-footer {
  padding: 1rem 0;
  background: transparent;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
}
.lightbox.show {
  visibility: visible;
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Email Link Styles */
.link-email {
  color: inherit; /* Uses the parent text color (black/dark gray) */
  text-decoration: none; /* Removes the default underline */
  transition: color 0.2s ease;
}

.link-email:hover {
  color: #0056b3; /* Changes to Blue on hover */
  text-decoration: underline; /* Optional: Adds underline on hover */
}

/* Floating navbar styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--card);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Hide header when scrolling down */
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Add some opacity when scrolled */
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

/* Initial state: hidden and slightly down */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

/* State when visible */
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Enhance mobile styles */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0.5rem 0;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* --- Mobile Navigation Styles --- */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
  .site-nav {
    /* Hidden by default on mobile, but prepared to slide in */
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen to the right */
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding-top: 80px;
    transition: 0.3s ease-in-out;
    display: flex; /* Override the previous 'display: none' */
  }

  /* When the 'active' class is added via JS, slide it in */
  .site-nav.active {
    right: 0;
  }

  .site-nav a {
    margin: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
  }

  /* Show the hamburger button */
  .mobile-menu-toggle {
    display: block;
  }

  /* Animate hamburger to X when open */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
