/* Johncap Group — static site styles. Self-hosted fonts, no external references. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

:root {
  --paper: #f7f6f3;
  --ink: #1d2530;
  --muted: #5f6a78;
  --hairline: #e3e0d9;
  --navy: #14263d;
  --navy-deep: #101c2c;
  --gold: #b9a570;
  --light: #f5f4f0;
  --light-muted: #b9c2cf;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 4.25rem;
  --wrap: 72rem;
  --pad: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 243, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .nav-links a { font-size: 11px; letter-spacing: 0.04em; }
}

/* At 320px the four labels plus gaps plus .wrap padding would exceed the viewport
   and produce horizontal scroll; drop the side padding and tighten the type. */
@media (max-width: 400px) {
  .nav { padding-left: 0.625rem; padding-right: 0.625rem; }
  .nav-links a { font-size: 10px; letter-spacing: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  min-height: 92svh;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 28, 44, 0.55), rgba(16, 28, 44, 0.15));
}

.hero-body {
  position: relative;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 5rem;
  color: var(--light);
}

.hero-inner { max-width: 34rem; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.hero-sub {
  margin: 1.25rem 0 0;
  max-width: 30rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(245, 244, 240, 0.88);
}

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

.section { padding-top: 6rem; padding-bottom: 6rem; }
.section + .section { padding-top: 0; }

.label {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 55fr 45fr;
    gap: 4rem;
  }
  .split-media { order: 2; }
  .split-body { order: 1; }
}

.split-media img { border-radius: 2px; }

.narrow { max-width: 44rem; margin: 0 auto; text-align: left; }

/* ---------- Band ---------- */

.band {
  position: relative;
  height: 46vh;
  min-height: 260px;
  overflow: hidden;
  background: var(--navy-deep);
}

/* <picture> is an inline box by default, so `height: 100%` on the img inside it would
   resolve against an auto height and the image would not cover the band. Give the
   picture a definite box, as .hero-media already has. */
.band picture {
  position: absolute;
  inset: 0;
  display: block;
}

/* ---------- Principles ---------- */

.principles {
  background: var(--navy);
  color: var(--light);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.principles .label { color: var(--light-muted); }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card { border-top: 1px solid var(--gold); padding-top: 1.25rem; }

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--light-muted);
}

/* ---------- Locations ---------- */

.addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 520px) { .addresses { grid-template-columns: repeat(2, 1fr); } }

.addr {
  font-style: normal;
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
}

.addr .city {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.addr span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
}

.note {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--light-muted);
  border-top: 1px solid var(--gold);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  max-width: 60rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer p:last-child { margin-bottom: 0; }

/* ---------- Mobile rhythm ---------- */

@media (max-width: 640px) {
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .principles { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-body { padding-top: 4rem; padding-bottom: 3rem; }
  .band { height: 34vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
