/* =========================================================================
   VARIABLES & RESET
   ========================================================================= */
:root {
    --primary-color: #4A0404;
    /* Deep maroon/red */
    --primary-light: #6a0d0d;
    --accent-color: #D4AF37;
    /* Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 4, 4, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-content p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-links:hover {
    color: var(--accent-color);
}

.nav-links::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links:hover::after {
    width: 100%;
}

.btn-login {
    background-color: var(--white);
    color: var(--primary-color) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-login::after {
    display: none;
}

.btn-login:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    color: var(--primary-color) !important;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--accent-color);
    padding: 10px 0;
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background-color: #121212;
    /* Very dark background as per image */
    color: #e0e0e0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.footer-col h3::after {
    display: none;
    /* Remove underline from old design */
}

.footer-col ul li {
    margin-bottom: 18px;
}

.footer-col ul a {
    color: #aaa;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.follow-title {
    color: #aaa !important;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin: 40px 0 15px 0 !important;
    text-transform: uppercase;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    /* Dark gray */
    border-radius: 50%;
    color: #bbb;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: #444;
    color: var(--white);
    transform: translateY(-3px);
}

.app-downloads {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.qr-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.qr-placeholder span {
    font-size: 0.6rem;
    font-weight: 600;
}

.store-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2a2a2a;
    padding: 5px 13px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #cdcdcd;
    transition: var(--transition);
    border: 1px solid #333;
    min-width: 150px;
}

.store-btn:hover {
    background-color: #333;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-accent-line {
    width: 80px;
    height: 3px;
    background-color: #bc9853;
    /* Gold accent */
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col[style] {
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding-top: 30px;
        gap: 15px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        color: var(--primary-color);
        font-size: 1.1rem;
        padding: 5px 10px;
        display: inline-block;
    }

    .nav-links::after {
        bottom: 0;
    }

    .btn-login {
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
        margin-top: 10px;
    }

    .btn-login:hover {
        background-color: var(--primary-light) !important;
        color: var(--white) !important;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
        display: none; /* Hide by default on mobile so toggle script works properly */
        width: 100%;
        top: auto;
    }

    .dropdown.active-dropdown .dropdown-content {
        display: block; /* Show when JS adds the active class */
        animation: fadeIn 0.3s ease;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   SCROLL ANIMATIONS & PRELOADER
   ========================================================================= */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo img {
    height: 80px;
    animation: pulse 1.5s infinite ease-in-out;
    margin-bottom: 30px;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(74, 4, 4, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}