/* ============================================
   3M Car Care Santhome — Landing Page styles
   Design tokens
   ============================================ */
:root {
  --red: #ED1B2F;
  --red-700: #c8162a;
  --black: #0a0a0a;
  --ink: #111114;
  --ink-2: #1d1d20;
  --muted: #6d6d6d;
  --muted-2: #818181;
  --line: #e9e9e9;
  --line-2: #d9d9d9;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-soft-2: #f1f1f1;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --shadow-2: 0 10px 40px rgba(0,0,0,.10);

  --container: 1196px;
  --gutter: clamp(20px, 5vw, 64px);

  --font: 'Google Sans', 'Product Sans', 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Google Sans', 'Product Sans', 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:active, a:visited { text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(237,27,47,.25); }
.btn--primary:hover { background: var(--red-700); box-shadow: 0 8px 24px rgba(237,27,47,.35); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn .arrow { font-size: 1.05em; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow--left { transform: translateX(-3px) translateY(-1px); }
.btn__icon { width: 16px; height: 16px; }

/* ============================================
   Top bar
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.topbar__logo img { height: 28px; width: auto; }
.topbar__nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.topbar__nav a { position: relative; padding: 6px 0; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__cta { padding: 10px 18px; }
.topbar__menu { display: none; width: 44px; height: 44px; position: relative; }
.topbar__menu span { display: block; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.topbar__menu span:nth-child(1) { top: 15px; }
.topbar__menu span:nth-child(2) { top: 21px; }
.topbar__menu span:nth-child(3) { top: 27px; }
.topbar__menu[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.topbar__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__menu[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.topbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.topbar__mobile a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.topbar__mobile a.btn { border-bottom: 0; margin-top: 12px; justify-content: center; }

/* ============================================
   Floating contact
   ============================================ */
.floaters {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floater {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(237,27,47,.35), 0 0 0 0 rgba(237,27,47,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floater:hover { transform: translateY(-2px); }
.floater svg { width: 22px; height: 22px; }
.floater:first-child {
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(237,27,47,.35), 0 0 0 0 rgba(237,27,47,.45); }
  70% { box-shadow: 0 8px 24px rgba(237,27,47,.35), 0 0 0 18px rgba(237,27,47,0); }
  100% { box-shadow: 0 8px 24px rgba(237,27,47,.35), 0 0 0 0 rgba(237,27,47,0); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.7);
  transition: width .35s ease, background-color .25s ease, transform .25s ease;
}
.hero__dot:hover { background: rgba(255,255,255,.8); }
.hero__dot.is-active {
  width: 32px;
  background: var(--red);
  border-color: var(--red);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.25) 100%);
  z-index: -1;
}
.hero__content {
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: clamp(64px, 10vh, 110px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 0 0 24px;
}
.hero__title {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin: 0 0 18px;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 38ch;
  color: rgba(255,255,255,.92);
  margin: 0 0 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(237,27,47,.18);
}

/* ============================================
   Section primitives
   ============================================ */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section__head { margin-bottom: clamp(36px, 4vw, 56px); }
.section__head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section__head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section__sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ============================================
   Services
   ============================================ */
.services { background: var(--bg-soft); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.service-card__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(237,27,47,.25);
  padding: 14px;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.service-card h3 { font-size: 20px; font-weight: 600; }
.service-card p { font-size: 15px; line-height: 1.55; color: var(--muted-2); margin: 0; max-width: 32ch; }
.services__cta { margin-top: clamp(36px, 4vw, 56px); display: flex; justify-content: center; }

/* ============================================
   Work / transformations
   ============================================ */
.work { background: #fff; }
.work__slider {
  position: relative;
}
.work__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
}
.work__track::-webkit-scrollbar { display: none; }
.work__card {
  position: relative;
  aspect-ratio: 348 / 367;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: #ddd;
  transition: transform .35s ease;
}
.work__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work__card:hover img { transform: scale(1.04); }
.work__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.work__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
}
.work__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-2);
  display: grid; place-items: center;
  z-index: 3;
  transition: transform .2s ease;
}
.work__nav:hover { transform: translateY(-50%) scale(1.06); }
.work__nav svg { width: 20px; height: 20px; }
.work__nav--prev { left: -8px; }
.work__nav--next { right: -8px; }

/* ============================================
   Why us
   ============================================ */
.why { background: var(--bg-soft); }
.why__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
}
.why__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 8px;
}
.why__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(237,27,47,.28);
  padding: 14px;
}
.why__icon svg { width: 32px; height: 32px; }
.why__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.why__item h3 { font-size: 20px; font-weight: 600; }
.why__item p { color: var(--muted-2); font-size: 15px; line-height: 1.55; max-width: 30ch; margin: 0; }
.why__divider {
  width: 1px;
  background: var(--line-2);
  align-self: center;
  height: 110px;
}
.why__cta { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }

