/* douglasmoll.com: shared stylesheet (Heritage direction)
   Palette + type tokens live here; every page links this one file. */

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --forest: #1E2A24;        /* page ground */
  --forest-deep: #16201B;   /* footer band, cookie bar */
  --cream: #F1EADF;         /* primary text,   13.0:1 on forest */
  --cream-soft: #CFC8BB;    /* secondary text,  8.9:1 on forest */
  --brass: #B8975A;         /* accent text/UI,  5.4:1 on forest */
  --brass-line: #9A8452;    /* input borders,   4.1:1 on forest (≥3:1 UI) */
  --brass-light: #D6BC82;   /* small brass text over the photo backdrop, ≥5.5:1 measured on every slide */
  --brass-faint: rgba(184, 151, 90, .28); /* decorative hairlines only */
  --on-brass: #16201B;      /* text on brass buttons */
  --text-rgb: 241 234 223;  /* --cream as r g b, for translucent fills */
  --tint: 30 42 36;         /* photo overlay colour as r g b */
  --tint-a1: .55; --tint-a2: .92; --tint-a3: .72; --tint-a4: .58; --tint-a5: .9;
  --error-text: #F3C6B0;
  --error-line: #E8A88A;
  --credit: #333D37;        /* DM Grafix mark: body colour mixed 10% toward the text colour */
  --shadow: rgba(0, 0, 0, .35);
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 38ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}


/* ─── Light theme ───────────────────────────────────────── */
/* Follows the device setting; data-theme on <html> (set by theme.js) overrides it either way. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --forest: #F4F0E8;
    --forest-deep: #ECE6DA;
    --cream: #1B1A17;
    --cream-soft: #4A463F;
    --brass: #7A5E24;         /* bronze: 5.3:1 on bone, so brass type stays AA in the light */
    --brass-line: #8C7A4E;
    --brass-light: #5E4719;
    --brass-faint: rgba(122, 94, 36, .28);
    --on-brass: #1B1A17;
    --text-rgb: 27 26 23;
    --tint: 244 240 232;
    --tint-a1: .5; --tint-a2: .9; --tint-a3: .74; --tint-a4: .6; --tint-a5: .9;
    --error-text: #8A2E12;
    --error-line: #B5532E;
    --credit: #DED8CC;
    --shadow: rgba(27, 26, 23, .18);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --forest: #F4F0E8;
  --forest-deep: #ECE6DA;
  --cream: #1B1A17;
  --cream-soft: #4A463F;
  --brass: #7A5E24;
  --brass-line: #8C7A4E;
  --brass-light: #5E4719;
  --brass-faint: rgba(122, 94, 36, .28);
  --on-brass: #1B1A17;
  --text-rgb: 27 26 23;
  --tint: 244 240 232;
  --tint-a1: .5; --tint-a2: .9; --tint-a3: .74; --tint-a4: .6; --tint-a5: .9;
  --error-text: #8A2E12;
  --error-line: #B5532E;
  --credit: #DED8CC;
  --shadow: rgba(27, 26, 23, .18);
}
/* Buttons on brass keep dark text in both themes; in the light theme the brass surface itself is the lighter #B8975A so it still reads as brass. */
:root[data-theme="light"] .btn-solid, :root[data-theme="light"] .send, :root[data-theme="light"] .call-bar, :root[data-theme="light"] .cookie-btn-solid, :root[data-theme="light"] .skip-link,
:root[data-theme="light"] .btn:hover { background: #B8975A; border-color: #B8975A; color: #1B1A17; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-solid, :root:not([data-theme="dark"]) .send, :root:not([data-theme="dark"]) .call-bar, :root:not([data-theme="dark"]) .cookie-btn-solid, :root:not([data-theme="dark"]) .skip-link,
  :root:not([data-theme="dark"]) .btn:hover { background: #B8975A; border-color: #B8975A; color: #1B1A17; }
}

/* Temporary theme toggle for the approval round (theme.js). Remove before launch. */
.theme-toggle {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 70;
  min-height: 44px;
  padding: .5rem .9rem;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgb(var(--tint) / .55);
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--cream); }

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--forest);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Accessibility helpers ─────────────────────────────── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--brass);
  color: var(--on-brass);
  padding: .75rem 1rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* ─── Type ──────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

