/**
 * Space 22 Component Library
 * Reusable components based on the design system
 *
 * @package Space22
 */

/* ============================================
   Breadcrumb Navigation Component
   ============================================ */

.breadcrumbs {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.breadcrumb-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    padding: var(--space-xs) 0;
    display: inline-block;
}

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

.breadcrumb-link:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Add subtle underline on hover */
.breadcrumb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
}

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

.breadcrumb-text {
    color: var(--color-text-dark);
    font-weight: 500;
}

.breadcrumb-item-current .breadcrumb-text {
    color: var(--color-text-dark);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
    margin: 0 var(--space-xs);
    user-select: none;
    font-size: var(--font-size-xs);
}

/* Icon separator styling */
.breadcrumb-separator i {
    font-size: 0.7em;
}

/* Dark theme support */
[data-theme="dark"] .breadcrumb-link {
    color: var(--color-gray);
}

[data-theme="dark"] .breadcrumb-link:hover {
    color: var(--color-gold-light);
}

[data-theme="dark"] .breadcrumb-text {
    color: var(--color-text-dark);
}

[data-theme="dark"] .breadcrumb-item-current .breadcrumb-text {
    color: var(--color-gold-light);
}

[data-theme="dark"] .breadcrumb-separator {
    color: var(--color-gray-light);
}

/* RTL support */
.rtl .breadcrumbs-list,
body.lang-ar .breadcrumbs-list {
    direction: rtl;
}

.rtl .breadcrumb-separator,
body.lang-ar .breadcrumb-separator {
    transform: scaleX(-1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: var(--space-lg);
        padding: var(--space-sm) 0;
    }

    .breadcrumbs-list {
        gap: var(--space-xs);
    }

    .breadcrumb-separator {
        margin: 0 var(--space-xs);
    }

    /* Allow breadcrumbs to wrap on mobile */
    .breadcrumb-item {
        flex-shrink: 0;
    }
}

/* Breadcrumb variants */

/* Compact breadcrumbs */
.breadcrumbs.breadcrumbs-compact {
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
}

.breadcrumbs.breadcrumbs-compact .breadcrumbs-list {
    font-size: var(--font-size-xs);
}

/* Breadcrumbs on dark background */
.breadcrumbs.breadcrumbs-light {
    color: var(--color-white);
}

.breadcrumbs.breadcrumbs-light .breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs.breadcrumbs-light .breadcrumb-link:hover {
    color: var(--color-white);
}

.breadcrumbs.breadcrumbs-light .breadcrumb-text {
    color: var(--color-white);
}

.breadcrumbs.breadcrumbs-light .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs.breadcrumbs-light .breadcrumb-link::after {
    background-color: var(--color-white);
}

/* Breadcrumbs with background */
.breadcrumbs.breadcrumbs-boxed {
    background-color: var(--color-cream);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

[data-theme="dark"] .breadcrumbs.breadcrumbs-boxed {
    background-color: var(--color-charcoal-light);
}

/* Breadcrumbs with divider line */
.breadcrumbs.breadcrumbs-bordered {
    border-bottom: 1px solid var(--color-cream);
    padding-bottom: var(--space-md);
}

[data-theme="dark"] .breadcrumbs.breadcrumbs-bordered {
    border-bottom-color: var(--color-charcoal-light);
}

/* Accessibility improvements */
.breadcrumbs:focus-within {
    outline: none;
}

/* Skip link for keyboard navigation */
.breadcrumb-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.breadcrumb-skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-gold);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

/* Print styles */
@media print {
    .breadcrumbs {
        margin-bottom: var(--space-md);
        padding: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: var(--space-sm);
    }

    .breadcrumb-link::after {
        display: none;
    }

    .breadcrumb-separator {
        color: #666;
    }
}

/* ============================================
   Hero Section Component
   ============================================ */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin: var(--space-lg) auto;
    max-width: calc(100% - var(--space-3xl));
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.hero-content {
    text-align: left;
    max-width: 650px;
}

.hero-logo {
    margin-bottom: var(--space-xl);
}

.hero-logo img {
    max-width: 180px;
    height: auto;
    margin: 0;
    display: block;
}

.hero-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.hero-logo-text svg {
    display: block;
}

.logo-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.logo-main {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    line-height: 1.2;
}

.logo-accent {
    font-weight: 700;
    color: #B8985A;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: var(--space-2xl);
    color: #FFFFFF;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 50px;
}

.hero-buttons .btn-primary {
    background-color: #F5F0E8;
    color: #2D2D2D;
    border: 2px solid #F5F0E8;
}

.hero-buttons .btn-primary:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        max-width: calc(100% - var(--space-lg));
        margin: var(--space-md) auto;
    }

    .hero-wrapper {
        padding: 0 var(--space-lg);
        gap: var(--space-2xl);
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
    }

    .hero-logo img {
        max-width: 140px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        min-width: 170px;
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    background-color: var(--color-bg-primary);
    position: relative;
}

.services-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
}

.services-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.services-description {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

/* ============================================
   Service Card Component
   ============================================ */

.services-grid {
    column-count: 2;
    column-gap: var(--space-lg);
    column-fill: balance;
}

.services-grid .service-card {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    display: inline-block;
    width: 100%;
}

@media (max-width: 1024px) {
    .services-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .services-grid {
        column-count: 1;
    }
}

.service-card {
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon,
.service-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
}

.service-icon svg,
.service-icon img,
.service-card-icon svg,
.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon img,
.service-card:hover .service-icon svg,
.service-card:hover .service-card-icon img,
.service-card:hover .service-card-icon svg {
    filter: grayscale(0%);
    opacity: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
    line-height: 1.3;
}

.service-description {
    font-size: 0.875rem;
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    transition: all var(--transition-base);
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
}

.service-link:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.service-link svg {
    width: 20px;
    height: 20px;
}

/* Service Card Link Styles */
.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
}

