:root {
  --primary: #0c2340;
  --primary-soft: #123765;
  --secondary: #f59e0b;
  --secondary-soft: #fbbf24;
  --surface: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-bg: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  --alt-section-bg: linear-gradient(180deg, #f9fafb 0%, #eef4ff 100%);
  --service-wrap-bg: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  --map-bg: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

body[data-theme="ocean"] {
  --primary: #083a4d;
  --primary-soft: #0d5775;
  --secondary: #14b8a6;
  --secondary-soft: #5eead4;
  --surface: #edf9fb;
  --card: #ffffff;
  --text: #153244;
  --muted: #4b6475;
  --line: rgba(8, 58, 77, 0.12);
  --shadow: 0 18px 45px rgba(8, 58, 77, 0.15);
  --header-bg: rgba(240, 253, 255, 0.9);
  --hero-bg: linear-gradient(180deg, #effcff 0%, #dff7ff 100%);
  --alt-section-bg: linear-gradient(180deg, #f6fdff 0%, #e9f8ff 100%);
  --service-wrap-bg: linear-gradient(180deg, #ffffff 0%, #ebf9ff 100%);
  --map-bg: linear-gradient(180deg, #ffffff 0%, #edf9ff 100%);
}

body[data-theme="forest"] {
  --primary: #193d2f;
  --primary-soft: #285d46;
  --secondary: #73b32d;
  --secondary-soft: #a3e635;
  --surface: #f3fbf5;
  --card: #ffffff;
  --text: #1f2d25;
  --muted: #52685f;
  --line: rgba(25, 61, 47, 0.12);
  --shadow: 0 18px 45px rgba(24, 58, 45, 0.14);
  --header-bg: rgba(246, 253, 248, 0.88);
  --hero-bg: linear-gradient(180deg, #f7fff8 0%, #edf9ee 100%);
  --alt-section-bg: linear-gradient(180deg, #f9fef9 0%, #edf8f0 100%);
  --service-wrap-bg: linear-gradient(180deg, #ffffff 0%, #edf9f0 100%);
  --map-bg: linear-gradient(180deg, #ffffff 0%, #edf9f1 100%);
}

body[data-theme="sunset"] {
  --primary: #3c1d2e;
  --primary-soft: #73324b;
  --secondary: #f97316;
  --secondary-soft: #fb7185;
  --surface: #fff7f3;
  --card: #ffffff;
  --text: #2d1d2c;
  --muted: #7a5d6b;
  --line: rgba(60, 29, 46, 0.1);
  --shadow: 0 18px 45px rgba(87, 39, 45, 0.14);
  --header-bg: rgba(255, 248, 245, 0.9);
  --hero-bg: linear-gradient(180deg, #fffaf7 0%, #ffe9e1 100%);
  --alt-section-bg: linear-gradient(180deg, #fffaf7 0%, #fce7df 100%);
  --service-wrap-bg: linear-gradient(180deg, #ffffff 0%, #fff0eb 100%);
  --map-bg: linear-gradient(180deg, #ffffff 0%, #fff4ef 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.1;
  color: var(--primary);
  font-size: clamp(1.25rem, 1.5vw, 1.375rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-banner {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  object-position: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  color: var(--primary);
}

.brand small {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  color: var(--text);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.theme-option {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-option:hover {
  transform: translateY(-1px);
}

.theme-option.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.theme-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.theme-default {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.theme-ocean {
  background: linear-gradient(135deg, #083a4d 0%, #14b8a6 100%);
}

.theme-forest {
  background: linear-gradient(135deg, #193d2f 0%, #73b32d 100%);
}

.theme-sunset {
  background: linear-gradient(135deg, #3c1d2e 0%, #f97316 100%);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  display: -webkit-inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.text-link {
  color: inherit;
  transition: opacity 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 0.8;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-soft) 100%);
  color: #101828;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
  border-color: rgba(12, 35, 64, 0.15);
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
}

.hero {
  padding: 2rem 0 3rem;
  background: var(--hero-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy h1 {
  white-space: nowrap;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(12, 35, 64, 0.15);
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
  margin-top: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stats li {
  min-width: 125px;
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 1.7rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.certified-card {
  position: relative;
  width: min(100%, 500px);
  min-height: 420px;
  background: #121315;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.garage-logo {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
}

.badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(12, 35, 64, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.services {
  background: #ffffff;
  padding-top: 3rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-list-wrap {
  margin-top: 2.5rem;
  background: var(--service-wrap-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.service-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.service-list-header h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.rate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
}

.service-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-weight: 500;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-size: 1.4rem;
  line-height: 1;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.service-card .icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.1);
  margin-bottom: 1.1rem;
  color: var(--primary);
}

.service-card .icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 800;
}

.info-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.panel-item + .panel-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.panel-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.panel-subtitle {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(11, 22, 35, 0.65);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.large-card {
  min-height: 180px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.image-box {
  min-height: 390px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.88), rgba(18, 55, 101, 0.7)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.image-box span {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
}

.about-tagline {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.map-section {
  background: var(--map-bg);
}

.map-actions {
  margin-bottom: 1.5rem;
}

.map-wrapper {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h3 {
  color: white;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.copyright {
  padding: 1rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-soft) 100%);
  color: #101828;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  cursor: pointer;
  z-index: 20;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
  }

  .card-grid,
  .footer-grid,
  .hero-grid,
  .split-layout,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .main-nav {
    display: flex;
    flex: 0 0 100%;
    order: 1;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    white-space: nowrap;
  }

  .hero-grid,
  .split-layout,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .hero-title-row {
    align-items: flex-start;
  }

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

  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .hero-title-row {
    flex-direction: column;
  }

  .hero-badge {
    width: 96px;
    height: 96px;
  }

  .main-nav {
    -webkit-overflow-scrolling: touch;
  }

}

@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .site-header,
  .gallery-card figcaption {
    background-color: rgba(255, 255, 255, 0.96);
  }

  .gallery-card figcaption {
    background-color: rgba(11, 22, 35, 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
