/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --noir-de-vigne: #111a19;
    --emerald-green: #284139;
    --wasabi: #809076;
    --creased-khaki: #f8d794;
    --egyptian-earth: #b86830;
    --light-bg: #fafaf8;
    --text-dark: #111a19;
    --text-light: #fff;
    --gray: #5a6663;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    font-weight: 300;
    padding-top: 80px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

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

.navbar {
    background-color: var(--noir-de-vigne);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(248, 215, 148, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--creased-khaki);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--creased-khaki);
}

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

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

/* Hero Section */
.hero {
    background-color: var(--emerald-green);
    color: var(--text-light);
    padding: 200px 0;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 65, 57, 0.6);
    z-index: 1;
}

.slideshow-pause {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(17, 26, 25, 0.7);
    color: var(--creased-khaki);
    border: 1px solid rgba(248, 215, 148, 0.3);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-pause:hover {
    background-color: var(--noir-de-vigne);
    transform: scale(1.1);
}

.hero-content {
    max-width: 50%;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--creased-khaki);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-bg);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: transparent;
    border: 1px solid var(--creased-khaki);
    color: var(--creased-khaki);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--creased-khaki);
    color: var(--noir-de-vigne);
    transform: translateY(-2px);
    box-shadow: none;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--creased-khaki);
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--emerald-green);
    position: relative;
    padding-bottom: 0;
    font-weight: 400;
    letter-spacing: 0;
}

.section-title::after {
    display: none;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image,
.placeholder-image {
    background-color: var(--wasabi);
    border: none;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
    background-color: var(--light-bg);
    width: 100%;
    box-sizing: border-box;
}

.gallery-grid {
    column-count: 3;
    column-gap: 2rem;
}

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

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

.gallery-item {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
    text-decoration: none;
    color: inherit;
}

.gallery-item:hover {
    border-color: var(--creased-khaki);\n}

.gallery-item:hover .placeholder-image,
.gallery-item:hover .gallery-image {
    opacity: 0.95;
}

.gallery-item .placeholder-image,
.gallery-item .gallery-image-wrapper {
    height: auto;
    min-height: 200px;
    border: none;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    transition: transform 0.5s ease;
    overflow: hidden;
    position: relative;
}

/* Remove fixed height override for vertical images */

.gallery-item .gallery-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wasabi);
}

.gallery-item .gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-item h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--emerald-green);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
}

/* Carousel Styles */
.carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 26, 25, 0.7);
    color: var(--creased-khaki);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.gallery-item:hover .carousel-prev,
.gallery-item:hover .carousel-next {
    opacity: 1;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--noir-de-vigne);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 11;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(248, 215, 148, 0.4);
    border: 1px solid rgba(248, 215, 148, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--creased-khaki);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(248, 215, 148, 0.6);
}

.carousel-dot:hover {
    background-color: rgba(248, 215, 148, 0.7);
}

/* Hide arrows on mobile, show dots always */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        display: none;
    }
    
    .carousel-dots {
        opacity: 1;
    }
}

.gallery-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Gallery Page Styles */
.gallery-page {
    padding: 120px 0;
    background-color: var(--light-bg);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.gallery-header {
    margin-bottom: 3rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-green);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--egyptian-earth);
}

.back-link i {
    font-size: 0.9rem;
}

.gallery-description {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: var(--emerald-green);
    color: var(--text-light);
}

.contact .section-title {
    color: var(--creased-khaki);
}

.contact .section-title::after {
    background-color: var(--creased-khaki);
}

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

.contact-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--light-bg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--creased-khaki);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a:hover {
    color: var(--creased-khaki);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--creased-khaki);
}

/* Footer */
footer {
    background-color: var(--noir-de-vigne);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(248, 215, 148, 0.1);
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--creased-khaki);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: baseline;
}

.contact-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.contact-info-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-footer a:hover {
    color: var(--creased-khaki);
}

.footer-section .social-links {
    justify-content: flex-start;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--egyptian-earth);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--creased-khaki);
    color: var(--noir-de-vigne);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 215, 148, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 120px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

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

    .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

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

    .contact-row {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }
}