.service-card-link:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.service-card-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Projects Gallery Full Width
   ============================================ */

.projects-gallery-wrapper {
    background-color: var(--color-cream);
    padding: var(--space-xl) 0;
}

.projects-gallery-full-width {
    width: 100%;
    max-width: none;
}

.projects-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(184, 152, 90, 0.2);
    padding: 0;
    line-height: 1;
}

.gallery-nav:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(184, 152, 90, 0.4);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-nav i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav button sizes */
.gallery-nav--sm { width: 44px; height: 44px; font-size: 16px; }
.gallery-nav--md { width: 56px; height: 56px; font-size: 20px; }
.gallery-nav--lg { width: 68px; height: 68px; font-size: 26px; }

/* ============================================
   Projects Masonry Grid
   ============================================ */

.projects-masonry-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.6fr 0.7fr 0.8fr 2.5fr 0.8fr 0.7fr 0.6fr 0.5fr;
    grid-template-rows: 1fr;
    gap: var(--space-xs);
    height: 400px;
    padding: 0 var(--space-lg);
    width: 100%;
    box-sizing: border-box;
}

/* All cards positioned dynamically via JavaScript */
.project-category-card {
    grid-row: 1;
    /* grid-column will be set dynamically by JavaScript */
}

/* Hidden cards that are outside visible range */
.project-category-card.gallery-hidden {
    display: none;
}

/* Special styling for center card (dynamically assigned) */
.project-category-card.gallery-center {
    border: 3px solid var(--color-gold);
    box-shadow: 0 8px 32px rgba(184, 152, 90, 0.3);
    transform: scale(1.02);
    z-index: 10;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effect for center card */
.project-category-card.gallery-center:hover {
    border-color: var(--color-gold);
    box-shadow: 0 12px 48px rgba(184, 152, 90, 0.5);
    transform: scale(1.05);
}

/* Enhanced overlay for center card */
.project-category-card.gallery-center .project-category-overlay {
    background: linear-gradient(to top, rgba(184, 152, 90, 0.8), rgba(184, 152, 90, 0.3));
}

.project-category-card.gallery-center:hover .project-category-overlay {
    background: linear-gradient(to top, rgba(184, 152, 90, 0.9), rgba(184, 152, 90, 0.4));
}

/* Make other cards more subtle when center is hovered */
.projects-masonry-grid:hover .project-category-card:not(.gallery-center) {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.projects-masonry-grid:hover .project-category-card.gallery-center {
    opacity: 1;
}

/* Hide content for all cards except center card */
.project-category-card:not(.gallery-center) .project-category-content {
    display: none;
}

.project-category-card:not(.gallery-center) .project-category-overlay {
    display: none;
}

/* Only center card shows content */
.project-category-card.gallery-center .project-category-content {
    display: block;
}

.project-category-card.gallery-center .project-category-overlay {
    display: block;
}

/* Background image opacity for all cards except center */
.project-category-card:not(.gallery-center)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* Background image opacity for center card (less opacity for better readability) */
.project-category-card.gallery-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Gallery initialization and transitions */
.projects-masonry-grid.gallery-initialized .project-category-card {
    /* GSAP will handle animations, keep basic fallback */
    transition: opacity 0.3s ease;
}

/* Ensure GSAP animations work smoothly */
.projects-masonry-grid {
    will-change: transform;
}

.project-category-card {
    will-change: transform, opacity;
    /* Preserve background images during animations */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Navigation button feedback */
.gallery-nav.active {
    transform: translateY(-50%) scale(0.95);
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Disabled navigation button state */
.gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ensure content appears above opacity overlay */
.project-category-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .projects-masonry-grid {
        grid-template-columns: 0.6fr 0.8fr 2fr 0.8fr 0.6fr;
        grid-template-rows: 1fr;
        height: 350px;
        gap: var(--space-xs);
    }

    .gallery-nav--sm { width: 38px; height: 38px; font-size: 14px; }
    .gallery-nav--md { width: 48px; height: 48px; font-size: 18px; }
    .gallery-nav--lg { width: 58px; height: 58px; font-size: 22px; }
}

@media (max-width: 768px) {
    .projects-masonry-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: var(--space-md);
    }

    /* On mobile, show only 3 cards: prev, current, next */
    .project-category-card.gallery-hidden {
        display: none;
    }

    .gallery-nav--sm { width: 34px; height: 34px; font-size: 12px; }
    .gallery-nav--md { width: 40px; height: 40px; font-size: 16px; }
    .gallery-nav--lg { width: 48px; height: 48px; font-size: 20px; }

    .gallery-nav-prev {
        left: 10px;
    }

    .gallery-nav-next {
        right: 10px;
    }

    /* Show all content on mobile cards */
    .project-category-card .project-category-content {
        display: block !important;
    }

    .project-category-card .project-category-overlay {
        display: block !important;
    }
}

/* ============================================
   Project Category Card
   ============================================ */

.project-category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 400px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray);
}


.project-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    transition: all var(--transition-base);
}

.project-category-card:hover .project-category-overlay {
    background: linear-gradient(to top, rgba(184, 152, 90, 0.8), rgba(184, 152, 90, 0.3));
}

.project-category-content {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    right: var(--space-xl);
    color: #FFFFFF;
    z-index: 2;
}

.project-category-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-category-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.project-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    text-decoration: none;
    transition: all var(--transition-base);
}

