/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #1e1e1e;
    /* Lightened to old header color */
    /* Very Dark Charcoal */
    --card-bg: #252525;
    /* Slightly lighter than bg for contrast */
    --text-color: #e0e0e0;
    /* Off-white */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --border-color: #333333;
    --secondary-text: #a0a0a0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }
}

/* Header & Nav */
header {
    background-color: #000000;
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-container {
    text-align: center;
    cursor: pointer;
}

.site-logo {
    max-height: 140px;
    /* Reverted to smaller size */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 4px;
    margin: 10px 0;
}

.site-logo:hover {
    transform: scale(1.02);
}

.address-city {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-color);
    display: block;
    margin: 8px 0 4px;
    letter-spacing: 1.5px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    line-height: 1.4;
}

.map-container {
    margin-top: 20px;
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-container:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-overlay span {
    background: var(--accent-color);
    color: #121212;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Old Text Logo Styles Removed/Commented if no longer used */
/* .logo-container h1 { ... } */
/* .logo-container span { ... } */

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero_bg_placeholder.svg');
    /* Ideally this url would be valid, but gradient works as fallback */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero-content {
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
    padding: 0 2rem;
}

.hero h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.btn-explore {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-explore:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem 1.5rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

/* Staggered animation delays handled in JS ideally, or generic here */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.product-card:hover .card-image {
    transform: scale(1.1);
    opacity: 1;
}

.card-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    /* Covers image overflow if needed */
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 400;
}

.card-info .code {
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.8rem;
}

.view-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    display: inline-block;
}

.product-card:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    width: 95%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--secondary-text);
    z-index: 10;
    transition: color 0.3s;
    line-height: 0.8;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
    border-right: 1px solid var(--border-color);
}

.modal-details {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.modal-details .code {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
}

.modal-details .description {
    margin-bottom: 2.5rem;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.whatsapp-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #25D366;
    color: #25D366;
    text-decoration: none;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    align-self: flex-start;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    border-top: 1px solid var(--accent-color);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    color: var(--secondary-text);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-section {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icon {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-icon:hover {
    border-color: var(--accent-color);
    background: var(--accent-glow);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-bottom .small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        width: 100%;
        height: 100%;
        border: none;
    }

    .modal-image {
        height: 350px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-details {
        padding: 2rem;
        justify-content: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

}

/* Gallery Styles */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-btn.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.nav-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    /* Match existing card-image-wrapper height if any */
    overflow: hidden;
}

.multi-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .card-image-container {
        height: 200px;
    }
}