/* Matt Hurst Realty. Their own system, carried forward: the sand top bar with both phone numbers,
   the maroon-black sticky header with the gold CENTURY 21 logo and a Playfair menu, the photo hero
   with its outlined "Welcome" badge and gold first line, Playfair headings with the second words in
   gold, the gold-framed photo with a dark-framed photo overlapping its corner, gold-bordered cards
   with gold pills, dark team cards (one gold), the warm grey "How can Matt help you?" band, the black
   footer with gold rules and the maroon copyright bar. The hero is the one loud thing. */

@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; }
@font-face { font-family: 'Source Sans 3'; src: url(../fonts/source-sans-3.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }

:root, :root[data-theme="c21"] {
  --maroon: #1b0000;     /* their header, copyright bar, headings and button text */
  --maroon-2: #3d0f0f;   /* hover */
  --gold: #beb18c;       /* their pills, frames and rules (9.4:1 under maroon text) */
  --gold-ink: #86754a;   /* their gold, deepened for gold text on white (4.5:1) */
  --sand: #cbc1a3;       /* their top bar */
  --tint: #f5f2ea;       /* a pale wash of the sand, for the odd quiet section */
  --charcoal: #2d2d2d;   /* their team cards */
  --black: #000;         /* their footer */
  --ink: #1f1a17;        /* body text */
  --muted: #5b534b;
  --rule: #e4ded0;
  --error: #a3001b;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  --btn: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.masthead :focus-visible, .hero :focus-visible, .phero :focus-visible, .band :focus-visible, .cta :focus-visible,
.callbar :focus-visible, .footer :focus-visible, .member :focus-visible, .searchpanel :focus-visible { outline-color: var(--gold); }
.member--gold :focus-visible { outline-color: var(--maroon); }
[hidden] { display: none !important; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--maroon); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
sup { font-size: .55em; line-height: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: var(--maroon); padding: 10px 16px; font-weight: 700; border-radius: 4px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; vertical-align: -.15em; }

/* ---- type ---- */
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); }
.h2--big { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.8rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
.gold { color: var(--gold-ink); }
.center { text-align: center; }
.ruled::after { content: ''; display: block; width: 150px; height: 3px; background: var(--maroon); margin-top: .5em; }
.ruled--center::after { width: 260px; margin-left: auto; margin-right: auto; }
.lede { font-size: 1.2rem; }

/* ---- buttons: their pills ---- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btns--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.6em;
  border: 2px solid transparent; border-radius: 999px; font: 600 1.06rem/1.15 var(--btn); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn--gold { background: var(--gold); color: var(--maroon); }
.btn--gold:hover { background: #d3c8a6; color: var(--maroon); }
.btn--white { background: #fff; color: var(--maroon); }
.btn--white:hover { background: var(--sand); color: var(--maroon); }
.btn--maroon { background: var(--maroon); color: #fff; }
.btn--maroon:hover { background: var(--maroon-2); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--line { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn--line:hover { background: var(--maroon); color: #fff; }
.btn--sm { min-height: 42px; padding: .5em 1.2em; font-size: .98rem; }
.btn--lg { min-height: 54px; padding: .8em 1.9em; font-size: 1.14rem; }
.btn--block { width: 100%; }


/* ---- top bar: their sand strip with both numbers ---- */
.topbar { background: var(--sand); color: var(--maroon); font-size: .9rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px 26px; }
.topbar a { color: var(--maroon); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: var(--maroon); }
.topbar__lbl { font-weight: 700; }
.topbar__fb { width: 32px; height: 32px; justify-content: center; border-radius: 50%; background: var(--maroon); color: var(--sand) !important; padding: 0 !important; }
.topbar__fb .ico { width: 18px; height: 18px; }

/* ---- header: maroon, sticky, gold logo, Playfair menu ---- */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--maroon); color: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.masthead__in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex: none; display: block; padding: 10px 0; }
.brand__logo { width: 168px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 10px; color: #fff; text-decoration: none; font: 700 1.06rem/1.2 var(--serif); }
.nav__link:hover, .nav__link.is-here { color: var(--gold); }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.nav__caret { background: none; border: 0; color: #fff; padding: 8px 4px; margin-left: -6px; cursor: pointer; display: inline-flex; }
.nav__caret .ico { width: 18px; height: 18px; transition: transform .15s; }
.nav__caret[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--maroon);
  border-top: 3px solid var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); display: none; }
