@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=DM+Mono:wght@400;500&display=swap");

:root {
  --navy: #001a3a;
  --navy-mid: #002457;
  --green: #3a9204;
  --green-lt: #47a705;
  --cream: #f5f3ef;
  --smoke: #eae8e4;
  --white: #ffffff;
  --charcoal: #1a1a1a;
  --muted: #6b7280;
  --gold: #c8a96e;
  --grad: linear-gradient(
    135deg,
    var(--navy) 0%,
    #0a3d7a 50%,
    var(--green) 100%
  );
  --grad-subtle: linear-gradient(135deg, #001a3a 0%, #002e6b 100%);
  --ff-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --ff-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --ff-mono: "Montserrat", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ─── UTILITIES ─── */

.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-lt);
  background: rgba(71, 167, 5, 0.1);
  border: 1px solid rgba(71, 167, 5, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--smoke);
  transition: 0.5s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* .container.header-inner outranks the responsive .container padding shorthand */
.container.header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

#header.scrolled {
  background: #fff;
  border-bottom: 1px solid var(--smoke);
  box-shadow: 0 2px 18px rgba(0, 36, 87, 0.08);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* opacity: 0;
  animation: fadeDown 1s var(--ease-out) 1s forwards;
  flex-shrink: 0; */
}

.header-logo-mark {
  border-radius: 0;
  overflow: visible;
}

/* The logo PNG (585×426) has transparent padding around the mark: 12.5% of its
   width on the left, ~13.5% above and ~17% below. Negative margins trim that
   dead space so the header is only as tall as the visible logo, and the mark
   lines up with the content column. */
.header-logo-mark img {
  --logo-w: 136px;
  display: block;
  width: var(--logo-w);
  max-width: none;
  height: auto;
  object-fit: contain;
  margin: calc(var(--logo-w) * -0.13) 0 calc(var(--logo-w) * -0.165)
    calc(var(--logo-w) * -0.125);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

nav a:hover {
  color: var(--green);
}
nav a:hover::after {
  transform: scaleX(1);
}

.btn-nav::after {
  display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span {
  background: #fff;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  height: 100vh;
  padding-top: var(--header-h, 80px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 15, 35, 0.85) 0%,
      rgba(0, 15, 35, 0.55) 50%,
      rgba(0, 15, 35, 0.9) 100%
    ),
    linear-gradient(
      135deg,
      rgba(0, 26, 58, 0.7) 0%,
      rgba(0, 36, 87, 0.3) 50%,
      rgba(10, 60, 20, 0.5) 100%
    );
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-glow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(71, 167, 5, 0.18) 0%,
    transparent 70%
  );
  top: 10%;
  right: 5%;
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  to {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.4s forwards;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--green-lt);
  opacity: 0.8;
  flex-shrink: 0;
}

.hero-eyebrow-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-lt);
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.8vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 720px;
  opacity: 0;
  animation: fadeUp 1.3s var(--ease-out) 0.7s forwards;
}

.hero h1 em {
  /* font-style: italic; */
  color: var(--green-lt);
}

em {
  font-style: normal;
}

.hero-lead {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin-bottom: 32px;
  /* letter-spacing: 0.2px; */
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1s forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 1.25s forwards;
}

.btn-primary,
.btn-nav {
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--green-lt), var(--green));
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    filter 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  will-change: transform;
  white-space: nowrap;
}

/* the header button sits a step smaller than in-page CTAs */
.btn-nav {
  padding: 10px 22px;
  font-size: 12px;
}

.btn-primary:hover,
.btn-nav:hover {
  color: #fff;
  filter: brightness(0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(71, 167, 5, 0.3);
}

.btn-primary svg {
  width: 13px;
  height: 13px;
}

.btn-ghost {
  padding: 11px 24px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease);
  white-space: nowrap;
  display: inline-flex;
}

.btn-ghost:hover {
  background: var(--green) !important;
  border-color: var(--green);
  color: white;
}

.about-section {
  padding: 88px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* centered tag + heading + lead; width comes from its Bootstrap column */
.section-intro {
  text-align: center;
  margin-bottom: 44px;
}

/* columns are flex items, so the last element's margin no longer collapses
   into the intro's own margin — drop it to keep the spacing the same */
.section-intro > [class*="col"] > :last-child {
  margin-bottom: 0;
}

.section-intro p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* the card stack and the photo sit in two Bootstrap columns of equal height */
.service-cards-grid {
  display: grid;
  gap: 14px;
  height: 100%;
}

.about-image-wrap {
  height: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 36, 87, 0.12);
}

