
/* ---------- design tokens: change a value here, it changes site-wide ---------- */
:root {
  --navy: #14263D;
  --ink: #1E2329;
  --slate: #5B6573;
  --ivory: #F6F3EC;
  --white: #FFFFFF;
  --brass: #A8834A;
  --brass-dark: #8A6B39;
  --crimson: #8E2B2B;
  --line: #E2DCD0;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 68ch;          /* comfortable reading width */
  --wrap: 1120px;           /* maximum page width */
}

/* ---------- reset: strip browser defaults that fight the design ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- base typography ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px: comfortable for long-form reading */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.05rem); margin-top: 2.6rem; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin-top: 1.9rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.15rem; max-width: var(--measure); }
a { color: var(--brass-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
strong { font-weight: 650; color: var(--navy); }
small { color: var(--slate); }

/* keyboard users must be able to see where they are */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

/* the "skip to content" link is hidden until tabbed to */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: 3.6rem 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: #E8E4DA; }
.section--navy h2, .section--navy h3 { color: #FFFFFF; }
.section--navy a { color: #D9BE8C; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }

/* ---------- header and navigation ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.wordmark__mark { width: 26px; height: 26px; flex: none; }
.wordmark__text { font-family: var(--sans); font-weight: 700; letter-spacing: 0.14em; font-size: 0.82rem;
                  text-transform: uppercase; color: var(--navy); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--navy); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-dark); }

/* dropdown menus are built from <details> so they work without JavaScript */
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; font-size: 0.92rem; font-weight: 500; color: var(--navy); }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: "▾"; font-size: .7em; margin-left: .35em; color: var(--slate); }
.nav details[open] summary { color: var(--brass-dark); }
.nav .menu { position: absolute; top: calc(100% + .6rem); left: -1rem; background: #fff; border: 1px solid var(--line);
             box-shadow: 0 12px 28px rgba(20,38,61,.10); padding: .5rem; min-width: 19rem; border-radius: 2px; }
.nav .menu a { display: block; padding: .5rem .75rem; font-size: .9rem; }
.nav .menu a:hover { background: var(--ivory); }

.nav__cta { border: 1px solid var(--navy); padding: .45rem .9rem; border-radius: 2px; }
.nav__cta:hover { background: var(--navy); color: #fff !important; }

/* the mobile menu button only appears on narrow screens */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); border-radius: 2px;
                padding: .45rem .7rem; font: inherit; font-size: .85rem; color: var(--navy); cursor: pointer; }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
                 width: 100%; padding: 1rem 0 1.4rem; border-top: 1px solid var(--line); }
  .header-inner { flex-wrap: wrap; }
  .nav details { width: 100%; }
  .nav .menu { position: static; border: none; box-shadow: none; padding: .2rem 0 .4rem 1rem; min-width: 0; }
}

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #EFEAE0; padding: 4.4rem 0 4rem; }
.hero h1 { color: #FFFFFF; max-width: 20ch; }
.hero p { color: #D7D2C6; font-size: 1.15rem; max-width: 60ch; margin-top: 1.2rem; }
/* The small line under the hero buttons that states the consultation hours. */
.hero p.hero-note { font-size: .92rem; color: #B9B3A6; margin-top: 1rem; }
.hero .rule { width: 76px; height: 3px; background: var(--brass); margin: 1.6rem 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.5rem; font-size: .95rem; font-weight: 600; text-decoration: none;
       border-radius: 2px; border: 1px solid transparent; cursor: pointer; }
.btn--brass { background: var(--brass); color: #FFFFFF; }
.btn--brass:hover { background: var(--brass-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #FFFFFF; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { background: #0E1B2C; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.35rem; border-radius: 2px; }
.card h3 { margin-top: 0; }
.card p { font-size: .97rem; color: var(--slate); margin-bottom: .8rem; }
.card a.more { font-size: .9rem; font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }
.card--flat { background: transparent; border: none; border-top: 2px solid var(--brass); padding-left: 0; padding-right: 0; }

/* ---------- two-column layout: article plus a sidebar rail ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 3.2rem; align-items: start; }
@media (max-width: 950px) { .layout { grid-template-columns: 1fr; gap: 2.2rem; } }
.rail { position: sticky; top: 5.4rem; font-size: .93rem; }
.rail__box { border: 1px solid var(--line); padding: 1.2rem 1.25rem; margin-bottom: 1.2rem; background: var(--white); }
.rail__box--brass { border-top: 3px solid var(--brass); }
.rail h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
           color: var(--slate); margin-bottom: .7rem; }
.rail ul { list-style: none; padding: 0; margin: 0; }
.rail li { margin-bottom: .5rem; line-height: 1.45; }
.rail a { text-decoration: none; color: var(--navy); }
.rail a:hover { color: var(--brass-dark); text-decoration: underline; }
.rail p { font-size: .9rem; color: var(--slate); margin-bottom: .8rem; }

/* ---------- framework panel on the home hero ---------- */
.panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: 1.6rem 1.7rem; border-radius: 2px; }
.panel h2 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em;
            text-transform: uppercase; margin: 0 0 1rem; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.panel li { color: #D7D2C6; font-size: .95rem; display: flex; gap: .6rem; align-items: baseline; }
.panel li::before { content: "—"; color: var(--brass); flex: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
@media (max-width: 950px) { .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

/* ---------- prose blocks (the page bodies) ---------- */
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.15rem; margin-bottom: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- service directory list ---------- */
.directory h2 { border-top: 2px solid var(--brass); padding-top: 1rem; }
.svc-list { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); margin-bottom: .5rem; }
.svc { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.svc a { font-weight: 600; text-decoration: none; color: var(--navy); }
.svc a:hover { color: var(--brass-dark); }
.svc p { font-size: .92rem; color: var(--slate); margin: .3rem 0 0; }

/* ---------- breadcrumbs and meta ---------- */
.crumbs { font-size: .85rem; color: var(--slate); padding: 1.1rem 0 0; }
.crumbs a { color: var(--slate); }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; }

/* ---------- forms ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: .97rem; color: var(--ink);
  border: 1px solid #C9C2B4; border-radius: 2px; background: #fff;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form small { display: block; margin-top: .9rem; }
.hp { position: absolute; left: -9999px; }   /* honeypot: hidden from people, visible to bots */

/* ---------- emergency callout ---------- */
.alert { border-left: 4px solid var(--crimson); background: #FBF5F4; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.alert p { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9C3B6; padding: 3.2rem 0 2.2rem; margin-top: 4rem; font-size: .92rem; }
.site-footer h4 { color: #FFFFFF; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em;
                  text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #C9C3B6; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid ul li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .83rem; color: #9FA5AD; }
.footer-bottom p { max-width: 90ch; margin-bottom: .7rem; }

/* ---------- print ---------- */
@media print { .site-header, .site-footer, .btn-row { display: none; } body { font-size: 11pt; } }