.nav__sub a { display: block; padding: 10px 18px; color: #fff; text-decoration: none; font: 600 1rem/1.3 var(--serif); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--gold); }
.nav__extra { display: none; }
.masthead__actions { display: flex; align-items: center; gap: 10px; }
.masthead__search { padding-left: 1.2em; padding-right: 1.3em; }
.masthead__call { display: none; }
.menu-btn { display: none; }
@media (min-width: 1101px) and (hover: hover) {
  .has-sub:hover > .nav__sub { display: block; }
}
@media (min-width: 1101px) {
  .has-sub.is-open > .nav__sub { display: block; }
}

/* tablet and phone: the menu drops down under the header */
@media (max-width: 1100px) {
  .masthead__in { min-height: 72px; gap: 12px; }
  .brand__logo { width: 150px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: transparent; color: #fff;
    border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; font: 600 1rem var(--btn); cursor: pointer; }
  .menu-btn .ico { width: 22px; height: 22px; }
  .menu-btn__close { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
  .masthead__actions { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--maroon); border-top: 3px solid var(--gold);
    padding: 8px var(--gut) 24px; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(190, 177, 140, .25); }
  .nav__link { flex: 1; padding: 14px 0; font-size: 1.2rem; }
  .nav__caret { display: none; }
  .nav__sub { display: block; position: static; width: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 18px; background: none; }
  .nav__sub a { padding: 10px 0; font-size: 1.05rem; color: var(--sand); }
  .nav__extra { display: grid; gap: 10px; padding-top: 18px; }
  .nav__addr { display: flex; gap: 8px; align-items: flex-start; color: var(--sand); font-size: .98rem; padding: 8px 0; text-decoration: none; }
  .nav__addr:hover { color: #fff; }
}
@media (max-width: 760px) {
  .topbar { font-size: .86rem; }
  .topbar__in { min-height: 40px; }
  .topbar__right { display: none !important; }
  .topbar__phones { width: 100%; justify-content: space-between; gap: 6px 14px !important; }
  .brand__logo { width: 132px; }
  .masthead__search { display: none; }
  .masthead__call { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--maroon); }
  .masthead__call .ico { width: 22px; height: 22px; }
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0 11px; }
}
@media (max-width: 760px) {
  .topbar__phones a { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 5px 0; line-height: 1.2; }
  .topbar__phones .ico { grid-row: 1 / 3; }
  .topbar__lbl { font-size: .78rem; letter-spacing: .02em; }
  .topbar__num { font-size: .92rem; white-space: nowrap; }
}

/* ---- home hero: their slideshow of houses under a dark wash, the badge, the gold first line ---- */
.hero { position: relative; isolation: isolate; color: #fff; text-align: center; display: grid; align-items: center;
  min-height: clamp(560px, 78vh, 780px); padding: 72px 0 80px; background: var(--maroon); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide:nth-child(2), .hero__slide:nth-child(3) { opacity: 0; animation: slide 21s ease-in-out infinite both; }
.hero__slide:nth-child(2) { animation-delay: 7s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
@keyframes slide { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 0, 0, .55) 0%, rgba(10, 0, 0, .62) 55%, rgba(10, 0, 0, .74) 100%); }
.hero__in { max-width: 1000px; }
.hero__badge { display: inline-block; margin: 0 0 22px; padding: 8px 16px; border: 2px solid #fff; border-radius: 8px; font: 700 1.05rem/1.2 var(--serif); }
.hero__title { color: #fff; font-weight: 600; font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.2rem); line-height: 1.12; margin: 0 auto 22px; text-wrap: balance; }
.hero__place { display: block; color: var(--gold); }
.hero__lede { max-width: 64ch; margin: 0 auto; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .94); }
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 48px 0 52px; }
  .hero__slide:not(:first-child) { display: none; }
  .hero__badge { font-size: .95rem; margin-bottom: 16px; }
  .hero__title { font-size: 2rem; }
  .hero__lede { font-size: 1rem; line-height: 1.6; }
  .hero .btns { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* ---- office strip: the top bar's sand, grown into one-tap rows ---- */
.office { background: var(--sand); }
.office__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office__item { display: flex; align-items: center; gap: 14px; padding: 20px 18px; color: var(--maroon); text-decoration: none; border-left: 1px solid rgba(27, 0, 0, .18); }
.office__item:first-child { border-left: 0; padding-left: 0; }
.office__item > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--maroon); color: var(--gold); }
.office__k { display: block; font: 700 1.08rem/1.2 var(--serif); }
.office__v { display: block; font-size: 1rem; }
.office__item:hover .office__v { text-decoration: underline; }
@media (max-width: 860px) {
  .office__in { grid-template-columns: 1fr; padding: 0; }
  .office__item, .office__item:first-child { border-left: 0; border-top: 1px solid rgba(27, 0, 0, .15); padding: 14px var(--gut); }
  .office__item:first-child { border-top: 0; }
}

