/* CENTURY 21 Glover Town & Country. Their own system, carried forward from the old site:
   the gold CENTURY 21 logo over the dimmed living-room photo, Playfair Display headings and
   upper-case menu with the white bar over the current page, Roboto text, steel-blue headings
   and links, brown buttons, hairline dividers, the charcoal footer. Made readable and
   phone-first. Colours measured on the live site on 2026-10-17 (see notes/design-log.md). */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --gold: #b8af8b;        /* the logo's gold, sampled from their logo file */
  --blue: #51748e;        /* old headings on cards, links */
  --blue-dk: #3e5a6f;
  --brown: #8e452a;       /* old buttons */
  --brown-dk: #74361f;
  --ink: #252525;         /* old body text */
  --muted: #5a5a5a;
  --char: #212121;        /* old header and footer */
  --char-2: #191919;      /* old base bar */
  --rule: #e4e2da;        /* hairlines */
  --tint: #f7f6f1;        /* a whisper of the logo gold */
  --line: #c9c6bc;        /* field borders */
  --err: #a1261b;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.75 var(--sans); }
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dk); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.top :focus-visible, .footer :focus-visible, .callbar :focus-visible { outline-color: var(--gold); }
p { margin: 0 0 1em; }
sup { line-height: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
/* Playfair's numbers are old-style by default; phone numbers and prices read better as lining figures.
   !important because every `font:` shorthand would otherwise reset it. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 1.05em; height: 1.05em; flex: none; }
.ico--out { width: .8em; height: .8em; margin-left: .35em; vertical-align: -.05em; }


/* ---- buttons and links ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.45em;
  font: 600 1.02rem/1.2 var(--serif); letter-spacing: .01em; border-radius: 3px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn--brown { background: var(--brown); border-color: var(--brown); color: #fff; }
.btn--brown:hover { background: var(--brown-dk); border-color: var(--brown-dk); color: #fff; }
.btn--outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--lg { min-height: 54px; font-size: 1.08rem; padding: .8em 1.7em; }
.btn--sm { min-height: 40px; font-size: .95rem; padding: .45em 1em; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btns--center { justify-content: center; }
.more { display: inline-flex; align-items: center; font-weight: 500; color: var(--blue); }

/* ---- header: the logo and menu over the photo, as on every old page ------------------------- */
.top { position: relative; isolation: isolate; background: var(--char); color: #fff; overflow: hidden; }
.top__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,33,33,.62) 0%, rgba(33,33,33,.48) 45%, rgba(33,33,33,.72) 100%); }
.top__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: clamp(14px, 3vw, 30px); }
.brand { display: block; flex: 0 1 auto; }
.brand__logo { width: clamp(220px, 46vw, 600px); }
.page-home .brand__logo { width: clamp(240px, 74vw, 1040px); }
.menu-btn { display: none; }
.top__bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px 28px; margin-top: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: block; padding: 20px 12px 18px; border-top: 3px solid transparent; color: #fff; text-decoration: none;
  font: 500 .95rem/1.2 var(--serif); text-transform: uppercase; letter-spacing: .03em; }
.nav__item > a:hover { border-top-color: var(--gold); color: #fff; }
.nav__item.is-here > a { border-top-color: #fff; font-weight: 700; }
.nav__open { display: inline-grid; place-items: center; width: 22px; height: 30px; margin-left: -8px; margin-right: 2px; padding: 0;
  background: none; border: 0; color: rgba(255,255,255,.85); cursor: pointer; }
.nav__open .ico { width: 14px; height: 14px; transition: transform .15s; }
.nav__open[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 230px;
  background: var(--char); border-top: 3px solid var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,.35); display: none; }
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub, .nav__item--sub.is-open > .nav__sub { display: block; }
.nav__item--sub.is-shut > .nav__sub { display: none; }
.nav__sub a { display: block; padding: 10px 18px; color: #fff; text-decoration: none; font: 400 1rem/1.35 var(--sans); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--gold); }
.nav__extra { display: none; }
.top__phone { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0 6px 22px; border-left: 1px solid rgba(255,255,255,.3);
  color: #fff; text-decoration: none; font: 500 1rem/1.2 var(--sans); white-space: nowrap; }
.top__phone:hover { color: var(--gold); }

/* the page title on the photo */
.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(36px, 6vw, 64px); }
.hero__title { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); margin: 0; max-width: 18ch; text-wrap: balance; }
.page-home .hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(56px, 9vw, 120px); }
.page-home .hero__title { font-size: clamp(2.7rem, 1.2rem + 6.2vw, 5.5rem); line-height: 1.02; max-width: 11ch; }
.hero__lede { margin: 14px 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.92); }
.hero__crumb { margin: 0 0 8px; font-size: .95rem; }
.hero__crumb a { color: var(--gold); }
.hero__crumb a:hover { color: #fff; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 17px 0 12px; color: #fff; text-decoration: none;
  font: 500 .95rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid rgba(255,255,255,.8); }
