/* ==========================================================================
   LINK Safety — link-safety.com
   One-page site stylesheet
   ========================================================================== */

:root {
  /* Brand */
  --purple: #3b0a78;
  --purple-deep: #27064f;
  --purple-ink: #1a0436;
  --orange: #ff6b00;
  --orange-soft: #fff1e6;
  --cream: #fbf6f1;
  --white: #ffffff;
  --ink: #1f1b24;
  --muted: #5d6470;
  --line: #e6e0da;

  /* Type */
  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;

  --text-hero: clamp(2.4rem, 6vw, 4.1rem);
  --text-2xl: clamp(1.9rem, 3.6vw, 2.7rem);
  --text-xl: clamp(1.45rem, 2.2vw, 1.85rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);
  --max: 1180px;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(31, 27, 36, 0.04), 0 12px 32px rgba(39, 6, 79, 0.07);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--purple-ink);
}

p {
  margin: 0 0 1rem;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.85rem;
}

.h2 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

.rule {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border: 0;
  margin: 0 0 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover {
  background: #e65f00;
  color: var(--white);
}
.btn--outline {
  border-color: var(--purple);
  color: var(--purple);
}
.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
}
.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost-light:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}

/* --------------------------------------------------------- Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.header__logo img {
  width: 148px;
  height: auto;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--purple-ink);
}
.nav a:hover {
  color: var(--orange);
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header__phone {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.nav__call {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--purple-ink);
  cursor: pointer;
}

/* --------------------------------------------------------- Hero */
.hero {
  position: relative;
  background: var(--purple-deep);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.5;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26, 4, 54, 0.96) 0%,
    rgba(39, 6, 79, 0.9) 46%,
    rgba(39, 6, 79, 0.45) 100%
  );
}
.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 760px;
}
.hero h1 {
  font-size: var(--text-hero);
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--orange);
}
.hero__lede {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero .eyebrow {
  color: var(--orange);
}

/* Industry strip */
.strip {
  background: var(--purple);
  color: var(--white);
}
.strip ul {
  list-style: none;
  margin: 0;
  padding-block: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.strip li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex: none;
}

/* --------------------------------------------------------- Sections */
.section {
  padding-block: var(--section);
}
.section--cream {
  background: var(--cream);
}
.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head h2 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}
.section__head p {
  color: var(--muted);
  font-size: var(--text-lg);
  margin: 0;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about p {
  color: var(--muted);
}
.about p.lead {
  color: var(--ink);
  font-size: var(--text-lg);
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt,
.facts .facts__k {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.facts .facts__v {
  font-size: var(--text-sm);
  color: var(--purple-ink);
  font-weight: 600;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  transition:
    border-top-color 0.2s ease,
    transform 0.2s ease;
}
.card:hover {
  border-top-color: var(--orange);
  transform: translateY(-3px);
}
.card__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.6rem;
}
.card h3 {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.6rem;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}
.card li:last-child {
  margin-bottom: 0;
}
.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

/* Custom solutions band */
.band {
  position: relative;
  background: var(--purple-ink);
  color: var(--white);
  overflow: hidden;
}
.band__media {
  position: absolute;
  inset: 0;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 4, 54, 0.95) 0%,
    rgba(39, 6, 79, 0.86) 55%,
    rgba(39, 6, 79, 0.6) 100%
  );
}
.band__inner {
  position: relative;
  padding-block: var(--section);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.band h2 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}
.band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
.band .btn {
  margin-top: 1.75rem;
}
.why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.why li {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--orange);
  padding: 1.1rem 1.35rem;
}
.why strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: 0.2rem;
}
.why span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--purple-ink);
  margin: 0 0 0.15rem;
}
.contact__role {
  font-size: var(--text-sm);
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact__list li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact__list .k {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 88px;
  flex: none;
}
.contact__list .v {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--purple-ink);
  word-break: break-word;
}
.contact__list a.v {
  color: var(--purple);
}
.contact__list a.v:hover {
  color: var(--orange);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.contact__note {
  color: var(--muted);
  font-size: var(--text-sm);
}
.asks {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.asks li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.35rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--purple-ink);
}
.asks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.42em;
  width: 7px;
  height: 2px;
  background: var(--orange);
}

/* Footer */
.footer {
  background: var(--purple-ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 2.5rem;
  font-size: var(--text-sm);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer img {
  width: 128px;
  height: auto;
}
.footer a {
  color: var(--white);
}
.footer a:hover {
  color: var(--orange);
}
.footer__meta {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .about,
  .band__inner,
  .contact {
    grid-template-columns: 1fr;
  }
  .header__phone {
    display: none;
  }
  .nav {
    gap: 1.15rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.8rem 0;
    width: 100%;
  }
  .nav__call {
    display: block;
    color: var(--orange);
    font-weight: 700;
  }
  .header__inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }
  .header__cta {
    display: none;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