/* ============================================
   Visit / map
   ============================================ */
.visit { background: #fff; }
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.visit__cards { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 32px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.info-card:hover { border-color: var(--ink); box-shadow: var(--shadow-1); transform: translateX(2px); }
.info-card__icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  padding: 10px;
}
.info-card__icon svg { width: 28px; height: 28px; }
.info-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.info-card__text h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.info-card__text p { margin: 0; color: var(--muted-2); font-size: 15px; line-height: 1.4; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.visit__map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 550 / 527;
  box-shadow: var(--shadow-2);
  isolation: isolate;
  background: #e5e3df;
}
.visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.visit__map-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.visit__map-cta:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.visit__map-cta svg { width: 16px; height: 16px; }

/* ============================================
   FAQ
   ============================================ */
.faq { background: var(--bg-soft); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__contact { margin-top: 28px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[data-open="true"] {
  border-color: var(--ink);
  box-shadow: var(--shadow-1);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.faq__icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color .2s ease, border-color .2s ease, transform .25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink);
  transition: background-color .2s ease, transform .25s ease;
}
.faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq__item[data-open="true"] .faq__icon { background: var(--red); border-color: var(--red); transform: rotate(180deg); }
.faq__item[data-open="true"] .faq__icon::before { background: #fff; }
.faq__item[data-open="true"] .faq__icon::after { background: #fff; transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__a > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__item[data-open="true"] .faq__a > p { padding: 0 22px 22px; }

/* ============================================
   Footer
   ============================================ */
.footer { background: #fff; padding-top: 64px; border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__logo { height: 28px; width: auto; margin-bottom: 18px; }
.footer__tag { color: var(--ink); font-size: 16px; line-height: 1.55; max-width: 38ch; margin: 0; }
.footer h5 { font-size: 14px; color: var(--red); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer__links ul, .footer__contact ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__links a:hover { color: var(--red); }
.footer__credit {
  color: var(--ink);
  font-weight: 600;
  transition: color .2s ease;
}
.footer__credit:hover { color: var(--red); }
.footer__bar { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .topbar__nav { display: none; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__track { grid-auto-columns: calc((100% - 16px) / 2); }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { aspect-ratio: 16 / 11; order: -1; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .why__row { grid-template-columns: 1fr; }
  .why__divider { width: 80%; height: 1px; justify-self: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .topbar__cta { padding: 9px 14px; font-size: 13px; }
  .topbar__logo img { height: 22px; }

  .hero { min-height: 600px; }
  .hero__title { font-size: clamp(34px, 9vw, 48px); max-width: 16ch; }
  .hero__sub { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__chips { gap: 12px 18px; font-size: 13px; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }

  .work__track { grid-auto-columns: 85%; }
  .work__nav { display: none; }

  .info-card { padding: 14px; gap: 14px; }
  .info-card__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .info-card__icon svg { width: 24px; height: 24px; }
  .visit__cta { flex-direction: column; align-items: stretch; }
  .visit__cta .btn { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  .floaters { right: 14px; bottom: 14px; }
  .floater { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .hero__eyebrow { font-size: 11px; padding: 6px 12px; }
}

/* small entry animations */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__sub, .hero__cta, .hero__chips, .hero__eyebrow {
    animation: rise .8s ease both;
  }
  .hero__sub { animation-delay: .08s; }
  .hero__cta { animation-delay: .16s; }
  .hero__chips { animation-delay: .24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
