/* ==================== COLOR TOKENS — "Ocean depth" ====================
   Change the site's colors here. Everything below uses these variables.
   ====================================================================== */

:root {
  /* Backgrounds, darkest to lightest */
  --bg:          #0047B8;  /* page background (brand blue, deepened) */
  --bg-alt:      #003C9E;  /* alternating sections */
  --surface:     rgba(255, 255, 255, 0.08);  /* cards, boxes */
  --surface-hi:  rgba(255, 255, 255, 0.14);  /* card hover */

  /* Text */
  --text:        #FFFFFF;  /* headings + main text */
  --text-muted:  #D6E5FF;  /* paragraphs, ledes */
  --text-faint:  #A9C7F5;  /* small labels */

  /* Brand blue and buttons */
  --blue:        #0057D9;  /* logo blue */
  --btn:         #FFFFFF;  /* primary buttons */
  --btn-text:    #0047B8;
  --btn-hover:   #E8F1FF;
  --accent:      #B3D2FF;  /* headings, links, numbers on blue */

  /* Lines */
  --border:      rgba(255, 255, 255, 0.16);
  --border-hi:   rgba(255, 255, 255, 0.55);
}

/* ==================== RESET & FOUNDATION ==================== */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: 3.2rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.4rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ==================== WATER ==================== */

.water {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 35% at 80% 0%, rgba(170, 225, 255, 0.5), transparent 70%),
    linear-gradient(180deg, #2A7BF0 0%, #0057D9 30%, #0047B8 60%, #002E7A 100%);
  will-change: transform;
}

.depth {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #02050C;
  opacity: calc(var(--depth, 0) * 0.85);
}

h1, h2, h3, p, a, .eyebrow, .hero-eyebrow, .step-number {
  transition: color 0.6s ease;
}

.water::before,
.water::after {
  content: "";
  position: absolute;
  inset: -20%;
}

.water::before {
  background:
    repeating-linear-gradient(104deg, transparent 0 80px, rgba(255, 255, 255, 0.08) 110px, transparent 170px),
    repeating-linear-gradient(96deg, transparent 0 140px, rgba(255, 255, 255, 0.05) 185px, transparent 260px);
  filter: blur(8px);
  animation: sway 18s ease-in-out infinite alternate;
}

.water::after {
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.22) 0, transparent 46px),
    radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.18) 0, transparent 60px),
    radial-gradient(circle at 84% 52%, rgba(255, 255, 255, 0.16) 0, transparent 52px),
    radial-gradient(circle at 36% 74%, rgba(255, 255, 255, 0.14) 0, transparent 70px);
  background-size: 420px 420px;
  filter: blur(3px);
  mix-blend-mode: screen;
  animation: shimmer 24s linear infinite;
}

@keyframes sway {
  from { transform: translateX(-3%) rotate(0deg); }
  to   { transform: translateX(3%) rotate(1deg); }
}

@keyframes shimmer {
  from { transform: translate(0, 0); }
  to   { transform: translate(-420px, -420px); }
}

/* ==================== LAYOUT ==================== */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.section:nth-child(even) {
  background: rgba(0, 30, 90, 0.18);
}

.section-heading {
  margin-bottom: 4.5rem;
  max-width: 800px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.75;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 18, 40, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: relative;
}

.brand { display: flex; align-items: center; }

.brand-mark {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links .nav-cta {
  background: var(--btn);
  color: var(--btn-text);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
}

.nav-links a.is-active:not(.nav-cta) {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 2px;
}

/* ==================== REVEAL ==================== */

.reveal { opacity: 0; }

.reveal.visible {
  opacity: 1;
  animation: rise 0.7s ease backwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ==================== HERO ==================== */

.hero {
  padding: 8rem 0 6rem;
  background: #0A1A3F;
}

.hero-copy { max-width: 750px; }

.hero h1 { color: #FFFFFF; }
.hero-lede { color: #D6E5FF; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.hero h1 {
  margin-bottom: 1.8rem;
  font-size: 3.4rem;
  line-height: 1.12;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: 0 6px 20px rgba(0, 20, 80, 0.3);
}

.btn-primary:hover {
  background: var(--btn-hover);
  box-shadow: 0 8px 26px rgba(0, 20, 80, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.12);
}

/* ==================== SERVICES ==================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ==================== HOW WE WORK ==================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
}

.step-number {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border-hi);
  background: rgba(91, 147, 255, 0.08);
}

.step h3 { margin-top: 0.4rem; }

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==================== ABOUT ==================== */

.about-grid { max-width: 720px; }

.about-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.about-meta div {
  display: flex;
  flex-direction: column;
}

.about-meta span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.about-meta b {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (min-width: 481px) {
  .about-meta div:last-child { grid-column: span 2; }
}

/* ==================== STATEMENT ==================== */

.section.statement {
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 255, 255, 0.16), transparent 70%);
}

.statement-inner {
  max-width: 720px;
  margin: 0 auto;
}

.statement h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.statement p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==================== CONTACT ==================== */

.contact-grid { max-width: 600px; }

.contact-copy .lede { margin-bottom: 2.5rem; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-actions .btn { width: 100%; }

.contact-direct {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  text-decoration: none;
}

.contact-link-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.contact-link-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ==================== FOOTER ==================== */

footer {
  background: #4B5059;
  color: var(--text);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-contact a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  h1, .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .statement h2 { font-size: 1.7rem; }

  .section { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2.5rem; }
  .hero { padding: 4.5rem 0 3.5rem; }

  .nav-wrap { padding: 1rem 1.5rem; }
  .brand-mark { height: 32px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-links a { padding: 0.85rem 0; }
  .nav-links .nav-cta { margin-top: 0.5rem; text-align: center; padding: 0.8rem; }

  .menu-btn { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }

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

  .service-grid,
  .steps { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  h1, .hero h1 { font-size: 1.9rem; }
  h2, .statement h2 { font-size: 1.45rem; }

  .container { padding: 0 1rem; }
  .nav-wrap { padding: 0.9rem 1rem; }
  .section { padding: 3.5rem 0; }

  .service-card { padding: 1.75rem; }
  .about-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal.visible { animation: none; }
  .water::before,
  .water::after { animation: none; }
}
