/**
 * Elch Sicherheitstechnik – Dual Theme
 * Default: Dark Premium (Navy/Gold)
 * Toggle:  Light Premium (Weiß/Gold)
 *
 * Theme is controlled by [data-theme="dark"|"light"] on <html>.
 * Colors are swapped exclusively through CSS custom properties.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DARK MODE (Default)
   ============================================================ */
:root,
[data-theme="dark"] {
    /* Gold palette (shared) */
    --gold-primary: #C9A84C;
    --gold-light: #DFC06A;
    --gold-dark: #A8893A;
    --gold-darker: #8A6F2A;
    --gold-glow: rgba(201, 168, 76, 0.3);
    --gold-subtle: rgba(201, 168, 76, 0.08);

    /* Backgrounds */
    --bg-body: #0F1B2D;
    --bg-secondary: #111827;
    --bg-tertiary: #152238;
    --bg-surface: #1A2A45;
    --bg-card: #141F33;
    --bg-card-hover: #1A2B48;
    --bg-deep: #0A1220;
    --bg-input: #152238;

    /* Nav */
    --nav-bg: rgba(15, 27, 45, 0.97);
    --nav-border: rgba(201, 168, 76, 0.3);
    --nav-text: #D1D5DB;
    --nav-text-hover: #C9A84C;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-light: #6B7280;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(201,168,76,0.08);

    /* Hero */
    --hero-gradient: linear-gradient(135deg, #0A1220 0%, #0F1B2D 40%, #152238 100%);
    --hero-glow: rgba(201, 168, 76, 0.06);
    --hero-glow-secondary: rgba(201, 168, 76, 0.02);

    /* Button */
    --btn-gold-text: #0A1220;
    --btn-outline-hover-text: #0A1220;

    /* Alerts */
    --alert-success-bg: rgba(34, 197, 94, 0.15);
    --alert-success-text: #86efac;
    --alert-danger-bg: rgba(239, 68, 68, 0.15);
    --alert-danger-text: #fca5a5;
    --alert-warning-bg: rgba(234, 179, 8, 0.15);
    --alert-warning-text: #fde68a;
    --alert-info-bg: rgba(59, 130, 246, 0.15);
    --alert-info-text: #93bbfd;

    /* Status */
    --status-green: #22c55e;
    --status-yellow: #eab308;
    --status-red: #ef4444;
    --status-gray: #6b7280;

    /* Scrollbar */
    --scrollbar-track: #152238;
    --scrollbar-thumb: #A8893A;

    /* Misc */
    --selection-bg: #C9A84C;
    --selection-text: #0A1220;
    --kbd-bg: rgba(255,255,255,0.1);
    --prose-color: #D1D5DB;
    --divider-from: transparent;
    --divider-via: #C9A84C;
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
    /* Backgrounds */
    --bg-body: #FAFAF8;
    --bg-secondary: #F3F1EC;
    --bg-tertiary: #EDEAE3;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FBF9F5;
    --bg-deep: #F0EDE6;
    --bg-input: #FFFFFF;

    /* Nav */
    --nav-bg: rgba(255, 255, 255, 0.97);
    --nav-border: rgba(201, 168, 76, 0.35);
    --nav-text: #4A4A4A;
    --nav-text-hover: #A8893A;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --text-light: #9A9A9A;

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.12);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.08), 0 0 20px rgba(201,168,76,0.08);

    /* Hero */
    --hero-gradient: linear-gradient(135deg, #FAFAF8 0%, #F3F1EC 40%, #EDEAE3 100%);
    --hero-glow: rgba(201, 168, 76, 0.08);
    --hero-glow-secondary: rgba(201, 168, 76, 0.04);

    /* Button */
    --btn-gold-text: #FFFFFF;
    --btn-outline-hover-text: #FFFFFF;

    /* Gold adjustments for light mode – slightly richer */
    --gold-primary: #B8962F;
    --gold-light: #C9A84C;
    --gold-dark: #9A7E22;
    --gold-darker: #7A6318;
    --gold-glow: rgba(184, 150, 47, 0.25);
    --gold-subtle: rgba(184, 150, 47, 0.06);

    /* Alerts */
    --alert-success-bg: rgba(34, 197, 94, 0.1);
    --alert-success-text: #15803d;
    --alert-danger-bg: rgba(239, 68, 68, 0.1);
    --alert-danger-text: #b91c1c;
    --alert-warning-bg: rgba(234, 179, 8, 0.1);
    --alert-warning-text: #92400e;
    --alert-info-bg: rgba(59, 130, 246, 0.1);
    --alert-info-text: #1d4ed8;

    /* Scrollbar */
    --scrollbar-track: #EDEAE3;
    --scrollbar-thumb: #C9A84C;

    /* Misc */
    --selection-bg: #C9A84C;
    --selection-text: #FFFFFF;
    --kbd-bg: rgba(0,0,0,0.07);
    --prose-color: #4A4A4A;
}

