/* ===== GLOBAL RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f6eedc;
    color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HIGHLIGHT ===== */
.highlight {
    color: #DD9933;
}

/* ===== SHARED BUTTON ===== */
.btn-cta {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
    color: white !important;
    box-shadow: 0 4px 20px rgba(221, 153, 51, 0.35);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(221, 153, 51, 0.45);
    color: white !important;
}

.btn-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* ===== SCROLL REVEAL ANIMATIONS ===== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
    box-shadow: 0 4px 20px rgba(221, 153, 51, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(221, 153, 51, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Dark mode */
body.dark-mode .back-to-top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .back-to-top:hover {
    box-shadow: 0 8px 30px rgba(221, 153, 51, 0.4);
}

/* ===== SKELETON LOADING ===== */

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton-line {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.skeleton-logo {
    width: 100px;
    height: 36px;
}

.skeleton-nav {
    display: flex;
    gap: 20px;
}

.skeleton-link {
    width: 70px;
    height: 16px;
}

.skeleton-footer {
    padding: 40px 20px;
    text-align: center;
}

/* Dark mode skeletons */
body.dark-mode .skeleton-line {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

body.dark-mode .skeleton-header {
    background: rgba(26, 26, 46, 0.95);
}