/* Home landing — Beautiful Hugo–compatible */

.home-landing {
  margin-top: 0;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 51px);
  margin-top: 51px;
  display: flex;
  align-items: center;
  background: no-repeat center 35%;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 20, 20, 0.82) 0%,
    rgba(20, 20, 20, 0.55) 45%,
    rgba(20, 20, 20, 0.28) 100%
  );
  z-index: 1;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.home-hero__brand {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 1px 1px 3px #000;
}

.home-hero__headline {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 0.9rem;
  max-width: 22ch;
  text-shadow: 1px 1px 3px #000;
}

.home-hero__lead {
  font-family: "Lora", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.home-hero__cta .btn {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.home-section {
  padding: 3.25rem 0 3.5rem;
}

.home-eyebrow {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #008AFF;
  margin: 0 0 0.5rem;
}

.home-section__title {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  margin: 0 0 0.55rem;
  color: #404040;
}

.home-section__text {
  margin: 0 0 1.75rem;
  color: #606060;
  max-width: 38ch;
}

.home-practice-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e5e5;
}

.home-practice-list > li {
  border-bottom: 1px solid #e5e5e5;
}

.home-practice {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 1.1rem;
  align-items: center;
  padding: 1.15rem 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.home-practice:hover,
.home-practice:focus {
  color: inherit;
  text-decoration: none;
  background: rgba(0, 138, 255, 0.04);
}

.home-practice__img {
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}

.home-practice__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.home-practice:hover .home-practice__img img {
  transform: scale(1.04);
}

.home-practice__name {
  display: block;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #404040;
  margin-bottom: 0.2rem;
}

.home-practice__blurb {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #707070;
}

.home-practice__meta {
  grid-column: 2;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #008AFF;
}

.home-practices__more {
  margin-top: 1.35rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.home-how {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.home-how__grid {
  margin-top: 0.5rem;
}

.home-how__num {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #008AFF;
  margin: 0 0 0.45rem;
}

.home-how__name {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  color: #404040;
}

.home-how__grid p:last-child {
  color: #707070;
  font-size: 0.98rem;
}

.home-contact {
  background: #2c3e50;
  color: #fff;
  padding: 2.75rem 0;
}

.home-contact__title {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.4rem;
  color: #fff;
}

.home-contact__text {
  margin: 0;
  opacity: 0.88;
  max-width: 34ch;
}

.home-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.home-contact__links .btn-outline-light:hover {
  color: #2c3e50;
}

@media (min-width: 768px) {
  .home-hero {
    min-height: calc(100svh - 91px);
    margin-top: 91px;
  }

  .home-hero__inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .home-practice {
    grid-template-columns: 7.5rem 1fr auto;
    grid-template-rows: auto;
    gap: 0 1.5rem;
    align-items: center;
    padding: 1.25rem 0.25rem;
  }

  .home-practice__img {
    grid-row: auto;
  }

  .home-practice__meta {
    grid-column: auto;
    white-space: nowrap;
    text-align: right;
  }

  .home-practice__name {
    font-size: 1.3rem;
  }

  .home-how__grid > [class*="col-"] {
    margin-bottom: 0;
  }

  .home-contact__links {
    margin-top: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .home-how__grid > [class*="col-"] {
    margin-bottom: 1.5rem;
  }

  .home-how__grid > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

@media (prefers-color-scheme: dark) {
  .home-section__title,
  .home-practice__name,
  .home-how__name {
    color: #eee;
  }

  .home-section__text,
  .home-practice__blurb,
  .home-how__grid p:last-child {
    color: #bbb;
  }

  .home-how {
    background: #111;
    border-color: #333;
  }

  .home-practice-list,
  .home-practice-list > li {
    border-color: #333;
  }

  .home-practice:hover,
  .home-practice:focus {
    background: rgba(80, 175, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-practice__img img {
    transition: none;
  }
}
