/* ===== Variables & base ===== */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111;
  --color-white: #fff;
  --color-red: #c41e3a;
  --color-red-hover: #a01830;
  --accent-gold: #e8b923;
  --accent-gold-bright: #f5d547;
  --accent-gold-hover: #d4a412;
  --color-text: #171c24;
  --color-text-muted: #5a6372;
  --color-border: #e2e6ed;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(1200px, 100% - 2rem);
  --header-h: 72px;
  --topbar-h: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent-gold);
  color: #12151a;
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #12151a;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: #b8940c;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== Top bar ===== */
.top-bar {
  background: var(--color-bg);
  color: var(--color-white);
  font-size: 0.8125rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: inherit;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
}

.social {
  display: flex;
  gap: 1rem;
}

.social a {
  font-size: 0.9rem;
}

.top-contact {
  display: flex;
  gap: 1.25rem;
}

.top-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.logo-path {
  color: var(--accent-gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.nav a:hover {
  color: #b8940c;
}

.btn-cta-header {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 992px) {
  .nav,
  .btn-cta-header {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0.5rem;
  }

  .nav.open + .btn-cta-header {
    display: inline-flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0c0e12;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-slider-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-slider-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.hero-slider-btn:hover {
  background: rgba(232, 185, 35, 0.9);
  color: #12151a;
}

.hero-slider-btn:focus-visible {
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 2px;
}

.hero-slider-btn-prev {
  left: 0.75rem;
}

.hero-slider-btn-next {
  right: 0.75rem;
}

.hero-slider-dots {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-slider-dot:hover {
  border-color: #fff;
}

.hero-slider-dot.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.15);
}

.hero-slider-dot:focus-visible {
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .hero-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
  }

  .hero-slider-btn-prev {
    left: 0.35rem;
  }

  .hero-slider-btn-next {
    right: 0.35rem;
  }

  .hero-slider-dots {
    bottom: 0.75rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(4, 6, 12, 0.92) 0%,
      rgba(4, 6, 12, 0.78) 32%,
      rgba(4, 6, 12, 0.45) 58%,
      rgba(4, 6, 12, 0.25) 100%
    ),
    linear-gradient(to top, rgba(4, 6, 12, 0.65) 0%, transparent 38%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.hero-content {
  pointer-events: auto;
  max-width: min(520px, 100%);
  width: 100%;
  padding: 1.05rem 1.2rem 1.2rem;
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: min(540px, 100%);
    padding: 1.2rem 1.45rem 1.35rem;
  }
}

.hero-content .btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.0625rem;
  min-width: min(100%, 280px);
  justify-content: center;
}

.hero-badge {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fce566;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.55;
  color: #e8ecf4;
  margin: 0 0 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-intro {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  color: #dce2ee;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== Sections common ===== */
.section {
  padding-block: 4rem;
}

.section-badge {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b8940c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  color: #0f1218;
  margin: 0 0 1rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

/* ===== Team ===== */
.team-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 2.25rem;
  align-items: center;
}

.team-text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.team-visual {
  overflow: hidden;
  min-height: 400px;
  border-radius: 8px;
  background: #1a1a1a url('images/team-visual.jpg') 58% center / cover no-repeat;
}

@media (max-width: 768px) {
  .team-inner {
    grid-template-columns: 1fr;
  }

  .team-visual {
    min-height: 280px;
  }
}

/* ===== Services dark ===== */
.services-dark {
  position: relative;
  color: var(--color-white);
  padding-block: 4rem;
}

.services-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(30,30,30,0.9) 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=2400&q=88&auto=format&fit=max') center/cover no-repeat;
}

.services-dark .container {
  position: relative;
  z-index: 1;
}

.services-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.service-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #12151a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.service-card p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

/* ===== Stats ===== */
.stats {
  background: var(--color-white);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat i {
  font-size: 1.75rem;
  color: var(--accent-gold);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== Why us ===== */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.why-list {
  margin: 0 0 1.5rem;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.why-list i {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.why-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-inline: auto;
}

.why-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(320px, min(50vw, 62vh), 580px);
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-image {
    max-height: clamp(280px, 78vw, 520px);
  }
}

/* ===== Gallery (masonry) ===== */
.gallery {
  background: #f4f5f8;
  border-top: 1px solid var(--color-border);
}

.gallery-intro {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.gallery-title {
  margin-bottom: 0;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 0.875rem;
}

.gallery-item {
  margin: 0 0 0.875rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eaef;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-item:hover img {
    transition: none;
    transform: none;
  }
}

/* ===== Auto Service (Garage-X) ===== */
.auto-service {
  position: relative;
  overflow: hidden;
  color: #e8ecf4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-service-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 4, 10, 0.94) 0%, transparent 38%),
    linear-gradient(
      115deg,
      rgba(3, 5, 12, 0.97) 0%,
      rgba(5, 7, 14, 0.93) 42%,
      rgba(8, 10, 18, 0.9) 100%
    ),
    #06080f url('images/gallery/04.png') center 42% / cover no-repeat;
  z-index: 0;
}

.auto-service-inner {
  position: relative;
  z-index: 1;
}

.auto-service-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.auto-service-badge {
  color: var(--accent-gold-bright);
}

.auto-service-heading {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.5rem;
}

.auto-service-tagline {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auto-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.auto-service-card {
  background: rgba(8, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auto-service-card--accent {
  border-color: rgba(232, 185, 35, 0.4);
  background: rgba(14, 11, 6, 0.78);
  box-shadow: inset 0 1px 0 rgba(232, 185, 35, 0.12);
}

.auto-service-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auto-service-card-title i {
  color: var(--accent-gold);
  font-size: 1rem;
}

.auto-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(232, 236, 244, 0.93);
}

.auto-service-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
}

.auto-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.auto-service-quote {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.85rem;
}

.auto-service-contact {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  text-align: center;
}

.auto-service-contact-phone {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auto-service-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
}

.auto-service-phone {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.auto-service-phone:hover {
  color: var(--accent-gold-bright);
}

.auto-service-address {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
  line-height: 1.5;
}

.auto-service-map-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(232, 185, 35, 0.55);
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.auto-service-map-link:hover {
  color: var(--accent-gold-bright);
  text-decoration-color: var(--accent-gold-bright);
}

.auto-service-map-link i {
  color: var(--accent-gold);
  margin-top: 0.15em;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .auto-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .auto-service-contact {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Footer ===== */
.footer {
  background: #f0f2f7;
  color: var(--color-text);
  padding-block: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer a {
  color: inherit;
  opacity: 0.92;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-red);
}

.logo-footer .logo-main {
  color: var(--color-text);
}

.logo-footer .logo-sub {
  color: var(--color-text-muted);
}

.footer-about p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.9375rem;
}

.footer-hours p {
  font-size: 0.9375rem;
  margin: 0 0 0.25rem;
  color: var(--color-text-muted);
}

.footer-hours .btn {
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    max-width: none;
  }
}
