/* AutoCenter Kirchheim — self-hosted stylesheet.
   No external fonts/CDNs: the CSP is 'self' only, so everything below is local
   and the type stack falls back to the OS UI font. */

:root {
  --gold: #d9a520;
  --gold-soft: #f0c14b;
  --blue: #2f7fd1;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 8px 28px -12px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Dark is the default look; the toggle writes data-theme on <html>. */
:root,
:root[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-2: #111823;
  --surface: #151d29;
  --surface-2: #1b2532;
  --line: #26313f;
  --line-strong: #35424f;
  --text: #eef3f9;
  --text-dim: #a8b6c6;
  --text-faint: #7d8b9d;
  --hero-shade: linear-gradient(180deg, rgba(6, 10, 15, .55) 0%, rgba(6, 10, 15, .72) 45%, rgba(11, 15, 20, .96) 100%);
  --img-bg: #0e141c;
}

:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --line: #dfe5ec;
  --line-strong: #c6d0dc;
  --text: #10161f;
  --text-dim: #4c5a6b;
  --text-faint: #6b7889;
  --hero-shade: linear-gradient(180deg, rgba(8, 14, 22, .38) 0%, rgba(8, 14, 22, .55) 50%, rgba(246, 247, 249, .97) 100%);
  --img-bg: #e8edf3;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #16120a;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-right: auto;
}
.brand svg { flex: none; }
.brand span { display: block; font-size: 1.06rem; }
.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; }

/* One icon per theme; JS only flips data-theme. */
:root[data-theme="light"] .i-moon { display: none; }
:root:not([data-theme="light"]) .i-sun { display: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #17130a;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(217, 165, 32, .7); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }

.btn-sm { padding: 9px 15px; font-size: .9rem; border-radius: 9px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 12vw, 140px) 0 clamp(40px, 6vw, 74px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background-image: url("img/hero.webp");
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.04);
}
.hero::after { background: var(--hero-shade); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(10, 14, 20, .5);
  border: 1px solid rgba(217, 165, 32, .35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 165, 32, .18);
}

.hero h1 { max-width: 17ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero .lead {
  font-size: clamp(1.06rem, 1.9vw, 1.32rem);
  font-weight: 600;
  color: #eaf0f7;
  max-width: 46ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.hero .lead-sub {
  color: #cfdae6;
  max-width: 52ch;
  font-size: 1.02rem;
  font-weight: 400;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 7vw, 76px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 22px 20px;
}
.stat b {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -.03em;
  color: var(--gold-soft);
}
.stat span { font-size: .87rem; color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------------------------ sections */

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }

.head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.head .kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.head p { color: var(--text-dim); margin-bottom: 0; }

/* ------------------------------------------------------------------ services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--img-bg);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-dim); font-size: .95rem; margin-bottom: 16px; }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--gold);
}
.card-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* marque chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  align-items: center;
}
.chips .chips-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .88rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ process */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--text-dim); font-size: .95rem; margin-bottom: 0; }

/* ------------------------------------------------------------------ gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery button {
  appearance: none;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--img-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.gallery button:hover { transform: translateY(-3px); border-color: var(--gold); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* lightbox */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 12, .93);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -30px #000;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 14px;
  color: #cbd5e1;
  font-size: .9rem;
  font-family: var(--mono);
}
.lb-btn {
  appearance: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ about */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.split p { color: var(--text-dim); }

.quote {
  margin: 26px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}
.quote footer { margin-top: 8px; font-size: .85rem; font-style: normal; font-weight: 600; color: var(--text-faint); }

/* ------------------------------------------------------------------ contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.people { display: grid; gap: 14px; }

.person {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.person .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold) 0%, #b3801a 100%);
  color: #17130a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}
.person h3 { font-size: 1.02rem; margin-bottom: 2px; }
.person .role { font-size: .84rem; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.person ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.person li { font-size: .92rem; color: var(--text-dim); }
.person a { color: var(--text); text-decoration: none; font-weight: 600; }
.person a:hover { color: var(--gold); text-decoration: underline; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.info-card h3 { font-size: 1.02rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-family: var(--mono); color: var(--text-dim); }

.addr { font-style: normal; color: var(--text-dim); font-size: .95rem; }
.addr strong { color: var(--text); }

/* form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.field input,
.field textarea {
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217, 165, 32, .2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--text-faint); margin: 0; }
.form-msg { font-size: .93rem; font-weight: 600; margin: 0; min-height: 1.4em; }
.form-msg[data-state="ok"] { color: #45c07f; }
.form-msg[data-state="err"] { color: #ef6a5a; }

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
  font-size: .93rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot .legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .85rem;
}

/* ------------------------------------------------------------------ legal pages */

.page { padding: clamp(48px, 7vw, 84px) 0; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h1 + p { color: var(--text-dim); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 1.6em; }
.prose dt { font-weight: 700; color: var(--text-dim); }
.prose dd { margin: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; color: var(--text-dim); }
.prose a { color: var(--gold); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 26px;
}
.back:hover { color: var(--gold); }
.back svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .top-inner { position: relative; }
  /* Tap-to-call matters most on a phone: keep the button, drop the label. */
  .call-label { display: none; }
  .call-btn { padding: 11px; border-radius: 10px; }
  .call-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .brand small { display: none; }
}

@media print {
  .top, .foot, .lb, .hero::before, .hero::after, .gallery, .form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