.hero__cta:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hero__tri { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* phones and tablets: logo and Menu on one row, the menu opens under it */
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 46px; padding: 0 14px; border: 1.5px solid rgba(255,255,255,.85);
    border-radius: 3px; background: rgba(0,0,0,.25); color: #fff; font: 600 1rem var(--serif); cursor: pointer; }
  .menu-btn .ico { width: 22px; height: 22px; }
  .menu-btn__close, .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
  .top__bar { display: block; margin-top: 0; border-bottom: 0; }
  .top__phone { display: none; }
  .nav { display: none; margin: 14px 0 6px; padding: 8px 18px 18px; background: rgba(20,20,20,.94); border-top: 3px solid var(--gold); }
  .nav.is-open { display: block; }
  .nav__list { display: block; }
  .nav__item { display: block; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__item > a { padding: 14px 0; border-top: 0; font-size: 1.02rem; }
  .nav__item > a:hover { color: var(--gold); }
  .nav__item.is-here > a { color: var(--gold); }
  .nav__open { display: none; }
  .nav__sub { display: block; position: static; min-width: 0; padding: 0 0 10px 14px; background: none; border: 0; box-shadow: none; }
  .nav__sub a { padding: 8px 0; color: rgba(255,255,255,.9); }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: none; color: var(--gold); }
  .nav__extra { display: grid; gap: 10px; margin-top: 18px; }
}
@media (max-width: 520px) {
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 0 11px; }
  .brand__logo, .page-home .brand__logo { width: min(100%, calc(100vw - 2 * var(--gut) - 64px)); }
}

/* ---- sections ----------------------------------------------------------------------------- */
.section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section--top { padding-top: clamp(40px, 6vw, 72px); }
.section--flush { padding-top: 0; }
.tint { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 28px; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.sec-head--row .h2 { margin: 0; }
.sec-title { margin-bottom: 28px; }
.sec-title--center { text-align: center; }

/* the old home's centred intro between two hairlines */
.intro__text { max-width: 760px; margin: 0 auto; padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.intro__lede { font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.75rem)/1.4 var(--serif); color: var(--ink); margin-bottom: .9em; }
.intro__sign { font: italic 600 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.4 var(--serif); color: var(--blue); margin: 1.2em 0 0; }

/* the old home's four picture boxes (photo, blue title, line, Learn More) */
.doors { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px); }
.doors--three { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.door__pic { display: block; overflow: hidden; margin-bottom: 18px; background: var(--tint); }
.door__pic img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; transition: transform .4s ease; }
.door__pic:hover img { transform: scale(1.03); }
.door__title { font-size: clamp(1.5rem, 1.2rem + .9vw, 1.8rem); margin-bottom: .35em; }
.door__title a { color: var(--blue); text-decoration: none; }
.door__title a:hover { text-decoration: underline; }
.door p { margin-bottom: .6em; }
@media (max-width: 900px) { .doors--three { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 680px) { .doors { grid-template-columns: 1fr; } }

/* home: some of the team */
.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.face { display: block; color: var(--ink); text-decoration: none; }
.face img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; background: #fff; }
.face__name { display: block; font: 700 1.08rem/1.3 var(--serif); color: var(--blue); }
.face:hover .face__name { text-decoration: underline; }
.face__role { display: block; font-size: .92rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
@media (max-width: 1000px) { .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }

/* "Next Steps..." with the brown Contact button, as at the foot of the old pages */
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding-top: clamp(36px, 5vw, 52px); padding-bottom: clamp(44px, 6vw, 64px); }
.band { border-top: 1px solid var(--rule); }
.tint + .band { border-top: 0; }
.band__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .2em; }
.band__line { margin: 0; color: var(--muted); }
.band__btns { margin-top: 0; }
@media (max-width: 600px) { .band__btns { width: 100%; } .band__btns .btn { flex: 1 1 150px; } }