.about-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* CARD DESIGN */
.scard {
  background: #f4f7f9;
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid var(--smoke);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.scard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green-lt), var(--navy));
  opacity: 0;
  transition: opacity 0.3s;
}

.scard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 36, 87, 0.1);
  border-color: transparent;
}

.scard:hover::before {
  opacity: 1;
}
.scard:hover * {
  color: white !important;
}

.scard-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
}

.scard-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(71, 167, 5, 0.12),
    rgba(0, 36, 87, 0.08)
  );
  display: grid;
  place-items: center;
  margin-bottom: 0;
}

.scard:hover .scard-icon {
  /* background: rgba(255, 255, 255, 0.15) !important; */
  background: white;
}
.scard-icon svg {
  width: 24px;
  height: 24px;
}

.scard .scard-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.scard h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.scard-inner p:last-child {
  margin-bottom: 0;
}

.scard p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  /* text-wrap: balance; */
  color: var(--muted);
  /* margin: 0; */
}

/* ═══════════════════════════════════════════════════════
   COUNTER STRIP
═══════════════════════════════════════════════════════ */
.counter-strip {
  padding: 64px 0;
  background:
    linear-gradient(rgba(0, 26, 58, 0.8), rgba(0, 26, 58, 0.8)),
    url("../images/counter-bg.webp") no-repeat center center / cover;
  background-attachment: fixed;
}

/* .counter-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/counter-bg.webp") center/cover no-repeat;
  background-attachment: fixed;
  transform: scale(1.1);
  z-index: 0;
}

.counter-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 26, 58, 0.1),
    rgba(0, 26, 58, 0.7)
  );
  z-index: 1;
} */

.counter-grid {
  z-index: 3;
  position: relative;
}

.counter-item {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.counter-item:last-child {
  border-right: none;
}

.counter-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(71, 167, 5, 0.12);
  border: 1px solid rgba(71, 167, 5, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  transition:
    background 0.3s,
    transform 0.3s;
}

.counter-item:hover .counter-icon {
  background: rgba(71, 167, 5, 0.22);
  transform: translateY(-3px);
}

.counter-icon svg {
  width: 24px;
  height: 24px;
}

.counter-number {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  color: white;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--green-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  max-width: 360px;
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
.services-section {
  padding: 88px 0;
  background: white;
}

.section-header {
  margin-bottom: 44px;
}

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
}

.section-header p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.service-card {
  background: #f4f7f9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--smoke);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease) !important;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0, 36, 87, 0.1);
}

.service-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1a5c2e 100%);
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.8;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
  opacity: 1;
}

.service-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card-body {
  padding: 18px 22px 22px;
}

.service-card-body h3 {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 8px;
  /* reserve two lines in the four-across row so every description starts level */
  min-height: 2.5em;
}

.service-card-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* margin-top: 16px; */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--green-lt);
  text-decoration: none;
  text-transform: uppercase;
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════
   MANIFESTO
═══════════════════════════════════════════════════════ */
.manifesto {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
  background: var(--navy);
}

.manifesto.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/page-header-bg.jpg") center/cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.manifesto.parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 26, 58, 0.8),
    rgba(0, 26, 58, 0.8)
  );
  z-index: 1;
}

.manifesto-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.manifesto-inner blockquote {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  font-style: italic;
  color: white;
  line-height: 1.45;
  margin-bottom: 0;
  text-wrap: balance;
}

.manifesto-inner p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════
   WHO WE SERVE
═══════════════════════════════════════════════════════ */
.serve-section {
  padding: 80px 0;
  background: #fff;
}

.serve-card {
  background: #f4f7f9;
  border-radius: 20px;
  padding: 26px 28px;
  border: 1px solid var(--smoke);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    background 0.25s;
}

.serve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 36, 87, 0.08);
  background: var(--navy);
}

.serve-card:hover * {
  color: white !important;
}

.serve-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(71, 167, 5, 0.1),
    rgba(0, 36, 87, 0.06)
  );
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.serve-card:hover .serve-icon {
  background: white !important;
}
.serve-icon svg {
  width: 24px;
  height: 24px;
}
.serve-icon img {
  width: 50px;
  height: 30px;
  filter: brightness(0);
}

.serve-card h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}

.serve-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   COMMUNITY BANNER
═══════════════════════════════════════════════════════ */
.community-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.community-img {
  position: relative;
  overflow: hidden;
  min-height: 550px;
}

