/* layout.css: page frame, header, footer, sections, grids */

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
/* White header with the navy logo (owner decision 2026-11-16) */
.site-header {
  background: var(--white); color: var(--navy); position: relative; z-index: 10;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; padding: 10px 0; }
.logo img { height: 52px; width: auto; }
@media (max-width: 760px) { .logo img { height: 44px; } }

.nav-toggle {
  display: none; background: transparent; color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 12px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { background: var(--bg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { color: var(--navy); background: var(--bg); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

/* Phone menu: hidden only when JS is running (html.js), so the menu still works without JS */
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: 36vh; display: flex; align-items: center;
  padding: 56px 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.70) 55%, rgba(11,37,69,.35) 100%),
    var(--hero-img, none),
    linear-gradient(135deg, var(--ocean), var(--accent));
  background-size: cover; background-position: center;
}
.hero > .container { width: 100%; }
.hero h1 { color: var(--white); max-width: 22ch; }
.hero p { font-size: 1.2rem; max-width: 46ch; color: #E6EDF4; margin-bottom: 0; }
.hero .eyebrow { color: #CFE3F2; }
.hero .btn-row { margin-top: 24px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700;
  color: var(--accent-strong); margin-bottom: 8px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.split { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.narrow { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D5E2; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #E6EDF4; }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
