/* Reign Creatives - Enhanced Styles */

:root {
    --reign-gold: #D4AF37;
    --reign-dark: #1a365d;
    --reign-blue: #2c5282;
    --transition: all 0.3s ease;
}

/* Body Font Size */
body {
    font-size: 17px;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Navigation Links */
.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--reign-gold) 0%, #B8860B 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--reign-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-active {
    color: var(--reign-dark);
    font-weight: 700;
}

.nav-link-active::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.25rem 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.mobile-menu-nav a:hover {
    background-color: #f9fafb;
    color: var(--reign-gold);
    border-left-color: var(--reign-gold);
    padding-left: 1.75rem;
}

.mobile-menu-nav a.active {
    background-color: #fef3c7;
    color: var(--reign-dark);
    border-left-color: var(--reign-gold);
    font-weight: 700;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--reign-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--reign-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
    cursor: pointer;
}

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

.hover-scale {
    transition: var(--transition);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Search Modal */
.search-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: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
}

.search-modal.active .search-container {
    transform: translateY(0);
}

.search-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--reign-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Form Enhancements */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--reign-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

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

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: var(--reign-blue);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--reign-gold);
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--reign-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
    z-index: 10000;
}

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

/* Accordion Styles for FAQ */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    background: #f9fafb;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-header.active {
    background: var(--reign-gold);
    color: var(--reign-dark);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1rem;
    max-height: 500px;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--reign-gold);
}

/* Lazy Loading Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Scroll to Top Button Enhancement */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--reign-gold);
    color: var(--reign-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Mobile Responsive Enhancements */
@media (max-width: 1024px) {
    .mobile-menu {
        width: 280px;
    }
    
    .search-modal {
        padding-top: 50px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .search-container {
        width: 95%;
        margin: 0 auto;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .testimonial-slide {
        padding: 1rem;
    }
}

/* Typography - Paragraph Spacing */
p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Content Areas with Rich Text */
.prose p,
.content p,
.text-content p,
article p,
.bio p,
.description p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.prose p:last-child,
.content p:last-child,
.text-content p:last-child,
article p:last-child,
.bio p:last-child,
.description p:last-child {
    margin-bottom: 0;
}

/* Headings followed by paragraphs */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
    margin-top: 0.75rem;
}

/* Lists spacing */
ul, ol {
    margin-bottom: 1.25rem;
}

ul li,
ol li {
    margin-bottom: 0.5rem;
}

ul li:last-child,
ol li:last-child {
    margin-bottom: 0;
}

/* Block elements spacing */
blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--reign-gold);
}

/* Print Styles */
@media print {
    .mobile-menu,
    .menu-overlay,
    .search-modal,
    .cookie-consent,
    .scroll-to-top,
    .page-loader,
    header nav,
    .social-icons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--reign-gold);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --reign-gold: #B8860B;
        --reign-dark: #000000;
        --reign-blue: #000080;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}