:root {
  --brand-blue: #0d3b66; /* deep nautical blue */
  --brand-sky: #4da3ff; /* optional accent */
  --brand-ink: #0a2540; /* dark text on white */
  --brand-white: #ffffff;
  --muted: #e6eef6;
  --shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  margin: 0;
  font-family: "Arial", Georgia, serif !important;
  color: var(--brand-ink);
  background: var(--brand-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Arial", Georgia, serif;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--brand-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.site-main {
  display: block;
  min-height: 60vh;
  flex: 1;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* Header */
.site-header {
  background: var(--brand-blue);
  color: var(--brand-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-white);
}
.brand-title {
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand-title strong {
  font-weight: 800;
}

/* Nav */
.nav-toggle {
  background: transparent;
  border: 0;
  display: grid;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--brand-white);
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.nav a {
  color: var(--brand-white);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

/* Mobile nav (collapsed by default) */
@media (max-width: 800px) {
  .nav {
    position: absolute;
    inset: calc(100% - 1px) 0 auto 0;
    background: var(--brand-blue);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav a {
    display: block;
    padding: 0.9rem 4%;
  }
}

@media (min-width: 801px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero / cards (home) */
.hero {
  padding: clamp(2rem, 4vw, 4rem) 0;
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.08), transparent);
}
.hero .heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.hero .sub {
  max-width: 60ch;
  opacity: 0.9;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 0.25rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-blue);
  color: var(--brand-white);
  border: 0;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.button.outline {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

/* Footer */
.site-footer {
  background: #0a2f54;
  color: var(--brand-white);
  padding-top: 2rem;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  row-gap: 1.5rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer-nav a {
  color: var(--brand-white);
  opacity: 0.9;
}
.footer-nav a:hover {
  opacity: 1;
}
.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Forms (contact) */
.form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}
.label {
  font-weight: 600;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--muted);
  background: #fff;
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: 3px solid rgba(77, 163, 255, 0.35);
  border-color: var(--brand-sky);
}

/* Location / map */
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
}
.map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Utilities */
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* Tables (if needed) */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--muted);
  text-align: left;
}

/* Page-specific helpers */
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.breadcrumbs {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Decorative divider */
.divider {
  height: 2px;
  width: 80px;
  background: var(--brand-sky);
  border-radius: 2px;
  margin: 0.5rem 0 1rem;
}

.bg {
  background-image: url("/img/coverphoto.png");
  background-size: cover; /* scale image to fill area */
  background-position: center; /* center the image */
  background-repeat: no-repeat; /* prevent tiling */
  width: 100%; /* full width */
  height: 40vh;
  min-height: 280px;
  max-height: 550px;
  align-items: center; /* vertically center text */
  justify-content: center; /* horizontally center text */
}
