:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-alt: #e8efef;
  --text: #1b2a34;
  --muted: #5f7280;
  --primary: #16384d;
  --primary-2: #0f5b73;
  --accent: #2e8c88;
  --sand: #d8c3a5;
  --border: #d7e0e3;
  --shadow: 0 18px 45px rgba(16, 39, 52, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 56, 77, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  flex: 0 1 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #5dc1b6);
  color: #fff;
  flex-shrink: 0;
  padding: 0.55rem;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

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

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  padding: 0.2rem 0;
}

.hero,
.page-hero {
  background:
    linear-gradient(135deg, rgba(22, 56, 77, 0.96), rgba(15, 91, 115, 0.88)),
    radial-gradient(circle at top right, rgba(216, 195, 165, 0.18), transparent 40%);
  color: #fff;
}

.hero {
  padding: 4.75rem 0 3.5rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sand);
  margin-bottom: 0.75rem;
}

.hero-card,
.card,
.logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-logo {
  width: min(100%, 320px);
  max-height: 220px;
  object-fit: contain;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(16, 39, 52, 0.12);
  border-color: #bdd0d6;
}

.card-link:focus-visible {
  outline: 3px solid rgba(46, 140, 136, 0.35);
  outline-offset: 3px;
}

.card-link h3,
.card-link p,
.card-link .meta {
  color: inherit;
}

.gallery {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section,
.section-alt,
.page-content {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: 2rem;
  line-height: 1.15;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.35rem;
}

.card h3 {
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.logo-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 120px;
  justify-content: center;
}

.logo-card span {
  color: var(--muted);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  text-align: center;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.button-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.prose h2,
.prose h3 {
  color: var(--primary);
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 1.2rem;
}

.site-footer {
  background: #112734;
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  color: #c7edf0;
}

@media (max-width: 1024px) {
  .container {
    width: min(1120px, calc(100% - 2.25rem));
  }

  .nav-wrap {
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-card {
    min-height: 220px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-mark {
    width: 3rem;
    height: 3rem;
    padding: 0.45rem;
  }

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

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

  .main-nav {
    justify-content: flex-start;
    gap: 0.45rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 3.25rem 0 2.4rem;
  }

  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-card,
  .card,
  .logo-card {
    border-radius: 1rem;
  }

  .hero-card,
  .card {
    padding: 1.05rem;
  }

  .hero-card {
    min-height: 180px;
  }

  .hero-logo {
    width: min(100%, 250px);
    max-height: 160px;
  }

  .section,
  .section-alt,
  .page-content {
    padding: 3rem 0;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .card-grid.three,
  .logo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .main-nav {
    gap: 0.35rem 0.65rem;
  }

  .main-nav a {
    font-size: 0.92rem;
  }

  .hero {
    padding: 2.8rem 0 2rem;
  }

  .page-hero {
    padding: 2.1rem 0 1.1rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .section,
  .section-alt,
  .page-content {
    padding: 2.4rem 0;
  }
}

.error-wrap {
  text-align: center;
}

.error-wrap .lead {
  margin-left: auto;
  margin-right: auto;
}

.error-illustration {
  margin: 2rem auto 0;
  max-width: 620px;
}

.error-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.error-actions {
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .error-illustration {
    margin-top: 1.5rem;
    max-width: 440px;
  }
}
