:root {
  --navy: #0b1f3a;
  --navy-2: #143a5e;
  --sea: #1f6f8b;
  --sea-2: #2a9db5;
  --foam: #5cc4d6;
  --sand: #f6f1e7;
  --sand-2: #ebe3d3;
  --ink: #1b2733;
  --muted: #5b6b7a;
  --beacon: #f2b134;
  --rust: #c8412b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 20px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sand); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--sand); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; color: var(--sand); }

/* hero */
.hero {
  position: relative;
  color: var(--sand);
  background: radial-gradient(ellipse at 50% 20%, var(--navy-2), var(--navy) 70%);
  padding: 150px 0 0;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-bottom: 60px; }
.hero .mark { width: 168px; height: 168px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45)); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 28px auto 16px; max-width: 18ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; margin: 0 auto 32px; opacity: 0.9; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--beacon); border: 1px solid rgba(242, 177, 52, 0.5); border-radius: 999px; padding: 6px 14px;
}
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px; text-decoration: none; font-weight: 600;
  background: var(--beacon); color: var(--navy); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 177, 52, 0.3); }
.btn.ghost { background: transparent; color: var(--sand); border: 1px solid rgba(246, 241, 231, 0.5); margin-left: 10px; }
.btn.ghost:hover { color: var(--sand); box-shadow: none; border-color: var(--sand); }

.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i {
  position: absolute; width: 2px; height: 2px; background: var(--sand); border-radius: 50%;
  opacity: 0.6; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }

.waves { position: relative; display: block; width: 100%; height: 120px; }
.waves .layer { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; display: flex; }
.waves .layer svg { width: 50%; height: 100%; display: block; flex: none; }
.waves .l1 { animation: drift 18s linear infinite; opacity: 0.55; }
.waves .l2 { animation: drift 12s linear infinite reverse; opacity: 0.75; }
.waves .l3 { animation: drift 9s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .waves .layer, .stars i { animation: none; }
}

/* sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 40px; }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border-radius: 12px; padding: 28px;
  border: 1px solid var(--sand-2); box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
}
.card svg { width: 40px; height: 40px; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

.contact { background: var(--navy); color: var(--sand); }
.contact h2 { color: var(--sand); }
.contact p { max-width: 60ch; opacity: 0.9; }
.contact a { color: var(--beacon); }
.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.contact-grid div { border-left: 2px solid var(--beacon); padding-left: 18px; }
.contact-grid strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* footer */
.site-footer { background: #071426; color: rgba(246, 241, 231, 0.7); font-size: 0.9rem; padding: 32px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: rgba(246, 241, 231, 0.85); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.site-footer small { display: block; width: 100%; opacity: 0.6; margin-top: 8px; }

/* legal pages */
.page-header { background: var(--navy); color: var(--sand); padding: 130px 0 48px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 8px; }
.page-header p { margin: 0; opacity: 0.8; }
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal p, .legal li { color: #2e3d4b; }
.legal ul { padding-left: 1.2em; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding-top: 110px; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
}
