:root {
  --site-accent: #2f7d51;
  --site-accent-dark: #1e5237;
  --site-ink: #1d2923;
  --site-muted: #5f6e65;
  --site-surface: #f4f7f5;
  --site-line: #d9e2dc;
}

@media (max-width: 767px) {
  .container-header .container-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 7px 16px;
  }

  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 5px;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
  }

  .site-menu-toggle__icon,
  .site-menu-toggle__icon::before,
  .site-menu-toggle__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-menu-toggle__icon {
    position: relative;
  }

  .site-menu-toggle__icon::before,
  .site-menu-toggle__icon::after {
    position: absolute;
    left: 0;
  }

  .site-menu-toggle__icon::before {
    top: -7px;
  }

  .site-menu-toggle__icon::after {
    top: 7px;
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon {
    background: transparent;
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .container-header .container-nav .mod-menu[hidden] {
    display: none !important;
  }

  .container-header .container-nav .mod-menu {
    width: 100%;
    margin: 0;
    padding-top: 6px;
  }

  .container-header .container-nav .mod-menu > li > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

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

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

.container-header {
  color: var(--site-ink);
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(16, 36, 25, 0.2);
}

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

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

.container-header .brand-logo {
  width: min(100%, 360px);
  height: 82px;
  display: block;
  background: url('/images/brand/estimar-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: 760px;
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 0.95rem;
}

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

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

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

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

.native-recovery .legacy-hero {
  min-height: clamp(360px, 58vh, 620px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 84px);
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(13, 32, 22, 0.86), rgba(13, 32, 22, 0.35)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.native-recovery .legacy-hero.compact {
  min-height: 280px;
}

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

.legacy-hero h1 {
  max-width: 100%;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2rem, 4rem, 4rem);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: break-word;
  white-space: normal;
}

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

.content-block,
.legacy-cta {
  padding: clamp(30px, 5vw, 68px) clamp(18px, 4vw, 54px);
}

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

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

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

.legacy-card,
.legacy-faq details {
  padding: 24px;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.legacy-card:hover {
  border-color: var(--site-accent);
  box-shadow: 0 10px 30px rgba(22, 55, 37, 0.1);
  transform: translateY(-2px);
}

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

.legacy-cta {
  color: #ffffff;
  background: var(--site-accent-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(--site-accent);
  border-radius: 5px;
  color: #ffffff;
  background: var(--site-accent);
  font-weight: 700;
  text-decoration: none;
}

.legacy-button:hover {
  color: #ffffff;
  background: var(--site-accent-dark);
}

.legacy-faq details + details {
  margin-top: 12px;
}

.legacy-faq summary {
  cursor: pointer;
  font-weight: 750;
}

.legacy-stat {
  display: inline-flex;
  flex-direction: column;
  min-width: 150px;
  padding: 18px;
  text-align: center;
}

.legacy-stat strong {
  color: var(--site-accent);
  font-size: 2rem;
}

@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: min(100%, 300px);
    height: 70px;
  }

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

  .native-recovery .legacy-hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 390px;
    background-position: 58% center;
  }

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

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