/* ============================================================
   RyPres Consulting LLC — shared stylesheet
   Palette: deep evergreen + warm bone + brass
   Type: Newsreader (display serif) + Inter (UI/body)
   ============================================================ */

:root {
  --ink:        #1a1e2a;   /* navy-ink text */
  --muted:      #5b6273;   /* secondary text on light */
  --pine:       #1b2240;   /* brand navy (dark sections) */
  --pine-deep:  #141a2e;   /* footer / deepest navy */
  --paper:      #f4efe5;   /* warm bone page bg */
  --surface:    #fbf8f2;   /* lighter card surface */
  --sage:       #ece6da;   /* soft warm tint block */
  --sage-line:  #dcd5c6;   /* warm hairline */
  --line:       #e2dbcb;   /* warm hairline on paper */
  --brass:      #a97a33;   /* warm gold accent (display/data) */
  --brass-2:    #c6913f;   /* gold bright / hover */
  --blue:       #3a4fca;   /* logo blue accent (interactive/marks) */
  --blue-2:     #4c61e0;   /* blue bright / hover */
  --bone:       #ecedf3;   /* light text on navy */
  --bone-dim:   rgba(236,237,243,0.74);

  --wrap: 1160px;
  --r: 14px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--brass); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.eyebrow--bone { color: var(--brass-2); }

.lead { font-size: 1.16rem; line-height: 1.6; color: var(--muted); }

p { margin: 0 0 1.1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-2); color: #fff; }

.btn-pine { background: var(--pine); color: var(--bone); }
.btn-pine:hover { background: var(--pine-deep); color: var(--bone); }

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

.btn-light { background: var(--bone); color: var(--pine-deep); }
.btn-light:hover { background: #fff; color: var(--pine-deep); }

.btn-outline-bone { background: transparent; color: var(--bone); border-color: rgba(238,241,232,0.35); }
.btn-outline-bone:hover { border-color: var(--bone); color: var(--bone); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,229,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark-img { height: 34px; width: auto; display: block; }
.brand-logo { height: 38px; width: auto; }
.brand-fallback { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--pine);
  color: var(--bone); font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  display: grid; place-items: center; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--sans); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); }
.brand-text small { font-family: var(--sans); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }
.site-footer .brand-text b { color: var(--bone); }
.site-footer .brand-text small { color: #8f9dff; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--blue);
  transition: width .22s ease;
}
.site-nav a:not(.nav-cta):hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--pine); }
.nav-cta {
  background: var(--pine); color: var(--bone) !important; padding: 0.62em 1.15em; border-radius: 999px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--pine-deep); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 19px; height: 2px; background: var(--ink); position: relative; transition: .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; 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); }

/* ============================================================
   SECTION SCAFFOLD  (padding lives ONLY here; modifiers change color only)
   ============================================================ */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--paper   { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--sage    { background: var(--sage); }
.section--pine    { background: var(--pine); color: var(--bone); }
.section--pine h1, .section--pine h2, .section--pine h3 { color: var(--bone); }
.section--pine .lead { color: var(--bone-dim); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); margin-bottom: 18px; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { background: var(--pine); color: var(--bone); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 460px at 80% -10%, rgba(198,145,63,0.13), transparent 60%),
    radial-gradient(700px 540px at 6% 6%, rgba(74,97,224,0.20), transparent 58%),
    radial-gradient(700px 600px at 0% 112%, rgba(0,0,0,0.30), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(72px, 11vw, 132px) 0 clamp(56px, 7vw, 96px); max-width: 880px; }
.hero h1 { color: var(--bone); font-size: clamp(2.7rem, 6.2vw, 4.7rem); line-height: 1.04; margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--bone-dim); max-width: 660px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* scoreboard strip under hero */
.scoreboard {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(238,241,232,0.16);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.scoreboard .sb {
  padding: 26px clamp(8px,2vw,28px) 30px;
  border-left: 1px solid rgba(238,241,232,0.14);
}
.scoreboard .sb:first-child { border-left: 0; padding-left: 0; }
.sb-num { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--brass-2); line-height: 1; }
.sb-label { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--bone-dim); margin-top: 9px; }

/* ============================================================
   STAT GRID (proof band)
   ============================================================ */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.statgrid .cell { background: var(--surface); padding: 30px 26px; }
