/* Westcott Security & Events — single-page business card */

:root {
  --primary: #277cea;
  --primary-dark: #1a5fb8;
  --heading: #3b3d40;
  --text: #5c6366;
  --muted: #7a8185;
  --panel: #f3f4f5;
  --border: #e1e3e5;
  --backdrop: #16191d;
}

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

html {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--backdrop);
}

/* Fixed pseudo-element instead of background-attachment: fixed, which iOS ignores. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(22, 25, 29, 0.8), rgba(22, 25, 29, 0.9)),
    url(/assets/img/davemason.jpg) center / cover no-repeat;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-top: 6px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* ---------- Identity & statement ---------- */

.card-intro {
  padding: 40px 40px 32px;
  text-align: center;
}

.logo {
  display: block;
  width: auto;
  height: 120px;
  margin: 0 auto 20px;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.statement {
  max-width: 580px;
  margin: 24px auto 0;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.credentials .icon {
  color: var(--primary);
  font-size: 13px;
}

/* ---------- Contact ---------- */

.card-contact {
  padding: 32px 40px 36px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.card-contact > h2 {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.person {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.person h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.person p {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
}

.contact-link .icon {
  color: var(--primary);
  font-size: 16px;
}

.company-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.company-lines li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.company-lines a {
  color: var(--heading);
  font-weight: 600;
}

.company-lines .icon {
  color: var(--primary);
}

/* ---------- 404 ---------- */

.card-intro .button {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 28px;
  background: var(--primary);
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.card-intro .button:hover,
.card-intro .button:focus-visible {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer ---------- */

footer {
  padding: 0 16px 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  main {
    padding: 24px 16px;
  }

  .card-intro,
  .card-contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo {
    height: 96px;
  }

  h1 {
    font-size: 26px;
  }

  .people {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-lines {
    flex-direction: column;
    align-items: center;
  }
}
