/* =========================================================
   Compass America — placeholder site
   Design tokens
   ========================================================= */
:root {
  --ink:        #14213D;   /* deep navy — headers, nav */
  --ink-soft:   #1F2E52;
  --paper:      #F7F4EC;   /* warm parchment background */
  --paper-dim:  #EFEADB;
  --brass:      #A9762F;   /* compass-needle gold, primary accent */
  --brass-dim:  #C79A52;
  --rust:       #9C4530;   /* secondary accent / CTA */
  --rust-dim:   #B5624B;
  --slate:      #56607A;   /* secondary text on paper */
  --line:       #DBD3BF;   /* hairline rule on paper */
  --line-dark:  rgba(247,244,236,0.16);
  --white:      #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  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;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }

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

/* -------------------- Eyebrow / bearing label -------------------- */
/* Every section carries a compass bearing instead of a generic 01/02/03 —
   a nod to the company name and the literal "heading" of this expansion. */
.bearing {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.bearing::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover { background: var(--rust-dim); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn-ghost:hover { border-color: var(--brass-dim); color: var(--brass-dim); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* -------------------- Header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.brand .mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.82;
  transition: opacity 0.15s ease, color 0.15s ease;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--brass-dim); }
.nav-links a.active { opacity: 1; color: var(--brass-dim); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line-dark); }
  .nav-links a { display: block; padding: 16px 28px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* -------------------- Hero -------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .bearing { color: var(--brass-dim); }
.hero .bearing::before { background: var(--brass-dim); }
.hero h1 { color: var(--white); }
.hero .lede {
  font-size: 1.1rem;
  color: rgba(247,244,236,0.78);
  max-width: 46ch;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-rose {
  width: 100%;
  max-width: 340px;
  justify-self: end;
  opacity: 0.95;
}
.hero-rose svg { width: 100%; height: auto; animation: spin 90s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-rose svg { animation: none; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-rose { max-width: 200px; justify-self: start; opacity: 0.5; margin-top: 20px; }
}

/* -------------------- Sections -------------------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: rgba(247,244,236,0.72); }
.section-dark .bearing { color: var(--brass-dim); }
.section-dark .bearing::before { background: var(--brass-dim); }
.section-dim { background: var(--paper-dim); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { font-size: 1.02rem; }

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

/* -------------------- Cards / grids -------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-dim);
  box-shadow: 0 14px 30px -18px rgba(20,33,61,0.35);
}
.card .num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* -------------------- Values list -------------------- */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.values li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .v-label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}
.values .v-desc { margin: 0; }

/* -------------------- Team -------------------- */
.team-lead {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
  margin-bottom: 44px;
}
.team-lead img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 229 / 320;
  object-fit: cover;
}
.team-lead .role {
  color: var(--brass);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.team-lead a.email {
  color: var(--rust);
  font-weight: 500;
  font-size: 0.92rem;
}
@media (max-width: 700px) {
  .team-lead { grid-template-columns: 1fr; padding: 26px; }
  .team-lead img { max-width: 200px; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.person:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20,33,61,0.4); }
.person img { width: 100%; aspect-ratio: 229 / 320; object-fit: cover; }
.person .p-body { padding: 20px 22px 24px; }
.person h3 { margin-bottom: 2px; font-size: 1.08rem; }
.person .role {
  display: block;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.person p { font-size: 0.9rem; margin-bottom: 12px; }
.person a.email { font-size: 0.84rem; color: var(--rust); font-weight: 500; }

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { margin-bottom: 26px; }
.info-block .bearing { margin-bottom: 8px; }
.info-block .value { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.info-block .value a { color: var(--ink); }
.info-block .value a:hover { color: var(--rust); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 4px; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .wrap { max-width: 640px; }
.cta-band .cta-row { justify-content: center; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247,244,236,0.6);
  padding: 52px 0 30px;
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 22px;
}
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--brass-dim); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------- Page hero (interior pages) -------------------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 68px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(247,244,236,0.75); max-width: 60ch; font-size: 1.02rem; }

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--slate);
}

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