:root { --deluxe-privacy-space: 0px; }
html { scroll-padding-top: 100px; scroll-padding-bottom: calc(var(--deluxe-privacy-space) + 100px); }

body { padding-bottom: var(--deluxe-privacy-space); }
:focus-visible { outline: 3px solid #1269ad !important; outline-offset: 4px !important; }

.skip-link {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 300;
    padding: 12px 20px;
    color: #fff;
    background: #08090b;
    border: 2px solid #c49a48;
    border-radius: 8px;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.deluxe-accessibility-trigger {
    position: fixed;
    z-index: 95;
    left: 16px;
    bottom: calc(88px + var(--deluxe-privacy-space));
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 10px;
    color: #453b28;
    background: rgba(255, 253, 246, .78);
    border: 1px solid rgba(128, 96, 32, .42);
    border-radius: 50%;
    font: inherit;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 12px rgba(8, 9, 11, .1);
    transition: background-color 160ms ease, border-color 160ms ease;
}
.deluxe-accessibility-trigger svg { width: 22px; height: 22px; pointer-events: none; }
.deluxe-accessibility-trigger:hover,
.deluxe-accessibility-trigger:focus-visible { background: rgba(255, 253, 246, .96); border-color: #806020; }
.deluxe-accessibility-trigger[data-dragging="true"] { cursor: grabbing; transition: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.privacy-banner-visible .floating-contact { bottom: calc(22px + var(--deluxe-privacy-space)); }

.deluxe-preferences-dialog {
    width: min(540px, calc(100vw - 28px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 24px;
    color: #08090b;
    background: #fff;
    border: 2px solid #9b7430;
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(8, 9, 11, .3);
    direction: rtl;
    font: inherit;
    line-height: 1.65;
}
.deluxe-preferences-dialog::backdrop { background: rgba(8, 9, 11, .68); }
.deluxe-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.deluxe-dialog-heading h2 { margin: 0; font-size: 1.35rem; line-height: 1.4; }
.deluxe-dialog-close {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #08090b;
    background: #f6f4ef;
    border: 1px solid #9b7430;
    border-radius: 8px;
    font: inherit;
    font-size: 1.7rem;
    cursor: pointer;
}
.deluxe-preferences-dialog p { margin: 14px 0; }
.deluxe-preferences-dialog a,
.deluxe-privacy-banner a,
.legal-content a,
.legal-page a,
.privacy-consent a,
.privacy-notice a { text-decoration: underline; text-underline-offset: 3px; }
.deluxe-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; }
.deluxe-text-controls { display: flex; align-items: center; gap: 12px; }
.deluxe-text-controls output { min-width: 4ch; text-align: center; font-weight: 700; }
.deluxe-text-controls button {
    width: 44px;
    height: 44px;
    color: #08090b;
    background: #f6f4ef;
    border: 1px solid #9b7430;
    border-radius: 8px;
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}
.deluxe-text-controls button:disabled { color: #5c5c5c; border-color: #858585; background: #eee; cursor: default; }
.deluxe-preference-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    padding: 13px 14px;
    margin: 8px 0;
    color: #08090b;
    background: #f6f4ef;
    border: 1px solid #9b7430;
    border-radius: 8px;
    font: inherit;
    text-align: right;
    cursor: pointer;
}
.deluxe-preference-toggle[aria-pressed="true"] { color: #fff; background: #08090b; }
.deluxe-preference-toggle > span:last-child { font-weight: 700; }
.deluxe-preference-help { color: #4a4843; font-size: .92rem; }
.deluxe-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.deluxe-preference-status { min-height: 1.65em; font-size: .9rem; }
.deluxe-privacy-status { font-size: .9rem; font-weight: 600; }
.deluxe-privacy-status:empty { display: none; }
.deluxe-privacy-copy .deluxe-privacy-status:not(:empty) { margin-top: 10px; }
.deluxe-preference-button {
    min-height: 44px;
    padding: 10px 18px;
    color: #fff;
    background: #08090b;
    border: 2px solid #c49a48;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.deluxe-preference-button:hover { background: #28241e; }

.deluxe-privacy-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
    max-height: 55dvh;
    overflow-y: auto;
    color: #fff;
    background: #08090b;
    border-top: 2px solid #c49a48;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, .2);
    direction: rtl;
}
.deluxe-privacy-banner[hidden] { display: none; }
.deluxe-privacy-copy { flex: 1 1 480px; }
.deluxe-privacy-copy h2 { margin: 0 0 5px; color: #fff; font-size: 1.08rem; line-height: 1.4; }
.deluxe-privacy-copy p { margin: 0; font-size: .93rem; line-height: 1.65; }
.deluxe-privacy-banner a { color: #edd5a9; }
.deluxe-privacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.deluxe-privacy-banner .deluxe-privacy-actions { flex: 0 0 auto; margin-top: 0; }
.deluxe-privacy-actions .deluxe-preference-button { flex: 1 1 130px; min-width: 130px; text-align: center; }
.deluxe-privacy-banner .deluxe-preference-button { color: #08090b; background: #fff; border-color: #c49a48; }
.deluxe-privacy-banner .deluxe-preference-button:hover { background: #f6f4ef; }

.footer-legal-links,
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.footer-legal-links a,
.footer-legal-links button,
.legal-links a,
.legal-links button { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links button,
.legal-links button,
.text-button { min-height: 44px; background: transparent; border: 0; padding: 0 4px; font: inherit; cursor: pointer; }
.text-button { color: #08090b; text-decoration: underline; text-underline-offset: 3px; }
.privacy-notice { font-size: .92rem; margin: 18px 0 0; }
.privacy-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; font-size: .9rem; }
.privacy-consent input[type="checkbox"] { width: 20px; height: 20px; margin: 4px 0 0; flex: 0 0 20px; accent-color: #08090b; }
.privacy-consent label { cursor: pointer; }
body.legal-page { padding: 0 0 var(--deluxe-privacy-space); }
.legal-content { max-width: 850px; margin: 0 auto; padding-block: 48px 64px; overflow-wrap: anywhere; }
.legal-content h1 { margin: 0 0 18px; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.3; }
.legal-content h2 { margin: 32px 0 10px; font-size: 1.3rem; line-height: 1.5; }
.legal-content p,
.legal-content li { color: #292824; }
.legal-content ul { padding-inline-start: 24px; }
.legal-content .legal-updated { color: #57534d; font-size: .95rem; }
.legal-content .legal-back { display: inline-block; margin-bottom: 24px; min-height: 44px; }

html[data-reduce-motion="true"] { scroll-behavior: auto !important; }
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

html[data-high-contrast="true"] { --ink: #000; --ink-2: #000; --gold: #ffe066; --gold-dark: #ffe066; --paper: #000; --soft: #000; --line: #fff; --muted: #fff; }
html[data-high-contrast="true"] body,
html[data-high-contrast="true"] :is(header, nav, main, section, article, aside, footer, .topbar, .mobile-panel, .problem-card, .service-card, .proof-card, .process-row, .trust-strip div, .visual-panel, .board-row, .service-item, .about-card, .process-step, .contact-card, .contact-form, .deluxe-preferences-dialog, .deluxe-privacy-banner) { color: #fff !important; background-color: #000 !important; background-image: none !important; }
html[data-high-contrast="true"] :is(h1, h2, h3, h4, p, li, label, legend, strong, small, output, span, .brand-name, .contact-line, .service-item, .eyebrow, .section-kicker, .hero-kicker, .deluxe-preference-help, .legal-updated) { color: #fff !important; }
html[data-high-contrast="true"] :is(button, input, textarea, select, .btn, .icon-link) { color: #fff !important; background-color: #000 !important; border-color: #fff !important; }
html[data-high-contrast="true"] :is(a, a.btn, .footer-legal-links a) { color: #ffe066 !important; text-decoration: underline !important; }
html[data-high-contrast="true"] :is(input, textarea)::placeholder { color: #ddd !important; opacity: 1; }
html[data-high-contrast="true"] :is(.deluxe-preference-toggle[aria-pressed="true"], [aria-current="page"]) { border: 2px solid #ffe066 !important; }
html[data-high-contrast="true"] button:disabled { color: #bcbcbc !important; border-color: #888 !important; }
html[data-high-contrast="true"] :focus-visible { outline-color: #ffe066 !important; }

@media (max-width: 800px) {
    .deluxe-privacy-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 20px; }
    .deluxe-privacy-copy { flex: initial; }
    .deluxe-privacy-banner .deluxe-privacy-actions { width: 100%; }
    .privacy-banner-visible .floating-contact { bottom: calc(16px + var(--deluxe-privacy-space)); }
}
@media (max-width: 640px) {
    .deluxe-accessibility-trigger { left: 12px; bottom: calc(80px + var(--deluxe-privacy-space)); }
    .deluxe-preferences-dialog { padding: 18px; }
    .deluxe-dialog-heading h2 { font-size: 1.2rem; }
    .deluxe-preference-row { flex-wrap: wrap; }
    .deluxe-privacy-banner { padding: 14px; }
    .deluxe-privacy-actions { gap: 10px; }
    .legal-content { padding-block: 36px 48px; }
    .footer-inner { flex-wrap: wrap; }
}
