/* Global Styles */
:root {
    --primary-color: #5D4037; /* Warmer, slightly softer Brown */
    --secondary-color: #D4AF37; /* Classic Gold */
    --background-color: #FAF6F0; /* Soft Off-White/Cream */
    --text-color: #4E403B; /* Dark Brownish Grey for text */
    --light-text: #f8f8f8; /* Slightly off-white for contrast on dark bg */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --transition-speed: 0.3s ease-in-out; /* Smoother transition */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7; /* Increased line height for readability */
    color: var(--text-color);
    background-color: var(--background-color);
    /* Add a subtle background pattern - Replace placeholder-pattern.png */
    background-image: url('placeholder-pattern.png');
    background-repeat: repeat;
    overflow-x: hidden; /* Prevent horizontal scrollbar during animations */
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1.2rem; /* Slightly more margin */
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem; /* More space below section titles */
}

h3 {
    font-size: 1.8rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px; /* Slightly more horizontal padding */
}

.section {
    padding: 70px 0; /* Increased section padding */
}

.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 12px 28px; /* Slightly larger buttons */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
    margin: 5px;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px); /* Subtle lift on hover */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Darker text on gold */
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #c89f68; /* Darker gold on hover */
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Header */
#header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow 0.3s ease-in-out;
    box-shadow: none; /* Start without shadow */
}

#header.scrolled {
     background-color: rgba(93, 64, 55, 0.95); /* Warmer brown transparent */
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.9rem; /* Slightly larger logo */
    font-weight: bold;
    color: var(--secondary-color); /* Gold logo */
}

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

.nav-links li {
    margin-left: 30px; /* More space between links */
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 5px;
}

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

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

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

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure video doesn't spill out */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1; /* Place behind overlay and content */
    object-fit: cover; /* Cover the container, cropping if necessary */
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); /* Softer gradient overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* Subtle text shadow */
}

/* About Section */
#about {
    background-color: var(--background-color);
}

#about p {
    margin-bottom: 1.2rem; /* More spacing */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.05rem;
}

/* Products Section */
#products {
    background-color: #fff; /* Keep white for product focus */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; /* Increased gap */
}

.product-card.animate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s, box-shadow var(--transition-speed);
    /* Added delay and included box-shadow transition */
}

.product-card.animate-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    background-color: var(--background-color);
    border-radius: 10px; /* Slightly more rounded */
    padding: 30px; /* More padding */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Softer shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); /* Slightly stronger hover shadow */
    transform: translateY(-4px);
}

.product-image {
    max-width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 8px; /* Match card rounding */
    margin-bottom: 20px; /* More space below image */
    background-color: #e0e0e0;
    transition: transform 0.4s ease-in-out; /* Add transition for zoom effect */
}

.product-card:hover .product-image {
    transform: scale(1.05); /* Zoom image slightly on card hover */
}

.product-tagline {
    font-style: italic;
    color: var(--secondary-color);
    margin: 0.5rem 0 1.2rem 0; /* Adjusted margin */
    font-weight: bold;
}

.product-card p:not(.product-tagline) {
    flex-grow: 1; /* Push details down */
    margin-bottom: 1.5rem;
}

.product-details {
    margin-top: auto; /* Align tabs to bottom */
    text-align: left;
    border-top: 1px solid #eee; /* Separator */
    padding-top: 15px;
}

.tab-button {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 0;
    margin-right: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    transition: border-color var(--transition-speed), color var(--transition-speed);
    font-size: 0.95rem;
}

.tab-button.active,
.tab-button:hover {
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color);
}

.tab-content {
    display: none;
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    animation: fadeIn 0.5s ease-in-out;
}

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

.tab-content.active {
    display: block;
}

.tab-content h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
}

.tab-content ul li {
    margin-bottom: 0.4rem;
}

/* Contact Section */
#contact {
    background-color: var(--background-color);
}

.contact-icon {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px; /* Ensure consistent alignment */
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjust min width */
    gap: 50px; /* Increased gap */
    align-items: flex-start;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); /* Gold focus ring */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    margin-top: 10px;
}

/* Footer */
#footer {
    background-color: var(--primary-color);
    color: #d1c7c4; /* Lighter, slightly brownish text for footer */
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Added gap */
}

.footer-logo {
    font-family: var(--heading-font);
    font-size: 1.8rem; /* Slightly larger */
    font-weight: bold;
    color: var(--secondary-color); /* Gold logo */
}

.footer-links a {
    color: #d1c7c4;
    text-decoration: none;
    margin: 0 12px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social p {
    margin-bottom: 8px;
}

.social-icon {
    color: #d1c7c4;
    font-size: 1.6rem; /* Larger icons */
    margin: 0 10px;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: inline-block; /* Allows transform */
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px); /* Lift icon on hover */
}

.footer-info {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    #header {
        padding: 10px 0;
    }

    #header nav {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-links {
        margin-top: 5px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links {
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap; /* Allow wrapping on small screens */
        justify-content: center;
        gap: 10px;
    }
    .footer-links a {
        margin: 0 5px;
    }
}