.community-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.community-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 26, 58, 0.7),
    rgba(0, 36, 87, 0.4)
  );
}

.community-text {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  padding: 40px;
}

.community-text-inner {
  /* max-width: 460px; */
}

.community-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500;
  color: white;
  margin-bottom: 20px;
  line-height: 1.5;
}

.community-text p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════ */
.process-section {
  padding: 120px 0;
  background: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green-lt),
    var(--navy-mid),
    var(--green-lt),
    transparent
  );
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(71, 167, 5, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  gap: 2px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); */
}

.process-step:hover .process-num {
  border-color: var(--green-lt);
  /* box-shadow:
    0 0 0 4px rgba(71, 167, 5, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.06); */
}

.process-num-big {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 500;
  color: rgba(71, 167, 5, 0.4);
  line-height: 1.5;
}

.process-step h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-section {
  padding: 80px 0;
  background: #f4f7f9;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--grad-subtle);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 36, 87, 0.14);
}

/* soft green bloom in the corner so the panel is not a flat block */
.contact-left::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -190px;
  bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(71, 167, 5, 0.26),
    rgba(71, 167, 5, 0) 70%
  );
  pointer-events: none;
}

.contact-left > * {
  position: relative;
  z-index: 1;
}

.contact-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

.contact-left p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.contact-info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--smoke);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.info-card {
  flex: 1 1 calc(50% - 8px);
  min-width: 240px;
}
.info-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 36, 87, 0.06);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
}

.info-card-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-family: var(--ff-mono);
}

.info-card-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.contact-left .info-card {
  flex: 1 1 100%;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-left .info-card:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.contact-left .info-card-label {
  color: rgba(255, 255, 255, 0.5);
}

.contact-left .info-card-val,
.contact-left .info-card-val a {
  color: #fff;
}

.form-card {
  background: white;
  border-radius: 24px;
  padding: 36px 40px;
  border: 1px solid var(--smoke);
  box-shadow: 0 24px 48px rgba(0, 36, 87, 0.06);
  /* the card stretches to the contact panel's height; keep the form centered in it */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--ff-mono);
  margin: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: #f4f7f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-lt);
  box-shadow: 0 0 0 3px rgba(71, 167, 5, 0.1);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 92px;
}

/* ─── CUSTOM SELECT ───
   The native <select> stays in the DOM (hidden) so FormData still reads it and
   the form works without JS; this styles the button + listbox layered over it. */
.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.select-btn {
  width: 100%;
  padding: 12px 44px 12px 16px;
  background: #f4f7f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.select-btn.has-value {
  color: var(--charcoal);
}

.select-btn:focus-visible,
.select-wrap.open .select-btn {
  border-color: var(--green-lt);
  box-shadow: 0 0 0 3px rgba(71, 167, 5, 0.1);
  background: white;
}

.select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition:
    transform 0.25s var(--ease),
    border-color 0.2s;
  pointer-events: none;
}

.select-wrap.open .select-arrow {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--green-lt);
}

.select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: white;
  border: 1px solid var(--smoke);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 36, 87, 0.16);
  max-height: 264px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}

.select-wrap.open .select-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-list li {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.select-list li.active {
  background: rgba(71, 167, 5, 0.1);
  color: var(--green);
}

.select-list li[aria-selected="true"] {
  font-weight: 500;
  color: var(--green);
}

.form-submit {
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--green-lt), var(--green));
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition:
    filter 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  box-shadow: 0 6px 16px rgba(0, 36, 87, 0.12);
}

.form-submit:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(71, 167, 5, 0.3);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
}

