/* /the-dominion, the local page for the gated community in 78257. Loads after landing.css and keeps
 * its header, footer, buttons and closing band. The register is quieter than the rest of the site
 * on purpose: a serif display beside the brand Montserrat, warm limestone neutrals, the brand's
 * deepest teal, and a gold hairline as the only ornament. No eyebrow labels above headings; each
 * heading carries itself. */

.dm-body {
  --dm-cream: #FBF8F3;
  --dm-stone: #F3EDE3;
  --dm-stone-line: #E4DACB;
  --dm-gold: #B8955A;
  /* The hairline gold is 2.6:1 on cream, fine for a rule but not for text. Numerals use this step. */
  --dm-gold-text: #8C6A33;
  --dm-deep: #163F4B;
  --dm-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--dm-cream);
  overflow-x: hidden;
}
.dm-body ::selection { background: rgba(184, 149, 90, 0.32); color: var(--ld-navy); }

/* Section headings drop the franchise heavy italic for the serif here; small labels keep Montserrat. */
.dm-body h1, .dm-body h2 {
  font-family: var(--dm-serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--ld-navy);
  text-wrap: balance;
}
.dm-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.dm-rule { display: block; width: 56px; height: 1px; background: var(--dm-gold); margin: 0 0 28px; }
.dm-rule-center { margin: 0 auto 28px; }

/* ------------------------------------------------------------------ first viewport */
/* Copy on cream to the left, the entrance photo filling the right half to the edge of the screen. */
.dm-hero { position: relative; border-bottom: 1px solid var(--dm-stone-line); }
.dm-hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100svh - 80px), 820px);
  padding-top: 64px;
  padding-bottom: 64px;
}
.dm-hero-copy { width: 46%; max-width: 560px; }
.dm-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; }
.dm-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.dm-hero h1 { font-size: clamp(42px, 4.7vw, 70px); line-height: 1.04; margin: 0 0 26px; }
.dm-hero h1 em { font-style: italic; color: var(--ld-teal-900); }
.dm-lede { font-size: 18.5px; line-height: 1.7; margin: 0 0 34px; max-width: 32em; }
.dm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.dm-btn-call {
  background-color: transparent;
  background-image: none;
  border-color: rgba(44, 62, 80, 0.32);
  color: var(--ld-navy);
}
.dm-btn-call svg { width: 17px; height: 17px; }
.dm-btn-call:hover { background-color: #FFFFFF; border-color: var(--dm-gold); transform: translateY(-2px); }
.dm-btn-call:active { transform: translateY(1px); }
.dm-btn-call:focus-visible, .dm-hero .ld-btn-green:focus-visible { outline: 2px solid var(--ld-ocean); outline-offset: 3px; }
.dm-cta-note { margin: 18px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ld-ink-soft); }

/* ------------------------------------------------------------------ sections */
.dm-section { padding: 112px 0; }
.dm-section-stone { background: var(--dm-stone); }
.dm-narrow { max-width: 780px; }
.dm-section h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; margin: 0 0 22px; }
.dm-narrow > p { font-size: 18px; line-height: 1.8; margin: 0; }
.dm-head { margin-bottom: 52px; max-width: 640px; }
.dm-head h2 { margin: 0; }

/* The promise reads as a statement, the largest type after the hero. */
.dm-promise { padding: 120px 0 112px; }
.dm-promise h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; margin-bottom: 28px; }

.dm-split {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px; align-items: center;
}
.dm-split-rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.dm-split-copy > p { font-size: 17px; line-height: 1.8; margin: 0 0 18px; max-width: 36em; }
.dm-photo { margin: 0; }
.dm-photo img { width: 100%; height: auto; border-radius: 2px; display: block; }
.dm-split-rev .dm-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.dm-photo-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.dm-photo figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ld-ink-soft); }
.dm-photo figcaption a { color: inherit; text-underline-offset: 3px; }

.dm-list { list-style: none; margin: 14px 0 0; padding: 0; }
.dm-list li { padding: 22px 0; border-top: 1px solid var(--dm-stone-line); }
.dm-list li:last-child { border-bottom: 1px solid var(--dm-stone-line); }
.dm-list p { margin: 0; font-size: 16px; line-height: 1.7; max-width: 38em; }

