/**
 * Queen Sues Custom CSS
 *
 * @package Queen_Sues
 */

/* ========================================
   ADDITIONAL CUSTOM STYLES
   ======================================== */

/* Ensure proper box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix for Flatsome overrides */
body {
    font-family: 'Montserrat', system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Header fixes */
.header-main {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header-main .flex-row {
    padding: 0 5%;
}

/* Logo styling */
.logo a {
    text-decoration: none !important;
}

/* Navigation styling */
.header-nav-main > li > a {
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
}

/* Button icon alignment */
.btn-gold i,
.btn-outline-gold i {
    margin-left: 8px;
    font-size: 14px;
}

/* Hero section fixes */
.qs-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Flatsome content wrapper fix */
#wrapper {
    overflow-x: hidden;
}

/* Main content spacing */
.site-main {
    padding-top: 0;
}

/* Fix for magnific popup */
.mfp-bg {
    background: rgba(10, 15, 28, 0.95) !important;
}

.mobile-sidebar {
    background: #0a0f1c !important;
}

.mobile-sidebar .nav > li > a {
    color: #ffffff !important;
    font-size: 18px !important;
    padding: 15px 20px !important;
}

.mobile-sidebar .nav > li > a:hover {
    color: #c5a065 !important;
}

/* Gallery item aspect ratios */
.qs-gallery-item:nth-child(1),
.qs-gallery-item:nth-child(6) {
    aspect-ratio: 3/4;
}

.qs-gallery-item:nth-child(3) {
    aspect-ratio: 1/1;
}

/* Testimonial card corners */
.qs-testimonial-card::before,
.qs-testimonial-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(197, 160, 101, 0.3);
    border-style: solid;
}

.qs-testimonial-card::before {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

.qs-testimonial-card::after {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

/* Newsletter input focus */
.qs-newsletter-input:focus {
    outline: none;
}

/* Footer link hover */
.qs-footer-links a,
.qs-footer-contact a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Social link icon sizing */
.qs-social-link i {
    font-size: 16px;
}

/* Stat icon sizing */
.qs-stat-icon i {
    font-size: 32px;
    display: block;
}

/* Badge text ring sizing */
.qs-badge-text-ring {
    width: 100%;
    height: 100%;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

/* Loading state for newsletter */
.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive fixes for Flatsome */
@media (max-width: 849px) {
    .header-main .flex-row {
        padding: 0 20px;
    }
    
    .qs-hero-content {
        padding: 0 20px;
    }
    
    .qs-hero-title {
        font-size: 42px;
    }
}

/* Fix for admin bar */
body.admin-bar .header-main {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header-main {
        top: 46px;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
    background: #c5a065;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b076;
}

/* Selection color */
::selection {
    background: rgba(197, 160, 101, 0.3);
    color: #ffffff;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid rgba(197, 160, 101, 0.5);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
