:root {
  --grillo-ink: #202420;
  --grillo-green: #315d42;
  --grillo-green-dark: #1f3c2b;
  --grillo-red: #9a3f35;
  --grillo-surface: #f3f5f1;
  --grillo-line: #d8ddd5;
}

body {
  color: var(--grillo-ink);
  background: #ffffff;
}

.container-header {
  color: var(--grillo-ink);
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(12, 24, 16, 0.25);
}

.container-header > .grid-child:first-child {
  width: calc(100% - 2rem);
  max-width: 1220px;
  margin-inline: auto;
  padding-block: 10px;
}

.container-header .navbar-brand {
  min-width: 0;
}

.container-header .brand-logo {
  width: 190px;
  height: 88px;
  display: block;
  background: url('/images/brand/grillo-logo-original.png') left center / contain no-repeat;
}

.container-header .brand-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container-header .site-description {
  width: 100%;
  max-width: 840px;
  margin-top: 2px;
  color: #596159;
  font-size: 0.95rem;
}

.container-header .container-nav {
  width: 100%;
  max-width: none;
  padding: 7px max(1rem, calc((100vw - 1220px) / 2));
  background: #19231d;
}

.container-header .mod-menu > li > a {
  color: #ffffff;
}

.container-component {
  padding-top: 0;
}

.native-recovery {
  width: min(100%, 1220px);
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.legacy-hero {
  min-height: clamp(400px, 66vh, 720px);
  display: grid;
  align-items: center;
  padding: clamp(30px, 7vw, 90px);
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(14, 24, 17, 0.92), rgba(14, 24, 17, 0.25)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.legacy-hero.compact {
  min-height: 280px;
  background-image: linear-gradient(100deg, #17241c, #315d42);
}

.legacy-hero > div {
  width: 100%;
  min-width: 0;
  max-width: 720px;
}

.legacy-hero h1 {
  max-width: 100%;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4.4rem, 4.4rem);
  font-weight: 850;
  line-height: 1.04;
  overflow-wrap: break-word;
  white-space: normal;
}

.legacy-hero p {
  max-width: 100%;
  font-size: 1.2rem;
  overflow-wrap: break-word;
}

.content-block,
.legacy-cta {
  padding: clamp(32px, 5vw, 72px) clamp(18px, 5vw, 64px);
}

.content-block:nth-child(even) {
  background: var(--grillo-surface);
}

.content-block > h2,
.legacy-cta > h2 {
  margin-top: 0;
  color: var(--grillo-ink);
  font-size: clamp(1.65rem, 2.5rem, 2.5rem);
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.legacy-card,
.legacy-grid blockquote {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--grillo-line);
  border-radius: 6px;
  background: #ffffff;
}

.legacy-card h3 {
  color: var(--grillo-green-dark);
}

.legacy-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.legacy-grid blockquote {
  border-left: 5px solid var(--grillo-red);
}

.legacy-grid blockquote footer {
  margin-top: 14px;
  color: var(--grillo-green-dark);
  font-weight: 750;
}

.legacy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 14px;
}

.legacy-gallery figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--grillo-line);
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

.legacy-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.legacy-gallery h3,
.legacy-gallery figcaption {
  padding-inline: 14px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.split-feature > img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.legacy-cta {
  color: #ffffff;
  text-align: center;
  background: var(--grillo-green-dark);
}

.legacy-cta h2,
.legacy-cta a {
  color: #ffffff;
}

.legacy-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--grillo-green);
  border-radius: 5px;
  color: #ffffff;
  background: var(--grillo-green);
  font-weight: 750;
  text-decoration: none;
}

.legacy-button.secondary {
  border-color: #ffffff;
  background: transparent;
}

.legacy-button:hover {
  color: #ffffff;
  background: var(--grillo-red);
}

.contact-list {
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .container-header > .grid-child:first-child {
    width: 100%;
    padding-inline: 16px;
  }

  .container-header .navbar-brand {
    width: 100%;
    max-width: 100%;
  }

  .container-header .brand-logo {
    width: 160px;
    height: 82px;
  }

  .container-header .site-description {
    font-size: 0.86rem;
  }

  .legacy-hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 460px;
  }

  .legacy-hero h1 {
    font-size: 2.1rem;
  }

  .content-block,
  .legacy-cta {
    padding-inline: 18px;
  }

  .split-feature {
    grid-template-columns: 1fr;
  }

  .legacy-button {
    width: 100%;
    justify-content: center;
    margin: 4px 0;
  }
}
