:root {
  --navy: #12213a;
  --navy-2: #2f5687;
  --sand: #f6f1e7;
  --sand-2: #e8d3a6;
  --gold: #d9b36a;
  --ink: #1d2433;
  --muted: #56607a;
  --card: #ffffff;
  --line: #e4dccb;
  --radius: 14px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 33, 58, 0.96);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand img { border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a { white-space: nowrap; }

.nav a:not(.btn) {
  color: #dfe6f2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: #e6c483; border-color: #e6c483; }

.btn-small { padding: 7px 16px; font-size: 0.9rem; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #e6ecf5;
  padding: 96px 0 130px;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.lead { font-size: 1.2rem; color: #d3dcea; max-width: 620px; }

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

.waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  fill: var(--sand);
}

/* Sections */
.section { padding: 80px 0; }

.section-alt { background: #fff; }

.section-lead { color: var(--muted); max-width: 640px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
}

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

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

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

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.portal-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy);
  color: #d3dcea;
  border-radius: var(--radius);
  padding: 40px;
  max-width: calc(var(--wrap) - 40px);
}

.portal-panel h2 { color: #fff; }

.portal-panel p { margin: 0; max-width: 560px; }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list span { color: var(--muted); font-weight: 500; }

.contact-list a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #aab6cb;
  padding: 28px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; }

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

/* Simple centred page (portal placeholder, 404) */
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}

.simple-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 520px;
  text-align: center;
}

.simple-card img { border-radius: 14px; margin-bottom: 16px; }

.simple-card p { color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 14px; width: 100%; justify-content: space-between; padding-bottom: 12px; }
  .nav a:not(.btn) { font-size: 0.9rem; }
  .nav .nav-optional { display: none; }
  .hero { padding: 64px 0 100px; }
  .section { padding: 56px 0; }
  .portal-panel { padding: 28px 22px; }
}
