/* DuChene Realty — site styles. Brand: slate #304551, gold #cfa865, cream #FDFBF7. */
:root {
  --slate: #304551;
  --slate-2: #3a5565;
  --slate-deep: #26373f;
  --gold: #cfa865;
  --gold-deep: #b89555;
  --cream: #FDFBF7;
  --ink: #1f2d35;
  --muted: #5b6b75;
  --line: #e6e1d8;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(31, 45, 53, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: 56px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration-color: rgba(48, 69, 81, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--slate); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 16px; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap-narrow { max-width: 820px; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 2px; font: 600 0.95rem/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink); }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: var(--slate-deep); color: var(--white); }
.btn-outline { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-outline:hover { background: var(--slate); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--slate); }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .actions, .cta-band .actions, .hero .actions { justify-content: center; }
@media (min-width: 900px) { .hero:not(.hero-center) .actions { justify-content: flex-start; } }

/* Top bar + header */
.topbar { background: var(--slate-deep); color: rgba(255,255,255,.75); font-size: 0.8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; max-width: 1400px; }
.topbar-area { display: none; }
.topbar-area a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar-area a:hover { color: var(--gold); text-decoration: underline; }
@media (min-width: 1024px) { .topbar-area { display: block; } }
.topbar-phone { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 500; }
.topbar-phone svg { width: 14px; height: 14px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; max-width: 1400px; }
.brand { flex: none; }
.brand img { width: 120px; height: auto; }
@media (min-width: 1400px) { .brand img { width: 140px; } }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { width: 24px; height: 2px; background: var(--slate); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; text-decoration: none; color: var(--slate); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--gold-deep); }
.site-nav { max-height: calc(100vh - 76px); overflow-y: auto; }
/* Dropdowns. Phone: the arrow button expands the submenu in place. */
.has-sub { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.has-sub > a { border-bottom: 0 !important; }
.sub-toggle { background: none; border: 0; color: var(--slate); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .sub { display: none; grid-column: 1 / -1; margin: 0 0 8px; padding: 0 0 0 16px; }
.has-sub.open > .sub { display: block; }
.site-nav .sub a { font-weight: 400; padding: 10px 4px; border-bottom: 0; font-size: .95rem; }
@media (min-width: 1260px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; align-items: center; gap: 24px; padding: 0; border: 0; box-shadow: none; background: none; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li a { border: 0; padding: 6px 0; font-size: 0.93rem; border-bottom: 2px solid transparent; white-space: nowrap; }
  .site-nav > ul { gap: 16px; }
  .site-nav { gap: 18px; }
  .site-nav .btn { white-space: nowrap; }
  .site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"], .site-nav a.in-section { border-bottom-color: var(--gold); color: var(--slate); }
  /* Desktop: the dropdown opens on hover, on keyboard focus, or with the arrow button. */
  .has-sub { display: flex; gap: 2px; border: 0; }
  .sub-toggle { width: 22px; height: 32px; }
  .sub-toggle svg { width: 16px; height: 16px; }
  .site-nav .sub { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s;
    position: absolute; top: 100%; left: -18px; min-width: 240px; margin: 0; padding: 8px 0; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow); z-index: 60; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
  .site-nav .sub li a { display: block; padding: 9px 18px; border: 0; font-size: .9rem; white-space: nowrap; }
  .site-nav .sub li a:hover, .site-nav .sub a[aria-current="page"] { background: var(--cream); color: var(--gold-deep); }
}

/* Hero */
.hero { position: relative; background: var(--slate); color: var(--white); padding: 64px 0 72px; text-align: center; overflow: hidden; }
.hero-photo { padding: 96px 0 104px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,55,63,.72), rgba(38,55,63,.82)); }
.hero-inner { position: relative; max-width: 880px; }
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.125rem; color: rgba(255,255,255,.88); max-width: 40em; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--gold-deep); margin-bottom: 12px; }
.hero .eyebrow, .tone-slate .eyebrow { color: var(--gold); }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.tone-cream { background: var(--cream); }
.tone-slate { background: var(--slate); color: rgba(255,255,255,.9); }
.tone-slate h2, .tone-slate h3 { color: var(--white); }
.tone-slate a:not(.btn) { color: var(--gold); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head .intro { color: var(--muted); font-size: 1.075rem; }
.tone-slate .section-head .intro { color: rgba(255,255,255,.8); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Grids + cards */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.tone-slate .card { background: var(--slate-2); border-color: rgba(255,255,255,.12); }
.tone-slate .card p { color: rgba(255,255,255,.82); }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); margin-bottom: 12px; }
.card h3 a { text-decoration: none; color: inherit; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--gold-deep); font-size: .93rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--gold-deep); margin-bottom: 8px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } .steps:has(> li:nth-child(3):last-child), .steps:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); padding: 28px 24px 24px; border-radius: var(--radius); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 2rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 32px; }
@media (min-width: 700px) { .checklist.cols-2 { grid-template-columns: repeat(2, 1fr); } .checklist.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f2d35' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0; text-align: center; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 500 clamp(1.4rem, 3.6vw, 2.4rem)/1.15 var(--serif); color: var(--gold-deep); }
.tone-slate .stats dd { color: var(--gold); }
.stats dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; color: var(--muted); }
.tone-slate .stats dt { color: rgba(255,255,255,.75); }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-reverse .split-media { order: 2; } }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Quote */
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 16px; font: italic 500 1.05rem/1.6 var(--serif); color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font: 3rem/0.8 var(--serif); color: var(--gold); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .9rem; }
.quote figcaption span { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--slate); color: rgba(255,255,255,.9); padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--white); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.fields { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 500; font-size: .9rem; color: var(--ink); padding: 0; }
.req { color: #b3261e; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #cfd6da; border-radius: 2px; padding: 11px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid rgba(207,168,101,.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.radios label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; }
.field input[type="radio"], .field input[type="checkbox"] { width: auto; flex: none; margin: 0; padding: 0; accent-color: var(--slate); }
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 2px; background: #fdecea; color: #8a1c14; font-size: .93rem; }
.form-success { padding: 20px; background: #eef6ef; border: 1px solid #b9dcbf; border-radius: 2px; color: #1e4d2b; }
.lead-form.sent .fields, .lead-form.sent .cf-turnstile, .lead-form.sent button, .lead-form.sent .form-note { display: none; }

/* Filters (blog, vendors) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filters button { font: 500 .85rem var(--sans); padding: 8px 14px; border: 1px solid var(--line); background: var(--white); color: var(--slate); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); color: var(--slate); cursor: pointer; font: 500 .9rem var(--sans); }
.pager button[aria-current="true"] { background: var(--slate); color: var(--white); border-color: var(--slate); }
[hidden] { display: none !important; }

/* Video embed */
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Logos row */
.logo-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: center; }
.logo-row img { height: 64px; width: auto; object-fit: contain; }

/* Footer */
.site-footer { background: var(--slate-deep); color: rgba(255,255,255,.78); font-size: .93rem; padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer-brand img { width: 200px; }
.tagline { font: italic 500 1.05rem var(--serif); color: var(--gold); margin: 12px 0 16px; }
.site-footer h2 { font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.contact-list li, .contact-list a { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.social svg { width: 17px; height: 17px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 28px; }
.trec-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-bottom: 20px !important; }
.trec-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer-bottom li { margin: 0; }
@media (min-width: 900px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.eho { display: inline-flex !important; align-items: center; gap: 6px; }
.eho svg { width: 18px; height: 18px; }

/* Mobile sticky bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 600; text-decoration: none; }
.mobile-bar a:first-child { background: var(--slate); color: var(--white); }
.mobile-bar a:last-child { background: var(--gold); color: var(--ink); }
.mobile-bar svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
