/* Global Styles */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff5e9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    font-style: italic;
    color: #3d1700;
    margin: 1rem 0 2rem;
    letter-spacing: 1px;
    text-transform: none;
    position: relative;
    display: inline-block;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-logo span {
    color: #f39c12;
    font-weight: 500;
    font-style: normal;
    position: relative;
    display: inline-block;
    transform: translateY(-2px);
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1.5rem;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #f39c12;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: -0.1s;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #3d1700;
    animation-delay: -0.2s;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f39c12;
    animation-delay: -0.3s;
}

.loader-text {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}