/* Homepage composition — institutional, sparse, production-grade */

body:has(.fp-home) {
  background: #fff;
}

body:has(.fp-home) .navbar.fixed-top {
  background: transparent !important;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

body:has(.fp-home) .navbar.fixed-top.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: rgba(11, 18, 32, 0.08);
  box-shadow: 0 8px 28px -22px rgba(11, 18, 32, 0.25);
}

body:has(.fp-home) .navbar.fixed-top:not(.scrolled) .nav-link {
  color: #f8fafc !important;
}

body:has(.fp-home) .navbar.fixed-top:not(.scrolled) .navbar-brand {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
}

body:has(.fp-home) .navbar.fixed-top:not(.scrolled) .btn-fp-primary {
  background: #fff;
  color: #0f766e;
  border: none;
}

body:has(.fp-home) .navbar.fixed-top:not(.scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  filter: invert(1);
}

.fp-home {
  --fp-home-ink: #0b1220;
  --fp-home-muted: #5b677a;
  --fp-home-line: rgba(11, 18, 32, 0.1);
  --fp-home-surface: #f4f6f8;
  --fp-home-accent: #0f766e;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--fp-home-ink);
}

.fp-home h1,
.fp-home h2,
.fp-home h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.fp-home-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-home-accent);
}

/* —— Full-bleed hero —— */
.fp-home-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
  background: #071018;
  color: #f8fafc;
}

.fp-home-hero__media {
  position: absolute;
  inset: 0;
}

.fp-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.42;
}

.fp-home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.94) 0%, rgba(7, 16, 24, 0.78) 42%, rgba(7, 16, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.35) 0%, rgba(7, 16, 24, 0.55) 100%);
}

.fp-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-left: 0;
  margin-right: auto;
}

.fp-home-brand {
  margin: 0 0 1.25rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.fp-home-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #e8eef5;
  max-width: 18ch;
}

.fp-home-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #b6c2d1;
  max-width: 34rem;
}

.fp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fp-home .btn-fp-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.35rem;
}

.fp-home .btn-fp-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.fp-home .btn-fp-primary {
  border-radius: 8px;
  box-shadow: none;
}

/* —— Credential bar —— */
.fp-home-bar {
  border-bottom: 1px solid var(--fp-home-line);
  background: #fff;
}

.fp-home-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fp-home-muted);
}

.fp-home-bar__list a {
  color: var(--fp-home-accent);
  text-decoration: none;
}

.fp-home-bar__list a:hover {
  text-decoration: underline;
}

/* —— Expertise (GIS-style grid) —— */
.fp-home-expertise {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: #fff;
}

.fp-home-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.fp-home-split h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  max-width: 14ch;
  line-height: 1.15;
}

.fp-home-aside {
  margin: 0;
  color: var(--fp-home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.fp-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fp-home-line);
  border: 1px solid var(--fp-home-line);
}

.fp-expertise {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 11.5rem;
  transition: background 0.2s ease;
}

.fp-expertise:hover {
  background: var(--fp-home-surface);
  color: inherit;
}

.fp-expertise h3 {
  margin: 0;
  font-size: 1.05rem;
}

.fp-expertise p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fp-home-muted);
}

.fp-expertise span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-home-accent);
}

/* —— Stats —— */
.fp-home-stats {
  padding: 2.5rem 0;
  background: var(--fp-home-ink);
  color: #dbe4ef;
}

.fp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fp-stats-row strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.fp-stats-row span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #94a3b8;
}

/* —— Delivery —— */
.fp-home-delivery {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--fp-home-surface);
}

.fp-home-delivery h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  max-width: 16ch;
}

.fp-home-delivery > .container > .row > .col-lg-5 > p {
  color: var(--fp-home-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.fp-text-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fp-home-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
}

.fp-text-link:hover {
  color: #0d5c56;
  border-bottom-color: currentColor;
}

.fp-delivery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--fp-home-line);
}

.fp-delivery-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--fp-home-line);
}

.fp-delivery-list span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-home-accent);
  padding-top: 0.2rem;
}

.fp-delivery-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.fp-delivery-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fp-home-muted);
  line-height: 1.55;
}

/* —— Clients —— */
.fp-home-clients {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: #fff;
}

.fp-home-clients h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  max-width: 18ch;
}

.fp-client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fp-client-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.fp-client-grid p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fp-home-muted);
}

/* —— CTA —— */
.fp-home-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #0c4a4e;
  color: #e8f5f4;
}

.fp-home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.fp-home-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: #fff;
  max-width: 22ch;
}

.fp-home-cta p {
  margin: 0;
  max-width: 34rem;
  color: #b7d4d2;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .fp-home-hero {
    min-height: auto;
    padding: 6.5rem 0 3.25rem;
  }

  .fp-home-hero__media img {
    object-position: center;
    opacity: 0.3;
  }

  .fp-home-hero__veil {
    background: linear-gradient(180deg, rgba(7, 16, 24, 0.7) 0%, rgba(7, 16, 24, 0.92) 100%);
  }

  .fp-home-split,
  .fp-expertise-grid,
  .fp-stats-row,
  .fp-client-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fp-home-split {
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .fp-home-brand {
    font-size: 2.25rem;
  }

  .fp-home-hero h1 {
    max-width: none;
  }

  .fp-home-bar__list {
    flex-direction: column;
    gap: 0.45rem;
  }

  .fp-expertise-grid,
  .fp-stats-row,
  .fp-client-grid,
  .fp-home-split {
    grid-template-columns: 1fr;
  }

  .fp-home-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
