/* =========================================================
   Anji Marine — anjimarine.com
   Static stylesheet (no frameworks, no external requests)
   ========================================================= */

:root {
  --navy-950: #062030;
  --navy-900: #0a2a43;
  --navy-800: #0e3553;
  --navy-700: #124362;
  --teal: #16a5b8;
  --teal-dark: #0f8c9e;
  --teal-soft: #e2f4f7;
  --ink: #1d3343;
  --muted: #5c7280;
  --bg-soft: #f3f7fa;
  --line: #dde8ee;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 67, 0.06);
  --shadow-md: 0 10px 24px -14px rgba(10, 42, 67, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  line-height: 1.22;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

ul li {
  margin-bottom: 0.4em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(22, 165, 184, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--navy-950);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: #7fdbe6;
  flex: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #c3d7e2;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--white);
  background: rgba(22, 165, 184, 0.22);
  box-shadow: inset 0 0 0 1px rgba(127, 219, 230, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle .bar {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: #04232b;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #2fbfd0;
  color: #04232b;
  text-decoration: none;
}

/* ---------- Home hero ---------- */

.hero {
  background: linear-gradient(168deg, var(--navy-950) 0%, var(--navy-900) 46%,
    var(--navy-800) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 0 88px;
}

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

.hero-emblem {
  margin: 0 auto 18px;
  width: 52px;
  height: 52px;
  color: #7fdbe6;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 6.5vw, 3.7rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.08;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: #cfe6f0;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-lead {
  margin: 0 auto 30px;
  max-width: 700px;
  font-size: 1.02rem;
  color: #a9c4d2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(127, 219, 230, 0.45);
  background: rgba(127, 219, 230, 0.12);
  color: #9fe3ec;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.accent-bar {
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
  margin: 0 auto 18px;
}

.accent-bar.left {
  margin: 0 0 18px;
}

/* ---------- Feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c6dae4;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
}

.feature-card h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Audience line ---------- */

.audience-line {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Page head (About / legal pages) ---------- */

.page-head {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-head-inner {
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  margin-bottom: 14px;
}

/* ---------- Prose (About) ---------- */

.section-prose {
  padding: 46px 0 40px;
}

.prose {
  max-width: 780px;
}

.prose p {
  font-size: 1.02rem;
}

.prose .lead-p {
  font-size: 1.08rem;
  color: var(--navy-800);
}

/* ---------- Info cards (About) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.info-card dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.info-card dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.info-card dd a {
  font-weight: 700;
}

/* ---------- Legal pages ---------- */

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body > p:first-of-type {
  font-size: 1.03rem;
  color: var(--navy-800);
}

.legal-body h2 {
  font-size: 1.22rem;
  margin: 38px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-body h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 0.985rem;
  color: #31495b;
}

.last-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #93adbd;
  padding: 44px 0 40px;
  margin-top: 30px;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-copy {
  color: #7d99a9;
}

.footer-meta {
  color: #a9c2d0;
}

.footer-meta a {
  color: #a9c2d0;
  font-weight: 600;
}

.footer-meta a:hover {
  color: var(--white);
}

.footer-nav {
  margin-top: 14px;
  font-size: 14px;
}

.footer-nav a {
  color: #cfe0e8;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav .sep {
  color: #5c7686;
  padding: 0 4px;
}

/* ---------- Responsive ---------- */

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

  .site-nav {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.25s ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 14px;
  }

  .site-nav a {
    display: block;
    padding: 11px 14px;
    font-size: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header.nav-open .site-nav {
    max-height: 340px;
  }

  .hero {
    padding: 56px 0 66px;
  }

  .section {
    padding: 54px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
