/* Using Cormorant Garamond - Elegant serif font similar to Californian FB */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-cream: #F5F1EB;
    --color-beige: #E8E3DC;
    --color-sage: #D4C9B8;
    --color-charcoal: #2C2C2C;
    --color-gray: #6B6B6B;
    --color-white: #FFFFFF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-beige);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-charcoal);
    letter-spacing: 0.3px;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.logo-text {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-charcoal);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 1s ease-in-out;
}

.hero-video.fade-out {
    opacity: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(245, 241, 235, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(245, 241, 235, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-gray);
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    letter-spacing: 0.2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-charcoal);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-charcoal);
    transform: translateY(-2px);
}

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

/* Categories Section */
.categories {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    min-height: 800px;
}

/* First 4 categories on the left in 2x2 grid */
.categories-grid .category-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.categories-grid .category-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.categories-grid .category-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
}

.categories-grid .category-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

/* 5th category on the right, spanning full height */
.categories-grid .category-card:nth-child(5) {
    grid-column: 3;
    grid-row: 1 / -1;
}

/* If more than 5 categories, continue with normal grid */
.categories-grid .category-card:nth-child(n+6) {
    grid-column: span 1;
    grid-row: span 1;
}

.category-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-beige);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
}

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

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 16px;
}

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

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: var(--spacing-md);
    color: var(--color-white);
}

.category-card-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Category Modal */
.category-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.category-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.category-modal-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    animation: slideUp 0.3s ease;
}

.category-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-charcoal);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-modal-close:hover {
    background-color: var(--color-beige);
    transform: rotate(90deg);
}

.category-modal-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-beige);
}

.category-modal-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--color-charcoal);
    letter-spacing: 0.3px;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Product Box */
.product-box {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-beige);
    display: flex;
    flex-direction: column;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-box-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--color-beige);
}

.product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 16px 16px 0 0;
}

.product-box:hover .product-box-image img {
    transform: scale(1.05);
}

.product-box-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-box-description {
    margin-top: 0;
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-box-description p {
    margin-bottom: 0.25rem;
    font-weight: 300;
}

.product-box-description p:last-child {
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-cream);
}

.section-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-charcoal);
    letter-spacing: 0.3px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

/* Gallery Section */
.gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--color-beige);
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 16px;
}

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

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background-color: var(--color-white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-beige);
}

.modal-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.3px;
}

.modal-info {
    margin-top: var(--spacing-sm);
}

.modal-info-line {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0.25rem;
    font-weight: 300;
}

.modal-info-line:last-child {
    margin-bottom: 0;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.modal-image-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--color-beige);
    border-radius: 16px;
    cursor: zoom-in;
}

.modal-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

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

/* Zoom Lens */
.zoom-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.modal-image-item.zooming .zoom-lens {
    display: block;
}

/* Fullscreen Zoom View */
.zoom-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zoom-viewer.active {
    display: flex;
}

.zoom-viewer img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-viewer-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-charcoal);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-beige);
    transform: rotate(90deg);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2.5rem;
    background-color: #25D366;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-align: center;
    font-size: 0.9rem;
}

/* Loading State */
.gallery-loading {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--color-gray);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
        max-width: 150px;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .modal-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(350px, auto);
        gap: var(--spacing-sm);
    }
    
    /* On tablet, keep 2x2 on left, 1 on right */
    .categories-grid .category-card:nth-child(1),
    .categories-grid .category-card:nth-child(2) {
        grid-column: 1;
    }
    
    .categories-grid .category-card:nth-child(3),
    .categories-grid .category-card:nth-child(4) {
        grid-column: 2;
    }
    
    .categories-grid .category-card:nth-child(1),
    .categories-grid .category-card:nth-child(3) {
        grid-row: 1;
    }
    
    .categories-grid .category-card:nth-child(2),
    .categories-grid .category-card:nth-child(4) {
        grid-row: 2;
    }
    
    .categories-grid .category-card:nth-child(5) {
        grid-column: span 2;
        grid-row: 3;
    }
    
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .category-modal-content {
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 95%;
        padding: var(--spacing-md);
    }
    
    .modal-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(300px, auto);
        min-height: auto;
    }
    
    .categories-grid .category-card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    /* Override all specific grid positioning for mobile */
    .categories-grid .category-card:nth-child(1),
    .categories-grid .category-card:nth-child(2),
    .categories-grid .category-card:nth-child(3),
    .categories-grid .category-card:nth-child(4),
    .categories-grid .category-card:nth-child(5) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-modal-content {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
}

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

