:root {
  --blue-950: #08233d;
  --blue-900: #0d3458;
  --blue-800: #104a78;
  --blue-700: #12639a;
  --blue-100: #dcebf6;
  --ink: #102033;
  --muted: #65758a;
  --line: #dbe5ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --aqua: #1fa7a8;
  --gold: #c9973a;
  --green: #3b8c6e;
  --shadow: 0 20px 60px rgba(8, 35, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 44%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 229, 238, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue-800), var(--aqua));
  box-shadow: 0 10px 24px rgba(18, 99, 154, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #31445a;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  padding: 12px 0;
}

.nav-links a:hover {
  color: var(--blue-700);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  color: var(--muted);
  background: white;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  min-width: 44px;
  min-height: 34px;
  cursor: pointer;
  font-weight: 800;
}

.lang-btn.active {
  background: var(--blue-800);
  color: white;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-900);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 96px 0 118px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 23, 42, 0.96) 0%, rgba(8, 35, 61, 0.84) 43%, rgba(8, 35, 61, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 77, 125, 0.14), rgba(255, 255, 255, 0)),
    url("images/scott-logan.webp?v=20260729-real-1") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(246, 249, 252, 0.98));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--blue-950);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.hero-subtitle {
  margin: 22px 0 16px;
  color: #8be2e0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 900;
}

.hero-copy > p:last-of-type,
.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero .eyebrow {
  color: #d5af55;
}

.hero h1,
.hero h2 {
  color: white;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-copy > p:last-of-type {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue-800), #1486ba);
  color: white;
  box-shadow: 0 18px 38px rgba(18, 99, 154, 0.32);
}

.btn.primary:hover {
  background: var(--blue-700);
}

.btn.secondary {
  border-color: #cbd9e5;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-900);
}

.hero .btn.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(12px);
}

.btn.secondary:hover,
.filter-reset:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  min-height: 430px;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.32);
  background: var(--blue-100);
  outline: 8px solid rgba(255, 255, 255, 0.08);
  transform: translateY(22px);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(250px, calc(100% - 44px));
  border-radius: 8px;
  padding: 20px;
  color: white;
  background: rgba(8, 35, 61, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(8, 35, 61, 0.28);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  font-size: 3.5rem;
  line-height: 0.95;
}

.intro-band {
  position: relative;
  z-index: 2;
  padding: 34px 0;
  background: linear-gradient(135deg, var(--blue-950), #0f4d7d);
  color: white;
  box-shadow: 0 18px 58px rgba(8, 35, 61, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats-grid div {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 0 4px 22px;
}

.stats-grid span {
  color: var(--gold);
  font-weight: 900;
}

.stats-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 1.08rem;
}

.stats-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.section-heading {
  max-width: 760px;
}

#projects {
  background:
    linear-gradient(180deg, #f6f9fc, #ffffff 62%),
    radial-gradient(circle at 90% 10%, rgba(31, 167, 168, 0.12), transparent 28%);
}

.filters {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(219, 229, 238, 0.92);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(8, 35, 61, 0.08);
  backdrop-filter: blur(14px);
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #3d526a;
  font-size: 0.86rem;
  font-weight: 900;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid #cedae6;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 50px;
  padding: 0 14px;
  outline: none;
}

textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(18, 99, 154, 0.12);
}

.filter-reset {
  border-color: #cedae6;
  background: white;
  color: var(--blue-900);
}

.results-line {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 24px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(194, 211, 225, 0.92);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 40px rgba(8, 35, 61, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-card:hover {
  border-color: rgba(31, 167, 168, 0.38);
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(8, 35, 61, 0.15);
}

.project-card figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-100);
}

.project-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 35, 61, 0.02), rgba(8, 35, 61, 0.42));
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-area {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-900);
  font-size: 0.76rem;
  font-weight: 900;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.project-card h3 {
  margin: 0 0 6px;
  color: var(--blue-950);
  font-size: 1.25rem;
  line-height: 1.15;
}

.project-location {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.project-summary {
  min-height: 72px;
  color: #4f6074;
}

.tag-list,
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  padding: 6px 9px;
  background: linear-gradient(135deg, #eef8fb, #f8fbff);
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.card-actions .btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.match-section {
  background:
    linear-gradient(135deg, rgba(8, 35, 61, 0.96), rgba(15, 77, 125, 0.94)),
    url("images/blossom.webp?v=20260729-real-1") center / cover no-repeat;
}

.match-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.match-copy {
  position: sticky;
  top: 112px;
}

.match-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.match-copy .eyebrow {
  color: #d5af55;
}

.match-copy h2 {
  color: white;
}

.match-note {
  border-left: 4px solid var(--aqua);
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.match-note strong,
.match-note span {
  display: block;
}

.match-note span {
  color: rgba(255, 255, 255, 0.76);
}

.lead-form {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-submit {
  width: 100%;
}

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--blue-950);
  font-weight: 900;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.disclaimer {
  padding: 30px 0;
  background: #edf4f8;
}

.disclaimer p {
  margin: 0;
  color: #53667a;
  font-size: 0.94rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 32, 0.58);
}

.modal-panel {
  position: relative;
  width: min(960px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  margin: 14px auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  border: 0;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  background: rgba(8, 35, 61, 0.86);
  color: white;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.modal-panel img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--blue-100);
}

.modal-content {
  padding: 28px;
}

.modal-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.modal-content p {
  color: var(--muted);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.project-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 4px 0 0;
  color: var(--blue-950);
  font-weight: 900;
}

@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    min-height: 68px;
    padding: 10px 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-grid,
  .match-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 30px;
  }

  .match-copy {
    position: static;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 58px 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .language-switch {
    order: 3;
    margin-left: auto;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.2rem);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 260px;
  }

  .hero-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 14px 16px;
  }

  .hero-panel strong {
    font-size: 2.6rem;
  }

  .stats-grid,
  .project-grid,
  .filters,
  .form-row,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    padding-left: 16px;
  }

  .project-summary {
    min-height: 0;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 18px;
  }

  .modal-panel img {
    aspect-ratio: 16 / 10;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-actions {
    display: grid;
  }
}