/* ============================================================
   BASE STYLES (use variables everywhere)
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    transition: background-color 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; } h5 { font-size: 1.125rem; } h6 { font-size: 1rem; }

p, li, td, th, label, span { color: var(--text-secondary); }
a { color: var(--gold-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-light); }
::selection { background: var(--selection-bg); color: var(--selection-text); }

/* ============================================================
   HEADER BANNER
   ============================================================ */
.header-banner {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
}
.header-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--divider-from), var(--divider-via), var(--divider-from));
}

.top-accent-bar {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-dark), var(--gold-primary), var(--gold-light), var(--gold-primary), var(--gold-dark), transparent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border) !important;
    transition: background 0.35s ease;
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
}
.theme-toggle:hover {
    border-color: var(--gold-primary);
}
.theme-toggle .toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.68, -0.2, 0.27, 1.2);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="light"] .theme-toggle .toggle-thumb {
    transform: translateX(24px);
}
.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
    width: 12px;
    height: 12px;
    transition: opacity 0.25s ease;
}
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; position: absolute; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; position: absolute; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold, .btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-light)) !important;
    color: var(--btn-gold-text) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}
.btn-gold:hover, .btn-primary:hover {
    box-shadow: var(--shadow-gold), 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-gold-outline, .btn-secondary {
    background-color: transparent !important;
    color: var(--gold-primary) !important;
    border: 1px solid var(--gold-primary) !important;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-gold-outline:hover, .btn-secondary:hover {
    background-color: var(--gold-primary) !important;
    color: var(--btn-outline-hover-text) !important;
}

.btn-danger { background-color: var(--status-red) !important; color: white !important; font-weight: 600; padding: 0.625rem 1.5rem; border-radius: 0.375rem; border: none; }
.btn-success { background-color: var(--status-green) !important; color: white !important; font-weight: 600; padding: 0.625rem 1.5rem; border-radius: 0.375rem; border: none; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover { border-color: var(--gold-primary); box-shadow: var(--shadow-gold); }
.card-header { background-color: var(--bg-tertiary); border-bottom: 1px solid var(--border-light); padding: 1rem 1.5rem; color: var(--text-primary); font-weight: 600; }
.card-body { padding: 1.5rem; color: var(--text-secondary); }
.card-gold { border: 1px solid var(--gold-primary); }
.card-gold .card-header { background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary)); color: var(--btn-gold-text); }

/* ============================================================
   TABLES
   ============================================================ */
.table { width: 100%; background-color: var(--bg-card); border-collapse: collapse; border: 1px solid var(--border-light); }
.table th { background-color: var(--bg-tertiary); color: var(--gold-primary); font-weight: 600; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); border-right: 1px solid var(--border-subtle); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.table th:last-child { border-right: none; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); color: var(--text-secondary); background-color: var(--bg-card); }
.table td:last-child { border-right: none; }
.table tr:hover td { background-color: var(--gold-subtle); }

table.min-w-full { background-color: var(--bg-card); }
table.min-w-full thead { background-color: var(--bg-tertiary); }
table.min-w-full thead th { background-color: var(--bg-tertiary); color: var(--gold-primary); }
table.min-w-full tbody { background-color: var(--bg-card); }
table.min-w-full tbody td { background-color: var(--bg-card); color: var(--text-secondary); }
table.min-w-full tbody tr:hover td { background-color: var(--gold-subtle); }

/* ============================================================
   FORMS
   ============================================================ */
.form-label { display: block; color: var(--text-secondary); font-weight: 500; margin-bottom: 0.5rem; }

.form-input, .form-select, .form-textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
textarea, select {
    width: 100%; padding: 0.75rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background-color: var(--bg-surface);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold-primary); }
