/* ---=== GOOGLE FONTS ===--- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500;600&display=swap');

/* ---=== CSS VARIABLES (COLOR PALETTE) ===--- */
:root {
    --bg-color: #FFF8F0;
    --text-color: #4A2E2C;
    --primary-color: #E6A4B4;
    --secondary-color: #B3C890;
    --accent-color: #D4AF37;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --header-height: 80px;
}

/* ---=== GENERAL STYLES & RESET ===--- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* ---=== HEADER & NAVIGATION ===--- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 248, 240, 0.8);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ---=== CALL TO ACTION BUTTONS ===--- */
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    width: 200px;
    height: 45px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 164, 180, 0.4);
}

/* ---=== HERO SECTION ===--- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-height) 20px 40px 20px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-slider {
    flex: 1;
    height: 60vh;
    max-height: 550px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.hero-slider img, .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active, .about-image img.active {
    opacity: 1;
}

/* ---=== ABOUT SECTION ===--- */
#despre {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.about-text {
    flex: 1.2;
}
.about-text h2 {
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 15px;
}

/* ---=== AWARDS SECTION ===--- */
#premii {
    background-color: var(--bg-color);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.award-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.award-icon.gold { color: var(--accent-color); }
.award-icon.bronze { color: #CD7F32; }

.award-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}
.award-card .location {
    font-weight: 500;
    color: #888;
    margin-bottom: 5px;
}
.award-card .flavor {
    font-weight: 600;
    color: var(--primary-color);
    font-style: italic;
}

/* ---=== INVITATION SECTION ===--- */
#invitation {
    background-color: var(--secondary-color);
    color: var(--white);
}
#invitation h2 {
    margin-bottom: 20px;
}
#invitation p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ---=== CONTACT SECTION ===--- */
#contact {
    background: var(--white);
}

.contact-box {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

.contact-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn.phone { background-color: #3498db; }
.contact-btn.phone:hover { box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3); }

.contact-btn.whatsapp { background-color: #25D366; }
.contact-btn.whatsapp:hover { box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3); }

.contact-btn.gmaps { background-color: #E67E22; }
.contact-btn.gmaps:hover { box-shadow: 0 8px 15px rgba(230, 126, 34, 0.3); }


/* ---=== FOOTER ===--- */
footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 30px 0;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.social-links a {
    color: var(--bg-color);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* ---=== SCROLL ANIMATIONS ===--- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for a staggered effect */
.hero-content h1 { transition-delay: 0.2s; }
.hero-content p { transition-delay: 0.4s; }
.hero-content .hero-cta { transition-delay: 0.6s; }
.award-card:nth-child(2) { transition-delay: 0.2s; }
.award-card:nth-child(3) { transition-delay: 0.4s; }


/* ---=== RESPONSIVE DESIGN ===--- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    section {
        padding: 60px 0;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
        gap: 40px;
    }

    .hero-content {
        align-items: center; /* This centers the button */
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-slider {
        width: 100%;
        height: 50vh;
        display: block; /* This makes the slider visible */
    }

    .about-content {
        flex-direction: column;
        display: block;
    }

    .about-image {
        width: 100%;
        height: 50vh; /* This makes the second slider visible */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .cta-button {
        width: 160px;
        height: 40px;
        font-size: 0.9rem;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* ---=== GALLERY PAGE STYLES ===--- */
#gallery-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    font-size: 1.1rem;
    color: #666;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Floating shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smooth transition for hover */
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03); /* Hover animation */
    box-shadow: 0 15px 30px rgba(0,0,0,0.12); /* Enhanced shadow on hover */
}

.gallery-item img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    display: block;
    align-content: center;
}

/* ---=== HEADER NAVIGATION LINKS ===--- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:not(.cta-button)::after {
    width: 100%;
}