a { color: var(--cream); text-underline-offset: .18em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--brass); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.25rem;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Photo backdrop (home page): header floats over the top of the hero, slides crossfade behind it. */
.has-backdrop .hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 86vh, 820px);
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--forest);
}
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.slide.is-active { opacity: 1; }
.slide img {
  position: absolute;
  top: 0;
  left: -6%;
  display: block;
  width: 112%;          /* oversized so the slow drift never exposes an edge */
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* Slow float: odd slides start drifting right, even slides left. The animation is infinite and
   alternates, so it can never finish and freeze (a slow page load or a backgrounded tab used to let
   the 12 s one-shot run out, then the photo sat still and snapped when its class changed).
   ±4% of a 112%-wide image is ±4.5% of the viewport, inside the 6% overscan on each side.
   The outgoing slide keeps the same animation running (.is-leaving) through its fade-out. */
.slide.is-active img, .slide.is-leaving img { animation: drift-right 16s linear infinite alternate; will-change: transform; }
.slide:nth-child(even).is-active img, .slide:nth-child(even).is-leaving img { animation-name: drift-left; }
@keyframes drift-right { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes drift-left  { from { transform: translateX(4%); }  to { transform: translateX(-4%); } }
/* Small brass type over photos needs the lighter tint to hold AA; hairlines stay brass. */
.has-backdrop .hero .eyebrow, .has-backdrop .hero .rule-line { color: var(--brass-light); }
.has-backdrop .hero .rule-line::before, .has-backdrop .hero .rule-line::after { background: var(--brass); }

/* Forest tint: a dark band under the header, a vignette behind the type, and a fade into the page below. */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--tint) / var(--tint-a1)) 0, rgb(var(--tint) / 0) 160px),
    radial-gradient(ellipse 72% 66% at 50% 56%, rgb(var(--tint) / var(--tint-a2)) 0%, rgb(var(--tint) / var(--tint-a3)) 55%, rgb(var(--tint) / 0) 100%),
    linear-gradient(180deg, rgb(var(--tint) / var(--tint-a4)) 0%, rgb(var(--tint) / var(--tint-a4)) 62%, rgb(var(--tint) / var(--tint-a5)) 88%, var(--forest) 100%);
}
.monogram { width: 92px; height: 92px; margin-bottom: 2.25rem; }
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 4.6rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-left: .14em; /* optically centre the tracked caps */
}
.rule-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brass);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 1.5rem 0;
}
.rule-line::before, .rule-line::after {
  content: "";
  width: clamp(36px, 8vw, 70px);
  height: 1px;
  background: var(--brass);
}
.lede {
  font-size: 1.1rem;
  color: var(--cream-soft);
  max-width: var(--measure);
  margin: 0 0 2.25rem;
}

.affiliation {
  margin: 2rem 0 0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}
.areas {
  margin: .5rem 0 0;
  max-width: 44ch;
  font-size: .9rem;
  color: var(--cream-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 56px;
  padding: .9rem 1.75rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  font-size: 1.05rem;
  color: var(--cream);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--brass); color: var(--on-brass); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--brass); color: var(--on-brass); font-weight: 600; }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); }

/* ─── Note (contact) section ────────────────────────────── */
.note {
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  border-top: 1px solid var(--brass-faint);
}
.note h2 {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.note > p { text-align: center; color: var(--cream-soft); margin: 0 0 .5rem; }

.field { margin-top: 1.4rem; }
.field label, .field legend {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--brass-line);
  border-radius: 0;
  padding: .7rem 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--cream);
  box-shadow: 0 1px 0 0 var(--cream);
}
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--error-line); }

fieldset { border: 0; padding: 0; margin: 1.4rem 0 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.field .choice {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
}
.field .choice input { accent-color: var(--brass); width: 1rem; height: 1rem; margin: 0; }
.field .choice:has(input:checked) { border-color: var(--cream); background: rgb(var(--text-rgb) / .06); }
.field .choice:has(input:focus-visible) { outline: 2px solid var(--cream); outline-offset: 3px; }

.turnstile-wrap { margin-top: 1.5rem; min-height: 65px; }

.consent {
  font-size: .85rem;
  color: var(--cream-soft);
  margin: 1.25rem 0 0;
}
.consent a { color: var(--cream); }

.send {
  width: 100%;
  margin-top: 1.5rem;
  min-height: 54px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--on-brass);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.send:hover { background: var(--cream); border-color: var(--cream); }
.send[disabled] { opacity: .7; cursor: progress; }

.form-status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  text-align: center;
  color: var(--cream);
}
.form-status.is-error { color: var(--error-text); }
.form-status.is-success { color: var(--brass); }

.noscript-note {
  text-align: center;
  color: var(--cream-soft);
  border: 1px solid var(--brass-line);
  padding: 1rem;
  margin-top: 1rem;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--forest-deep);
  border-top: 1px solid var(--brass-faint);
  font-size: .85rem;
  color: var(--cream-soft);
}
.site-footer .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .9rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--cream-soft); }
.site-footer a:hover { color: var(--brass); }
.legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: center; }
.eho { display: inline-flex; align-items: center; gap: .5rem; }
.eho svg { width: 22px; height: 22px; flex: none; }
.brokerage strong { color: var(--cream); font-weight: 500; }
.brokerage-firm { white-space: nowrap; }   /* never orphans "LLC" on its own line */
.footer-credit {
  border-top: 1px solid var(--brass-faint);
  padding: 1rem var(--gutter) 1.25rem;
  display: flex;
  justify-content: center;
}
.dmg-credit { display: inline-flex; align-items: center; }
.dmg-credit .dmg-mark {                 /* the logo as a mask so its colour is a theme token (deliberately quiet) */
  display: block; width: 76px; height: 22px;
  background: var(--credit);
  -webkit-mask: url("../img/dmg-logo.svg") no-repeat center / contain;
  mask: url("../img/dmg-logo.svg") no-repeat center / contain;
  transition: background-color .2s ease;
}
.dmg-credit:hover .dmg-mark, .dmg-credit:focus-visible .dmg-mark { background: var(--cream-soft); }