.stat-num { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--pine); line-height: 1; }
.stat-num span { color: var(--brass); }
.stat-label { font-size: 0.86rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px 30px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(31,67,52,0.5); border-color: var(--sage-line); }
.card-kicker { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.card ul li { position: relative; padding-left: 20px; font-size: 0.93rem; color: var(--ink); margin-bottom: 9px; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.card .card-foot { margin-top: auto; }
.card-link { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; color: var(--pine); display: inline-flex; gap: 0.4em; align-items: center; }
.card-link:hover { color: var(--brass); }
.card-link .arr { transition: transform .2s ease; }
.card-link:hover .arr { transform: translateX(3px); }

/* ============================================================
   APPROACH (numbered sequence — order is meaningful)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { padding-top: 26px; border-top: 2px solid rgba(238,241,232,0.22); }
.section--pine .step .step-n { color: var(--brass-2); }
.step-n { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.05em; margin-bottom: 16px; opacity: .9; }
.step h3 { font-size: 1.28rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; }
.section--pine .step p { color: var(--bone-dim); }

/* ============================================================
   SPLIT (about teaser / generic two-col)
   ============================================================ */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 1.1fr 0.9fr; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, var(--pine), var(--pine-deep)); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { text-align: center; color: var(--bone-dim); padding: 24px; }
.portrait .ph .mono { font-family: var(--serif); font-size: 3.2rem; color: var(--brass-2); line-height: 1; }
.portrait .ph small { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 14px; }

.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.split .sig { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--pine); margin: 0 0 22px; }

/* ============================================================
   PROSE (about / content pages)
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose p { color: #3a4038; }
.prose .pull { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--pine); border-left: 3px solid var(--brass); padding-left: 24px; margin: 34px 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; color: #3a4038; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; transform: rotate(45deg); }

/* feature list (who we help / value) */
.featlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.feat h3 { font-size: 1.22rem; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px; }
.feat h3 .fn { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; color: var(--brass); letter-spacing: 0.04em; }
.feat p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* tag row */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--pine); background: var(--sage); border: 1px solid var(--sage-line); padding: 0.45em 0.95em; border-radius: 999px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.pagehero { background: var(--pine); color: var(--bone); }
.pagehero-inner { padding: clamp(58px, 8vw, 96px) 0 clamp(46px, 6vw, 76px); max-width: 820px; }
.pagehero h1 { color: var(--bone); font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.06; margin-bottom: 20px; }
.pagehero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--bone-dim); max-width: 640px; margin: 0; }
.crumb { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 20px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.ctaband { background: var(--pine-deep); color: var(--bone); }
.ctaband-inner { padding: clamp(60px, 8vw, 100px) 0; text-align: center; max-width: 720px; margin: 0 auto; }
.ctaband h2 { color: var(--bone); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.ctaband p { color: var(--bone-dim); font-size: 1.12rem; margin-bottom: 34px; }
.ctaband .hero-cta { justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.method {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; transition: border-color .2s ease, transform .15s ease;
}
.method:hover { border-color: var(--sage-line); transform: translateY(-2px); }
.method .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sage); color: var(--pine); display: grid; place-items: center; flex: none; }
.method .ic svg { width: 20px; height: 20px; }
.method b { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); display: block; }
.method span { font-size: 0.93rem; color: var(--muted); }
.method a { font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.8em 0.9em;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(31,67,52,0.12); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--pine-deep); color: var(--bone); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(238,241,232,0.14); }
.footer-brand .brand-mark { background: rgba(238,241,232,0.1); }
.footer-brand p { color: var(--bone-dim); font-size: 0.95rem; max-width: 320px; margin: 18px 0 0; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); margin: 0 0 16px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: var(--bone-dim); font-size: 0.95rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--bone); }
.footer-base { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(238,241,232,0.55); font-size: 0.84rem; }

/* ============================================================
   FOCUS / MOTION / RESPONSIVE
   ============================================================ */
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

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

@media (max-width: 900px) {
  .cards, .steps, .featlist, .statgrid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip, .contact-grid { grid-template-columns: 1fr; }
  .split .portrait { max-width: 360px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 28px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 14px; border: 0; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .scoreboard .sb { border-left: 1px solid rgba(238,241,232,0.14); }
  .scoreboard .sb:first-child { padding-left: clamp(8px,2vw,28px); }
  .scoreboard .sb:nth-child(odd) { border-left: 0; padding-left: 0; }
  .statgrid, .cards, .steps, .featlist, .footer-top { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
