/* =====================================================================
   CIVIC — Planning & Design Group
   Shared design system. Light, warm-corporate palette. No heavy navy.
   Type: Fraunces (display serif) + Inter (body) + Pinyon Script (accent)
   ===================================================================== */

:root {
  /* Palette — a lighter approach than the old dark-blue site */
  --ink: #22303c;
  --ink-soft: #4a5a68;
  --brand: #2f6b95;
  --brand-deep: #1f4d6e;
  --brand-light: #eaf2f8;
  --accent: #d98a3d;
  --accent-deep: #b96e26;
  --accent-soft: #f6ecdd;
  --paper: #ffffff;
  --mist: #f5f9fc;
  --line: #dbe6ee;

  --shadow-sm: 0 1px 2px rgba(31, 77, 110, 0.06), 0 2px 8px rgba(31, 77, 110, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 77, 110, 0.10);
  --shadow-lg: 0 18px 48px rgba(31, 77, 110, 0.16);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Pinyon Script", "Segoe Script", cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section--mist { background: var(--mist); }
.section--brand { background: linear-gradient(160deg, var(--brand-light), #ffffff); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 .6rem;
}
.script { font-family: var(--font-script); color: var(--accent-deep); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-deep); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-light); color: var(--brand-deep); }
.btn--light { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-sm); }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__mark { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: .04em; color: var(--brand-deep); }
.brand__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: .5rem .7rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-light); }
.nav__cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px;
  width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    gap: .25rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .5rem; }
  .nav__cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Menu boxes (prominent card navigation) ---------- */
.menu-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.menu-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.35rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.menu-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--brand), var(--accent)); transform: scaleY(0); transform-origin: top;
  transition: transform .2s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.menu-card:hover::after { transform: scaleY(1); }
.menu-card__icon { font-size: 1.6rem; }
.menu-card__title { font-family: var(--font-display); font-size: 1.22rem; }
.menu-card__desc { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.menu-card__more { margin-top: auto; padding-top: .6rem; color: var(--accent-deep); font-weight: 600; font-size: .9rem; }

/* ---------- Generic feature grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--brand-deep); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 1.3rem; margin-bottom: .8rem;
}

/* ---------- Pill / tag lists ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pills li {
  background: var(--brand-light); color: var(--brand-deep);
  border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 500;
}
.pills a { color: inherit; text-decoration: none; }
.pills a:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-light), #fff); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(2.25rem, 6vw, 3.75rem); }

/* ---------- Split content ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split--2 { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Intro pair (start.html hero: two equal text boxes, rows aligned via subgrid) ---------- */
.intro-pair { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .intro-pair { grid-template-columns: 1fr 1fr; } }
.intro-pair__box { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 1rem; align-content: start; }
.intro-pair__box > * { margin: 0; }
.intro-pair__title {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem); color: var(--brand-deep);
  text-transform: uppercase; letter-spacing: .02em;
}
.intro-pair__sub {
  display: block; margin-top: .4rem; font-family: var(--font-body); font-size: .8rem;
  font-weight: 600; letter-spacing: .18em; color: var(--accent-deep);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--brand-deep); line-height: 1; }
.stat__label { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Coverage columns ---------- */
.coverage { columns: 3 220px; column-gap: 2rem; }
.coverage h3 { break-after: avoid; color: var(--brand-deep); margin-top: 1.2rem; }
.coverage ul { break-inside: avoid; margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-soft); }
.coverage li { margin-bottom: .2rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list .contact-list__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: #1b2b38; color: #cdd8e1; padding-block: 2.75rem 1.5rem; }
.site-footer a { color: #cdd8e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__mark { color: #fff; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: #93a3b1; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.u-mt { margin-top: 1rem; }
.u-mt-sm { margin-top: .75rem; }
.u-mt-md { margin-top: 1.25rem; }
.u-mt-lg { margin-top: 2rem; }
.u-mb-lg { margin-bottom: 2rem; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.script--lg { font-size: 1.8rem; }
.card--accent { border-left: 5px solid var(--accent); }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin: 0; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item figcaption { padding: .9rem 1.1rem; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Intro / splash page (index.html)
   A joyful, centred, "large interest" welcome — distinct from the home page.
   ===================================================================== */
.intro {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--brand-light), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--mist));
}
.intro__bar { padding: 1.4rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.intro__contact { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.intro__contact a { text-decoration: none; font-weight: 600; color: var(--brand-deep); }
.intro__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.0rem, 3vw, 1rem); }
.intro__hello { font-family: var(--font-script); font-size: clamp(2rem, 6vw, 3.4rem); color: var(--accent-deep); line-height: 1; margin-bottom: -.2rem; }
.intro__title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: .02em; margin: .2rem 0 .3rem;
}
.intro__title .est { display: block; font-family: var(--font-body); font-size: clamp(.8rem, 2vw, 1rem); letter-spacing: .35em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: .8rem; }
.intro__tagline { max-width: 60ch; margin-inline: auto; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-soft); }
.intro__scroll { margin-top: 2rem; }

.intro-menu { margin-top: clamp(2rem, 5vw, 3rem); }
.intro__foot { padding: 1.25rem var(--gutter); text-align: center; color: var(--ink-soft); font-size: .85rem; border-top: 1px solid var(--line); }
.intro__foot a { color: var(--brand-deep); text-decoration: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
