/* Big Salmon Software – neutral lake/outdoors palette */
:root {
  --bss-slate: #334155;
  --bss-slate-light: #475569;
  --bss-stone: #78716c;
  --bss-stone-light: #a8a29e;
  --bss-lake: #1e3a5f;
  --bss-lake-light: #2d4a6f;
  --bss-bg: #f8fafc;
  --bss-bg-warm: #fafaf9;
  --bss-border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body.landing {
  background-color: var(--bss-bg-warm);
  color: var(--bss-slate);
  overflow-x: hidden;
}

.landing-header a[href="/"] {
  min-width: 0;
}

/* Hero — content sets height; photo fills behind (no fixed-height clipping) */
.landing-hero {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  overflow: hidden;
  background-color: #0f172a;
}

.landing-hero__media,
.landing-hero-overlay,
.landing-hero__content {
  grid-area: 1 / 1;
}

.landing-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.landing-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.landing-hero-overlay {
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.65) 45%,
      rgba(15, 23, 42, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.45) 0%,
      rgba(15, 23, 42, 0.78) 45%,
      rgba(15, 23, 42, 0.94) 100%
    );
}

.landing-hero__copy {
  max-width: 42rem;
}

.landing-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.landing-hero__title {
  margin: 0;
  max-width: 36rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 24px rgba(0, 0, 0, 0.45);
}

.landing-hero__lead {
  margin: 0.875rem 0 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .landing-hero__title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .landing-hero__lead {
    margin-top: 1rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .landing-hero__title {
    font-size: 3rem;
  }
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
  min-height: clamp(26rem, 38vw, 34rem);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.landing-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.landing-hero__btn--primary {
  background-color: #ffffff;
  color: var(--bss-lake);
  font-weight: 600;
}

.landing-hero__btn--primary:hover {
  background-color: #f1f5f9;
}

.landing-hero__btn--primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.landing-hero__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.landing-hero__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.landing-contact__submit {
  background-color: var(--bss-lake);
  color: #ffffff;
}

.landing-contact__submit:hover {
  background-color: var(--bss-lake-light);
}

.landing-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-card:hover {
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
  transform: translateY(-2px);
}

.landing .landing-contact-form .landing-input::placeholder {
  color: var(--bss-stone-light);
}

.landing .landing-contact-form .landing-input:hover {
  border-color: var(--bss-slate-light);
}

.landing-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.landing-alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.landing a.placeholder-link {
  color: var(--bss-lake);
  text-decoration: none;
}

.landing a.placeholder-link:hover {
  text-decoration: underline;
}

/* Responsive — keep at end so overrides win */
@media (max-width: 639px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  /*
   * Crop top ~20% of the photo. object-position alone often does nothing on
   * mobile because cover crops the sides, not top/bottom — shift the image up.
   */
  .landing-hero__img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 125%;
    top: -25%;
    object-fit: cover;
    object-position: 50% 50%;
  }

  .landing-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.65) 45%,
        rgba(15, 23, 42, 0.35) 100%
      ),
      linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.42) 0%,
        rgba(15, 23, 42, 0.5) 22%,
        rgba(15, 23, 42, 0.68) 55%,
        rgba(15, 23, 42, 0.94) 100%
      );
  }

  .landing-hero__content {
    justify-content: flex-start;
    min-height: 22rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .landing-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero__btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .landing-hero__content {
    min-height: clamp(28rem, 36vw, 36rem);
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}