select option { background: var(--bg-card); color: var(--text-secondary); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 1rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1rem; border-left: 4px solid; }
.alert-success { background-color: var(--alert-success-bg); border-color: var(--status-green); color: var(--alert-success-text); }
.alert-error, .alert-danger { background-color: var(--alert-danger-bg); border-color: var(--status-red); color: var(--alert-danger-text); }
.alert-warning { background-color: var(--alert-warning-bg); border-color: var(--status-yellow); color: var(--alert-warning-text); }
.alert-info { background-color: var(--alert-info-bg); border-color: #3b82f6; color: var(--alert-info-text); }

/* ============================================================
   STATUS & BADGES
   ============================================================ */
.status-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-right: 0.5rem; }
.status-green, .status-online, .status-active { background-color: var(--status-green); box-shadow: 0 0 8px var(--status-green); }
.status-yellow, .status-warning, .status-pending { background-color: var(--status-yellow); box-shadow: 0 0 8px var(--status-yellow); }
.status-red, .status-offline, .status-error { background-color: var(--status-red); box-shadow: 0 0 8px var(--status-red); }
.status-gray, .status-unknown, .status-inactive { background-color: var(--status-gray); }
.status-dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; }
.badge-gold { background-color: var(--gold-subtle); color: var(--gold-primary); border: 1px solid var(--gold-glow); }
.badge-success { background-color: var(--alert-success-bg); color: var(--alert-success-text); }
.badge-danger { background-color: var(--alert-danger-bg); color: var(--alert-danger-text); }
.badge-warning { background-color: var(--alert-warning-bg); color: var(--alert-warning-text); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold { color: var(--gold-primary) !important; }
.bg-gold { background-color: var(--gold-primary) !important; }
.bg-gold-light { background-color: var(--gold-subtle) !important; }
.border-gold { border-color: var(--gold-primary) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }
.gradient-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-light)); }
.divider-gold { height: 1px; background: linear-gradient(to right, var(--divider-from), var(--divider-via), var(--divider-from)); margin: 1.5rem 0; }

/* Page sections */
.page-header { background-color: var(--bg-tertiary); border-bottom: 1px solid rgba(201,168,76,0.15); padding: 1.5rem 0; }
.section { background-color: var(--bg-card); border-radius: 0.75rem; border: 1px solid var(--border-light); padding: 1.5rem; margin-bottom: 1.5rem; }
.section-title { color: var(--text-primary); font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold-primary); }

/* Modal */
.modal-content { background-color: var(--bg-card); border: 1px solid var(--gold-primary); border-radius: 0.75rem; }
.modal-header { border-bottom: 1px solid var(--border-light); padding: 1rem 1.5rem; }
.modal-body { padding: 1.5rem; color: var(--text-secondary); }
.modal-footer { border-top: 1px solid var(--border-light); padding: 1rem 1.5rem; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* ============================================================
   HOMEPAGE COMPONENTS (theme-aware)
   ============================================================ */
.hero-section { position: relative; background: var(--hero-gradient); overflow: hidden; }
.hero-section::before { content:''; position:absolute; top:-50%; right:-20%; width:600px; height:600px; background:radial-gradient(circle, var(--hero-glow) 0%, transparent 70%); border-radius:50%; }
.hero-section::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background:linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent); }
.topo-pattern { position:absolute; top:0; left:0; right:0; bottom:0; background-image:radial-gradient(circle at 20% 50%, var(--hero-glow) 0%, transparent 50%), radial-gradient(circle at 80% 20%, var(--hero-glow-secondary) 0%, transparent 40%); pointer-events:none; }

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.service-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(to right, var(--gold-dark), var(--gold-primary), var(--gold-light)); transform:scaleX(0); transform-origin:left; transition:transform 0.4s ease; }
.service-card:hover::before { transform:scaleX(1); }
.service-card:hover { border-color: var(--gold-glow); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.service-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; background:var(--gold-subtle); border:1px solid var(--gold-glow); border-radius:12px; margin-bottom:1.25rem; transition:all 0.3s ease; }
.service-card:hover .service-icon { background:rgba(201,168,76,0.15); box-shadow:0 0 15px var(--gold-glow); }

.ref-card { background: var(--bg-card); border:1px solid var(--border-subtle); border-radius:12px; padding:1.75rem; transition:all 0.3s ease; }
.ref-card:hover { border-color: var(--gold-glow); box-shadow:0 4px 20px rgba(201,168,76,0.1); }

