/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Font Families - COMMENTED OUT TO USE JOOMLA DEFAULTS
   ======================================== */

body {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px;
    font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', sans-serif !important;
}

h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 700; }

.luxury-title {
     font-family: 'Roboto Slab', sans-serif !important;
}

/* ========================================
   Color Utilities (for non-Tailwind elements)
   ======================================== */
header.gradient-luxury {
    overflow: visible !important;
}

/* Gradient Backgrounds */
.gradient-luxury {
    background: linear-gradient(135deg, #0ad8c7f6 0%, #1a1a1a 50%, #0A0A0A 100%) !important;
}

.gradient-gold {
    background: linear-gradient(90deg, #A87C1F 0%, #dbc862 50%, #A87C1F 100%) !important;
}

.gradient-turquoise {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
}

.bg-gradient-gold {
    background: linear-gradient(90deg, #A87C1F 0%, #dbc862 50%, #A87C1F 100%) !important;
}

.text-gold,
.text-gold-gradient {
    background: linear-gradient(90deg, #A87C1F 0%, #dbc862 50%, #A87C1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

.text-turquoise {
    color: #14b8a6 !important;
}

.text-light-gold {
    color: linear-gradient(90deg, #A87C1F 0%, #dbc862 50%, #A87C1F 100%) !important;
}

/* Background Colors */
.bg-deep-black {
    background-color: #0A0A0A !important;
}

.bg-soft-black {
    background-color: #1a1a1a !important;
}

/* Border Colors */
.border-gold {
    border-color: #D4AF37 !important;
}

/* ========================================
   Decorative Elements
   ======================================== */

/* Gold Line Under Titles */
.gold-line {
    position: relative;
    padding-bottom: 1rem;
}

.gold-line::after {
    background: linear-gradient(90deg, transparent, #dbc862, transparent);
}

/* Ornament (◆ symbols) */
.ornament {
    position: relative;
}

.ornament::before,
.ornament::after {
    content: '◆';
    color: #dbc862;
    font-size: 0.8em;
    margin: 0 8px;
}

/* ========================================
   Interactive Elements
   ======================================== */

/* Hover Effects */
.hover-gold:hover {
    color: #dbc862 !important;
    transition: all 0.3s ease;
}

/* Card Styles */
.card-luxury {
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
}

.card-luxury:hover {
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

/* Islamic Pattern Background */
.islamic-pattern {
    background-image: repeating-linear-gradient(
        45deg, 
        transparent, 
        transparent 35px, 
        rgba(212, 175, 55, 0.03) 35px, 
        rgba(212, 175, 55, 0.03) 70px
    );
}

/* ========================================
   Joomla Override Styles
   ======================================== */

/* Hide Default Joomla Elements */
.container-header {
    display: none !important;
}

/* Force hide article metadata */
.item-page .page-header,
.item-page .article-info,
.item-page dl.article-info,
.com-content-article__info,
dl.article-info,
.page-header h2 {
    display: none !important;
}

/* Hide "Details" section */
.com-content-article .page-header,
.item-page header {
    display: none !important;
}

/* Remove padding from article container */
.com-content-article .item-page {
    padding: 0 !important;
    margin: 0 !important;
}

.com-content-article article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Full width content */
.container-fluid,
.com-content-article .container,
.com-content-article .container-fluid {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove container padding for full-width elements */
.com-content-article .container-main {
    padding: 0 !important;
}

/* ========================================
   Full Width Sections
   ======================================== */

/* Make first div full width (for banners) */
.item-page > div:first-child {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* Ensure banner image is truly full width */
.item-page > div:first-child img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .gold-line::after {
        width: 60px;
    }
    
    .card-luxury {
        padding: 1rem;
    }
}

/* ========================================
   Icon Fixes (FontAwesome)
   ======================================== */

/* Ensure FontAwesome icons display properly */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ========================================
   SVG Logo Fixes
   ======================================== */

/* Ensure SVG images display correctly */
img[src$=".svg"] {
    height: auto;
    width: auto;
}

/* Header logo sizing */
header img {
    object-fit: contain;
    background: transparent;
}

/* ========================================
   Navigation Styles
   ======================================== */

/* Desktop navigation links */
header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #dbc862;
}

/* Mobile menu */
#mobile-menu {
    background-color: transparent;
}

#mobile-menu a {
    color: white;
    text-decoration: none;
}

/* Dropdown menu styling */
#desktop-dropdown {
    background-color: #0A0A0A;
}

#desktop-dropdown a {
    color: white;
    display: block;
    padding: 0.5rem 1rem;
}

#desktop-dropdown a:hover {
    background-color: rgba(219, 200, 98, 0.2);
    color: #dbc862;
}

#tentative > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Desktop Dropdown Fix */
#desktop-dropdown {
    display: none;
}

#desktop-dropdown:not(.hidden) {
    display: block !important;
}

/* Make sure dropdown appears above other elements */
nav .relative {
    position: relative;
}

#desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    z-index: 9999 !important;
    min-width: 200px;
}

/* Desktop dropdown visibility */
.hidden {
    display: none !important;
}

/* ========================================
   Poster Modal Styling
   ======================================== */

#posterModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 2rem;
}

#posterModal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#posterModal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#posterModal .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    color: #dbc862;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

#posterModal .close-button:hover {
    color: #F4E5B3;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive image class (from SP Page Builder) */
.sppb-img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.sppb-addon-single-image-container {
    text-align: center;
}

.sppb-addon-single-image-container img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}