.project-category-card:hover .project-category-link {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* ============================================
   Testimonial Card
   ============================================ */

.testimonial-card {
    text-align: center;
    padding: var(--space-xl);
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    overflow: hidden;
    background-color: var(--color-cream);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.testimonial-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Social Media Card
   ============================================ */

.social-media-card {
    position: relative;
    aspect-ratio: 4 / 5;
    background-color: var(--color-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-media-card:hover {
    transform: scale(1.02);
}

.social-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: all var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.social-media-card:hover .social-media-overlay {
    opacity: 1;
}

.social-media-icon {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text-dark);
}

/* ============================================
   Philosophy Section
   ============================================ */

.philosophy-section {
    position: relative;
    background-color: var(--color-gold);
    color: var(--color-white);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.philosophy-section-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.philosophy-title {
    font-size: var(--font-size-4xl);
    font-weight: 300;
    margin-bottom: var(--space-xl);
    color: var(--color-white);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.philosophy-title-script {
    font-family: var(--font-script);
    font-style: normal;
    font-size: 7.5rem;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
    color: var(--color-white);
    flex-shrink: 0;
}

.philosophy-title-regular {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: normal;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-white);
    display: inline-block;
    flex: 1;
    position: relative;
    left: -59px;
    top: 46px;
}

.philosophy-title-regular strong {
    /* font-weight: 700; */
    color: #1a1a1a;
}

.philosophy-title-first {
    display: inline-block;
    padding-left: 30px;
}

.philosophy-title-last {
    display: block;
    text-align: right;
    margin-inline-end: 12px;
}

.philosophy-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    opacity: 0.95;
    max-width: 90%;
}

.philosophy-read-more {
    color: var(--color-white);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: opacity var(--transition-base);
    display: inline-block;
    margin-top: var(--space-sm);
}

.philosophy-read-more:hover {
    opacity: 0.7;
}

.philosophy-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.philosophy-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    color: var(--color-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    border: none;
}

.philosophy-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-gold);
    color: var(--color-white);
}

.philosophy-play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

@media (max-width: 1024px) {
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .philosophy-title-script {
        font-size: 3.5rem;
    }

    .philosophy-title-regular {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .philosophy-title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .philosophy-title-script {
        font-size: 2.75rem;
    }

    .philosophy-title-regular {
        font-size: 0.95rem;
    }

    .philosophy-text p {
        font-size: 0.85rem;
        max-width: 100%;
    }
}

/* ============================================
   Section Title Component
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-gold);
}

.section-title .accent {
    color: var(--color-gold);
}

.section-title p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Footer Component
   ============================================ */

.site-footer.space22-footer {
    background-color: var(--color-charcoal) !important;
    color: var(--color-white) !important;
    padding: var(--space-3xl) 0 var(--space-sm) !important;
}

.footer-wrapper {
    /* border-top: 1px solid var(--color-border); */
}

/* Full Width Footer Container */
.footer-full-width {
    width: 100%;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
}

.footer-container {
    max-width: 100%;
}

/* Footer Main Layout */
.footer-main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
}

/* Footer Left Section */
.footer-left-section {
    display: flex;
    flex-direction: column;
}

/* Footer Navigation Section */
.footer-nav-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-column .footer-heading {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-gold);
    font-weight: 600;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: var(--space-sm);
}

.footer-nav-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.footer-nav-list li a:hover {
    color: var(--color-gold);
}

/* Footer Map Section */
.footer-map-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    background-color: var(--color-cream);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
}

/* Footer Language Section */
.footer-language-section {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-language-switcher-wide {
    width: 100%;
    padding: 0;
}

.footer-language-switcher-wide .language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    width: 100%;
}

.footer-language-switcher-wide .language-switcher select,
.footer-language-switcher-wide .language-switcher .lang-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    width: auto;
    min-width: 100px;
    font-size: var(--font-size-sm);
}

.footer-language-switcher-wide .language-switcher .lang-links {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-language-switcher-wide .language-switcher .lang-links a {
    color: var(--color-white);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-language-switcher-wide .language-switcher .lang-links a:hover,
.footer-language-switcher-wide .language-switcher .lang-links a.current {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Company Info */
.footer-company-info {
    margin-top: 0;
}

.footer-company-info .brand-logo .brand-title {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0 0 var(--space-xl) 0;
    line-height: 1.2;
}

.footer-company-info .brand-logo .brand-title .accent {
    color: var(--color-gold);
}

.footer-company-info .brand-logo .brand-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: var(--space-xs);
}

.footer-company-info .footer-contact-info p {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.footer-company-info .footer-contact-info p:last-child {
    margin-bottom: 0;
}

.footer-company-info .footer-contact-info strong {
    color: var(--color-white);
}

.footer-company-info .footer-contact-info .email-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-company-info .footer-contact-info .email-link:hover {
    color: var(--color-gold);
}

/* Footer Bottom Copyright */
.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .footer-full-width {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .footer-nav-section {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        margin-bottom: var(--space-2xl);
    }

    .footer-left-section {
        text-align: left;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 300px;
        border-radius: 16px;
    }

    .map-container iframe {
        border-radius: 16px;
    }

    .footer-main-content {
        gap: var(--space-xl);
    }
}

/* ============================================
   Header Component
   ============================================ */

.site-header.space22-header {
    background-color: var(--color-header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-wrapper {
    /* border-bottom: 1px solid var(--color-header-border); */
}

/* Removed box-shadow from scrolled header */

/* Full Width Header Container */
.header-full-width {
    width: 100%;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
    padding-top: 20px;
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center !important;
    gap: var(--space-xl);
    max-width: 100%;
    min-height: 70px;
    justify-content: unset !important;
}

@media (max-width: 768px) {
    .header-full-width {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
        padding-top: 20px;

    }
}

/* Logo Styles */
.header-logo {
    flex-shrink: 0;
    grid-column: 1;
}

/* Header Actions - Right Side */
.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: flex-end;
}

.brand-logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    transition: opacity var(--transition-base);
}

.brand-logo:hover {
    opacity: 0.85;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: all var(--transition-base);
}

/* Theme-based logo display */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* Custom logo from WordPress Customizer */
.header-logo .custom-logo,
.header-logo .custom-logo-link img {
    height: 40px;
    width: auto;
    display: block;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .site-logo,
    .header-logo img,
    .header-logo .custom-logo,
    .header-logo .custom-logo-link img {
        height: 35px;
    }
}

/* Navigation Styles */
.main-navigation.space22-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu,
#primary-menu {
    display: flex !important;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li,
#primary-menu li {
    display: block !important;
    margin: 0;
    padding: 0;
}

.nav-menu a,
#primary-menu a {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: #77746A;
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-base);
    display: inline-block !important;
    visibility: visible !important;
}

