/* kbcarz.com – one-page profile card (client mock-up, Nov 2026) */

:root {
  --asphalt: #1a2130;        /* matches the bottom of the background photo */
  --text: #ffffff;
  --button: #16883a;         /* "LEARN MORE" green */
  --button-hover: #1c9e45;
  --button-text: #ffffff;
  --circle: #ffffff;
  --circle-icon: #1a2130;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }
body {
  background: var(--asphalt);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Calibri, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Desktop sides stay clean and dark: no blurred copy of the photo */
.backdrop { display: none; }

/* The card (full screen on phones) */
.card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--asphalt);
  container-type: inline-size;
}
.card__photo {
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: 898 / 1600;
  background: url("/site/img/background.jpg") center top / cover no-repeat;
  /* Sharp but dimmed so the text stands out */
  filter: brightness(0.6) saturate(0.9);
}
/* Darken where the text sits over the building, then blend into the asphalt */
.card__shade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100cqw * 1600 / 898 + 24px); /* covers the photo's soft bottom edge */
  background: linear-gradient(to bottom,
    rgba(26, 33, 48, 0.25) 0%,
    rgba(26, 33, 48, 0.3) 28%,
    rgba(26, 33, 48, 0.6) 40%,
    rgba(26, 33, 48, 0.5) 55%,
    rgba(26, 33, 48, 0.4) 70%,
    var(--asphalt) 92%,
    var(--asphalt) 100%);
}

.card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: inherit;
  padding: 16cqw 6cqw calc(24px + env(safe-area-inset-bottom));
}

/* Profile picture */
.profile {
  width: 36cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #ffffff;
  overflow: hidden;
  background: #e9e9ed;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* About text */
.bio {
  margin-top: 16cqw;
  font-size: clamp(17px, 4.8cqw, 21px);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.bio p { margin: 0 0 1em; }
.bio strong { font-weight: 700; }

/* Call to action → enquiry forms */
.enquire {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  padding: 20px 24px;
  text-align: center;
  border-radius: 12px;
  background: var(--button);
  color: var(--button-text);
  font-size: clamp(20px, 5.8cqw, 25px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.enquire:hover { background: var(--button-hover); transform: translateY(-2px); }
.enquire:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* Round link buttons */
.link-rows {
  margin-top: 1.75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--circle);
  color: var(--circle-icon);
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.links a:hover { background: var(--button); color: #ffffff; transform: translateY(-2px); }
.links a:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* Link not set yet: greyed out, not clickable */
.links .is-empty a {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(26, 33, 48, 0.55);
  box-shadow: none;
  cursor: default;
}
.links .is-empty a:hover { background: rgba(255, 255, 255, 0.35); color: rgba(26, 33, 48, 0.55); transform: none; }

/* Wider screens: floating card over the blurred backdrop */
@media (min-width: 560px) {
  .card {
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
}

/* Fade in once admin-managed content is applied (only when JS runs) */
.js .card { opacity: 0; transition: opacity 0.45s ease; animation: kb-show 0.3s ease 3s forwards; }
@keyframes kb-show { to { opacity: 1; } } /* safety net: show the page even if a script stalls */
.js body.loaded .card { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .card { transition: none; } }
