@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f4f5;
  --color-ink: #111111;
  --color-ink-soft: #3a3a3a;
  --color-line: #e4e4e7;
  --color-accent: #c4161c;
  --color-accent-dark: #9e1015;
  --font-display: "Outfit", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2rem));
  --header-h: 4.5rem;
  --radius: 2px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top right, rgba(196, 22, 28, 0.06), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-dark);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

h1,
h2,
h3,
.brand-mark {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 40rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
}

.brand__logo,
.custom-logo {
  width: auto;
  height: 3.2rem;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-line);
  background: #fff;
  padding: 0.55rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle__icon {
  width: 1.1rem;
  height: 2px;
  background: var(--color-ink);
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
}

.nav-toggle__icon::before {
  top: -5px;
}

.nav-toggle__icon::after {
  top: 5px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem;
}

.site-nav.is-open {
  display: block;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu a {
  display: block;
  padding: 0.55rem 0.35rem;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a {
  color: var(--color-accent);
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 8, 8, 0.92) 10%, rgba(20, 20, 20, 0.72) 48%, rgba(196, 22, 28, 0.78) 100%),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 2px 14px
    ),
    #141414;
  transform: scale(1.04);
  animation: hero-pan 18s ease-in-out infinite alternate;
  z-index: -1;
}

.hero__content {
  padding: 4.5rem 0 3.5rem;
  animation: rise 0.8s ease both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.button--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero .button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--cta {
  background: #111;
  color: #fff;
}

.section--cta__inner {
  text-align: left;
}

.section__header {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__cta {
  margin-top: 1.75rem;
}

.service-grid,
.ref-grid {
  display: grid;
  gap: 1rem;
}

.service,
.ref {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-line);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.trust-list li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.trust-list span {
  color: var(--color-ink-soft);
}

.text-link {
  font-weight: 600;
}

.content-shell {
  padding: 3rem 0 4rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.75rem;
}

.entry-content p {
  max-width: 48rem;
}

.form {
  max-width: 36rem;
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
}

.form__privacy {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-line);
}

.notice--success {
  border-color: #166534;
  background: #f0fdf4;
}

.notice--error {
  border-color: var(--color-accent);
  background: #fff5f5;
}

.site-footer {
  margin-top: auto;
  background: #0d0d0d;
  color: #f5f5f5;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffb3b5;
}

.site-footer__inner {
  display: grid;
  gap: 1.75rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.site-footer__tagline,
.site-footer__note {
  color: #c4c4c4;
}

.menu--footer,
.menu--legal {
  margin-top: 0.75rem;
}

.site-footer__meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-pan {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__content,
  .button {
    animation: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .menu {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 1rem;
  }

  .menu a {
    padding: 0.35rem 0;
  }

  .service-grid,
  .ref-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service,
  .ref {
    border-top: 0;
    border-left: 1px solid var(--color-line);
    padding: 0 0 0 1.25rem;
  }

  .service:first-child,
  .ref:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .site-footer__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}
