/* Anchor & Co. Marketing — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #14191F;
  --navy: #1B2A41;
  --paper: #F7F5F0;
  --paper-dim: #EFEBE2;
  --slate: #5C6B7A;
  --brass: #B6824A;
  --brass-dim: #D9B98A;
  --line: rgba(20, 25, 31, 0.12);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

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

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--navy);
}

.brand .mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

.brand .mark::after { content: none; }

nav.links {
  display: flex;
  gap: 36px;
  font-size: 0.92rem;
  font-weight: 500;
}

nav.links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

nav.links a.active {
  color: var(--navy);
}

nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
}

.nav-cta {
  background: var(--navy);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.menu-toggle { display: none; }

@media (max-width: 760px) {
  nav.links { display: none; }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--body);
    font-size: 0.9rem;
    color: var(--navy);
    cursor: pointer;
  }
}

/* ---------- The Line (signature element) ---------- 
   A vertical "anchor line" with depth-mark ticks runs beside key content,
   echoing a sounding line used to measure depth — i.e. a business finding
   solid ground before it commits. Used sparingly: once per page, never as
   generic decoration. */

.line-marker {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.line-rail {
  width: 1px;
  background: var(--line);
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 100%;
}

.line-rail .tick {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}

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

.hero {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--navy);
  max-width: 16ch;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 52ch;
  margin: 0 0 36px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn.primary { background: var(--navy); color: var(--paper); }
.btn.primary:hover { background: #25395a; }

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost:hover { border-color: var(--navy); }

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

section { padding: 90px 0; }
section.alt { background: var(--paper-dim); }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 56px; }

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 14px;
}

.section-head p { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ---------- Cards / Grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  padding: 38px 32px;
}

section.alt .card { background: var(--paper-dim); }

.card .num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 10px;
}

.card p { color: var(--slate); margin: 0; font-size: 0.96rem; }

/* ---------- Process timeline (legit sequence — used on About) ---------- */

.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: grid;
  grid-template-columns: 90px 1px 1fr;
  gap: 28px;
  padding-bottom: 44px;
  position: relative;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-rail {
  background: var(--line);
  position: relative;
}

.tl-item:last-child .tl-rail { background: transparent; }

.tl-dot {
  position: absolute;
  top: 4px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}

.tl-year {
  font-family: var(--display);
  color: var(--slate);
  font-size: 0.9rem;
  padding-top: 1px;
}

.tl-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.tl-body p { color: var(--slate); margin: 0; max-width: 56ch; }

/* ---------- Stats ---------- */

.stat-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.stat .figure {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1;
}

.stat .label {
  color: var(--slate);
  font-size: 0.88rem;
  margin-top: 8px;
}

/* ---------- Quote / Pull ---------- */

.pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  max-width: 38ch;
  border-left: 2px solid var(--brass);
  padding-left: 28px;
}

/* ---------- Form ---------- */

form.contact-form {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
}

.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.submit-btn {
  justify-self: start;
  background: var(--navy);
  color: var(--paper);
  border: none;
  padding: 14px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
}

.submit-btn:hover { background: #25395a; }

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: -6px;
}

#form-success {
  display: none;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 2px;
  color: var(--navy);
  max-width: 560px;
}

/* ---------- Contact info blocks ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-block h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 10px;
}

.info-block p, .info-block a {
  color: var(--slate);
  text-decoration: none;
  margin: 0;
}

.info-block a:hover { color: var(--navy); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--paper);
  text-align: left;
}

.cta-band h2 { color: var(--paper); }
.cta-band .section-head p { color: var(--brass-dim); }

.cta-band .btn.primary { background: var(--brass); color: var(--navy); }
.cta-band .btn.primary:hover { background: var(--brass-dim); }

.cta-band .btn.ghost { border-color: rgba(247,245,240,0.3); color: var(--paper); }
.cta-band .btn.ghost:hover { border-color: var(--paper); }

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

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
}

.footer-links a { text-decoration: none; color: var(--slate); }
.footer-links a:hover { color: var(--navy); }

.footer-fine {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 24px;
}

/* ---------- Reduced motion ---------- */

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

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
