/* RCS Andover: public site */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --ink: #2b2520;
  --ink-soft: #5d544b;
  --forest: #2f4a3a;
  --forest-deep: #22372b;
  --rust: #b0532a;
  --rust-deep: #8f411f;
  --gold: #d9a441;
  --line: #e0d5c1;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rust-deep); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 100; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.brand-name { font: 600 1.25rem/1.1 var(--serif); color: var(--forest-deep); }
.brand-sub { font: 500 .72rem/1.2 var(--mono); color: var(--ink-soft); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--forest-deep); }
.nav .btn { margin-left: 6px; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand-sub { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rust); color: #fff !important; text-decoration: none;
  font: 600 .98rem/1 var(--sans); padding: 13px 20px; border-radius: 10px; border: 0; cursor: pointer;
  box-shadow: 0 2px 0 var(--rust-deep);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--rust-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--forest-deep) !important; box-shadow: inset 0 0 0 2px var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff !important; }
.btn.small { padding: 9px 14px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero {
  position: relative; color: #fff;
  background: var(--forest-deep) url("../img/andover-sign.jpg") center 60% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(26, 40, 31, .92) 0%, rgba(26, 40, 31, .78) 45%, rgba(26, 40, 31, .25) 100%);
}
.hero .wrap { padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero p.lede { font-size: 1.2rem; color: #ece6d8; max-width: 540px; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn.ghost { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: #fff; color: var(--forest-deep) !important; }
.hero-terminal {
  margin-top: 40px; display: inline-block;
  font: 500 .85rem/1.6 var(--mono); color: #cfe3d4;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 12px 16px;
}
.hero-terminal b { color: var(--gold); font-weight: 500; }
.cursor { display: inline-block; width: 8px; height: 1em; background: #cfe3d4; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.alt { background: var(--paper-2); }

/* trust strip */
.strip { background: var(--forest); color: #e8efe9; padding: 22px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; }
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.strip svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.service .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #f3e3d6; color: var(--rust-deep); margin-bottom: 16px;
}
.service .icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.service.more { background: transparent; border-style: dashed; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }

/* audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.panel .tag { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--forest); background: #e3ebe4; padding: 6px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: 8px 0 8px 30px; position: relative; border-top: 1px dashed var(--line); }
.panel li:first-child { border-top: 0; }
.panel li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--rust); border-bottom: 2.5px solid var(--rust); transform: rotate(-45deg);
}

/* about */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 300px; } }
.about-photo { position: relative; }
.about-photo img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border: 6px solid var(--card); transform: rotate(-1.5deg); }
.about-photo .badge {
  position: absolute; right: -14px; bottom: 22px; background: var(--forest); color: #fff;
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); transform: rotate(2deg);
}
.about-photo .badge b { display: block; font: 600 1.7rem/1 var(--serif); color: var(--gold); }
.about-photo .badge span { font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.signature { font: italic 500 1.4rem/1 var(--serif); color: var(--forest); margin-top: 8px; }

/* approach */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 .85rem/1 var(--mono); color: var(--rust); display: block; margin-bottom: 12px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* testimonial */
.quote {
  background: var(--card); border-radius: 20px; padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; max-width: 900px; margin: 0 auto;
}
.quote::before {
  content: "\201C"; position: absolute; top: -10px; left: 24px;
  font: 700 7rem/1 var(--serif); color: var(--gold); opacity: .55;
}
.quote blockquote { margin: 0; font: 400 clamp(1.1rem, 2vw, 1.3rem)/1.6 var(--serif); color: var(--ink); position: relative; }
.quote figcaption { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.quote figcaption .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font: 600 1.1rem/1 var(--serif); }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--ink-soft); font-size: .95rem; }

/* CTA */
.cta { background: var(--forest-deep); color: #e8efe9; border-radius: 22px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #cbd8ce; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 12px; }
.contact-line { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; color: #fff; text-decoration: none; }
.contact-line:hover { background: rgba(255,255,255,.13); color: #fff; }
.contact-line svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-line small { display: block; font: 500 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #a9bcae; }
.contact-line span { font-weight: 600; word-break: break-word; }

/* contact page */
.page-head { padding: 64px 0 24px; }
.page-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 620px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; padding-bottom: 96px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--forest-deep); color: #e8efe9; border-radius: var(--radius); padding: 28px; }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card p { color: #cbd8ce; font-size: 1rem; }
.contact-card .contact-lines { margin: 20px 0; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field label .req { color: var(--rust); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 74, 58, .15); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 0; }

/* prose (privacy) */
.prose { max-width: 720px; padding-bottom: 96px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* footer */
.site-footer { background: #1d2c23; color: #b9c7bc; padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 14px; }
.site-footer a { color: #e8efe9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #8fa294; }
.site-footer .foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.site-footer .foot-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.site-footer .foot-brand b { font: 600 1.15rem/1 var(--serif); color: #fff; }
.mono { font-family: var(--mono); font-size: .85em; }

.notfound { text-align: center; padding: 120px 0; }
.notfound code { font: 500 1rem var(--mono); background: var(--paper-2); padding: 4px 10px; border-radius: 6px; color: var(--rust-deep); }