/* ---- team ---------------------------------------------------------------------------------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.team--lead { grid-template-columns: 1fr; margin-bottom: clamp(40px, 5vw, 60px); }
.person { min-width: 0; scroll-margin-top: 16px; }
.person__pic { margin: 0 0 16px; background: var(--tint); }
.person__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person__name { font-size: clamp(1.4rem, 1.2rem + .5vw, 1.6rem); color: var(--blue); margin-bottom: .1em; }
.person__role { margin: 0 0 10px; color: var(--muted); font-size: .98rem; }
.person__contact { display: grid; gap: 4px; margin-bottom: 14px; }
.person__tel, .person__mail { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 500; overflow-wrap: anywhere; }
.person__tel { font-size: 1.05rem; }
.person__tel--office { font-weight: 400; color: var(--muted); }
.person__bio { font-size: 1rem; line-height: 1.7; }
.person__bio p:last-child { margin-bottom: 0; }
.js .person__bio.is-clamped { max-height: 11.9em; overflow: hidden; position: relative; }
.js .person__bio.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.person__more { margin-top: 8px; padding: 6px 0; background: none; border: 0; color: var(--blue); font: 500 1rem var(--sans); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.person__quote { margin: 14px 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--gold); font: italic 400 1.05rem/1.55 var(--serif); color: var(--ink); }
.person__quote p { margin: 0; }
.person--featured { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start;
  padding-bottom: clamp(36px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.person--featured .person__pic { margin: 0; }
.person--featured .person__name { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); }
.person--featured .person__bio { font-size: 1.08rem; max-width: 60ch; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: a compact card (small portrait beside name, title and number; the story underneath),
   so all 18 people can be scanned without a screen-tall photo each */
@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; gap: 0; }
  .team--lead { margin-bottom: 0; }
  .person, .person--featured { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 16px; align-items: start;
    padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .team--lead .person { padding-top: 0; }
  .person__body { display: contents; }
  .person__pic { grid-column: 1; grid-row: 1; margin: 0 0 14px; }
  .person__pic img { aspect-ratio: 4 / 5; }
  .person__head { grid-column: 2; grid-row: 1; min-width: 0; }
  .person__name, .person--featured .person__name { font-size: 1.35rem; }
  .person__role { margin-bottom: 4px; font-size: .95rem; }
  .person__contact { margin-bottom: 10px; }
  .person__mail { font-size: .9rem; overflow-wrap: normal; word-break: break-all; }
  .person__bio, .person--featured .person__bio, .person__more { grid-column: 1 / -1; }
  .person__more { justify-self: start; }
}

