/* ============================================================
   DASC MOB DESIGN — Global styles
   Dynamic brand colors are overridden by a small inline :root
   block in includes/header.php (values come from Settings).
   ============================================================ */
:root {
    --gold:    #C8A96E;
    --gold-light: #E8D5A3;
    --bg:      #0A0A0A;
    --bg-card: #111111;
    --bg-mid:  #161616;
    --text:    #E8E8E0;
    --text-muted: #888880;
    --border:  rgba(200,169,110,0.18);
    --border-hover: rgba(200,169,110,0.45);
    --shadow:  0 4px 40px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 30px rgba(200,169,110,0.15);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --radius: 2px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
    --bg:      #F5F3EF;
    --bg-card: #FFFFFF;
    --bg-mid:  #EDE9E3;
    --text:    #1A1A18;
    --text-muted: #6B6860;
    --border:  rgba(140,105,55,0.20);
    --border-hover: rgba(140,105,55,0.50);
    --shadow:  0 4px 40px rgba(0,0,0,0.10);
    --shadow-gold: 0 0 30px rgba(200,169,110,0.12);
}
[data-theme="light"] .topbar { background: #FFFFFF; }
[data-theme="light"] ::-webkit-scrollbar-track { background: #F5F3EF; }
[data-theme="light"] ::selection { background: var(--gold); color: #fff; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; scrollbar-gutter: stable; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--gold); color: var(--bg); }

/* ── TOP BAR ── */
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 24px; align-items: center; }
.topbar-contact a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-contact svg { width: 13px; height: 13px; fill: var(--gold); flex-shrink: 0; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    display: flex; align-items: center;
}
.topbar-social a:hover { color: var(--gold); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ── NAVIGATION ── */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.nav-wrapper.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
[data-theme="light"] .nav-wrapper.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-wrapper.nav-hidden { opacity: 0; pointer-events: none; }
.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
}
.nav-logo-main span { color: var(--gold); }
[data-theme="light"] .nav-logo-main { color: #111111; }
[data-theme="light"] .nav-logo-main span { color: var(--gold); }
[data-theme="light"] .nav-logo-sub { color: #777; }
[data-theme="light"] .nav-hamburger span { background: #111111; }
[data-theme="light"] .nav-wrapper { background: rgba(245,243,239,0.95); }
[data-theme="light"] .footer { background: #FFFCF8; }
[data-theme="light"] .footer-bottom { border-color: rgba(140,105,55,0.20); }
.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
    padding: 10px 22px !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    letter-spacing: 0.12em !important;
    transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile nav */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 999;
    overflow-y: auto;
}
.nav-mobile.open { display: flex; flex-direction: column; }
.nav-mobile-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    padding: 40px 40px 40px;
    gap: 2px;
}
.nav-mobile-inner > a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}
.nav-mobile-inner > a:hover,
.nav-mobile-inner > a.active { color: var(--gold); }
.nav-mobile-inner > a:last-of-type { border-bottom: none; }
.nav-mobile-cta {
    margin-top: 8px !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    text-align: center;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--gold) !important;
    letter-spacing: 0.12em;
}
/* Accordion */
.nav-mobile-acc { border-bottom: 1px solid var(--border); }
.nav-mobile-acc-btn {
    width: 100%;
    background: none; border: none;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    padding: 10px 0;
    cursor: pointer;
    transition: color var(--transition);
}
.nav-mobile-acc-btn:hover { color: var(--gold); }
.nav-mobile-acc-btn svg { width: 20px; height: 20px; transition: transform .3s; flex-shrink: 0; }
.nav-mobile-acc-btn.open { color: var(--gold); }
.nav-mobile-acc-btn.open svg { transform: rotate(180deg); }
.nav-mobile-acc-panel {
    display: none;
    flex-direction: column;
    padding: 4px 0 12px 16px;
    gap: 2px;
}
.nav-mobile-acc-panel.open { display: flex; }
.nav-mobile-acc-panel a {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: none !important;
    transition: color var(--transition);
}
.nav-mobile-acc-panel a:hover { color: var(--gold); }
.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}
.nav-mobile-close:hover { border-color: var(--gold); color: var(--gold); }
.nav-mobile.open .nav-mobile-close { display: flex; }
/* Footer contact */
.nav-mobile-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-mobile-footer a {
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    color: var(--gold) !important;
    text-decoration: none;
    letter-spacing: 0.1em;
    border-bottom: none !important;
    padding: 2px 0 !important;
}
/* Close button is the hamburger itself, no separate X in overlay */


/* ── GENERIC SECTION STYLES ── */
.section { padding: 100px 24px; }
.section-sm { padding: 60px 24px; }
.container { max-width: 1320px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }

.section-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.section-title em {
    font-style: italic;
    color: var(--gold);
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ── DECORATIVE LINE ── */
.deco-line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 24px 0;
}

/* ── GOLD DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── PAGE HERO ── */
.page-hero {
    padding: 80px 24px 60px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(200,169,110,0.06) 0%, transparent 70%);
    pointer-events: none;
}
[data-theme="light"] .page-hero::before {
    background: radial-gradient(ellipse at 80% 50%, rgba(160,105,40,0.10) 0%, transparent 65%),
                linear-gradient(180deg, rgba(200,169,110,0.06) 0%, transparent 100%);
}
.page-hero-content { position: relative; }
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
}
.page-hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
}
.page-hero-bg-text {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 11rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(200,169,110,0.06);
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

[data-theme="light"] .page-hero-bg-text { color: rgba(140,90,20,0.08); }

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 70px 20px; }
    .page-hero { padding: 60px 20px 40px; }
    .btn { width: 100%; justify-content: center; }
}

