/* Light reading surfaces with burgundy actions. Dark sections reverse the action treatment. */
:where(.site-footer, .mobile-actions, .home-cover, .about-studio-hero,
       .page-heading, .directory-heading, .contact-hero, .finishes-archive-hero,
       .showcase-panel, .hero-project,
       .finishes-feature, .quote-band, .proof-band, .ledger-band,
       .enquiry-content, .quote-dialog, .studio-dialog, .feedback-channel,
       .project-sticky, .manual-estimate-heading) {
    --ink: var(--brand-on-dark);
    --muted: var(--brand-on-dark-muted);
    --line: var(--brand-dark-line);
    --accent: var(--brand-gold);
    --action-background: var(--brand-gold);
    --action-foreground: var(--brand-night);
    --action-hover: var(--brand-soft);
    --outline-foreground: var(--brand-on-dark);
    --outline-border: var(--brand-gold);
    --outline-hover: var(--brand-depth);
    --focus-ring: var(--brand-gold);
}

:focus-visible {
    outline-color: var(--focus-ring);
}

.button:not(.outline):not(.dark-button),
.button.dark-button {
    color: var(--action-foreground);
    background: var(--action-background);
    border-color: var(--action-background);
}
.button:not(.outline):not(.dark-button):hover,
.button.dark-button:hover {
    color: var(--action-foreground);
    background: var(--action-hover);
    border-color: var(--action-hover);
}
.button.outline {
    color: var(--outline-foreground);
    border-color: var(--outline-border);
}
.button.outline:hover {
    color: var(--outline-foreground);
    background: var(--outline-hover);
    border-color: var(--outline-border);
}

