/* ============================================
   PION1R — shared stylesheet
   ============================================ */

:root {
  --slate: #4E5A67;
  --slate-deep: #2B3138;
  --paper: #F1ECE1;
  --paper-dim: #E7E0D0;
  --ink: #21231F;
  --ink-soft: #4A4B45;
  --gold-1: #A6793A;
  --gold-2: #E7C97F;
  --cream: #F4F0E6;
  --rule: rgba(255,255,255,0.18);
  --rule-dark: rgba(33,35,31,0.14);
  --max: 1120px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

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

.gold-rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  border: 0;
  margin: 1.4rem 0;
}

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--gold-1);
  margin: 0 0 0.4rem;
}

.marker {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
}

/* ---------- Nav ---------- */
.site-nav {
  position: relative;
  z-index: 20;
  background: var(--slate);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.08em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--slate);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 16ch;
}

.hero .lede {
  margin-top: 1.6rem;
  font-size: 1.12rem;
  color: var(--cream);
  opacity: 0.92;
  max-width: 58ch;
}

.hero .tagline {
  margin-top: 1.8rem;
  font-size: 1.5rem;
  color: var(--gold-2);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-dark {
  background: var(--slate-deep);
  color: var(--cream);
}

.section-dark p { color: rgba(244,240,230,0.85); }
.section-dark .gold-rule { margin-left: 0; }

.section h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.split .col-narrow { max-width: 46ch; }

/* pull quote */
.pull {
  font-family: 'Manrope', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
  border-left: 3px solid var(--gold-1);
  padding-left: 1.2rem;
  margin: 0;
  color: var(--ink);
}

.section-dark .pull { color: var(--cream); border-left-color: var(--gold-2); }

/* ---------- Service list ---------- */
.service-list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--rule-dark);
}

.section-dark .service-list { border-top-color: var(--rule); }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--gap);
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.section-dark .service-row { border-bottom-color: var(--rule); }

.service-row h3 {
  font-size: 1.25rem;
  color: var(--gold-1);
}

.section-dark .service-row h3 { color: var(--gold-2); }

.service-row .col-narrow { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--gold-1);
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--gold-1);
  color: var(--cream);
}

.btn-on-dark {
  border-color: var(--gold-2);
  color: var(--cream);
}

.btn-on-dark:hover {
  background: var(--gold-2);
  color: var(--slate-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep);
  color: var(--cream);
  padding: 2.6rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer .brand img { height: 34px; }

.footer-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer-links a { opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.copyright {
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 1.4rem;
}

/* ---------- Contact page ---------- */
.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}

.contact-detail {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  margin-top: 0.4rem;
}

.contact-detail a { border-bottom: 2px solid var(--gold-1); }
.contact-detail a:hover { color: var(--gold-1); }

/* ---------- About headshot placeholder rule ---------- */
.about-lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .split, .contact-block {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.9rem var(--gap);
    display: block;
    border-bottom: 1px solid var(--rule);
  }
  .nav-toggle { display: block; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 2px;
}
