

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

body.light-mode .loading-skeleton {
    background: linear-gradient(90deg, #e5e5e5 25%, #d0d0d0 50%, #e5e5e5 75%);
    background-size: 200% 100%;
}

body:not(.light-mode) .loading-skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin: 12px 0;
}

.skeleton-paragraph {
    height: 14px;
    margin: 6px 0;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

.skeleton-card {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.skeleton-nav {
    height: 48px;
    border-radius: 100px;
    margin: 0 auto;
    width: 600px;
}

.page-loading,
.page-loading-spinner {
    display: none !important;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C8B393, #D4C2A6);
    z-index: 1000;
    transition: width 0.1s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #C8B393;
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(200, 179, 147, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #D4C2A6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 179, 147, 0.4);
}

.site-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-search.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    outline: none;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: #C8B393;
}

.search-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result:hover {
    background: rgba(200, 179, 147, 0.2);
}

.copy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(200, 179, 147, 0.2);
    border-color: #C8B393;
}

.copy-button.copied::after {
    content: 'Copied!';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #C8B393;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #C8B393;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

.password-field {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: #C8B393;
}

.form-success {
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    margin: 16px 0;
}

.form-error {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    margin: 16px 0;
}

.form-field.error input,
.form-field.error textarea {
    border-color: #ef4444;
}

.form-field.success input,
.form-field.success textarea {
    border-color: #22c55e;
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .modal-content {
    background: #fff;
    color: #1a1a1a;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

body.light-mode .modal-title {
    color: #1a1a1a;
}

.modal-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.5;
}

body.light-mode .modal-text {
    color: rgba(26, 26, 26, 0.8);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button-primary {
    background: #C8B393;
    color: #000;
}

.modal-button-primary:hover {
    background: #D4C2A6;
}

.modal-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .modal-button-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .modal-button-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
}

.unified-header.sticky {
    position: fixed;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

body.light-mode .unified-header.sticky {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(200, 179, 147, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media print {
    .unified-header,
    .unified-mobile-nav,
    .back-to-top,
    .scroll-progress,
    .site-search,
    .confirmation-modal,
    .page-loading {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    .no-print {
        display: none !important;
    }
}

.last-updated {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    text-align: center;
}

body.light-mode .last-updated {
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .search-input {
        font-size: 18px;
        padding: 16px 50px 16px 20px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 24px;
    }
    
    .scroll-progress {
        height: 2px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible {
    outline: 2px solid #C8B393;
    outline-offset: 2px;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-skeleton {
        animation: none;
        background: #e0e0e0;
    }
}

body.light-mode .home-architecture-section {
    background: #f5f5f5 !important;
    border-top-color: rgba(0,0,0,.08) !important;
    border-bottom-color: rgba(0,0,0,.08) !important;
}

body.light-mode .home-architecture-card {
    background: rgba(255,255,255,.95) !important;
    border-color: rgba(0,0,0,.1) !important;
}

body.light-mode .home-architecture-card-content {
    background: #fff !important;
}

body.light-mode .home-architecture-card h3 {
    color: #1a1a1a !important;
}

body.light-mode .home-architecture-card p {
    color: rgba(26,26,26,.75) !important;
}

body.light-mode .home-architecture-card .svc-card-tag {
    color: #A28E64 !important;
}

body.light-mode .home-architecture-card .service-link {
    color: #A28E64 !important;
}

body.light-mode .home-architecture-card:hover {
    border-color: #C8B393 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.15) !important;
}

img, video {
    content-visibility: auto;
    contain: layout style paint;
    transform: translateZ(0);
}

img[loading="lazy"].lazy-loaded {
    opacity: 1 !important;
}

video {
    background: #000;
}