.nav-menu a::after,
#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a {
    color: var(--color-gold);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
#primary-menu a:hover::after,
#primary-menu .current-menu-item > a::after,
#primary-menu .current_page_item > a::after {
    width: 100%;
}

/* Submenu Dropdown */
.nav-menu .menu-item-has-children,
#primary-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a,
#primary-menu .menu-item-has-children > a {
    padding-right: 20px;
}

.nav-menu .menu-item-has-children > a::before,
#primary-menu .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-children:hover > a::before,
#primary-menu .menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.nav-menu .menu-item-has-children > a::after,
#primary-menu .menu-item-has-children > a::after {
    display: none;
}

.nav-menu .sub-menu,
#primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    min-width: 260px;
    background: var(--color-header-bg);
    border: 1px solid var(--color-header-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(184, 152, 90, 0.1);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

[data-theme="dark"] .nav-menu .sub-menu,
[data-theme="dark"] #primary-menu .sub-menu {
    background: linear-gradient(180deg, #2A2A2A 0%, #1F1F1F 100%);
    border-color: rgba(184, 152, 90, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(184, 152, 90, 0.2);
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Arrow Pointer */
.nav-menu .sub-menu::before,
#primary-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-header-bg);
    border-left: 1px solid var(--color-header-border);
    border-top: 1px solid var(--color-header-border);
    transform: translateX(-50%) rotate(45deg);
}

[data-theme="dark"] .nav-menu .sub-menu::before,
[data-theme="dark"] #primary-menu .sub-menu::before {
    background: #2A2A2A;
    border-color: rgba(184, 152, 90, 0.3);
}

.nav-menu .sub-menu li,
#primary-menu .sub-menu li {
    margin: 0;
    position: relative;
}

.nav-menu .sub-menu a,
#primary-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #77746A;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-menu .sub-menu a::before,
#primary-menu .sub-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(184, 152, 90, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nav-menu .sub-menu a:hover,
#primary-menu .sub-menu a:hover {
    background-color: rgba(184, 152, 90, 0.08);
    color: var(--color-gold);
    padding-left: 20px;
}

[data-theme="dark"] .nav-menu .sub-menu a:hover,
[data-theme="dark"] #primary-menu .sub-menu a:hover {
    background-color: rgba(184, 152, 90, 0.15);
}

.nav-menu .sub-menu a:hover::before,
#primary-menu .sub-menu a:hover::before {
    background-color: var(--color-gold);
    transform: scale(1.2);
}

/* Language Switcher in Header */
.header-lang-switcher {
    margin-left: var(--space-md);
}

.language-switcher.dropdown {
    position: relative;
}

/* Language Dropdown Toggle Button */
.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background-color: transparent;
    border: 1px solid var(--color-header-border);
    border-radius: var(--radius-md);
    color: var(--color-header-link);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lang-dropdown-toggle:hover {
    border-color: var(--color-gold);
    background-color: rgba(184, 152, 90, 0.05);
}