/* ---- sections ---- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--tint { background: var(--tint); }
.section--cards { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--media-first .pair { order: -1; }
.split__text > :last-child { margin-bottom: 0; }
.prose { max-width: 76ch; margin-top: clamp(32px, 4vw, 48px); }
.prose--wide { max-width: 88ch; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .pair, .split--media-first .pair { order: 2; }
}

/* their photo pair: big photo in a gold frame, a smaller one in a dark frame over its corner */
.pair { position: relative; padding-bottom: 56px; padding-left: 28px; }
.pair__big { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 7px solid var(--gold); }
.pair__small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--charcoal); background: var(--charcoal); }
.pair--flip { padding-left: 0; padding-right: 28px; }
.pair--flip .pair__small { left: auto; right: 0; }
@media (max-width: 900px) {
  .pair { max-width: 640px; padding-left: 18px; padding-bottom: 40px; }
  .pair--flip { padding-left: 0; padding-right: 18px; }
}

/* ---- home cards: gold frames, photo, title, their words, a pill ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border: 3px solid var(--gold); border-radius: 10px; padding: 10px; background: #fff; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.card__body { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 18px 8px 10px; }
.card__title { font-size: 1.45rem; margin-bottom: .45em; }
.card__text { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.card__more { margin-top: auto; }
.card__more .ico { width: .95em; height: .95em; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---- "How can Matt Hurst help you?" band: their warm grey wash over a room photo ---- */
.band { position: relative; isolation: isolate; color: #fff; padding: clamp(56px, 7vw, 92px) 0; overflow: hidden; background: #5f5856; }
.band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(78, 70, 68, .86); }
.band__in { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 48px); max-width: 1000px; }
.band__face { flex: none; }
.band__img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 5px solid var(--gold); }
.band__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); margin-bottom: .35em; }
.band__line { font-size: 1.12rem; max-width: 52ch; margin: 0; }
.band .btns { margin-top: 1.3em; }
@media (max-width: 760px) {
  .band__in { flex-direction: column; text-align: center; }
  .band__img { width: 132px; height: 132px; }
  .band .btns { justify-content: center; }
}

/* ---- inner-page closing strip ---- */
.cta { background: var(--maroon); color: #fff; padding: 40px 0; border-top: 4px solid var(--gold); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta__line { margin: 0; max-width: 34ch; font: 600 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.3 var(--serif); }
.cta .btns { margin-top: 0; }

/* ---- inner-page banner: photo, darker wash, breadcrumb chip, centred title ---- */
.phero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(220px, 28vw, 340px); padding: 40px 0; text-align: center; color: #fff; background: var(--maroon); overflow: hidden; }
.phero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 0, 0, .5), rgba(10, 0, 0, .62)); }
.crumbs { list-style: none; margin: 0 0 14px; padding: 6px 12px; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0;
  background: rgba(0, 0, 0, .35); border-radius: 4px; font-size: 1rem; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 4px; height: 1.15em; margin: 0 10px; background: var(--gold); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.phero__title { color: #fff; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.7rem); margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* ---- about ---- */
.about { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.about__img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 7px solid var(--gold); }
.about__role { font: 600 1.1rem/1.4 var(--serif); color: var(--gold-ink); margin-top: -.3em; }
.quote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 5px solid var(--gold); }
.quote p { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem)/1.35 var(--serif); color: var(--maroon); margin: 0 0 .3em; }
.quote footer { font-size: 1rem; color: var(--muted); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
}

/* ---- team: their dark cards, alternating sides, the second one in gold ---- */
.section--team { padding-top: 0; }
.team { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.member { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center;
  background: var(--charcoal); color: #fff; border-radius: 8px; padding: clamp(22px, 3.5vw, 40px); }
.member--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.member--flip .member__photo { order: 2; }
.member__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #000; }
.member__role { font: 700 1.05rem/1.2 var(--serif); margin: 0 0 .3em; color: var(--gold); }
.member__name { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: .4em; }
.member__bio { font-size: 1.02rem; line-height: 1.65; max-width: 68ch; }
.member--gold { background: var(--gold); color: var(--maroon); }
.member--gold .member__role, .member--gold .member__name { color: var(--maroon); }
@media (max-width: 760px) {
  .member, .member--flip { grid-template-columns: 1fr; }
  .member--flip .member__photo { order: 0; }
  .member__photo { max-width: 260px; }
}

/* ---- resume: their bordered sheet with the dotted rule ---- */
.resume { max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 6px 24px rgba(27, 0, 0, .08); }
.resume__head { text-align: center; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 3px dotted var(--maroon); }
.resume__name { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
.resume__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 1rem; }
.resume__contact a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.resume__contact .ico { color: var(--gold-ink); }
.resume__contact a:hover { text-decoration: underline; }
.resume__h { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 1.4em; }
.resume__licence { margin: 1.6em 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-weight: 700; }
.profile { margin: 0; }
.profile__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--rule); }
.profile dt { font-weight: 700; color: var(--gold-ink); }
.profile dd { margin: 0; }
@media (max-width: 600px) { .profile__row { grid-template-columns: 1fr; } }