/* ---- listings ------------------------------------------------------------------------------- */
.listings__box { border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: clamp(22px, 4vw, 40px); background: #fff; }
.listings__h { color: var(--blue); }
.listings__box > p { max-width: 64ch; }

/* link lists under a page (Buying a home?, Getting ready to sell) */
.helpers .h2 { margin-bottom: 18px; }
.helpers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule); }
.helpers__list a { display: block; height: 100%; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.helpers__t { display: flex; align-items: center; font: 700 1.2rem/1.3 var(--serif); color: var(--blue); margin-bottom: 4px; }
.helpers__list a:hover .helpers__t { text-decoration: underline; }
.helpers__d { display: block; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* photo beside text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__pic { margin: 0; }
.split__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- forms -------------------------------------------------------------------------------- */
.form-wrap { max-width: 860px; }
.form-wrap__lede { color: var(--muted); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 14px; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 3px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(81,116,142,.25); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__err { font-weight: 500; font-size: .92rem; color: var(--err); min-height: 0; }
.field__err:empty { display: none; }
.field__money { position: relative; display: block; }
.field__money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.field__money input { padding-left: 30px; }
.form__submit { justify-self: start; }
.form__fine { margin: 0; font-size: .95rem; color: var(--muted); max-width: 62ch; }
.sent { padding: 22px; border: 1px solid var(--rule); border-left: 4px solid var(--gold); background: #fff; }
.sent:focus { outline: none; }

/* ---- prose pages (Selling Tips, the blog post) ------------------------------------------------ */
.prose { max-width: calc(800px + 2 * var(--gut)); }
.prose__pic { margin: 0 0 clamp(28px, 4vw, 40px); }
.prose__pic img { width: 100%; }
.prose__pic--sm { max-width: 640px; }
.prose .h2 { margin-top: 1.3em; }
.prose .h2:first-of-type { margin-top: 0; }
.prose__lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); line-height: 1.65; }
.prose__more { margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--rule); }
.tips { list-style: none; margin: 0 0 2em; padding: 0; border-top: 1px solid var(--rule); }
.tips li { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
.tips__t { font-size: 1.3rem; color: var(--blue); margin-bottom: .25em; }
.tips p { margin: 0; }
.smells { padding-left: 1.4em; }
.smells li { margin-bottom: .7em; padding-left: .3em; }
.smells li::marker { font: 700 1.1rem var(--serif); color: var(--blue); }
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

/* ---- Tools: the mortgage calculator ------------------------------------------------------------ */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.calc__out { background: var(--tint); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: clamp(22px, 3vw, 32px); }
.calc__label { margin: 0; font-weight: 500; color: var(--muted); }
.calc__pay { margin: 0 0 14px; font: 700 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1.1 var(--serif); color: var(--blue); }
.calc__facts { margin: 0 0 16px; }
.calc__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 1rem; }
.calc__facts dt { color: var(--muted); }
.calc__facts dd { margin: 0; font-weight: 600; text-align: right; }
.calc__fine { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---- blog ---------------------------------------------------------------------------------- */
.post-card { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; max-width: 980px; }
.post-card__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__date { margin: 0 0 4px; color: var(--muted); font-size: .98rem; }
.post-card__title a { color: var(--blue); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }

/* ---- Join C21 ------------------------------------------------------------------------------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 40px); max-width: 980px; margin: 0 auto; }
.pair__card { padding: 26px 4px 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pair__title { text-align: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.expect { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.expect li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start; }
.expect__ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--char); box-shadow: inset 0 0 0 3px var(--gold); color: var(--gold); }
.expect__svg { width: 42px; height: 42px; }
.expect__t { font-size: 1.45rem; margin-bottom: .25em; }
.expect p { margin: 0; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } .expect li { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; } .expect__ico { width: 60px; height: 60px; } .expect__svg { width: 34px; height: 34px; } }
.join-cta { text-align: center; }
.join-cta > p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.footnote { margin-top: 40px !important; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .82rem; line-height: 1.55; color: var(--muted); text-align: left; max-width: none !important; }

/* ---- application + contact -------------------------------------------------------------------- */
.apply, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.apply__info .h3:not(:first-child) { margin-top: 1.4em; }
@media (max-width: 900px) { .apply, .contact { grid-template-columns: 1fr; } }
.contact__pic { margin: 0 0 22px; }
.contact__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact__phone { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.2 var(--serif); color: var(--blue); text-decoration: none; margin-bottom: 14px; }
.contact__phone:hover { text-decoration: underline; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.contact__list .ico { margin-top: .35em; color: var(--blue); }
.map { border-top: 1px solid var(--rule); background: var(--tint); }
.map__frame { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; }

/* ---- 404 --------------------------------------------------------------------------------- */
.pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--blue); border-radius: 3px; text-decoration: none; font-weight: 500; }
.pills a:hover { background: var(--blue); color: #fff; }

/* ---- footer: the old charcoal footer ----------------------------------------------------------- */
.footer { background: var(--char); color: #b9b9b9; font-size: 1rem; line-height: 1.65; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 36px clamp(28px, 4vw, 56px); padding-top: clamp(44px, 6vw, 64px); padding-bottom: clamp(40px, 5vw, 56px); }
.footer__logo { width: min(100%, 300px); margin-bottom: 22px; }
.footer__facts { margin: 0; }
.footer__facts div { margin-bottom: 12px; }
.footer__facts dt { font-weight: 700; color: #e6e6e6; }
.footer__facts dd { margin: 0; overflow-wrap: anywhere; }
.footer__h { font: 700 1.15rem/1.3 var(--serif); color: var(--gold); margin-bottom: 12px; }
.footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer__links li { break-inside: avoid; }
.footer__links a { display: inline-block; padding: 4px 0; color: #d6d6d6; text-decoration: none; }
.footer__links a:hover { color: var(--gold); text-decoration: underline; }
.footer__legal { font-size: .9rem; line-height: 1.6; }
.footer__base { background: var(--char-2); }
.footer__base-in { padding-top: 16px; padding-bottom: 16px; }
.footer__base p { margin: 0; font-size: .9rem; color: #9a9a9a; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__legal { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- phone call bar ------------------------------------------------------------------------ */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--char); box-shadow: 0 -6px 18px rgba(0,0,0,.25); }
  .callbar .btn { min-height: 46px; padding: .5em .8em; font-size: 1rem; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .menu-open .callbar { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
