/* OnAds — site styles */

:root {
  --ink: #12131a;
  --ink-2: #1d1f2a;
  --text: #2a2d38;
  --muted: #5a6072;
  --line: #e3e7ef;
  --soft: #f3f5f9;
  --paper: #ffffff;
  --accent: #1668dc;
  --accent-bright: #2185f5;
  --accent-tint: #e8f0fd;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 19, 26, .04), 0 8px 24px rgba(18, 19, 26, .06);
  --shadow-lg: 0 2px 4px rgba(18, 19, 26, .04), 0 18px 48px rgba(18, 19, 26, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.6rem, 6vw + .5rem, 4.6rem); }
h2 { font-size: clamp(2rem, 3vw + .8rem, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(22, 104, 220, .28); }
.btn-primary:hover { background: #0f58c0; box-shadow: 0 10px 24px rgba(22, 104, 220, .34); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--ink); color: #fff; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(18, 19, 26, .05); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand img { width: auto; height: 46px; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav ul a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  background-image: radial-gradient(rgba(18, 19, 26, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}
.hero::after {
  /* fade the dot grid out toward the bottom */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 56ch; }
.hero .lead {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(1.15rem, .6vw + 1rem, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 34ch;
}

.underline { position: relative; display: inline-block; white-space: nowrap; }
.underline svg {
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  width: 100%; height: .3em;
  overflow: visible;
}
.underline path {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
}
.js .underline path { animation: draw 1s .35s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes draw { from { stroke-dashoffset: 260; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% 4% 8%;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 30% 30%, #dbe8fd, #eef4fe 60%, transparent 72%);
}
.hero-visual img {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  /* the illustration has a white background — multiply lets the blob show through */
  mix-blend-mode: multiply;
}

/* Sections */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
}
.service-num { color: #b4bac8; font-size: .9rem; font-weight: 700; letter-spacing: .08em; }
.service-card h3 { margin-bottom: 16px; }

.dash-list { margin: 0; padding: 0; list-style: none; }
.dash-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
.dash-list li:first-child { border-top: 0; }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 2px;
  background: var(--accent-bright);
  border-radius: 2px;
}

.service-card-dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .78); }
.service-card-dark h3 { color: #fff; }
.service-card-dark .service-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.service-card-dark .service-num { color: rgba(255, 255, 255, .3); }
.service-card-dark p { font-size: 1.15rem; line-height: 1.45; color: #fff; }

.link-arrow { margin-top: auto; color: #8db8ff; font-weight: 700; word-break: break-word; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.team-card {
  padding: 32px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.team-card:hover { border-color: #c9d3e6; transform: translateY(-4px); }
.team-avatar {
  display: grid;
  place-items: center;
  width: 112px; height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--soft);
}
.team-avatar img { width: 64px; height: 64px; }
.team-card h3 { font-size: 1.15rem; }
.team-card p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* Mercedes */

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
}
.section-dark::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -240px; top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 133, 245, .22), transparent 65%);
  pointer-events: none;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8db8ff; }

.mercedes-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.mercedes-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.mercedes-info h2 { font-size: clamp(1.8rem, 2.4vw + .8rem, 2.6rem); }
.mercedes-info h2 span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .55);
  font-size: .55em;
  font-weight: 600;
  letter-spacing: 0;
}

.price-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table th {
  padding: 0 0 12px;
  color: rgba(255, 255, 255, .5);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td:first-child { white-space: nowrap; padding-right: 16px; }
.price-table td {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
}
.price-table strong { color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.price-table tr:last-child strong { font-size: 1.05rem; font-weight: 700; color: #8db8ff; }

.note { margin: 14px 0 0; color: rgba(255, 255, 255, .5); font-size: .9rem; }

/* About */

.section-accent {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: rgba(255, 255, 255, .85);
}
.section-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  pointer-events: none;
}
.section-accent .eyebrow { color: rgba(255, 255, 255, .75); }
.section-accent h2 { color: #fff; max-width: 18ch; }

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 40px;
}
.about-cta p { font-size: 1.2rem; color: #fff; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--soft);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.contact-card h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-card a { color: var(--ink); font-size: 1.2rem; font-weight: 700; line-height: 1.4; word-break: break-word; }
.contact-card a:hover { color: var(--accent); }

/* Footer */

.site-footer { padding: 48px 0; background: var(--ink); color: rgba(255, 255, 255, .55); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.site-footer .brand img { height: 40px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: rgba(255, 255, 255, .8); }
.site-footer ul a:hover { color: #fff; }
.copyright { margin: 0; }

/* Scroll reveal — only when JS is running, so content is never hidden without it */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }

  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(18, 19, 26, .08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { min-height: 50px; }

  .hero-inner, .mercedes-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  .about-inner { align-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .team-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 18px; padding: 18px; text-align: left; }
  .team-avatar { grid-row: span 2; width: 72px; height: 72px; margin: 0; }
  .team-avatar img { width: 44px; height: 44px; }
  .team-card p { margin-top: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
