/* AV Assistance Group digital card.
   Colors sampled from the logo: red #F4100B, yellow #FBF83B,
   blue #2063CE, slate #303C41. Call-button red is one step
   darker (#E20F0A) so white label text stays readable. */

:root {
  color-scheme: light;
  --red: #f4100b;
  --red-button: #e20f0a;
  --red-button-hover: #c40d09;
  --yellow: #fbf83b;
  --yellow-edge: #d4ce1c;
  --blue: #2063ce;
  --blue-soft: #f2f6fc;
  --slate: #303c41;
  --slate-deep: #1c262b;
  --ink: #3e4c52;
  --line: #e3e8ea;
  --bg: #e7ecee;
  --card: #ffffff;
  --focus: #2063ce;
  --shadow: 0 18px 48px rgba(48, 60, 65, 0.14);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--card);
  color: var(--slate);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.8rem;
  background: var(--card);
  color: var(--slate);
  border-radius: 0.5rem;
  transform: translateY(-150%);
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100%, 30rem);
  margin: 0 auto;
  background: var(--card);
  padding:
    max(1.35rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    calc(1.75rem + env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.identity {
  text-align: center;
}

.logo-link {
  display: block;
  border-radius: 0.5rem;
}

.logo-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1.15rem;
}

.name {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.title {
  margin: 0.45rem 0 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.business {
  margin: 0.3rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.tagline {
  margin: 0.85rem auto 0;
  max-width: 28ch;
  color: var(--ink);
  font-size: 1.02rem;
}

.actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 4.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn-label {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.btn-meta {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.btn-call {
  background: var(--red-button);
  color: #fff;
}

.btn-call:hover {
  background: var(--red-button-hover);
}

.btn-text {
  background: var(--slate);
  color: #fff;
}

.btn-text:hover {
  background: var(--slate-deep);
}

.btn-email {
  background: #fff;
  color: var(--slate);
  border-color: var(--blue);
}

.btn-email:hover {
  background: var(--blue-soft);
}

.btn-save {
  background: var(--yellow);
  color: var(--slate);
  border-color: var(--yellow-edge);
}

.btn-save:hover {
  background: #f3ef2c;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible,
.dealer a:focus-visible,
.qr-link:focus-visible,
.skip:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-text:focus-visible {
  outline-color: var(--yellow);
}

.btn:active {
  transform: translateY(1px);
}

.services {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.services h2,
.gallery h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.services li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--red);
  flex: 0 0 auto;
}

.services li:nth-child(3n + 2)::before {
  background: var(--blue);
}

.services li:nth-child(3n)::before {
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--yellow-edge);
}

.dealer {
  margin-top: 1.35rem;
  text-align: center;
}

.dealer a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem;
  color: var(--slate);
  text-decoration: none;
  border-radius: 1rem;
}

.dealer img {
  width: min(15.5rem, 78%);
  height: auto;
}

.dealer-caption {
  font-size: 1rem;
  font-weight: 700;
}

.gallery {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.gallery p {
  margin: 0.4rem 0 0;
  color: var(--ink);
}

.gallery[hidden] {
  display: none !important;
}

.footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.qr-link {
  display: inline-block;
  padding: 0.35rem;
  background: #fff;
  border-radius: 0.5rem;
  line-height: 0;
}

.qr-link img {
  width: 7rem;
  height: 7rem;
}

.site,
.copyright {
  margin: 0.55rem 0 0;
}

.site {
  color: var(--slate);
  font-weight: 700;
}

.copyright {
  color: var(--ink);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  body {
    background: var(--bg);
    padding: 3rem 1.5rem;
  }

  .wrap {
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
    padding: 2rem 1.85rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .wrap {
    width: auto;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
  }

  .btn-call,
  .btn-text {
    border-color: var(--slate);
  }
}
