/* ===========================================================
   Athenais Navigation — Shared Stylesheet (Canvas background variant)
   Design language: ship's registry / vessel particulars sheet.
   Palette: deep marine ink + muted brass, Canvas primary surface,
   Sea Mist used as the secondary/accent surface.
   =========================================================== */

:root {
  --ink: #232C63;        /* Indigo Navy - primary */
  --marine: #3E5C8A;     /* Harbor Blue - secondary */
  --steel: #566178;      /* muted body text, derived from navy/blue */
  --steel-pale: #C9D2E2; /* hairlines / muted text on dark bg */
  --foam: #F7F5EE;       /* Canvas - off-white / paper */
  --foam-dim: #DDE3EA;   /* Sea Mist - surface */
  --brass: #B4884E;      /* Brass - accent */
  --brass-dim: #CBA36E;  /* Brass, lightened for dark backgrounds */
  --white: #FFFFFF;
  --line: rgba(35, 44, 99, 0.14);
  --line-dark: rgba(247, 245, 238, 0.18);

  --font-display: "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header / Manifest bar ---------- */
.site-header {
  background: var(--ink);
  color: var(--foam);
  border-bottom: 1px solid var(--brass);
}

.manifest-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--steel-pale);
  border-bottom: 1px solid var(--line-dark);
}
.manifest-line .wrap {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.manifest-line span strong { color: var(--brass-dim); font-weight: 500; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--foam);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img.brand-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-pale);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--foam);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 12px;
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-toggle { display: block; }
  .nav-row { flex-wrap: wrap; }
  .manifest-line .wrap { font-size: 0.62rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--foam);
  color: var(--ink);
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  color: var(--ink);
  line-height: 1.12;
  max-width: 16ch;
}
.hero .lede {
  color: var(--steel);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 18px 0 30px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--brass);
  display: inline-block;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-dim); }
.btn-ghost { color: var(--foam); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-dim); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--line); }
.btn-ghost.on-light:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Particulars card (signature element) ---------- */
.particulars {
  background: rgba(242,245,244,0.04);
  border: 1px solid var(--line-dark);
}
.particulars .p-head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dim);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}
.particulars dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
}
.particulars dt, .particulars dd {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-dark);
  margin: 0;
}
.particulars dt { color: var(--steel-pale); white-space: nowrap; }
.particulars dd { color: var(--white); text-align: right; }
.particulars dl > dt:last-of-type,
.particulars dl > dd:last-of-type { border-bottom: none; }

/* Light variant, used on foam background */
.particulars.light {
  background: var(--white);
  border: 1px solid var(--line);
}
.particulars.light .p-head {
  color: var(--brass);
  border-bottom-color: var(--line);
}
.particulars.light dt, .particulars.light dd {
  border-bottom-color: var(--line);
}
.particulars.light dt { color: var(--steel); }
.particulars.light dd { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 60px 0; }
section.on-marine { background: var(--marine); color: var(--foam); }
section.on-ink { background: var(--ink); color: var(--foam); }

.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { color: var(--steel); margin: 10px 0 0; }
section.on-marine .section-head p,
section.on-ink .section-head p { color: var(--steel-pale); }

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Grids / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px;
}
.card .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.card h3 { font-size: 1.15rem; margin-top: 10px; }
.card p { color: var(--steel); font-size: 0.95rem; margin: 8px 0 0; }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat-row div { padding: 26px 20px; border-left: 1px solid var(--line-dark); }
.stat-row div:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--brass-dim);
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--steel-pale);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row div:nth-child(3) { border-left: none; }
}

/* ---------- Fleet particulars table ---------- */
.vessel-card {
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 22px;
}
.vessel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}
.vessel-card-head h3 { margin: 0; font-size: 1.2rem; }
.vessel-card-head .type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.vessel-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.vessel-specs div {
  padding: 16px 24px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.vessel-specs div:nth-child(4n+1) { border-left: none; }
.vessel-specs .spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 4px;
}
.vessel-specs .spec-val {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--ink);
}
@media (max-width: 720px) {
  .vessel-specs { grid-template-columns: repeat(2, 1fr); }
  .vessel-specs div:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .vessel-specs div:nth-child(2n+1) { border-left: none; }
}

/* ---------- Timeline (About) ---------- */
.timeline { border-left: 1px solid var(--line); margin-left: 6px; }
.timeline .t-item { position: relative; padding: 0 0 34px 30px; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 4px;
  width: 9px; height: 9px;
  background: var(--brass);
}
.timeline .t-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}
.timeline h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--steel); font-size: 0.94rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }

.field { margin-bottom: 0; }

.form-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 16px;
}

/* ---------- Contact info blocks ---------- */
.contact-block { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-block:first-child { border-top: none; padding-top: 0; }
.contact-block .eyebrow { display: block; margin-bottom: 6px; }
.contact-block a { color: var(--marine); }
.contact-block a:hover { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--steel-pale);
  padding: 30px 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 4px;
}
.footer-top p { margin: 0; color: var(--steel-pale); font-size: 0.9rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--steel-pale); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Placeholder blocks (logo / photo, pending real assets) ---------- */
.placeholder-box {
  border: 1px dashed var(--line-dark);
  background: rgba(242,245,244,0.03);
  color: var(--steel-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.placeholder-box.logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  border-radius: 50%;
  font-size: 0.62rem;
  padding: 6px;
}
.placeholder-box.hero-photo {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.placeholder-box.light {
  border-color: var(--line);
  color: var(--steel);
  background: var(--foam-dim);
}

/* ---------- Coming soon ---------- */
.coming-soon {
  text-align: center;
  padding: 90px 20px;
  background: var(--foam);
}
.coming-soon .eyebrow { display: block; margin-bottom: 14px; }
.coming-soon h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.coming-soon p { color: var(--steel); max-width: 46ch; margin: 0 auto; }

/* ---------- Page hero (interior pages, shorter) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--foam);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--brass);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 22ch; }
.page-hero p { color: var(--steel-pale); max-width: 56ch; margin-top: 12px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--steel-pale);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.breadcrumb span { color: var(--brass-dim); }