.lang-dropdown-toggle .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-dropdown-toggle .lang-code {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.lang-dropdown-toggle .dropdown-arrow {
    margin-left: 2px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.lang-dropdown-toggle:hover .dropdown-arrow {
    opacity: 1;
}

.lang-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-toggle[aria-expanded="true"] {
    border-color: var(--color-gold);
    background-color: rgba(184, 152, 90, 0.08);
}

/* Language Dropdown Menu */
.lang-dropdown-menu.dropdown-menu {
    min-width: 220px;
    padding: 8px;
    margin-top: 8px;
    background: var(--color-header-bg);
    border: 1px solid var(--color-header-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(184, 152, 90, 0.1);
    display: none;
}

.lang-dropdown-menu.dropdown-menu.show {
    display: block;
    animation: dropdown-fade-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="dark"] .lang-dropdown-menu.dropdown-menu {
    background: linear-gradient(180deg, #2A2A2A 0%, #1F1F1F 100%);
    border-color: rgba(184, 152, 90, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(184, 152, 90, 0.2);
}

.lang-dropdown-item.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--color-header-link);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: var(--radius-md);
}

.lang-dropdown-item:hover {
    background-color: rgba(184, 152, 90, 0.08);
    color: var(--color-gold);
}

[data-theme="dark"] .lang-dropdown-item:hover {
    background-color: rgba(184, 152, 90, 0.15);
}

.lang-dropdown-item.active {
    background-color: rgba(184, 152, 90, 0.12);
    color: var(--color-gold);
}

[data-theme="dark"] .lang-dropdown-item.active {
    background-color: rgba(184, 152, 90, 0.2);
}

.lang-dropdown-item .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-dropdown-item .lang-name {
    font-size: 13px;
    font-weight: 500;
    min-width: 60px;
}

.lang-dropdown-item .lang-native {
    font-size: 12px;
    color: var(--color-text-muted);
    flex: 1;
}

.lang-dropdown-item.active .lang-native,
.lang-dropdown-item:hover .lang-native {
    color: var(--color-header-link);
}

.lang-dropdown-item .check-icon {
    margin-left: auto;
    color: var(--color-gold);
    width: 14px;
    height: 14px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-header-border);
    background-color: transparent;
    color: var(--color-header-link);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-toggle:hover {
    background-color: rgba(184, 152, 90, 0.05);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.theme-icon {
    position: absolute;
    transition: all var(--transition-base);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* Desktop Menu - Force Visible */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-menu-wrapper {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow-y: visible !important;
        flex-direction: row !important;
        right: auto !important;
        transition: none !important;
        transform: none !important;
    }

    .nav-menu,
    #primary-menu {
        display: flex !important;
        flex-direction: row !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }

    .nav-menu li,
    #primary-menu li {
        display: inline-block !important;
    }

    .nav-menu a,
    #primary-menu a {
        display: inline-block !important;
    }
}

.menu-toggle-bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
    margin: 3px 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Duplicate submenu styles removed - using enhanced version above */

/* Mobile Responsive */
@media (max-width: 1023px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo,
    .main-navigation,
    .header-actions {
        grid-column: auto;
    }

    .header-actions {
        position: static;
        display: flex;
        flex-direction: row;
        gap: var(--space-sm);
        width: auto;
        padding: 0;
        border: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: var(--color-header-bg);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        padding: 100px var(--space-2xl) var(--space-2xl);
        overflow-y: auto;
        transition: right 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2xl);
    }

    .menu-toggle.active ~ .nav-menu-wrapper {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-header-border);
    }

    .nav-menu a {
        display: block;
        padding: var(--space-md) 0;
        font-size: 16px;
    }

    .nav-menu a::after,
    #primary-menu a::after {
        display: none !important;
    }

    .nav-menu .menu-item-has-children > a::before,
    #primary-menu .menu-item-has-children > a::before {
        display: block;
    }

    .nav-menu .sub-menu,
    #primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding-left: var(--space-lg);
        margin-top: 0;
        background-color: var(--color-cream);
        opacity: 1;
        visibility: visible;
        transform: none;
        left: auto;
    }

    .nav-menu .sub-menu::before,
    .nav-menu .sub-menu::after,
    #primary-menu .sub-menu::before,
    #primary-menu .sub-menu::after {
        display: none;
    }

    .nav-menu .sub-menu li,
    #primary-menu .sub-menu li {
        margin: 0;
        border-bottom: none;
    }

    .nav-menu .sub-menu a,
    #primary-menu .sub-menu a {
        padding: var(--space-sm) 0;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .nav-menu .sub-menu a::before,
    .nav-menu .sub-menu a::after,
    #primary-menu .sub-menu a::before,
    #primary-menu .sub-menu a::after {
        display: none;
    }

    .nav-menu .sub-menu a:hover,
    #primary-menu .sub-menu a:hover {
        padding-left: var(--space-sm);
        background: transparent;
    }

    .header-lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: var(--space-md) 0;
        gap: var(--space-md);
    }

    .header-logo,
    .main-navigation,
    .header-actions {
        grid-column: auto;
    }

    .header-actions {
        gap: var(--space-xs);
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-tagline {
        font-size: 10px;
    }

    .nav-menu-wrapper {
        width: 280px;
    }
}

/* Mobile Menu Overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    text-align: center;
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.cta-section h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
}

.cta-section p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Team Member Card
   ============================================ */

.team-member-card {
    text-align: center;
    transition: all var(--transition-base);
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.team-member-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    overflow: hidden;
    background-color: var(--color-cream);
    border: 4px solid var(--color-gold);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text-dark);
}

.team-member-role {
    font-size: var(--font-size-base);
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.team-member-bio {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.team-member-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-gold);
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-base);
}

.team-member-social:hover {
    background-color: var(--color-charcoal);
}

/* ============================================
   Two Column Layout
   ============================================ */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.two-column-layout.reverse {
    direction: rtl;
}

.two-column-layout.reverse > * {
    direction: ltr;
}

.column-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text-dark);
}

.column-text p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.column-image {
    position: relative;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.column-map .map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.column-map .map-placeholder {
    width: 100%;
    height: 450px;
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ============================================
   Contact Info Large
   ============================================ */

.contact-info-large {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.contact-item p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.contact-item a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-item a:hover {
    color: var(--color-charcoal);
    text-decoration: underline;
}

/* ============================================
   Value Card
   ============================================ */

.value-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cream);
    border-radius: var(--radius-full);
    color: var(--color-gold);
}

.value-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.value-card p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

/* ============================================
   Service Features List
   ============================================ */

.service-features {
    list-style: none;
    padding: 0;
    margin-top: var(--space-lg);
}

.service-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* ============================================
   Process Steps
   ============================================ */

.process-step {
    text-align: center;
    padding: var(--space-xl);
}

.process-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: var(--space-md);
    font-family: var(--font-secondary);
}

.process-step h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.process-step p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

/* ============================================
   Project Filters
   ============================================ */

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background-color: transparent;
    border: 2px solid var(--color-text-muted);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* ============================================
   Project Card
   ============================================ */

.project-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-cream);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
}

.project-card-content {
    padding: var(--space-lg);
}