/* The deep band. Brand teal-900, never a gradient. */
.dm-section-deep { background: var(--dm-deep); color: rgba(255, 255, 255, 0.82); }
.dm-head-light h2 { color: #FFFFFF; }
.dm-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.dm-pillars > div { padding-top: 22px; border-top: 1px solid rgba(184, 149, 90, 0.7); }
.dm-pillars h3 { color: #FFFFFF; }
.dm-pillars p { margin: 0; font-size: 15.5px; line-height: 1.75; }

/* ------------------------------------------------------------------ first visit */
/* A real sequence, so the serif numerals are information, not decoration. */
.dm-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: dm-step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.dm-steps li { counter-increment: dm-step; padding-top: 18px; border-top: 1px solid var(--dm-gold); }
.dm-steps li::before {
  content: counter(dm-step); display: block; margin-bottom: 14px;
  font-family: var(--dm-serif); font-style: italic; font-weight: 500; font-size: 44px; line-height: 1;
  color: var(--dm-gold-text);
}
.dm-steps p { margin: 0; font-size: 15.5px; line-height: 1.75; }

/* ------------------------------------------------------------------ FAQ */
.dm-faq { border-top: 1px solid var(--dm-stone-line); }
.dm-faq details { border-bottom: 1px solid var(--dm-stone-line); }
.dm-faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--dm-serif); font-size: 22px; font-weight: 600; color: var(--ld-navy); line-height: 1.3;
}
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 22px; color: var(--dm-gold-text);
}
.dm-faq details[open] summary::after { content: '\2212'; }
.dm-faq summary:focus-visible { outline: 2px solid var(--ld-ocean); outline-offset: 4px; }
.dm-faq details p { margin: 0 0 24px; font-size: 16px; line-height: 1.75; max-width: 40em; }
.dm-note { margin: 36px 0 0; font-size: 13px; color: var(--ld-ink-soft); }

/* ------------------------------------------------------------------ close */
.dm-final { background: var(--dm-deep); }
.dm-final h2 { color: #FFFFFF; font-family: var(--dm-serif); font-style: normal; font-weight: 500; font-size: clamp(34px, 4.2vw, 52px); }

/* ------------------------------------------------------------------ chat launcher */
/* Sparkly stays on this page, but as the face alone. The full pill sat over body copy, and an
   "instant price" label is the wrong first note for this audience. Scoped here, so the shared
   chat-bot.css and every other page are untouched. */
.dm-body .sp-launch { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
.dm-body .sp-launch-text { display: none; }
.dm-body .sp-peek { bottom: 70px; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 960px) {
  /* The photo leads on a phone and tablet: full width, uncropped enough to read the sign. */
  .dm-hero-photo { position: static; width: 100%; }
  .dm-hero-photo img { height: auto; aspect-ratio: 16 / 10; max-height: 460px; }
  .dm-hero-inner { min-height: 0; padding-top: 36px; padding-bottom: 64px; }
  .dm-hero-copy { width: 100%; max-width: 620px; }
  .dm-split, .dm-split-rev { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .dm-split-rev .dm-photo { order: -1; }
  .dm-split-rev .dm-photo img { aspect-ratio: 4 / 3; }
  .dm-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dm-body .sp { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dm-body .sp-launch { width: 52px; height: 52px; }
  .dm-body .sp-launch-face, .dm-body .sp-launch-face img { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .dm-hero h1 { font-size: 38px; margin-bottom: 18px; }
  .dm-hero-inner { padding-top: 28px; }
  .dm-lede { font-size: 16.5px; line-height: 1.65; margin-bottom: 26px; }
  .dm-cta .ld-btn { width: 100%; }
  .dm-cta-note { font-size: 14px; }
  .dm-section, .dm-promise { padding: 72px 0; }
  .dm-promise h2 { font-size: 34px; }
  .dm-head { margin-bottom: 36px; }
  .dm-pillars, .dm-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Numeral beside the heading on a phone, so four steps do not become four screens. */
  .dm-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
  .dm-steps li::before { grid-row: span 2; align-self: start; margin: -4px 0 0; font-size: 38px; }
  .dm-photo-tall img { aspect-ratio: 4 / 5; }
  .dm-faq summary { font-size: 20px; }
}