/* ── FOOTER ── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 70px 24px 32px;
}
.footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}
.footer-logo-main span { color: var(--gold); }
.footer-slogan {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "nav   svc"
            "contact contact";
        gap: 32px 16px;
    }
    .footer-grid > *:nth-child(1) { grid-area: brand; }
    .footer-grid > *:nth-child(2) { grid-area: nav; }
    .footer-grid > *:nth-child(3) { grid-area: svc; }
    .footer-grid > *:nth-child(4) { grid-area: contact; }
    .footer-logo-main { font-size: 1.2rem; }
}

/* ── WHATSAPP FLOAT (LEFT) ── */
.wa-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 54px; height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* ── SCROLL TO TOP (RIGHT BOTTOM) ── */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 30px; height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 900;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s, border-color var(--transition), background var(--transition);
    text-decoration: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--gold); background: var(--bg-mid); }
.scroll-top svg { width: 15px; height: 15px; stroke: var(--gold); }

/* ── THEME TOGGLE (RIGHT, ABOVE SCROLL-TOP) ── */
.theme-toggle {
    position: fixed;
    bottom: 58px;
    right: 24px;
    width: 30px; height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 900;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); transform: scale(1.08); }
.theme-toggle svg { width: 15px; height: 15px; stroke: var(--gold); transition: opacity .2s; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 220px;
    list-style: none;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    padding-top: 12px;
    padding-bottom: 8px;
}
/* Invisible bridge fills the gap so mouse can travel from link to menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px; right: -20px;
    height: 12px;
    background: transparent;
}
[data-theme="light"] .nav-dropdown-menu { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--gold); background: var(--bg-mid); }
.nav-dropdown-menu li a::after { display: none !important; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
/* small triangle pointer */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--border);
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
    .topbar-social { display: none; }
    .topbar-inner { flex-direction: column; gap: 6px; padding: 8px 16px; }
    .topbar-contact { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .topbar-contact a { font-size: 0.72rem; }
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-message { padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem; }
.form-message.success { background: rgba(200,169,110,0.1); border: 1px solid var(--gold); color: var(--gold); }
.form-message.error { background: rgba(255,80,80,0.1); border: 1px solid #ff5050; color: #ff5050; }

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.022;
    pointer-events: none;
    z-index: 9999;
}
[data-theme="light"] body::before { opacity: 0.04; }

/* ============================================================
   SHARED COMPONENTS (promoted from per-page duplicates)
   ============================================================ */

/* ── PAGE HERO — light theme (was copied in 5 page files) ── */
[data-theme="light"] .page-hero { background: linear-gradient(135deg, #F5F3EF 60%, #EDE9E3 100%); }

/* ── AJAX FORM MESSAGES (was copied on homepage + contact) ── */
.form-message-ajax{padding:12px 16px;border-radius:4px;margin-bottom:16px;font-size:14px;display:none}
.form-message-ajax:not(:empty){display:block}
.form-message-ajax.success{background:rgba(76,175,125,.12);border:1px solid rgba(76,175,125,.35);color:#4CAF7D}
.form-message-ajax.error{background:rgba(232,85,85,.10);border:1px solid rgba(232,85,85,.30);color:#E85555}

/* ── FILTER BUTTONS (gallery + portfolio) ── */
.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── LIGHTBOX (gallery, portfolio, service pages — one implementation) ── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.97); z-index: 2000; display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 24px; background: none; border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1.2rem; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .2s; z-index: 2; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: white; font-size: 1.4rem; cursor: pointer; padding: 16px 18px; transition: all .2s; line-height: 1; z-index: 2; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(200,169,110,0.2); border-color: var(--gold); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.4); }
.lightbox-caption { margin-top: 12px; font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.lightbox-title { color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; margin-top: 16px; }
@media (max-width: 640px) {
    .lightbox-prev { left: 8px; padding: 12px 14px; }
    .lightbox-next { right: 8px; padding: 12px 14px; }
}

/* ── ACCESSIBILITY ── */
/* Visible keyboard focus (mouse clicks stay outline-free) */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
/* Respect the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}