.project-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.project-category-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-cream);
    color: var(--color-gold);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.project-category-badge.large {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

.project-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.project-card-excerpt {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ============================================
   Single Project
   ============================================ */

.project-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: var(--space-3xl) 0;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.project-breadcrumbs {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
}

.project-breadcrumbs a {
    color: var(--color-white);
    text-decoration: none;
}

.project-breadcrumbs a:hover {
    text-decoration: underline;
}

.project-breadcrumbs .separator {
    margin: 0 var(--space-xs);
    opacity: 0.6;
}

.project-breadcrumbs .current {
    opacity: 0.8;
}

.project-hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.project-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
}

.project-content {
    min-width: 0;
}

.project-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

.project-description h2,
.project-description h3 {
    color: var(--color-text-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.project-gallery {
    margin-top: var(--space-3xl);
}

.project-gallery h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    color: var(--color-text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.project-info-card,
.project-share-card {
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.project-info-card h3,
.project-share-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-text-dark);
}

.project-info-item {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.info-value {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.project-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-white);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.project-tag:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.share-buttons {
    display: flex;
    gap: var(--space-sm);
}

.share-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0a66c2;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }
}

/* ============================================
   Pagination
   ============================================ */

.pagination-wrapper {
    margin-top: var(--space-3xl);
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: var(--space-xs);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-white);
    border: 2px solid var(--color-cream);
    border-radius: var(--radius-md);
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background-color: transparent;
    color: var(--color-text-dark);
}

/* ============================================
   Small Hero Variant
   ============================================ */

.hero-section.small {
    min-height: 50vh;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-4xl);
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.contact-info-section > p,
.contact-form-section > p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    margin-bottom: var(--space-2xl);
}

.contact-detail-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-cream);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
}

.contact-detail-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text-dark);
}

.contact-detail-content p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.contact-detail-content a {
    color: var(--color-gold);
    text-decoration: none;
}

.contact-detail-content a:hover {
    text-decoration: underline;
}

.contact-social {
    margin-top: var(--space-2xl);
}

.contact-social h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--color-cream);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Contact Form Styles */

.space22-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.space22-contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.space22-contact-form label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.space22-contact-form .required {
    color: var(--color-gold);
}

.space22-contact-form input[type="text"],
.space22-contact-form input[type="email"],
.space22-contact-form input[type="tel"],
.space22-contact-form select,
.space22-contact-form textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--color-cream);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    transition: all var(--transition-base);
}

.space22-contact-form input:focus,
.space22-contact-form select:focus,
.space22-contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.space22-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-loading .spinner {
    animation: spin 1s linear infinite;
}

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

/* Map Section */

.map-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.faq-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.faq-item p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .space22-contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
    }
}

/* ============================================
   AJAX Project Filtering - Loading States
   ============================================ */

/* Projects Grid Loading State */
.projects-grid.is-loading {
    position: relative;
    min-height: 400px;
}

.projects-grid.is-loading .project-card {
    pointer-events: none;
}

/* Fade out animation for current projects */
.project-card.fading-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Fade in animation for new projects */
.project-card.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Overlay */
.projects-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .projects-loading {
    background-color: rgba(45, 45, 45, 0.95);
}

