/* Homepage layout — kept separate to avoid fighting overlay-header rules */

body.page-home {
  margin: 0;
  background: #0b2430;
  color: #ffffff;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.home-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(11, 36, 48, 0.94) 0%, rgba(11, 36, 48, 0.78) 45%, rgba(11, 36, 48, 0.6) 100%),
    url("../images/hydroram-hero.png") center / cover no-repeat;
}

.home-shell > *:not(.home-bg) {
  position: relative;
  z-index: 1;
}

.home-shell .site-header {
  position: relative;
  inset: auto;
  padding: 1rem 0;
  background: transparent;
}

.home-shell .brand {
  background: rgba(7, 24, 32, 0.55);
}

.home-shell .brand__wordmark {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(340px, 50vw);
}

.home-shell .brand__mark {
  display: none;
}

.home-shell .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.home-shell .nav a {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-shell .nav a:hover,
.home-shell .nav a[aria-current="page"] {
  color: #7ad4da;
}

.home-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem 1.25rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.home-copy .hero__eyebrow {
  margin: 0 0 0.6rem;
  color: #7ad4da;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.home-copy .hero__lead {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 36rem;
}

.home-copy .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  opacity: 1;
  transform: none;
  animation: none;
}

.home-copy .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1.2rem;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  text-decoration: none;
}

.home-copy .btn--primary {
  background: #3db8c0;
  color: #0b2430;
}

.home-copy .btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.home-feature {
  margin: 0;
  background: rgba(7, 24, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.home-feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  background: #071820;
}

.home-feature figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.home-feature figcaption a {
  color: #7ad4da;
  text-decoration: none;
}

.home-panel {
  display: grid;
  gap: 0.75rem;
}

.stats--home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0;
}

.stats--home article {
  background: rgba(7, 24, 32, 0.7);
  padding: 1rem 1.05rem;
}

.stats--home strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #7ad4da;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 1.55rem;
}

.stats--home span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}

.home-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.home-offers a {
  display: block;
  padding: 1rem 1.05rem;
  background: rgba(7, 24, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.home-offers a:hover {
  border-color: #7ad4da;
}

.home-offers strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.home-offers span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.35;
}

.site-footer--home {
  margin-top: auto;
  padding: 0.85rem 0;
  background: rgba(7, 24, 32, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer--home .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer--home strong {
  color: #ffffff;
  font-family: "Figtree", "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.site-footer--home a {
  color: #7ad4da;
}

@media (max-width: 960px) {
  .home-shell {
    overflow: visible;
  }

  .home-hero,
  .stats--home,
  .home-offers {
    grid-template-columns: 1fr;
  }

  .home-shell .brand__mark {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
  }

  .home-shell .brand__wordmark {
    display: none;
  }
}
