/* Paper Roots Empire — static site styles
   Industrial navy + amber, serif headlines, no build step. */

:root {
  --navy: #0b1c2c;
  --navy-deep: #07131f;
  --navy-mid: #13283c;
  --navy-soft: #1b354b;
  --ink: #1a222c;
  --charcoal: #242a31;
  --amber: #d3922a;
  --amber-hot: #e3a53c;
  --amber-deep: #a66e14;
  --cream: #f4f0e8;
  --paper: #fbf8f3;
  --stone: #e7e1d5;
  --muted: #5e6873;
  --steel: #8b939c;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(11, 28, 44, 0.12);
  --shadow: 0 18px 40px rgba(7, 19, 31, 0.18);
  --header-h: 4.5rem;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --max: 72rem;
  --narrow: 44rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding: 0 0 0 1.2rem; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--amber);
  color: var(--navy);
  padding: 0.5rem 0.9rem;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 44, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}
.brand img,
.brand svg { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-text span {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  margin: auto;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 0.25rem 1.35rem; }
.site-nav a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--cond);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  opacity: 0.88;
}
.site-nav a:hover,
.site-nav a:focus-visible { opacity: 1; color: #fff; border-bottom-color: var(--amber); }
.site-nav a.is-active { opacity: 1; border-bottom-color: var(--amber); color: #fff; }
.site-nav .btn { margin-left: 0.5rem; opacity: 1; border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn,
.btn-outline,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}
.btn {
  background: var(--amber);
  color: var(--navy-deep);
  border-color: var(--amber);
}
.btn:hover,
.btn:focus-visible { background: var(--amber-hot); border-color: var(--amber-hot); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 240, 232, 0.45);
}
.btn-outline:hover,
.btn-outline:focus-visible { border-color: var(--amber); color: #fff; }
.btn-light {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-light:hover,
.btn-light:focus-visible { background: var(--navy); color: var(--cream); }

.hero-actions,
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  background: var(--navy-deep) center / cover no-repeat;
  color: var(--cream);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 31, 0.92) 0%, rgba(7, 19, 31, 0.72) 42%, rgba(7, 19, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 19, 31, 0.2) 0%, rgba(7, 19, 31, 0.55) 100%);
  z-index: -1;
}
.hero-inner { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 7rem 0 5rem; max-width: 44rem; margin-left: max(1.25rem, calc((100% - var(--max)) / 2)); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.15rem); margin-bottom: 1rem; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; color: rgba(244, 240, 232, 0.88); max-width: 38rem; margin: 0; }

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--amber);
  margin: 0 0 0.85rem;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section.dark {
  background: var(--navy);
  color: var(--cream);
}
.section.dark h2,
.section.dark h3 { color: #fff; }
.section.dark p,
.section.dark li { color: rgba(244, 240, 232, 0.82); }
.section.stone { background: var(--stone); }
.section.cream { background: var(--cream); }

.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.3rem); max-width: 20ch; }
.page-hero .lede { color: rgba(244, 240, 232, 0.82); max-width: 38rem; margin: 0; }

/* ---------- Cards / grids ---------- */
.card-grid,
.why-grid,
.steps,
.discipline-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .card-grid,
  .why-grid,
  .discipline-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--amber);
  padding: 1.6rem 1.45rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(11, 28, 44, 0.03);
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.card p { color: var(--muted); flex: 1; }
.card ul { color: var(--charcoal); margin: 0 0 1.1rem; padding-left: 1.1rem; }
.card a.more {
  font-family: var(--cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--amber-deep);
  text-decoration: none;
  margin-top: auto;
}
.card a.more:hover { color: var(--navy); }

.why-item {
  background: var(--navy-mid);
  padding: 1.4rem 1.2rem 1.5rem;
  border-radius: var(--radius);
}
.why-item .icon { width: 28px; height: 28px; margin-bottom: 0.9rem; color: var(--amber); }
.why-item h3 { font-family: var(--cond); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.why-item p { margin: 0; font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line-dark);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Split / media ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.split.flip { grid-template-columns: 0.95fr 1.05fr; }
.split img {
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-copy h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.split-copy p { color: var(--muted); }
.photo-frame { position: relative; }
.photo-frame figcaption,
.credit {
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: 0.45rem;
}
@media (max-width: 860px) {
  .split,
  .split.flip { grid-template-columns: 1fr; gap: 1.75rem; }
  .split img { max-height: 22rem; }
}


/* ---------- Leadership / portrait ---------- */
.leadership {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 44rem;
}
.leadership-photo {
  margin: 0;
  max-width: 18.5rem;
}
.leadership-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #7a7d82;
}
.leadership-copy h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: 0.35rem; }
.leadership-copy .role {
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber-deep);
  margin: 0 0 1.1rem;
}
.leadership-copy p { color: var(--muted); }
.leadership-copy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.leadership-copy a:hover { color: var(--amber-deep); }
@media (max-width: 800px) {
  .leadership { grid-template-columns: 1fr; gap: 1.5rem; }
  .leadership-photo { max-width: 16.5rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  padding: 5.5rem 0;
  background: var(--navy-deep) center / cover no-repeat;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 19, 31, 0.88), rgba(7, 19, 31, 0.62));
  z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 18ch; }
.cta-band p { color: rgba(244, 240, 232, 0.86); max-width: 36rem; }

/* ---------- Service detail ---------- */
.service-block + .service-block { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line-dark); }
.service-block h2 { font-size: 2rem; }
.discipline-grid { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
.discipline {
  background: var(--cream);
  padding: 1.25rem 1.3rem;
  border-left: 3px solid var(--amber);
}
.discipline h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; }
.discipline p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.req { color: var(--amber-deep); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea,
input[type="file"] {
  width: 100%;
  border: 1px solid #cfc8ba;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  outline: none;
}
input[type="file"] { padding: 0.45rem; background: #fff; }
textarea { min-height: 8rem; resize: vertical; }
input:focus,
select:focus,
textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(211, 146, 42, 0.28); }
.form-note, .hint { font-size: 0.88rem; color: var(--muted); margin: 0.35rem 0 1rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-left: 3px solid var(--amber);
  color: var(--ink);
}
.form-status.is-visible { display: block; }
.form-status pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  background: #fff;
  padding: 0.8rem;
  border: 1px solid var(--line-dark);
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .form-layout,
  .form-row.two { grid-template-columns: 1fr; }
}

.contact-facts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.contact-facts li { margin: 0 0 1rem; }
.contact-facts strong {
  display: block;
  font-family: var(--cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--amber-deep);
  margin-bottom: 0.15rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 240, 232, 0.8);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-family: var(--cond);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(244, 240, 232, 0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.footer-brand { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--steel);
}
.placeholder { color: var(--amber); font-style: normal; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; width: 100%; padding: 0.55rem 0; }
  .site-nav .btn { margin: 0.6rem 0 0; width: auto; }
  .header-inner { width: calc(100% - 2rem); }
  .wrap, .hero-inner { width: calc(100% - 2rem); }
  .hero-inner { margin-left: auto; margin-right: auto; padding: 6rem 0 3.5rem; }
  .hero { min-height: 34rem; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .btn, .btn-outline, .btn-light { width: 100%; }
}

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