/* McGrath Management LLC */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --slate: #15303a;      /* text, dark sections */
  --river: #2d6a79;      /* primary */
  --river-dk: #22535f;
  --sky: #6fa7b5;
  --green: #5c8a3a;      /* ridge green, used sparingly */
  --mist: #eef3f2;       /* panels */
  --line: #d3dedc;
  --muted: #4f626a;
  --white: #fff;
  --logo-a: var(--slate); --logo-b: var(--river); --logo-c: var(--sky);
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--slate); background: var(--white); overflow-x: clip; }
h1, h2, h3 { font-family: var(--head); color: var(--slate); margin: 0; font-stretch: 106%; letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h2 { font-weight: 650; }
h3 { font-weight: 600; }
p { margin: 0; }
a { color: var(--river); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--river-dk); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--slate); }
.brand .mark { width: 42px; height: auto; flex: 0 0 auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-name { font: 750 24px/1 var(--head); font-stretch: 112%; letter-spacing: -0.02em; }
.wm-sub { font: 500 12.5px/1 var(--head); font-stretch: 100%; letter-spacing: .04em; color: var(--muted); margin-top: 5px; }
.brand-light { color: #fff; --logo-a: #e7eff0; --logo-b: var(--sky); --logo-c: #a9cdd6; }
.brand-light .wm-sub { color: #a9bcc2; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.bar { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
#nav { margin-left: auto; }
#nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#nav a, #nav button { display: block; font: 500 15.5px var(--body); color: var(--slate); text-decoration: none; padding: 8px 10px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
#nav a:hover, #nav button:hover { color: var(--river); }
#nav a[aria-current], .has-sub.is-current > button { color: var(--river); box-shadow: inset 0 -2px 0 var(--green); }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
.has-sub ul { list-style: none; margin: 0; padding: 8px 0; display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(21,48,58,.12); }
.has-sub.open ul { display: block; }
#nav .has-sub ul a { padding: 9px 18px; font-weight: 400; }
#nav .has-sub ul a:hover { background: var(--mist); }
.portal-link { font: 600 15px var(--body); text-decoration: none; color: #fff; background: var(--slate); padding: 10px 16px; white-space: nowrap; }
.portal-link:hover { background: var(--river); color: #fff; }
.menu-toggle { display: none; margin-left: auto; font: 600 15px var(--body); background: none; border: 1px solid var(--line); color: var(--slate); padding: 9px 14px; cursor: pointer; }

/* ---------- buttons & links ---------- */
.btn { display: inline-block; font: 600 16px var(--body); text-decoration: none; color: #fff; background: var(--river); padding: 13px 22px; border: 1.5px solid var(--river); cursor: pointer; }
.btn:hover { background: var(--river-dk); border-color: var(--river-dk); color: #fff; }
.btn-line { background: transparent; color: var(--river); }
.btn-line:hover { background: var(--river); color: #fff; }
.btn-line.light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-line.light:hover { background: #fff; color: var(--slate); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--green); padding-bottom: 2px; color: var(--slate); }
.text-link:hover { color: var(--river); }

/* ---------- home hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; font-stretch: 110%; font-weight: 740; letter-spacing: -0.028em; max-width: 15ch; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; margin: 26px 0 32px; }
.hero-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--mist); clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
.hero-photo .slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo .slide.on { opacity: 1; }

/* resident quick bar */
.quick { margin-top: clamp(32px, 5vw, 56px); background: var(--slate); color: #fff; }
.quick-grid { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: stretch; }
.quick-label { font: 600 15px var(--head); color: #a9cdd6; align-self: center; padding-right: 28px; }
.quick a { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; color: #fff; text-decoration: none; border-left: 1px solid rgba(255,255,255,.14); }
.quick a strong { font: 600 18px var(--head); font-stretch: 108%; }
.quick a span { font-size: 14.5px; color: #b8c9ce; }
.quick a:hover { background: var(--river); }
.quick a:hover span { color: #e1eef1; }

/* ---------- home blocks ---------- */
.block { padding: clamp(60px, 8vw, 104px) 0; }
.block.alt { background: var(--mist); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.block-head h2, .areas-teaser h2, .story h2, .split h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.block-head p { color: var(--muted); max-width: 52ch; }

/* service tiles: photo + text, no card chrome */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin: 0 0 40px; }
.tile { text-decoration: none; color: var(--slate); display: block; }
.tile-img { aspect-ratio: 3 / 2; background: var(--mist) center/cover no-repeat; margin-bottom: 18px; transition: filter .3s; }
.tile h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile:hover h3 { color: var(--river); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.tile:hover .tile-img { filter: brightness(1.06) saturate(1.1); }

/* story */
.story { padding: clamp(60px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-img img { width: 100%; border: 1px solid var(--line); background: #fff; }
.year { font: 800 clamp(80px, 11vw, 150px)/.8 var(--head); font-stretch: 125%; letter-spacing: -0.05em; color: var(--mist); -webkit-text-stroke: 1.5px var(--sky); margin-bottom: 18px; }
.flow > * + * { margin-top: 1em; }
.flow > h2 + * { margin-top: .7em; }
.story p:not(.year) { color: var(--muted); max-width: 56ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.split p { color: var(--muted); max-width: 58ch; }

.areas-teaser h2 { margin-bottom: 28px; }
.county-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.county-list a { display: block; padding: 20px 20px 22px 0; text-decoration: none; color: var(--slate); border-bottom: 1px solid var(--line); }
.county-list li + li a { padding-left: 20px; border-left: 1px solid var(--line); }
.county-list strong { display: block; font: 600 20px var(--head); margin-bottom: 4px; }
.county-list span { color: var(--muted); font-size: 15px; }
.county-list a:hover strong { color: var(--river); }

/* call to action band */
.cta { background: var(--river); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; max-width: 24ch; }
.cta .btn { background: #fff; color: var(--slate); border-color: #fff; }
.cta .btn:hover { background: var(--mist); }
.cta .btn.btn-line.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta .btn.btn-line.light:hover { background: #fff; color: var(--slate); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- inner pages ---------- */
.page-head { background: var(--mist); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 300px; align-items: stretch; }
.ph-grid.no-img { grid-template-columns: 1fr; min-height: 0; }
.ph-text { padding: clamp(40px, 6vw, 72px) 40px clamp(40px, 6vw, 72px) 0; align-self: center; }
.ph-grid.no-img .ph-text { padding-right: 0; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; font-stretch: 115%; letter-spacing: -0.025em; max-width: 18ch; }
.ph-intro { margin-top: 18px; color: var(--muted); font-size: 19px; max-width: 54ch; }
.ph-img { background: center/cover no-repeat; margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter))); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.page-body { padding: clamp(44px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.flow { max-width: 70ch; }
.flow.wide { max-width: none; }
.flow.wide > .prose, .flow.wide > h2 { max-width: 70ch; }
.page-body h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin-top: 1.6em; }
.page-body .flow > h2:first-child { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--green); }
.prose ul:has(> li:nth-child(14)) { columns: 2; column-gap: 40px; }
.prose ul:has(> li:nth-child(14)) li { break-inside: avoid; margin-top: 0; }
.flow.wide > .prose:has(ul > li:nth-child(14)) { max-width: 980px; }
.prose img { margin: 0 0 1.4em; border: 1px solid var(--line); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
.prose strong { font-weight: 600; }
figure { margin: 0; }
.flow figure img { border: 1px solid var(--line); }
.post-fig { margin-bottom: 1.6em !important; }
.embed { margin: 24px 0 40px; }
.back::before { content: "‹ "; }
.page-head time { color: var(--muted); }

/* blog list */
.posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 920px; }
.post { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--slate); }
.post-img { aspect-ratio: 3 / 2; background: var(--mist) center/cover no-repeat; }
.post time { font-size: 14.5px; color: var(--muted); }
.post h2 { font-size: 24px; margin: 4px 0 8px !important; line-height: 1.2; }
.post p { color: var(--muted); font-size: 16px; }
.post:hover h2 { color: var(--river); }

/* forms & contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.form-title { margin: 0 0 22px !important; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 22px; }
.fields .full { grid-column: 1 / -1; }
.contact-form label { display: block; font: 600 15px var(--body); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: 16px var(--body); color: var(--slate); padding: 12px 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--river); outline: none; box-shadow: 0 0 0 3px rgba(111,167,181,.35); }
.form-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.flow .contact-form { margin-top: 1.4em; }
.contact-card { background: var(--slate); color: #dbe6e8; padding: clamp(28px, 4vw, 40px); }
.contact-card h2 { color: #fff; font-size: 24px; margin: 0 0 10px !important; }
.contact-card h2 + * { margin-top: 0; }
.contact-card address { font-style: normal; color: #fff; font-size: 18px; }
.contact-card dl { margin: 20px 0 30px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.contact-card dt { color: #a9cdd6; font-weight: 600; }
.contact-card dd { margin: 0; color: #fff; }
.contact-card a { color: #fff; }
.contact-card p { margin-bottom: 16px; }
.contact-card .btn { background: #fff; color: var(--slate); border-color: #fff; }
.contact-card .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.contact-card .btn-line:hover { background: #fff; color: var(--slate); }

/* service areas */
.counties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--slate); margin-bottom: clamp(48px, 6vw, 72px); }
.county { padding: 30px 32px 34px 0; border-bottom: 1px solid var(--line); }
.county:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.county h2 { font-size: 28px; margin: 0 !important; }
.county > p { color: var(--muted); margin: 4px 0 16px; }
.county ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.county li { padding: 5px 0; break-inside: avoid; border-bottom: 1px dotted var(--line); }
.area-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); }
.area-more h2 { margin-top: 0 !important; }
.area-more p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.map iframe { width: 100%; height: 440px; border: 0; display: block; background: var(--mist); }

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: #b8c9ce; font-size: 15.5px; padding: clamp(52px, 6vw, 72px) 0 0; }
.foot { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 18px; max-width: 30ch; }
.site-footer h2 { color: #fff; font: 600 16px var(--head); font-stretch: 108%; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #e3ecee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; color: #e3ecee; margin-bottom: 10px; }
.social { display: flex; gap: 16px; margin-top: 16px !important; }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 52px; padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: #8fa5ac; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .menu-toggle { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(21,48,58,.12); padding: 8px var(--gutter) 18px; }
  #nav.open { display: block; }
  #nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  #nav a, #nav button { padding: 12px 0; font-size: 17px; width: 100%; text-align: left; border-bottom: 1px solid var(--mist); }
  #nav a[aria-current], .has-sub.is-current > button { box-shadow: none; }
  .has-sub ul { position: static; border: 0; box-shadow: none; padding: 0 0 6px 16px; }
  .portal-link { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 900px) {
  .block-head { gap: 14px; }
  .hero-grid, .block-head, .story-grid, .split, .cta-grid, .contact-grid, .area-more { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-label { display: none; }
  .quick a:first-of-type { border-left: 0; }
  .county-list { grid-template-columns: repeat(2, 1fr); }
  .county-list li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-text { padding-right: 0; }
  .ph-img { height: 220px; margin: 0 calc(-1 * var(--gutter)); clip-path: none; }
  .story-img { max-width: 440px; }
}
@media (max-width: 620px) {
  .prose ul:has(> li:nth-child(14)) { columns: 1; }
  .portal-link { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand .mark { width: 36px; }
  .wm-name { font-size: 21px; }
  .tiles { grid-template-columns: 1fr; gap: 36px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick a { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; }
  .quick a:first-of-type { border-top: 0; }
  .quick a:hover { background: transparent; }
  .county-list, .counties, .foot, .fields { grid-template-columns: 1fr; }
  .county-list li + li a { padding-left: 0; border-left: 0; }
  .county, .county:nth-child(even) { padding: 26px 0; border-left: 0; }
  .post { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .slide { transition: none; }
}
