:root {
  --navy: #00254f;
  --navy-deep: #001a38;
  --teal: #00a5b2;
  --teal-mid: #006b8e;
  --gold: #c89550;
  --gold-soft: #e8d4b0;
  --ink: #1a3348;
  --muted: #5a7384;
  --fog: #eef5f7;
  --white: #ffffff;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 165, 178, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(0, 37, 79, 0.06), transparent 55%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 35%, #f4f8fa 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--teal-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--teal-mid);
}

.nav__cta {
  border: 1px solid transparent;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(200, 149, 80, 0.35);
}

.nav__cta:hover {
  background: #d4a85e;
  color: var(--navy) !important;
}

.site-header--on-hero .nav a {
  color: rgba(255, 255, 255, 0.92);
}

.site-header--on-hero .nav a:hover {
  color: var(--gold-soft);
}

.site-header--on-hero .nav__cta {
  border-color: transparent;
  color: var(--navy) !important;
}

.site-header--on-hero .nav__cta:hover {
  color: var(--navy) !important;
}

.site-header--on-hero .brand img {
  filter: brightness(0) invert(1);
}

.site-header--on-hero .nav-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 26, 56, 0.35);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(0, 37, 79, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(105deg, rgba(0, 26, 56, 0.94) 0%, rgba(0, 37, 79, 0.78) 38%, rgba(0, 37, 79, 0.35) 58%, rgba(0, 26, 56, 0.08) 72%, transparent 85%),
    url("../img/hero.jpg");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, cover;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: clamp(90px, 16vw, 180px);
  z-index: -1;
  animation: wave-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__content {
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(5.5rem, 12vh, 8rem);
  max-width: 36rem;
}

.hero__logo {
  width: min(280px, 70vw);
  height: auto;
  margin-bottom: 1.6rem;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s ease forwards 0.1s;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s ease forwards 0.25s;
}

.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  color: var(--gold-soft);
}

.hero__lead {
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s ease forwards 0.4s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.8rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s ease forwards 0.55s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: #12b7c4;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-inline: 0;
  border: 0;
}

.btn--ghost:hover {
  color: var(--gold-soft);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(0, 37, 79, 0.28);
}

.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--solid {
  background: var(--navy);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--teal-mid);
  color: var(--white);
}

.btn--accent {
  background: var(--gold);
  color: var(--navy);
}

.btn--accent:hover {
  background: #d4a85e;
  color: var(--navy);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section--fog {
  background:
    linear-gradient(180deg, rgba(238, 245, 247, 0.9), rgba(255, 255, 255, 0.95));
}

.section--navy {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(0, 165, 178, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #00365f);
  color: var(--white);
}

.section--navy .muted {
  color: rgba(202, 217, 226, 0.92);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-mid);
}

.section--navy .eyebrow {
  color: var(--teal);
}

.section h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 550;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 16ch;
}

.section__intro {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.services {
  display: grid;
  gap: 2rem;
  margin-top: 2.8rem;
  counter-reset: service;
}

@media (min-width: 800px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
  }
}

.service {
  position: relative;
  padding-top: 0.2rem;
}

.service::before {
  counter-increment: service;
  content: counter(service, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service h3 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.service p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 3.5rem;
  }
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
}

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

.prose .lead {
  font-size: 1.4rem;
  line-height: 1.45;
}

.contact-card {
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 26, 56, 0.18);
}

.contact-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 1.2rem;
  background: #e8f5f6;
}

.contact-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.contact-card__role {
  margin: 0.4rem 0 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

.contact-row {
  border-top: 1px solid #dae5ea;
  padding: 0.9rem 0;
  display: grid;
  gap: 0.15rem;
}

.contact-row span {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-row a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--teal-mid);
}

.contact-note {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.wave-break {
  display: block;
  width: 100%;
  height: clamp(80px, 14vw, 150px);
  margin: 0;
  background: var(--white);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(200, 149, 80, 0.45);
  padding: 0;
}

.site-footer__content {
  padding: 2rem 0 1.4rem;
}

.site-footer__values {
  margin: 0 0 1.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.site-footer__values span {
  color: var(--gold);
  margin: 0 0.55rem;
  font-weight: 500;
}

.site-footer__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__legal a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

/* Form page */
.page-hero {
  padding: 7.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(0, 37, 79, 0.04), transparent 70%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 18ch;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.form-panel {
  background: var(--white);
  border: 1px solid rgba(0, 37, 79, 0.08);
  border-radius: 8px;
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 4rem;
  box-shadow: 0 10px 40px rgba(0, 37, 79, 0.06);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9d7df;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fbfefe;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 165, 178, 0.35);
  border-color: var(--teal);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.alert--ok {
  background: #e7f7f4;
  color: #0d5c52;
  border: 1px solid #b7e4db;
}

.alert--err {
  background: #fff1f0;
  color: #8a2a22;
  border: 1px solid #f0c4bf;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.4rem;
}

.is-hidden {
  display: none !important;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1.5%);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: var(--space);
    left: var(--space);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 37, 79, 0.1);
    border-radius: 8px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 16px 40px rgba(0, 26, 56, 0.12);
  }

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

  .site-header--on-hero .nav.is-open a {
    color: var(--navy);
  }

  .site-header--on-hero .nav.is-open a:hover {
    color: var(--teal-mid);
  }

  .site-header--on-hero .nav.is-open .nav__cta {
    border-color: transparent;
    background: var(--gold);
    color: var(--navy) !important;
  }

  .site-header__inner {
    position: relative;
  }

  .hero__logo {
    filter: none;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__logo,
  .hero h1,
  .hero__lead,
  .hero__actions,
  .hero__wave {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