/* ---- lists ---- */
.ticks, .tips { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li, .tips li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.ticks li::before, .tips li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.tips li { margin-bottom: .9em; }
.tips strong { color: var(--maroon); }

/* ---- browse listings panel ---- */
.searchpanel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(22px, 3vw, 32px); background: var(--charcoal); color: #fff; border-radius: 10px; border-left: 8px solid var(--gold); }
.searchpanel__ico .ico { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: var(--gold); color: var(--maroon); }
.searchpanel__title { color: #fff; font-size: 1.6rem; margin-bottom: .25em; }
.searchpanel p { margin: 0; }
.searchpanel .btns { margin-top: 0; }
@media (max-width: 900px) {
  .searchpanel { grid-template-columns: 1fr; }
  .searchpanel__ico { display: none; }
}

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__card { border: 3px solid var(--gold); border-radius: 10px; padding: clamp(22px, 3.5vw, 36px); background: #fff; box-shadow: 0 6px 24px rgba(27, 0, 0, .08); scroll-margin-top: 110px; }
.ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 24px; }
.ways > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.ways > li > .ico { width: 34px; height: 34px; color: var(--gold-ink); margin-top: 2px; }
.ways__h { font-size: 1.45rem; color: var(--gold-ink); margin-bottom: .25em; }
.ways__big { display: block; margin: 0 0 .2em; font-weight: 700; font-size: 1.1rem; color: var(--maroon); overflow-wrap: anywhere; }
a.ways__big { text-decoration: none; }
a.ways__big:hover { text-decoration: underline; color: var(--maroon); }
.arrowlink { font-weight: 700; }
.map__frame { display: block; width: 100%; height: clamp(320px, 40vw, 440px); border: 0; border-top: 6px solid var(--gold); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---- forms ---- */
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: .98rem; color: var(--maroon); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 12px; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 2px solid #d9d2c0; border-radius: 6px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(190, 177, 140, .55); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-weight: 600; font-size: .92rem; min-height: 0; }
.field__err:empty { display: none; }
.form__submit { width: 100%; margin-top: 4px; }
.form__fine { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.sent { padding: 8px 0; }
.sent:focus { outline: none; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---- footer: black, gold rules under the headings, maroon copyright bar ---- */
.footer { background: var(--black); color: #fff; font-size: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.25fr .9fr 1.2fr 1fr; gap: 36px; padding-top: 60px; padding-bottom: 52px; }
.footer__logo { width: 210px; margin-bottom: 18px; }
.footer__brand p { max-width: 32ch; margin: 0; }
.footer__h { color: #fff; font-size: 1.35rem; margin-bottom: 22px; }
.footer__h::after { content: ''; display: block; width: 110px; height: 2px; margin-top: 14px; background: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__links li { margin-bottom: 4px; }
.footer__links a { display: inline-block; padding: 4px 0; }
.footer__contact li { margin-bottom: 10px; }
.footer__contact a, .footer__social a { display: inline-flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.footer__contact .ico, .footer__social .ico { margin-top: .2em; color: var(--gold); }
.footer__lbl { font-weight: 700; color: var(--gold); }
.footer__dir { display: block; color: var(--gold); font-weight: 600; margin-top: 2px; }
.footer__social li { margin-bottom: 10px; }
.footer__base { background: var(--maroon); text-align: center; padding: 18px 0; font-size: .95rem; }
.footer__base p { margin: 0; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; } }

/* ---- 404 ---- */
.notfound { text-align: center; min-height: 50vh; }
.pills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills a { display: block; padding: 10px 20px; border: 2px solid var(--maroon); border-radius: 999px; text-decoration: none; font: 600 1rem var(--btn); }
.pills a:hover { background: var(--gold); color: var(--maroon); }

/* ---- 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 16px calc(10px + env(safe-area-inset-bottom)); background: var(--maroon); box-shadow: 0 -4px 16px rgba(0, 0, 0, .3); border-top: 3px solid var(--gold); }
  .callbar .btn { min-height: 48px; padding: .6em .8em; font-size: 1rem; }
  body { padding-bottom: calc(74px + 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; }
}
