:root {
  --brand: #db1f26;
  --brand-dark: #b8191f;
  --ink: #141414;
  --muted: #6b7280;
  --surface: #f7f7f7;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

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

a {
  color: var(--brand);
}

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

h1,
h2,
h3,
h4 {
  font-family: Montserrat, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--brand);
  color: #fff;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  transition: background 0.25s, padding 0.25s;
}

.site-header.is-scrolled {
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.logo {
  display: block;
  width: 10rem;
  height: 2.75rem;
  background: url("../img/logos/logo_white.png") center / contain no-repeat;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.3rem auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.25rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--brand);
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 6rem 1rem 4rem;
  background:
    linear-gradient(rgba(20, 20, 20, 0.45), rgba(20, 20, 20, 0.55)),
    url("../img/header-bg.jpg") center / cover no-repeat;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--brand);
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.card-body p {
  margin: 0;
  font-size: 0.95rem;
}

.about-photo {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.service {
  text-align: center;
  padding: 1rem;
}

.service-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.5rem;
}

.service h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.bg-light {
  background: var(--surface);
}

.solution img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.solution figcaption {
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}

.solution h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.solution p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.clients {
  padding: 3rem 0;
  background: var(--surface);
}

.clients .grid-4 {
  align-items: center;
}

.clients img {
  margin-inline: auto;
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}

.clients img:hover {
  filter: none;
  opacity: 1;
}

.contact {
  text-align: center;
}

.contact address {
  font-style: normal;
  color: #bbb;
  line-height: 1.9;
}

.contact strong {
  color: #fff;
}

.site-footer {
  padding: 1.5rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-size: 0.85rem;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.98);
    padding: 0.5rem;
    border-radius: 0.5rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav {
    position: relative;
  }
}
