/* =========================================================
   layout.css
   Global layout only: container, header/nav, grids, footer.
   Section-specific design is in sections.css.
   ========================================================= */

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.section {
  padding-block: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 35, 18, 0.08);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.top-bar {
  background: var(--green-dark);
  color: #fff;
  font-size: 0.9rem;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  padding-block: 8px;
  text-align: center;
}

.top-bar a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-wrap {
  position: relative;
  overflow: visible;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 250px;
    height: 78px;
}

.brand img {
    max-height: 70px;
    width: auto;
    display: block;
}
.menu-toggle {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav a {
  padding: 0.8rem 0.9rem;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--green-soft);
}

.nav-phone {
  display: none;
}

.hero-grid,
.about-grid,
.service-grid,
.review-grid,
.contact-grid,
.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-inner {
  align-items: start;
}

.site-footer {
  padding-block: 48px 88px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-logo {
  width: 190px;
  margin-bottom: 1rem;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

@media (min-width: 700px) {
  .review-grid,
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 92px;
  }

  .nav-inner {
    min-height: 78px;
  }

  .brand {
    flex-basis: 250px;
    width: 250px;
    height: 78px;
  }

  .brand img {
    bottom: -8px;
    max-height: 116px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.7rem 0.8rem;
    white-space: nowrap;
  }

  .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding-inline: 1rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-call {
    display: none;
  }
}