@media (max-width: 900px) {
  .brokerage-sep { display: none; }
  .brokerage-firm { display: block; margin-top: .2rem; }   /* name + title on line 1, team + brokerage on line 2 */
}

@media (max-width: 480px) {
  /* keep the rule line on one line: text never wraps, the hairlines give way instead */
  .rule-line { font-size: .7rem; letter-spacing: .16em; gap: .6rem; white-space: nowrap; max-width: 100%; }
  .rule-line::before, .rule-line::after { flex: 1 1 28px; width: auto; min-width: 10px; max-width: 28px; }
}

/* ─── Mobile call bar ───────────────────────────────────── */
.call-bar { display: none; }
@media (max-width: 640px) {
  .affiliation { margin-top: 1.25rem; letter-spacing: .14em; }
  .affiliation-sep { display: none; }
  .affiliation-role, .affiliation-firm { display: block; white-space: nowrap; }
  .affiliation-firm { margin-top: .35rem; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .call-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 56px;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--brass);
    color: var(--on-brass);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-decoration: none;
    box-shadow: 0 -10px 30px var(--shadow);
    transition: transform .35s ease;
  }
  .call-bar.is-hidden { transform: translateY(110%); }   /* parked below the screen while the hero's call button is in view */
  .call-bar:hover { color: var(--on-brass); }
  .callbar-hidden .cookie-bar { bottom: 0; }
  .cookie-bar { transition: bottom .35s ease; }
  .call-bar svg { width: 20px; height: 20px; }
}

/* ─── Inner pages (privacy, thanks, 404) ────────────────── */
.page {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 4rem;
}
.page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: .06em; margin-bottom: .5rem; }
.page h2 { font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; margin: 2.25rem 0 .6rem; color: var(--brass); }
.page p, .page li { color: var(--cream-soft); }
.page strong { color: var(--cream); font-weight: 500; }
.page .meta { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.5rem; }
.page ul { padding-left: 1.2rem; }
.page .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.page.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.page.center .actions { justify-content: center; }

/* ─── Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise:nth-child(2) { animation-delay: .08s; }
  .rise:nth-child(3) { animation-delay: .16s; }
  .rise:nth-child(4) { animation-delay: .24s; }
  .rise:nth-child(5) { animation-delay: .32s; }
  .rise:nth-child(6) { animation-delay: .4s; }
  .rise:nth-child(7) { animation-delay: .48s; }
  .rise:nth-child(8) { animation-delay: .56s; }
  .rise:nth-child(9) { animation-delay: .64s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

@media print {
  html { background: #fff; color: #000; }
  .call-bar, .skip-link, .turnstile-wrap, .send, .backdrop { display: none !important; }
}

/* ─── Cookie consent ────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--forest-deep);
  border-top: 1px solid var(--brass);
  box-shadow: 0 -12px 32px var(--shadow);
  color: var(--cream);
}
.cookie-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-text { margin: 0; font-size: .92rem; color: var(--cream-soft); max-width: 60ch; }
.cookie-text strong { color: var(--cream); font-weight: 600; }
.cookie-text a { color: var(--cream); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-btn {
  min-height: 44px;
  padding: .55rem 1rem;
  font: inherit;
  font-size: .92rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--brass-line);
  border-radius: 2px;
  cursor: pointer;
}
.cookie-btn:hover { border-color: var(--cream); }
.cookie-btn-solid { background: var(--brass); border-color: var(--brass); color: var(--on-brass); font-weight: 600; }
.cookie-btn-solid:hover { background: var(--cream); border-color: var(--cream); }

.cookie-dialog {
  width: min(92vw, 34rem);
  padding: 0;
  border: 1px solid var(--brass);
  border-radius: 2px;
  background: var(--forest);
  color: var(--cream);
}
.cookie-dialog::backdrop { background: rgba(10, 16, 13, .7); }
.cookie-form { padding: clamp(1.25rem, 4vw, 2rem); }
.cookie-form h2 { font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.cookie-form > p { margin: 0 0 1rem; color: var(--cream-soft); font-size: .95rem; }
.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--brass-faint);
}
.cookie-row-text { display: flex; flex-direction: column; gap: .15rem; }
.cookie-row-text strong { color: var(--cream); font-weight: 600; }
.cookie-row-text span { font-size: .88rem; color: var(--cream-soft); }
.cookie-always { flex: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
label.cookie-row { cursor: pointer; }
.cookie-switch { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brass); }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }

.linklike {
  font: inherit;
  color: var(--cream-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.linklike:hover { color: var(--brass); }

@media (max-width: 640px) {
  .cookie-bar { bottom: calc(56px + env(safe-area-inset-bottom)); }  /* sits above the call bar */
  .cookie-inner { padding-block: .85rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
}
@media print { .cookie-bar, .cookie-dialog { display: none !important; } }
