/* ADPG — single-page site. Civic-print direction: ruled sections, no cards, gradients or shadows. */

:root {
  /* Palette carried over from the existing adpg.com */
  --navy-950: #061428;
  --navy-900: #0b2545;
  --blue: #0b3d61;         /* the logo's blue (ADPG's newer, darker version): links, rules, hover glow */
  --red: #c8202a;          /* the old site's red buttons: the main action only */
  --red-dark: #a3151e;
  --ink: #1b2433;
  --ink-soft: #586379;
  --rule: #e3e7ef;
  --paper: #ffffff;
  --paper-deep: #f5f7fb;
  --measure: 38rem;
  --wrap: 72rem;
  --display: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { margin: 0; color: var(--navy-900); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.8vw, 4.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--navy-900); color: #fff; padding: .5rem .8rem; }
.skip-link:focus { left: .5rem; }

/* Masthead: plain, not sticky */
.masthead { border-bottom: 1px solid var(--navy-900); }
.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand phone" "nav nav";
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem 0 .75rem;
}
.brand { grid-area: brand; }
.brand img { width: 132px; }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); text-decoration: underline; }
.masthead-phone { grid-area: phone; justify-self: end; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.masthead-phone:hover { color: var(--blue); }

@media (min-width: 820px) {
  .masthead-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav phone"; padding: 1.25rem 0; }
  .brand img { width: 168px; }
  .nav { justify-self: end; margin-right: 1rem; }
  .masthead-phone { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
}

/* Intro */
/* The hero's moving digit field (site.js) sits on a canvas behind the text. */
.intro { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.intro-matrix { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-grid { position: relative; display: grid; gap: 2.5rem; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.intro h1 { max-width: 15ch; margin-bottom: 1.75rem; color: #fff; }
.intro .lede { color: rgba(255, 255, 255, .9); }
.intro :focus-visible { outline-color: #fff; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.5; max-width: var(--measure); color: var(--ink); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.intro-note { font-size: .95rem; color: rgba(255, 255, 255, .78); border-top: 2px solid rgba(255, 255, 255, .7); padding-top: 1rem; max-width: 22rem; align-self: end; }
.intro-note strong { color: #fff; }
.intro-note p:last-child { margin: 0; }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 18rem; gap: 4rem; }
}

.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.3rem;
  border-radius: 3px;
  text-decoration: none;
}
.button:hover { background: var(--red-dark); color: #fff; }
.textlink { font-weight: 600; color: var(--ink); }
.intro .textlink { color: #fff; }

/* Sections */
.block { border-top: 1px solid var(--navy-900); padding: clamp(3rem, 7vw, 5rem) 0; }
.block-tint { background: var(--paper-deep); }

/* Services: a ruled two-column list */
.services { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.services > div { display: grid; gap: .35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.services dt { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--navy-900); }
.services dd { margin: 0; color: var(--ink-soft); max-width: var(--measure); }
@media (min-width: 760px) {
  .services > div { grid-template-columns: 17rem 1fr; gap: 2rem; padding: 1.5rem 0; align-items: baseline; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .services > div { grid-template-columns: 1fr; gap: .4rem; align-items: start; align-content: start; }
}

/* About */
.about { display: grid; gap: 2.5rem; }
.about-story p { max-width: var(--measure); }
.about-principles { align-self: start; }
.about-principles ul { list-style: none; margin: 0; padding: 0; }
.about-principles li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.about-principles li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) {
  .about { grid-template-columns: 1.5fr 1fr; gap: 5rem; }
  .about-principles { padding-top: 4.2rem; }
}

.statements { display: grid; gap: 1.75rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--navy-900); }
.statements p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 860px) { .statements { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Clients and testimonials */
.clients-intro p { font-size: 1.15rem; line-height: 1.55; max-width: 44rem; }
.feature-quote { margin: clamp(2.5rem, 6vw, 4rem) 0; max-width: 54rem; }
.feature-quote blockquote { margin: 0; }
.feature-quote p { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.38; font-weight: 600; color: var(--navy-900); }
.feature-quote p::before { content: "\201C"; }
.feature-quote p::after { content: "\201D"; }
.feature-quote figcaption { color: var(--ink-soft); font-size: .95rem; }

.quotes { display: grid; gap: 2rem; border-top: 1px solid var(--rule); padding-top: 2rem; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 .6rem; }
.quotes blockquote p { margin: 0; }
.quotes blockquote p::before { content: "\201C"; }
.quotes blockquote p::after { content: "\201D"; }
.quotes figcaption { font-size: .88rem; color: var(--ink-soft); }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Contact */
.contact { background: var(--navy-900); color: #e3e7ef; padding: clamp(3rem, 7vw, 5rem) 0; }
.contact h2 { color: #fff; }
.contact p { max-width: 32rem; }
.contact a { color: #fff; }
.contact-inner { display: grid; gap: 2rem; }
.contact-details { font-size: 1.1rem; }
.contact-details address { font-style: normal; color: #e3e7ef; }
.contact-phone { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1; text-decoration: none; margin-bottom: 1rem; }
.contact-phone:hover { text-decoration: underline; }
@media (min-width: 860px) { .contact-inner { grid-template-columns: 1fr auto; gap: 5rem; align-items: end; } }

/* Footer */
.footer { padding: 2rem 0 2.5rem; font-size: .88rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer p { margin: 0; }