.footer-bottom {
  padding: 24px;
  /* display: flex;
  justify-content: space-between;
  flex-wrap: wrap; */
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  padding: 0;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  height: 440px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.title-section {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Title case on headings — done in CSS so the underlying copy stays
   byte-identical to index.html */
.hero h1,
.title-section,
.section-header h2,
.contact-left h2,
.service-card-body h3,
.serve-card h3,
.scard h4 {
  text-transform: capitalize;
}

/* Even out ragged heading lines and avoid single-word last lines in copy */
.title-section,
.section-header h2,
.contact-left h2,
.service-card-body h3 {
  text-wrap: balance;
}

.hero-lead,
.section-intro p,
.section-header p,
.scard p,
.service-card-body p,
.serve-card p,
.contact-left p {
  text-wrap: pretty;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.15s;
}
.reveal-delay-2 {
  transition-delay: 0.3s;
}
.reveal-delay-3 {
  transition-delay: 0.45s;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.success {
  background: var(--green-lt);
}
.toast.error {
  background: #8b0000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.icon-serve {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 1200px
═══════════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .container {
    padding: 0 32px;
  }
  /* below Bootstrap's xl the solutions are a 2×2 grid: use wider images */
  .service-card-img {
    aspect-ratio: 2/1;
  }
  .service-card-body h3 {
    min-height: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — below 992px (Bootstrap lg)
═══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  /* photo stacks under the cards, so it needs its own proportions */
  .about-image-wrap {
    height: auto;
    aspect-ratio: 2/1;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  /* three pillars stay side by side on tablets; they only stack at 768px */
  .counter-item {
    padding: 8px 14px;
  }

  nav {
    gap: 20px;
  }

  /* nav a:not(.btn-nav):nth-child(-n + 3) {
    display: none;
  } */
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — below 992px (legacy community banner)
═══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .community-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .community-img {
    min-height: 240px;
    position: relative;
  }

  .community-text {
    padding: 40px 32px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — below 768px (Bootstrap md)
═══════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .container {
    padding: 0 20px;
  }

  /* Header — smaller mark, show hamburger */
  .header-logo-mark img {
    --logo-w: 124px;
  }
  .nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 26, 58, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.35s var(--ease);
    z-index: 99;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  nav.open {
    right: 0;
  }

  nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 1 !important;
    display: block !important;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero — .container.hero-inner outranks the later .container padding rule */
  .hero {
    --header-h: 75px;
  }
  .container.hero-inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* About */
  .about-section {
    padding: 64px 0;
  }
  .about-image-wrap {
    aspect-ratio: 16/9;
  }
  .section-intro,
  .section-header {
    margin-bottom: 32px;
  }
  .section-intro p {
    font-size: 15px;
  }

  /* Counter */
  .counter-strip {
    padding: 36px 0;
  }
  .counter-grid {
    max-width: 440px;
    margin: 0 auto;
  }
  /* stacked pillars become compact rows: icon left, word + line beside it */
  .counter-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .counter-item:last-child {
    border-bottom: none;
  }
  .counter-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .counter-number,
  .counter-label {
    grid-column: 2;
    max-width: none;
  }
  .counter-label {
    text-wrap: pretty;
  }

  /* Services */
  .services-section {
    padding: 64px 0;
  }
  /* Manifesto */
  .manifesto {
    padding: 56px 0;
  }

  /* Serve */
  .serve-section {
    padding: 64px 0;
  }

  /* Process */
  .process-section {
    padding: 80px 0;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Contact */
  .contact-section {
    padding: 64px 0;
  }
  .form-card {
    padding: 28px 24px;
  }
  /* 16px stops iOS Safari from zooming the page when a field is focused */
  .form-group input,
  .form-group textarea,
  .select-btn {
    font-size: 16px;
  }

  /* Community */
  .community-text {
    padding: 32px 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 480px (phones)
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .contact-left {
    padding: 30px 22px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-eyebrow {
    gap: 12px;
  }
  .hero-eyebrow-line {
    width: 28px;
  }
  .hero-eyebrow-text {
    letter-spacing: 2.5px;
  }

  /* icon sits beside the title instead of above it */
  .serve-card {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 12px;
    align-items: center;
  }
  .serve-icon {
    margin-bottom: 0;
  }
  .serve-card p {
    grid-column: 1 / -1;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-card-body {
    padding: 18px 20px 20px;
  }

  .section-header h2 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .service-cards-grid {
    gap: 12px;
  }
  .scard {
    padding: 18px 20px;
  }

  .form-card {
    padding: 26px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .manifesto {
    padding: 48px 0;
  }

  .about-section {
    padding: 52px 0;
  }
  .services-section {
    padding: 52px 0;
  }
  .serve-section {
    padding: 52px 0;
  }
  .process-section {
    padding: 52px 0;
  }
  .contact-section {
    padding: 52px 0;
  }
  .section-intro,
  .section-header {
    margin-bottom: 28px;
  }
}

/* ═══════════════════════════════════════════════════════
   TOUCH / HOVER FALLBACKS
═══════════════════════════════════════════════════════ */
/* @media (hover: none) {
  .scard:hover {
    transform: none;
  }
  .service-card:hover {
    transform: none !important;
  }
  .serve-card:hover {
    transform: none;
  }
} */

/* ═══════════════════════════════════════════════════════
   PRINT / REDUCED MOTION
═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
