/* Modern, elegant styling for Moonlight Charms with colors from the logo */
:root {
    --primary-color: #a38a5f; /* Warmer gold/bronze to match jewelry */
    --accent-color: #d4b054; /* Richer gold accent */
    --light-color: #f9f5ec; /* Warm off-white */
    --dark-color: #3a3a3a; /* Dark gray */
    --background-color: #f5f1e8; /* Warm cream background to match photos */
    --text-color: #4a3c28; /* Dark bronze text */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(138, 109, 59, 0.3); /* Bronze with transparency */
    margin-bottom: 30px;
}

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

.logo img {
    max-height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--accent-color);
}

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

/* Banner section */
.banner {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(163, 138, 95, 0.1), rgba(212, 176, 84, 0.15), rgba(163, 138, 95, 0.1));
    border-radius: 8px;
}

.banner h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 2px;
}

.banner p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.6;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(138, 109, 59, 0.2);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(163, 138, 95, 0.7) 100%);
    opacity: 0;
    transition: var(--transition);
}

.grid-item:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #4a3c28;
    color: var(--light-color);
    margin-top: 60px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.modal-content {
    margin: 5% auto;
    display: block;
    width: 80%;
    max-width: 800px;
    animation: zoom 0.6s;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--light-color);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    z-index: 11;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0.1); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Contact page styles */
.content {
    padding: 20px 0;
}

.content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 2px;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-form {
    margin: 40px auto;
    max-width: 600px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(138, 109, 59, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.contact-form button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
    }
}