/* Stoneman Investment — site styles */

:root {
  --navy: #14213d;
  --navy-2: #1c2c4f;
  --stone: #f4f1ea;
  --stone-2: #e8e2d5;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #ddd6c7;
  --accent: #b08d57;
  --accent-dark: #8c6d3d;
  --white: #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: .55em 1.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
}
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.brand-light, .brand-light em { color: var(--white); }
.brand-light em { opacity: .7; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--accent-dark); }
.site-nav .btn { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .2s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--stone-2); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  padding: clamp(80px, 14vw, 160px) 0 clamp(96px, 16vw, 180px);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Layered "strata" motif — a nod to stone */
.hero-strata {
  position: absolute; right: -8%; bottom: -10%;
  width: min(60vw, 720px); aspect-ratio: 1;
  background:
    radial-gradient(circle at 70% 70%, transparent 0 22%, var(--stone-2) 22% 23%, transparent 23%),
    radial-gradient(circle at 70% 70%, transparent 0 32%, var(--stone-2) 32% 33%, transparent 33%),
    radial-gradient(circle at 70% 70%, transparent 0 42%, var(--stone-2) 42% 43%, transparent 43%),
    radial-gradient(circle at 70% 70%, transparent 0 52%, var(--stone-2) 52% 53%, transparent 53%),
    radial-gradient(circle at 70% 70%, transparent 0 62%, var(--stone-2) 62% 63%, transparent 63%);
  opacity: .9;
}
@media (max-width: 760px) { .hero-strata { opacity: .45; width: 110vw; right: -40%; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--stone); }
.section-dark { background: var(--navy); color: var(--white); }
.section-intro { color: var(--muted); max-width: 40rem; font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose p { color: var(--ink); font-size: 1.08rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); font-weight: 600; }
.stats dd { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; gap: 16px; } }

/* Approach steps */
.steps {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.steps li { padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--accent-dark); margin-bottom: 1rem; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* Service cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 3rem;
}
.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(20, 33, 61, .35); }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-icon {
  width: 32px; height: 32px; margin-bottom: 20px;
  fill: none; stroke: var(--accent-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Quote */
.pull-quote { margin: 0; text-align: center; }
.pull-quote p {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.35; color: var(--white); margin-bottom: 1.5rem;
}
.pull-quote footer { color: var(--accent); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a:not(.btn) { color: var(--navy); font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.contact-list address { font-style: normal; font-size: 1.1rem; }
.contact-list .contact-cta { display: block; border-bottom: 0; padding-top: 28px; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 56px 0 40px; font-size: .9rem; }
.section-dark + .site-footer, .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-top nav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-top nav a:hover { color: var(--white); }
.disclosure { margin: 28px 0 16px; font-size: .8rem; line-height: 1.6; max-width: 60rem; color: rgba(255, 255, 255, .55); }
.copyright { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--stone); padding: 80px 0; }

/* Focus tags */
.tags { list-style: none; padding: 2rem 0 0; margin: 2rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-size: .85rem; font-weight: 500; color: var(--navy); background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; }

.card a { color: var(--navy); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Dark feature band */
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .75); max-width: 36rem; font-size: 1.08rem; }
.eyebrow-light { color: var(--accent); }
.feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--stone); }

/* Contact form */
.contact-form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .8em .9em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.contact-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