/* Navigation */
.site-header {
    background: var(--brand-night);
    color: var(--brand-on-dark);
    border-color: var(--brand-dark-line);
    --ink: var(--brand-on-dark);
    --muted: var(--brand-on-dark-muted);
    --line: var(--brand-dark-line);
    --accent: var(--brand-gold);
    --focus-ring: var(--brand-gold);
}
.site-header .brand .brand-wordmark {
    color: var(--brand-gold);
    white-space: normal;
    text-wrap: balance;
}
.site-header :focus-visible {
    outline-color: var(--focus-ring);
}
.site-header :is(.language-switch, .menu-toggle),
.site-header .header-actions .header-whatsapp {
    background: var(--brand-night);
    border-color: var(--brand-control);
    color: var(--brand-gold);
}
.site-header :is(.language-switch, .menu-toggle, .header-actions .header-whatsapp):hover {
    background: var(--brand-depth);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
.site-header .menu-toggle span {
    border-color: currentColor;
}
.primary-menu a,
.primary-menu summary {
    color: var(--brand-on-dark);
}
.primary-menu .nav-links-main > li > a[aria-current=page],
.primary-menu .nav-more details[open] > summary,
.primary-menu .nav-more details:has([aria-current]) > summary,
.primary-menu a:hover {
    color: var(--brand-gold);
    text-decoration: underline;
    text-decoration-color: var(--brand-control);
    text-underline-offset: .35em;
}
.primary-menu .nav-more ul {
    background: var(--brand-night);
    border-color: var(--brand-dark-line);
}
.primary-menu .nav-more a:hover,
.primary-menu .nav-more a:focus-visible {
    background: var(--brand-depth);
}

.site-footer,
.quote-band,
.proof-band,
.ledger-band,
.enquiry-content,
.mobile-actions,
.project-sticky {
    background: var(--brand-depth);
    border-color: var(--brand-dark-line);
}
.site-footer {
    border-block-start: 2px solid var(--brand-gold);
}
.site-footer .brand .brand-wordmark,
.site-footer h2 {
    color: var(--brand-on-dark);
}
.site-footer .brand .brand-wordmark {
    white-space: normal;
    text-wrap: balance;
}
.campaign-footer-brand {
    text-align: center;
}
.site-footer p,
.site-footer .footer-copy {
    color: var(--brand-on-dark-muted);
}
.quote-dialog,
.studio-dialog,
.feedback-layout .feedback-channel,
.chat-heading {
    background: var(--brand-depth);
    color: var(--brand-on-dark);
    border-color: var(--brand-dark-line);
}
.site-header .mobile-language {
    background: var(--brand-night);
}

.home-cover,
.about-studio-hero,
.finishes-feature {
    --photo-shadow: 28 25 20;
    --photo-direction: to right;
    background: rgb(var(--photo-shadow));
    color: var(--brand-on-dark);
}
[dir=rtl] :is(.home-cover, .about-studio-hero, .finishes-feature) {
    --photo-direction: to left;
}
.home-cover .architecture-cover img:not(.architecture-cover-default) {
    filter: saturate(.76) contrast(.97);
}
[dir=ltr] .home-cover .architecture-cover-default {
    transform: scaleX(-1);
}
.about-studio-hero .about-cover-image img,
.finishes-feature > .finishes-visual {
    filter: saturate(.90);
}
.home-cover::before,
html[dir=rtl] .home-cover::before,
.about-studio-hero::after,
html[dir=rtl] .about-studio-hero::after,
.finishes-feature::after,
[dir=ltr] .finishes-feature::after {
    background: linear-gradient(var(--photo-direction),
        rgb(var(--photo-shadow) / .96),
        rgb(var(--photo-shadow) / .86) 26%,
        rgb(var(--photo-shadow) / .40) 47%,
        transparent 73%);
}
.home-cover .home-hero-copy {
    text-shadow: 0 2px 20px rgb(25 22 18 / .44);
}
.home-cover .cover-company,
.home-cover .cover-duration,
.about-story .eyebrow {
    color: var(--brand-soft);
}
.home-cover .cover-company::before {
    content: none;
}
.finishes-feature-copy {
    border-color: var(--brand-gold);
}
.home-cover .hero-intro,
.about-story p:not(.eyebrow),
.finishes-feature p:not(.finishes-image-credit) {
    color: var(--brand-on-dark-muted);
}
.architecture-cover figcaption,
.about-cover-image figcaption,
.finishes-image-credit,
.unit-photo-caption {
    background: rgb(25 22 18 / .94);
    color: var(--brand-on-dark);
}
.home-cover .button.outline,
.home-cover .button.outline:hover {
    color: var(--outline-foreground);
    border-color: var(--outline-border);
    background: rgb(25 22 18 / .68);
}
.home-cover .button.outline:hover {
    background: var(--brand-depth);
}

.page-heading,
.directory-heading,
.contact-hero,
.manual-estimate-heading {
    background: linear-gradient(118deg,var(--brand-night),var(--brand-depth));
    color: var(--brand-on-dark);
    border-color: var(--brand-gold);
}
:where(.page-heading, .directory-heading, .contact-hero, .manual-estimate-heading) .breadcrumb,
:where(.page-heading, .directory-heading, .contact-hero, .manual-estimate-heading) .eyebrow {
    color: var(--brand-soft);
}
.bh-contact-banner {
    opacity: .36;
    filter: saturate(.88);
}

.figures-line,
.trust-band,
.contact-hours {
    background: var(--brand-wash);
    color: var(--brand-ink);
    border-color: var(--brand-line);
}
.figures-line dd,
.trust-track li,
.trust-pause,
.contact-hours strong {
    color: var(--brand-accent);
}
.figures-line dl div + div {
    border-color: var(--brand-line);
}

.home-showcase,
.decision-section,
.directory-catalogue,
.contact-studio,
[data-home-match],
.selection-band {
    background: var(--brand-cream);
}
.area-guide,
.journey-guide {
    background: var(--brand-wash);
}
.journey-roadmap,
.contact-studio-grid .contact-form,
.estate-card,
.unit-offer,
.finish-card,
.unit-directory-filter,
.review-card {
    background: var(--brand-paper);
    border-color: var(--brand-line);
}
.directory-browser .estate-price,
.price-breakdown > div,
.unit-offer-facts > div,
.manual-estimate-maintenance,
.finishes-unit-index a {
    background: var(--brand-wash);
    border-color: var(--brand-line);
}
.price-breakdown .price-major,
.manual-estimate-output-heading {
    background: var(--brand-accent);
    color: var(--brand-on-dark);
    border-color: var(--brand-accent);
}
input:is([type=range], [type=checkbox], [type=radio]),
.price-tool [type=range] {
    accent-color: var(--brand-accent);
}
.content a:not(.button) {
    color: var(--accent);
}
:where(input, textarea, select):focus {
    border-color: var(--brand-control);
}

:is(.portfolio-controls, .decision-switch, .showcase-filters) button[aria-pressed=true],
.unit-directory-tabs a[aria-current],
.unit-directory-view a[aria-current],
.directory-browser .portfolio-filter button[type=submit] {
    color: var(--brand-on-dark);
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}
.directory-browser .portfolio-filter button[type=submit]:hover {
    background: var(--brand-accent-hover);
}
.save-item[aria-pressed=true],
.story-icon,
.journey-roadmap .journey-icon {
    background: var(--brand-wash);
    color: var(--brand-accent);
    border-color: var(--brand-control);
}
.save-item[aria-pressed=true] svg {
    fill: currentColor;
}

.estate-card-visual .bh-project-badge:not(.bh-project-badge--open, .bh-project-badge--active, .bh-project-badge--pending) {
    background: var(--brand-depth);
    color: var(--brand-on-dark);
    border-color: var(--brand-gold);
}
.estate-card-visual .bh-project-badge:is(.bh-project-badge--active, .bh-project-badge--pending) {
    background: var(--brand-soft);
    color: var(--brand-accent);
    border-color: var(--brand-wash);
}
.card-media,
.unit-offer-media,
.finishes-panorama {
    background: var(--brand-soft);
}
.showcase-panel::after,
.area-tile::after {
    background: linear-gradient(to top,rgb(25 22 18 / .97),rgb(25 22 18 / .65) 35%,transparent 71%);
}
.showcase-panel.is-active::after {
    background: linear-gradient(to top,rgb(25 22 18 / .99),rgb(25 22 18 / .86) 44%,
        rgb(25 22 18 / .42) 73%,transparent 97%);
}
.showcase-panel.is-active [data-showcase-toggle] {
    width: fit-content;
    margin-inline: auto;
    padding: .32em .68em;
    background: var(--brand-depth);
    border: 1px solid var(--brand-dark-line);
    border-radius: 5px;
}
.area-tile:not(:has(img)) {
    background: linear-gradient(135deg,var(--brand-accent),var(--brand-night));
}
.area-tile:not(:has(img))::before {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: -1;
    border: 1px solid color-mix(in srgb,var(--brand-gold) 35%,transparent);
}
.ledger-panel,
.ledger-list,
.ledger-sheet {
    background: var(--brand-night);
    border-color: var(--brand-dark-line);
}
.ledger-active,
.ledger-row:hover {
    background: var(--brand-accent);
}

.finishes-archive-hero {
    background: var(--brand-depth);
    color: var(--brand-on-dark);
    border: 1px solid var(--brand-dark-line);
}
.finishes-archive-hero::before {
    background: linear-gradient(120deg,var(--brand-accent),var(--brand-depth) 63%);
}
.finishes-panorama {
    outline: 1px solid var(--brand-gold);
}
.finishes-view {
    background: var(--brand-gold);
    color: var(--brand-accent);
}
.finishes-page-header .finishes-contact,
.finishes-feature-call {
    background: var(--brand-night);
    color: var(--brand-on-dark);
    border-color: var(--brand-dark-line);
    border-inline-start-color: var(--brand-gold);
}
.finishes-view:hover,
.finishes-unit-index a:hover,
.finishes-contact:hover,
.finishes-page-header .finishes-contact:hover {
    background: var(--brand-soft);
    color: var(--brand-accent);
}
.finishes-portfolio a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

@media (min-width:1380px) {
    .site-header .brand .brand-wordmark {
        max-width: none;
        white-space: nowrap;
    }
}
@media (max-width:1199px) {
    .primary-menu .nav-links-main > li > a,
    .primary-menu .nav-more summary {
        background: var(--brand-depth);
    }
}
@media (max-width:680px) {
    .home-cover::before,
    html[dir=rtl] .home-cover::before,
    .about-studio-hero::after,
    html[dir=rtl] .about-studio-hero::after,
    .finishes-feature::after,
    [dir=ltr] .finishes-feature::after {
        background: linear-gradient(to top,
            rgb(var(--photo-shadow) / .98),
            rgb(var(--photo-shadow) / .85) 34%,
            rgb(var(--photo-shadow) / .32) 61%,
            rgb(var(--photo-shadow) / 0) 90%);
    }
}
