:root {
  --beacon-blue: #00339a;
  --beacon-blue-dark: #002266;
  --beacon-blue-light: #e8f0fc;
  --beacon-gold: #c7a23a;
  --beacon-gold-hover: #d4b04a;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #dde3eb;
  --surface: #f6f8fb;
  --white: #ffffff;
  --max-width: 1100px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 39, 102, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--beacon-blue);
}

a:hover {
  color: var(--beacon-blue-dark);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  width: clamp(100px, 22vw, 132px);
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--beacon-blue);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-bar {
  padding-block: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.contact-bar a:hover {
  text-decoration: underline;
}

.contact-bar .sep {
  margin-inline: 0.35rem;
  opacity: 0.5;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--beacon-blue);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--beacon-blue);
  border-bottom-color: var(--beacon-blue);
}

/* Main layout */
.page-banner {
  width: 100%;
  max-height: min(220px, 32vw);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--beacon-blue);
  margin: 0 0 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

main {
  padding-block: 2rem 3rem;
}

.main-home {
  padding-top: 0;
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.sidebar figure {
  margin: 0 0 1rem;
}

.sidebar img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar figcaption,
.aside-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
}

.vision-motto {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.content h2,
.content h3 {
  color: var(--text);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-muted);
}

.content h2:first-child {
  margin-top: 0;
}

.content-narrow {
  max-width: 42rem;
}

.content ul.services-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.content ul.services-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.content ul.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--beacon-blue);
  border-radius: 50%;
}

/* Home hero — shipping photo background + overlay content */
.hero-home {
  position: relative;
  margin-bottom: 0;
  min-height: clamp(420px, 72vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-home-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 20, 60, 0.92) 0%,
    rgba(0, 35, 100, 0.78) 42%,
    rgba(0, 51, 154, 0.45) 68%,
    rgba(0, 30, 80, 0.35) 100%
  );
}

.hero-home-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 8vw, 4rem);
  max-width: 36rem;
}

.hero-home-copy {
  text-align: left;
}

.hero-home-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-home-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--white);
}

.hero-home-aps {
  font-weight: 600;
  color: var(--beacon-gold);
}

.hero-home-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
}

.hero-home-cta {
  margin-top: 1.5rem;
}

.hero-home .btn-primary {
  background: var(--white);
  color: var(--beacon-blue-dark);
  border: 2px solid var(--white);
}

.hero-home .btn-primary:hover {
  background: var(--beacon-blue-light);
  color: var(--beacon-blue-dark);
  border-color: var(--beacon-blue-light);
}

.hero-home .btn-gold {
  background: var(--beacon-gold);
  color: #1a1508;
  border: 2px solid var(--beacon-gold);
  font-weight: 700;
}

.hero-home .btn-gold:hover {
  background: var(--beacon-gold-hover);
  border-color: var(--beacon-gold-hover);
  color: #1a1508;
}

.home-contact-line {
  text-align: center;
}

.home-contact-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--beacon-blue);
  text-transform: uppercase;
}

.home-contact-details {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.home-contact-details a:hover {
  text-decoration: underline;
}

.home-below {
  padding-top: 0.5rem;
}

.home-below-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.home-below-text {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.home-ship-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 320px;
}

.home-ship-thumb {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-ship-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--beacon-blue-dark);
  color: var(--white);
}

.btn-outline {
  border-color: var(--beacon-blue);
  color: var(--beacon-blue);
}

.btn-outline:hover {
  background: var(--beacon-blue-light);
}

.logo-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--border);
}

.logo-strip img {
  max-width: 100%;
  height: auto;
}

.decorative-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

.motto-img {
  max-width: 373px;
  margin: 1rem 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 39, 102, 0.15);
}

.gallery-grid button:focus-visible {
  outline: 2px solid var(--beacon-blue);
  outline-offset: 2px;
}

.gallery-hint {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 20, 50, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(95vw, 900px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: var(--white);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
}

/* Links page */
.link-section {
  margin-bottom: 2rem;
}

.link-section h2 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--beacon-blue-light);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.link-list .org-name {
  font-weight: 600;
  color: var(--text);
  min-width: 12rem;
}

.link-list a {
  word-break: break-all;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.site-footer strong {
  color: var(--beacon-blue);
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .contact-bar {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .hero-home-inner {
    max-width: none;
    text-align: center;
  }

  .hero-home-copy {
    text-align: center;
  }

  .hero-home-lead {
    margin-inline: auto;
  }

  .hero-home-cta {
    justify-content: center;
  }

  .home-ship-preview {
    max-width: none;
    margin-inline: auto;
  }

  .home-below-grid {
    grid-template-columns: 1fr;
  }

  .home-below-ship {
    max-width: 180px;
    margin-inline: auto;
  }

  .layout-two-col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}