.projects-loading p {
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid var(--color-cream);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

[data-theme="dark"] .loading-spinner {
    border-color: var(--color-charcoal);
    border-top-color: var(--color-gold);
}

/* Filter Button Focus States (Accessibility) */
.filter-btn:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.filter-btn:focus:not(:focus-visible) {
    outline: none;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Filter Button Disabled State */
.filter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Skeleton Screen for Loading State (Alternative) */
.project-card-skeleton {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.skeleton-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(
        90deg,
        var(--color-cream) 0%,
        #e8e8e8 50%,
        var(--color-cream) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: var(--space-lg);
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(
        90deg,
        var(--color-cream) 0%,
        #e8e8e8 50%,
        var(--color-cream) 100%
    );
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* No Results Message */
.no-projects {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.no-projects h2 {
    font-size: var(--font-size-3xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.no-projects p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Error Message */
.projects-error {
    text-align: center;
    padding: var(--space-2xl);
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.projects-error p {
    color: #721c24;
    margin-bottom: var(--space-lg);
}

.projects-error .retry-filter {
    margin-top: var(--space-md);
}

/* Screen Reader Only (for accessibility announcements) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Filter Buttons Mobile Responsive */
@media (max-width: 768px) {
    .project-filters {
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }

    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-sm);
    }

    .projects-loading {
        padding: var(--space-xl);
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .projects-loading p {
        font-size: var(--font-size-sm);
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .filter-btn {
        padding: var(--space-md) var(--space-lg);
        min-height: 44px; /* Minimum touch target size */
    }

    .filter-btn:active {
        transform: scale(0.98);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .project-card.fading-out,
    .project-card.fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .loading-spinner {
        animation: none;
        border-top-color: var(--color-gold);
        border-right-color: var(--color-gold);
    }

    .skeleton-image,
    .skeleton-line {
        animation: none;
        background: var(--color-cream);
    }

    .filter-btn {
        transition: none;
    }
}

/* Print Styles for Filters */
@media print {
    .project-filters {
        display: none;
    }

    .projects-loading {
        display: none;
    }

    .pagination-wrapper {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .filter-btn {
        border-width: 3px;
    }

    .filter-btn.active {
        border-width: 3px;
        font-weight: 700;
    }

    .loading-spinner {
        border-width: 5px;
    }
}

/* ============================================
   Contact Form Validation Styles
   ============================================ */

/* Honeypot Field - Hidden from users */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tabindex: -1 !important;
}

/* Form Group States */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.has-success input,
.form-group.has-success textarea {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-group.has-success input:focus,
.form-group.has-success textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Validation Icons */
.field-error,
.field-success {
    display: none;
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

.field-error {
    color: #dc3545;
}

.field-success {
    color: #28a745;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.field-success svg {
    width: 16px;
    height: 16px;
}

/* Input States */
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: #dc3545 !important;
    padding-right: 45px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23dc3545" stroke-width="2"%3E%3Ccircle cx="12" cy="12" r="10"/%3E%3Cline x1="15" y1="9" x2="9" y2="15"/%3E%3Cline x1="9" y1="9" x2="15" y2="15"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

input.is-valid,
textarea.is-valid {
    border-color: #28a745 !important;
    padding-right: 45px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2328a745" stroke-width="2"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

textarea.is-invalid,
textarea.is-valid {
    background-position: right 12px top 12px;
}

/* Character Counter */
.char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.char-counter.warning {
    color: #ff9800;
    font-weight: 600;
}

.char-counter.warning .char-count {
    color: #ff9800;
}

/* Form Messages */
.form-message {
    display: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: slideDown 0.3s ease-out;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner in Button */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-loading .spinner {
    animation: spin 1s linear infinite;
}

/* Focus Styles for Accessibility */
.space22-contact-form input:focus,
.space22-contact-form textarea:focus,
.space22-contact-form select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(184, 152, 90, 0.1);
}

/* Required Field Indicator */
.required {
    color: var(--color-gold);
    font-weight: 600;
}

/* RTL Support for Validation Icons */
.rtl input.is-invalid,
.rtl textarea.is-invalid,
.rtl input.is-valid,
.rtl textarea.is-valid,
body.lang-ar input.is-invalid,
body.lang-ar textarea.is-invalid,
body.lang-ar input.is-valid,
body.lang-ar textarea.is-valid {
    padding-right: var(--space-md);
    padding-left: 45px;
    background-position: left 12px center;
}

.rtl textarea.is-invalid,
.rtl textarea.is-valid,
body.lang-ar textarea.is-invalid,
body.lang-ar textarea.is-valid {
    background-position: left 12px top 12px;
}

.rtl .char-counter,
body.lang-ar .char-counter {
    justify-content: flex-start;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-message {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }

    .field-error,
    .field-success {
        font-size: var(--font-size-xs);
    }
}

/* Dark Theme Support */
[data-theme="dark"] .form-group.has-error input,
[data-theme="dark"] .form-group.has-error textarea,
[data-theme="dark"] .form-group.has-error select {
    background-color: rgba(220, 53, 69, 0.1);
}

[data-theme="dark"] .form-group.has-success input,
[data-theme="dark"] .form-group.has-success textarea {
    background-color: rgba(40, 167, 69, 0.1);
}

[data-theme="dark"] .form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #a3e4b1;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f5c2c7;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Print Styles */
@media print {
    .field-error,
    .field-success,
    .char-counter,
    .form-message {
        display: none !important;
    }

    input.is-invalid,
    textarea.is-invalid,
    input.is-valid,
    textarea.is-valid {
        background-image: none !important;
        border-color: #ddd !important;
    }
}

/* Accessibility - Screen Reader Only */
.sr-only-focusable:not(:focus) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* ============================================
   Simple Testimonials Component
   ============================================ */

.testimonials-simple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0 var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-simple-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-simple-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cream);
    border: 2px solid var(--color-gold);
}

.testimonial-simple-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-simple-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.testimonial-simple-content {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    max-width: 300px;
}

.testimonials-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.testimonials-section .section-title h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-size-2xl);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Custom button styling for testimonials to match design */
.testimonials-cta .btn {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.testimonials-cta .btn:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-simple-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin: var(--space-lg) 0;
    }

    .testimonial-simple-avatar {
        width: 60px;
        height: 60px;
    }

    .testimonial-simple-name {
        font-size: var(--font-size-base);
    }

    .testimonial-simple-content {
        font-size: var(--font-size-sm);
    }
}

/* ============================================
   Image List Component (Material-style)
   Three variants: Standard, Masonry, Quilted
   ============================================ */

/* --- Shared base --- */
.s22-image-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s22-image-list-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.s22-image-list-link,
.s22-img-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.s22-image-list-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.s22-image-list-item:hover img {
    transform: scale(1.05);
}

.s22-image-list-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: var(--line-height-normal);
}

.s22-image-list-label span {
    display: block;
}

.s22-image-list-label .s22-image-list-subtitle {
    font-size: var(--font-size-xs);
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* --- Standard: uniform CSS grid --- */
.s22-image-list--standard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
}

.s22-image-list--standard .s22-image-list-item {
    aspect-ratio: 1 / 1;
}

/* --- Masonry: CSS columns waterfall --- */
.s22-image-list--masonry {
    columns: 3;
    column-gap: var(--space-xs);
}

.s22-image-list--masonry .s22-image-list-item {
    break-inside: avoid;
    margin-bottom: var(--space-xs);
}

.s22-image-list--masonry .s22-image-list-item img {
    height: auto;
}

/* --- Quilted: CSS grid with spanning --- */
.s22-image-list--quilted {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: var(--space-xs);
}

.s22-image-list--quilted .s22-image-list-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .s22-image-list--standard {
        grid-template-columns: repeat(2, 1fr);
    }

    .s22-image-list--masonry {
        columns: 2;
    }

    .s22-image-list--quilted {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 576px) {
    .s22-image-list--standard {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .s22-image-list--masonry {
        columns: 2;
        column-gap: 4px;
    }

    .s22-image-list--masonry .s22-image-list-item {
        margin-bottom: 4px;
    }

    .s22-image-list--quilted {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 4px;
    }

    .s22-image-list-label {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
    }
}


/* ============================================
   Smart Button Component
   ============================================ */

.s22-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body, Inter, sans-serif);
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

/* Style Variants */
.s22-btn-primary {
    background: var(--color-dark, #2D2D2D);
    color: #fff;
    border-color: var(--color-dark, #2D2D2D);
}
.s22-btn-primary:hover {
    background: transparent;
    color: var(--color-dark, #2D2D2D);
}

.s22-btn-secondary {
    background: transparent;
    color: var(--color-dark, #2D2D2D);
    border-color: var(--color-dark, #2D2D2D);
}
.s22-btn-secondary:hover {
    background: var(--color-dark, #2D2D2D);
    color: #fff;
}

.s22-btn-gold {
    background: var(--color-gold, #B8985A);
    color: #fff;
    border-color: var(--color-gold, #B8985A);
}
.s22-btn-gold:hover {
    background: transparent;
    color: var(--color-gold, #B8985A);
}

.s22-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.s22-btn-outline-light:hover {
    background: #fff;
    color: var(--color-dark, #2D2D2D);
}

.s22-btn-outline-dark {
    background: transparent;
    color: var(--color-dark, #2D2D2D);
    border-color: var(--color-dark, #2D2D2D);
}
.s22-btn-outline-dark:hover {
    background: var(--color-dark, #2D2D2D);
    color: #fff;
}

.s22-btn-custom {
    /* user styles via GrapeJS style manager */
}

/* Size Variants */
.s22-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}
.s22-btn-md {
    padding: 12px 28px;
    font-size: 15px;
}
.s22-btn-lg {
    padding: 16px 38px;
    font-size: 17px;
}

/* Shape Variants */
.s22-btn-pill {
    border-radius: 50px;
}
.s22-btn-circle {
    border-radius: 50%;
    padding: 0;
    width: 48px;
    height: 48px;
}
.s22-btn-circle.s22-btn-sm {
    width: 36px;
    height: 36px;
}
.s22-btn-circle.s22-btn-lg {
    width: 60px;
    height: 60px;
}

/* Icon styling */
.s22-btn i {
    font-size: 1.1em;
    line-height: 1;
}
.s22-btn .s22-btn-img {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    border-radius: 2px;
}
.s22-btn-circle .s22-btn-img {
    width: 1.2em;
    height: 1.2em;
}

/* Floating */
.s22-btn-floating {
    position: fixed;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: s22BtnPulse 2s ease-in-out infinite;
}
.s22-btn-floating:hover {
    animation: none;
    transform: scale(1.08);
}

@keyframes s22BtnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); }
}

/* Video modal overlay */
.s22-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: s22ModalFadeIn 0.3s ease;
}
.s22-video-modal iframe {
    width: 90vw;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
}
.s22-video-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
}
.s22-video-modal-close:hover {
    opacity: 0.7;
}

@keyframes s22ModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ============================================
   GrapeJS Basic Layout (frontend fallback)
   ============================================ */

.gjs-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
}
.gjs-cell {
    min-height: 75px;
    flex-grow: 1;
    flex-basis: 100%;
}
.gjs-row > .gjs-cell {
    flex-basis: 0;
}

@media (max-width: 768px) {
    .gjs-row {
        flex-direction: column;
    }
    .gjs-cell {
        flex-basis: 100% !important;
        width: 100%;
    }
}

/* ============================================
   Instagram Feed Grid
   ============================================ */

.s22-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.s22-instagram-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.s22-instagram-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

.s22-instagram-grid .s22-ig-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-cream, #F5F0E8);
}

.s22-instagram-grid .s22-ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.s22-instagram-grid .s22-ig-item:hover img {
    transform: scale(1.05);
}

.s22-instagram-grid .s22-ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.s22-instagram-grid .s22-ig-item:hover .s22-ig-overlay {
    opacity: 1;
}

.s22-instagram-grid .s22-ig-overlay svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.s22-ig-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--color-cream, #F5F0E8);
    color: var(--color-gray, #6B6B6B);
    font-size: var(--font-size-sm, 14px);
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--color-gray, #ccc);
    border-radius: var(--radius-md, 8px);
}

.s22-ig-no-token {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray, #6B6B6B);
    font-style: italic;
}

@media (max-width: 768px) {
    .s22-instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   Gallery Lightbox Blocks
   ============================================ */

.s22-gallery {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s22-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.s22-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.s22-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.s22-gallery-item:hover img {
    transform: scale(1.05);
}

.s22-gallery-item .s22-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.s22-gallery-item:hover .s22-gallery-overlay {
    opacity: 1;
}

.s22-gallery-overlay svg {
    width: 32px;
    height: 32px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.s22-gallery--standard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
}

.s22-gallery--standard .s22-gallery-item {
    aspect-ratio: 1 / 1;
}

.s22-gallery--masonry {
    columns: 3;
    column-gap: var(--space-xs);
}

.s22-gallery--masonry .s22-gallery-item {
    break-inside: avoid;
    margin-bottom: var(--space-xs);
}

.s22-gallery--masonry .s22-gallery-item img {
    height: auto;
}

.s22-gallery--quilted {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: var(--space-xs);
}

.s22-gallery--quilted .s22-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .s22-gallery--standard {
        grid-template-columns: repeat(2, 1fr);
    }

    .s22-gallery--masonry {
        columns: 2;
    }

    .s22-gallery--quilted {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 576px) {
    .s22-gallery--standard {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .s22-gallery--masonry {
        columns: 2;
        column-gap: 4px;
    }

    .s22-gallery--masonry .s22-gallery-item {
        margin-bottom: 4px;
    }

    .s22-gallery--quilted {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 4px;
    }
}