.contact-card { background: var(--bg-card); border:1px solid var(--border-subtle); border-radius:12px; padding:2rem; text-align:center; transition:all 0.3s ease; }
.contact-card:hover { border-color: var(--gold-glow); box-shadow:0 0 20px rgba(201,168,76,0.08); }

.feature-tag { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; background:var(--gold-subtle); border:1px solid var(--gold-glow); border-radius:100px; font-size:0.8rem; color:var(--gold-primary); font-family:'Raleway',sans-serif; font-weight:500; }
.stat-number { font-family:'Playfair Display',serif; font-size:2.5rem; font-weight:700; color:var(--gold-primary); line-height:1; }

.section-heading { position:relative; display:inline-block; }
.section-heading::after { content:''; display:block; width:60px; height:2px; background:linear-gradient(to right, var(--gold-primary), transparent); margin-top:12px; }
.section-heading-center::after { margin-left:auto; margin-right:auto; width:80px; background:linear-gradient(to right, transparent, var(--gold-primary), transparent); }

.highlight-item { display:flex; align-items:flex-start; gap:12px; padding:10px 0; }
.highlight-check { flex-shrink:0; width:22px; height:22px; display:flex; align-items:center; justify-content:center; background:var(--gold-subtle); border:1px solid var(--gold-glow); border-radius:6px; margin-top:2px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 4px; }
.pagination .page-link {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 6px;
    padding: 6px 12px;
}
.pagination .page-item.active .page-link {
    background: var(--gold-primary) !important;
    color: var(--btn-gold-text) !important;
    border-color: var(--gold-primary) !important;
}

/* ============================================================
   TAILWIND OVERRIDES (all use variables now)
   ============================================================ */
.bg-gray-50, .bg-gray-100 { background-color: var(--bg-secondary) !important; }
.bg-gray-800 { background-color: var(--bg-card) !important; }
.bg-gray-700 { background-color: var(--bg-surface) !important; }
.bg-white:not(.btn-gold):not(.btn-primary) { background-color: var(--bg-card) !important; }
.text-white { color: var(--text-primary) !important; }
.text-gray-900, .text-gray-800 { color: var(--text-primary) !important; }
.text-gray-700, .text-gray-200 { color: var(--text-secondary) !important; }
.text-gray-600, .text-gray-500 { color: var(--text-muted) !important; }
.text-gray-400, .text-gray-300, .text-gray-100 { color: var(--text-muted) !important; }
.text-yellow-400, .text-yellow-500 { color: var(--gold-primary) !important; }
.hover\:text-yellow-400:hover { color: var(--gold-light) !important; }
.border-gray-200, .border-gray-300, .border-gray-700 { border-color: var(--border-light) !important; }
.border-gray-600 { border-color: var(--border-medium) !important; }
.hover\:bg-gray-700:hover { background-color: var(--bg-surface) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.divide-gray-200 > * + * { border-color: var(--border-subtle) !important; }
.ring-gray-300 { --tw-ring-color: var(--gold-glow) !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: var(--gold-glow) !important; }
.focus\:border-indigo-500:focus { border-color: var(--gold-primary) !important; }

[type='text']:focus, [type='email']:focus, [type='password']:focus,
[type='number']:focus, [type='date']:focus, [type='tel']:focus,
textarea:focus, select:focus {
    --tw-ring-color: var(--gold-glow);
    border-color: var(--gold-primary);
}

/* ============================================================
   TRANSITIONS (smooth theme switch for key elements)
   ============================================================ */
body, nav, .card, .service-card, .ref-card, .contact-card,
.section, .card-header, .table, .table th, .table td,
footer, input, textarea, select, .alert, .badge,
.hero-section, .feature-tag, .modal-content {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
    .card-body { padding: 1rem; }
    .btn-gold, .btn-primary { width: 100%; justify-content: center; }
}

@media print {
    body { background-color: white !important; color: black !important; }
    .card { border: 1px solid #ccc; box-shadow: none; }
    .theme-toggle { display: none !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(201, 168, 76, 0.1); }
    50% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.25); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-up-delay-1 { animation: fadeInUp 0.6s ease-out 0.15s forwards; opacity: 0; }
.animate-fade-in-up-delay-2 { animation: fadeInUp 0.6s ease-out 0.3s forwards; opacity: 0; }
.animate-fade-in-up-delay-3 { animation: fadeInUp 0.6s ease-out 0.45s forwards; opacity: 0; }
.animate-gold-glow { animation: goldGlow 3s ease-in-out infinite; }
