/* ============================================
   2 AMIGOS AUTO REPAIR — DESIGN SYSTEM
   Bold, industrial auto shop aesthetic
   ============================================ */

/* ----- Custom Properties ----- */
:root {
  --color-bg-primary: #0D0D0D;
  --color-bg-secondary: #141414;
  --color-surface: #1A1A1A;
  --color-surface-raised: #222222;
  --color-accent: #E42528;
  --color-accent-hover: #FF3538;
  --color-accent-glow: rgba(228, 37, 40, 0.25);
  --color-warm: #F4A261;
  --color-text: #F0F0F0;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;
  --color-border: #2A2A2A;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* ----- Reset ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

.hidden { display: none !important; }

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


/* ============================================
   NAVIGATION — taller, bolder
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--color-accent);
  transition: background 0.3s;
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__links {
  display: none;
  gap: 28px;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* ---- Language Toggle — flag-style tabs, not pills ---- */
.lang-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.lang-toggle__btn {
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  transition: all 0.2s;
  border-right: 1px solid var(--color-border);
}

.lang-toggle__btn:last-child {
  border-right: none;
}

.lang-toggle__btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Phone Button — square, not circle */
.nav__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: white;
  transition: all 0.2s;
}

.nav__phone:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

.nav__hamburger span:nth-child(1) { width: 100%; }
.nav__hamburger span:nth-child(2) { width: 70%; }
.nav__hamburger span:nth-child(3) { width: 100%; }

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__lang {
  display: flex;
}

.mobile-menu__lang .lang-toggle__btn {
  padding: 12px 24px;
  font-size: 16px;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 60px;
  background: var(--color-bg-primary);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920&h=1080&fit=crop') center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(13,13,13,0.6) 50%, rgba(13,13,13,0.95) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero__logo {
  max-width: 360px;
  width: 80%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.1;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 3px;
}

.hero__sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero__rating-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}


/* ============================================
   BUTTONS — chunky, industrial, no rounded corners
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.25s;
  min-height: 52px;
  text-decoration: none;
  position: relative;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 30px var(--color-accent-glow);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--sm {
  padding: 12px 24px;
  font-size: 13px;
  min-height: 44px;
}


/* ============================================
   STARS
   ============================================ */
.stars { display: inline-flex; gap: 3px; }
.star { width: 20px; height: 20px; }
.star--filled { fill: var(--color-warm); }
.stars--small .star { width: 16px; height: 16px; }


/* ============================================
   SECTIONS — left-aligned headers with accent bar
   ============================================ */
.section {
  padding: 90px 0;
}

.section--alt {
  background: var(--color-bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text);
}

.section__line {
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

.section__sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   SERVICES — bordered cards with left accent stripe
   ============================================ */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.services__grid > .service-card {
  width: 100%;
}

.service-card {
  background: var(--color-surface);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.service-card__icon {
  color: var(--color-accent);
  margin-bottom: 20px;
  position: relative;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
  position: relative;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  color: white;
  background: var(--color-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: all 0.25s;
  align-self: flex-start;
}

.service-card__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--color-accent-glow);
}

.service-card__cta::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}


/* ============================================
   WHY US — stacked cards with number markers
   ============================================ */
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s;
}

.why-card:hover {
  border-color: var(--color-accent);
}

.why-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.why-card__text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-card__text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================
   GALLERY
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: all 0.4s;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  filter: grayscale(30%);
}

.gallery__item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}


/* ============================================
   REVIEWS — quote-style cards
   ============================================ */
.reviews__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-card {
  background: var(--color-surface);
  padding: 32px;
  border: 1px solid var(--color-border);
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 72px;
  font-family: Georgia, serif;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  position: relative;
}

.review-card__stars .star {
  width: 16px;
  height: 16px;
  fill: var(--color-warm);
}

.review-card__text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__author {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.review-card__source {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-card__divider {
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.reviews__cta {
  text-align: center;
  margin-top: 48px;
}


/* ============================================
   CONTACT / LOCATION — cards + full map
   ============================================ */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  padding: 16px 0;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: white;
}

.contact-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-card__text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.4;
  transition: color 0.2s;
}

a.contact-card__text:hover {
  color: var(--color-accent);
}

.hours-table {
  border-collapse: collapse;
}

.hours-table td {
  padding: 1px 12px 1px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hours-table td:first-child {
  color: var(--color-text);
  font-weight: 500;
  min-width: 80px;
}

.hours-table--closed td {
  color: var(--color-accent) !important;
}

.contact-map {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #080808;
  border-top: 2px solid var(--color-accent);
  padding: 56px 0 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.footer__tagline {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 5px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.footer__links a:hover {
  color: var(--color-accent);
  padding-left: 8px;
}

.footer__contact p,
.footer__contact a {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.footer__contact a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero__headline {
    font-size: clamp(48px, 7vw, 68px);
  }

  .services__grid > .service-card {
    width: calc(50% - 12px);
  }

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

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

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}


/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__phone {
    display: none;
  }

  .hero__headline {
    font-size: clamp(60px, 5vw, 80px);
  }

  .hero__sub {
    font-size: 20px;
  }

  .section {
    padding: 110px 0;
  }

  .section__title {
    font-size: 44px;
  }

  .services__grid > .service-card {
    width: calc(33.333% - 16px);
  }

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