:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ec;
  --panel: #e9e4db;
  --ink: #252823;
  --muted: #5d6059;
  --gold: #826c4e;
  --line: #292b252b;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* Keep the supplied transparent artwork intact, framing its generous clear margin. */
.brand { display: block; position: relative; width: 126px; height: 84px; overflow: hidden; flex-shrink: 0; }
.brand-name { position: absolute; width: 160px; height: 110px; max-width: none; left: -17px; top: -15px; object-fit: contain; }
.footer-brand .brand { width: 174px; height: 122px; }
.footer-brand .brand-name { width: 235px; height: 162px; left: -30px; top: -22px; }
.site-header nav { order: 1; margin-left: auto; }
.theme-toggle { order: 2; width: 40px; height: 40px; padding: 9px; display: grid; place-items: center; flex-shrink: 0; color: #f6f2eb; background: #171b19b8; border: 1px solid #ffffff55; border-radius: 50%; transition: background .2s, border-color .2s, color .2s; }
.theme-toggle:hover { background: #313d36; border-color: #f6f2eb; }
.theme-toggle svg { grid-area: 1/1; width: 20px; height: 20px; }
:root[data-theme="dark"] .theme-moon, :root[data-theme="light"] .theme-sun { display: none; }
.menu-toggle { order: 3; }
.site-header.scrolled .theme-toggle { color: var(--ink); background: transparent; border-color: var(--line); }
.site-header.scrolled .theme-toggle:hover { background: var(--panel); }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 95%, transparent); color: var(--ink); }
.menu-open .site-header { background: var(--bg); color: var(--ink); }

/* Text over photography stays light in either theme. */
.hero, .closing, .category-card { color: #f7f3ed; }
.hero h1 em, .closing h2 em { color: #eadfcb; }
.hero .button-light, .closing .button-light { background: #f4f0e8; border-color: #f4f0e8; color: #161a18; }
.hero .button-light:hover, .closing .button-light:hover { background: #d3c1a4; border-color: #d3c1a4; }
.hero .button-outline { color: #f7f3ed; border-color: #ffffff9c; }
.hero .button-outline:hover { background: #f4f0e8; color: #161a18; }
.property-type { color: #fff; }
.property-deal { position: absolute; left: 16px; bottom: 14px; padding: 4px 9px; font-size: 10px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.1px; background: #f1ece3; color: #222620; }

:root[data-theme="light"] h2 em { color: #896f4b; }
:root[data-theme="light"] .site-header:not(.scrolled) { color: #fff; }
:root[data-theme="light"] .hero h1 em, :root[data-theme="light"] .closing h2 em { color: #eadfcb; }
:root[data-theme="light"] .site-header nav a:last-child { border-color: #ffffff80; }
:root[data-theme="light"] .site-header.scrolled nav a:last-child { border-color: var(--line); }
:root[data-theme="light"] .category-card { background: #242a26; }
:root[data-theme="light"] .property-features { color: #51554f; }
:root[data-theme="light"] .property-photo { background: #dfd8ce; }
:root[data-theme="light"] .about { background: #ebe6dd; }
:root[data-theme="light"] .about-signature { color: #765e3c; }
:root[data-theme="light"] .showcase-more .button { background: #e9e4db; color: var(--ink); }
:root[data-theme="light"] .showcase-more .button:hover { background: #2b302b; color: #f7f3ed; }
:root[data-theme="light"] .skip-link { background: #262a25; color: #fff; }
:root[data-theme="light"] .floating-contact { border-color: #987f5b; }

@media (max-width: 1100px) {
  .site-header nav { order: 4; margin-left: 0; background: var(--bg); color: var(--ink); }
  :root[data-theme="light"] .site-header:not(.scrolled) .menu-toggle { color: #fff; }
  .menu-open .theme-toggle { color: var(--ink); border-color: var(--line); background: transparent; }
  :root[data-theme="light"] .site-header nav a:last-child { border-color: var(--line); }
}
@media (max-width: 650px) {
  .brand { width: 103px; height: 72px; }
  .brand-name { width: 140px; height: 96px; left: -18px; top: -14px; }
  .header-inner { gap: 14px; }
  .theme-toggle { margin-left: auto; width: 38px; height: 38px; }
  .footer-brand .brand { width: 165px; height: 116px; }
  .footer-brand .brand-name { width: 225px; height: 155px; left: -29px; top: -21px; }
}
