/**
 * Homepage Modern Styles - ATRAHI Design
 * Fix responsive, header overlap, and modern improvements
 * Version 2.2 - Enhanced header overlap fix
 */

/* ==========================================================================
   FIX HEADER OVERLAP - CRITICAL SECTION
   ========================================================================== */

/* Site header fixed at top */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
}

/* Main content needs padding to not be hidden under header */
/* topbar 40px + nav 80px = 120px minimum */
body.home main.site-main,
body.home main.homepage,
body.home main,
body main.site-main,
body main.homepage,
.site-main.homepage {
    padding-top: 140px !important; /* Extra 20px for safe spacing */
    margin-top: 0 !important;
}

/* Hero section specific fix - more padding top */
.hero,
.hero#hero,
section.hero,
section.hero#hero {
    margin-top: 0 !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* For non-home pages */
body:not(.home) main {
    padding-top: 140px !important;
}

@media (max-width: 991px) {
    /* On mobile, topbar is hidden so less padding needed */
    body.home main.site-main,
    body.home main.homepage,
    body.home main,
    body main.site-main,
    .site-main.homepage {
        padding-top: 100px !important;
    }
    
    .hero,
    .hero#hero,
    section.hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 767px) {
    body.home main.site-main,
    body.home main,
    .site-main.homepage {
        padding-top: 90px !important;
    }
    
    .hero,
    .hero#hero,
    section.hero {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* ==========================================================================
   HERO SECTION - MODERN REDESIGN
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #fff 100%);
    padding: 60px 0 100px !important;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(185, 157, 99, 0.03) 100%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.15), rgba(185, 157, 99, 0.05));
    border: 1px solid rgba(185, 157, 99, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #b99d63;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #b99d63;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: #b99d63;
    display: inline;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-gold {
    background: linear-gradient(135deg, #b99d63 0%, #d4af37 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(185, 157, 99, 0.3);
}

.hero-buttons .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(185, 157, 99, 0.4);
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.hero-buttons .btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #b99d63;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.hero-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #1a1a1a;
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-image-badge-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #b99d63, #d4af37);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-badge-icon svg {
    color: #fff;
}

.hero-image-badge-text {
    font-weight: 700;
    font-size: 1rem;
}

.hero-image-badge-sub {
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* ==========================================================================
   SECTIONS - GENERAL STYLES
   ========================================================================== */

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-badge-text {
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.15), rgba(185, 157, 99, 0.05));
    border: 1px solid rgba(185, 157, 99, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b99d63;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title .text-gold {
    color: #b99d63;
}

.section-desc {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   SERVICES SECTION - MODERN GRID
   ========================================================================== */

.services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: transparent;
}

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.service-card-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.service-card-bullet {
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #4b5563;
    font-weight: 500;
}

.service-card-link {
    font-weight: 600;
    color: #b99d63;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.service-card:hover .service-card-link {
    gap: 12px;
}

/* ==========================================================================
   PORTFOLIO SECTION - MASONRY GRID
   ========================================================================== */

.portfolio {
    background: #1a1a1a;
    color: #fff;
}

.portfolio .section-title {
    color: #fff;
}

.portfolio .section-desc {
    color: rgba(255,255,255,0.7);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.portfolio-filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: #b99d63;
    border-color: #b99d63;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    text-decoration: none;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.portfolio-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-content {
    transform: translateY(0);
}

.portfolio-card-category {
    display: inline-block;
    background: #b99d63;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio-card-meta {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */

.process-cards-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.process-card-compact {
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid;
    gap: 8px;
}

.process-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.process-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.process-time {
    font-size: 12px;
    color: #6b7280;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
}

.process-card-compact h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.process-card-compact p {
    margin: 0;
    color: #4b5563;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: #b99d63;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(185, 157, 99, 0.2);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b99d63, #d4af37);
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #b99d63;
    margin-bottom: 8px;
}

.pricing-card-price span {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.pricing-card-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #4b5563;
}

.pricing-card-features li::before {
    content: '✓';
    color: #b99d63;
    font-weight: 700;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #b99d63;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #6b7280;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(185, 157, 99, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item-text strong {
    display: block;
    margin-bottom: 4px;
    color: #1a1a1a !important;
}

.contact-item-text span,
.contact-item-text a {
    color: #4b5563 !important;
    text-decoration: none;
}

/* Dark background contact section */
.contact-section .contact-item-text strong {
    color: #fff !important;
}

.contact-section .contact-item-text span,
.contact-section .contact-item-text a {
    color: rgba(255,255,255,0.8) !important;
}

.contact-item-text a:hover {
    color: #b99d63 !important;
}

/* ==========================================================================
   CONTACT INFO GENERAL FIX - For all pages
   ========================================================================== */

.contact-info-item,
.contact-info {
    color: #1a1a1a;
}

.contact-info-title,
.contact-info-label {
    color: #6b7280 !important;
    font-weight: 600;
}

.contact-info-text,
.contact-info-value {
    color: #1a1a1a !important;
    font-weight: 700;
}

.contact-info-text a,
.contact-info-value a {
    color: #1a1a1a !important;
}

.contact-info-text a:hover,
.contact-info-value a:hover {
    color: #b99d63 !important;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Header adjustments */
    .header-topbar {
        display: none;
    }
    
    .hero {
        margin-top: 80px !important;
        padding: 60px 0 80px !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-desc {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 350px;
    }
    
    .hero-image-badge {
        position: static;
        margin: 20px auto 0;
        display: inline-flex;
    }
    
    /* Sections */
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        margin-top: 70px !important;
        padding: 40px 0 60px !important;
    }
    
    .hero-content h1 {
        font-size: 1.875rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hero-stat {
        min-width: 100px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-image img {
        height: 280px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .portfolio-filters {
        gap: 8px;
    }
    
    .portfolio-filter-btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
    
    /* Process */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 30px;
    }
    
    .pricing-card-price {
        font-size: 2rem;
    }
    
    /* Contact */
    .contact-info h2 {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.625rem;
    }
    
    .hero-badge {
        padding: 8px 16px;
    }
    
    .hero-badge-text {
        font-size: 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-image img {
        height: 220px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card {
        aspect-ratio: 16/12;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-gold {
    color: #b99d63 !important;
}

.bg-gold {
    background-color: #b99d63 !important;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 769px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Fix for iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: auto;
    }
}
/* ==========================================================================
   FEATURED GALLERY SECTION
   ========================================================================== */

.featured-gallery {
    padding: 80px 0;
    position: relative;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
}

.gallery-item-medium {
    min-height: 280px;
}

.gallery-item-small {
    min-height: 200px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

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

.gallery-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    font-size: 0.875rem;
    color: #b99d63;
    background: rgba(185, 157, 99, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-item-large,
    .gallery-item-medium,
    .gallery-item-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    }
    
    .gallery-content {
        transform: translateY(0);
    }
    
    .gallery-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .featured-gallery {
        padding: 48px 0;
    }
}
