:root {
  --red: #b5121b;
  --red-dark: #7e0e15;
  --ink: #17191f;
  --muted: #5f6672;
  --line: #e7e9ee;
  --surface: #ffffff;
  --soft: #f7f3f1;
  --soft-2: #f8f9fb;
  --navy: #171f2f;
  --radius: 5px;
  --shadow: 0 24px 70px rgba(23, 25, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

img, svg {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 233, 238, 0.86);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: -4px;
}

/*.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 28px rgba(181, 18, 27, 0.22);
}*/

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  /* background: rgba(181, 18, 27, 0.08); */
  border-bottom: 1px solid red;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--soft-2);
  border-radius: var(--radius);
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section {
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(181, 18, 27, 0.12), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fbf6f4 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

h1, h2, h3 {
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.7rem, 4vw, 5.8rem);
  letter-spacing: -0.065em;
  max-width: 920px;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.018em;
}

p {
  margin: 14px 0 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  max-width: 760px;
}

.hero-actions,
.cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 32px rgba(181, 18, 27, 0.24);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn-light {
  background: white;
  color: var(--red-dark);
}

.hero-panel {
  padding: 28px;
  background: #151823;
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -80px -100px auto auto;
  width: 280px;
  height: 280px;
  background: rgba(181, 18, 27, 0.55);
  border-radius: 50%;
  filter: blur(10px);
}

.metric-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
}

.metric-card.large {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.metric-card span,
.card-kicker {
  color: #e9646b;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 2rem;
  line-height: 1;
}

.metric-card p {
  color: rgba(255,255,255,0.72);
}

.mini-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.value-card,
.detail-box,
.contact-card,
.contact-form,
.content-page {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(23, 25, 31, 0.06);
}

.service-card {
  padding: 28px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
}

.service-card p {
  color: var(--muted);
  flex: 1;
}

.text-link {
  display: inline-flex;
  color: var(--red);
  font-weight: 800;
  margin-top: 22px;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.feature-band,
.muted {
  background: var(--soft-2);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list p {
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--red);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(23, 25, 31, 0.05);
}

.cta-section {
  padding: 78px 0;
  background: var(--navy);
}

.cta-card {
  justify-content: space-between;
  margin-top: 0;
  color: white;
}

.cta-card h2,
.cta-card .eyebrow {
  color: white;
}

.page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(181, 18, 27, 0.13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.values-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.value-card {
  padding: 26px;
}

.value-card p {
  color: var(--muted);
}

.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.service-index a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
  background: white;
}

.service-index a:hover {
  color: var(--red);
  border-color: rgba(181,18,27,0.32);
}

.service-detail {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.service-detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-detail-header {
  max-width: 900px;
  margin-bottom: 24px;
}

.service-detail-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-box {
  padding: 26px;
}

.detail-box ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.detail-box li + li {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 30px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfbfc;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(181, 18, 27, 0.14);
  border-color: rgba(181, 18, 27, 0.7);
}

.form-status {
  color: var(--muted);
  margin-top: 14px;
}

.content-page {
  padding: 34px;
}

.content-page h2 + p {
  color: var(--muted);
}

.site-footer {
  background: #10131b;
  color: rgba(255,255,255,0.76);
  padding: 58px 0 24px;
}

.site-footer h2 {
  color: white;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-brand {
  color: white;
  font-size: 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 18px;
  color: rgba(255,255,255,0.52);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 82px 20px auto 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-link {
    padding: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .detail-grid,
  .contact-grid,
  .footer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .cards-grid,
  .values-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container, .narrow {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .cards-grid,
  .values-grid.four {
    grid-template-columns: 1fr;
  }

  .mini-card-row,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-card {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 300px;
    border-radius: var(--radius);
  }
}
