/* Universal Styles & Base Reset */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #A0522D; /* Chocolate Brown */
    --secondary-color: #D2B48C; /* Tan/Beige */
    --accent-color: #F4A460; /* Sandy Brown */
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --light-bg: #f9f9f9;
    --dark-bg: #444;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust as needed */
    margin-right: 10px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap; /* Keep name on one line */
}

.logo a {
    display: flex;
    align-items: center;
    color: inherit;
}


.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

.main-nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section (Home Page Specific) */
/* Hero Section (Home Page Specific) */
.hero-section {
    /* Existing properties */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* This sets a minimum height relative to viewport height */

    /* Add or modify these for a "nice" look: */
    background-attachment: fixed; /* Makes the image parallax-like (optional, but often nice) */
}

/* For the Page Hero (other pages), apply similar logic */
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/page-hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid var(--accent-color);
    background-attachment: scroll; /* You can make this fixed too if you like the effect */
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

/* Page Hero (Other Pages) */
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/page-hero-bg.jpg') no-repeat center center/cover; /* Add a page-hero-bg.jpg image */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid var(--accent-color);
}

.page-hero h2 {
    font-size: 3em;
    color: #fff;
}

/* Sections */
.about-summary, .featured-products, .call-to-action {
    padding: 80px 0;
    text-align: center;
}

.about-summary {
    background-color: var(--light-bg);
}

.about-summary p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

.featured-products {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card, .product-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover, .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img, .product-item img {
    max-width: 100%;
    height: 200px; /* Uniform height for product images */
    object-fit: contain; /* Ensures entire image is visible without cropping */
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.product-card h4, .product-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.product-card .price {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Call to Action Section */
.call-to-action {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 20px;
}

.call-to-action h3 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.call-to-action .btn {
    background: var(--accent-color);
    color: #fff;
}

.call-to-action .btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}


/* About Page Specific Styles */
.about-content {
    background-color: #fff;
    padding: 80px 0;
}

.about-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
}

.about-intro p {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.about-intro img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.about-details h3 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

.about-details ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.about-details ul li {
    margin-bottom: 10px;
}

/* Products Page Specific Styles */
.products-list .intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.product-grid.full-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.product-item img {
    width: 100%; /* Make images take full width of their container */
    max-width: 250px; /* Max width for consistency */
    height: 250px; /* Fixed height */
    object-fit: contain;
    margin-bottom: 20px;
}

.product-item .product-info {
    flex-grow: 1; /* Allows info block to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.product-item .description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take space */
}

.product-item .price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}


/* Contact Page Specific Styles */
.contact-section {
    background-color: var(--light-bg);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-info-block {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info-block i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-block h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info-block p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.contact-info-block a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(244, 164, 96, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    padding: 12px 30px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-note {
    font-size: 0.85em;
    color: #777;
    text-align: center;
    margin-top: 20px;
}

.location-map iframe {
    border-radius: var(--border-radius);
    width: 100%;
    height: 450px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-note {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 15px;
}


/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--light-text-color);
    padding: 50px 0 20px 0;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section p, .footer-section ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section a {
    color: var(--light-text-color);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section.contact-info p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-section.social-media a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--light-text-color);
    transition: color var(--transition-speed);
}

.footer-section.social-media a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100px; /* Adjust based on header height */
        left: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f2f2f2;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 20px;
        color: var(--primary-color);
    }
    .main-nav ul li a::after {
        display: none; /* Hide hover underline on mobile */
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .page-hero h2 {
        font-size: 2.5em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-item {
        flex-direction: column;
        align-items: center;
    }
    .product-item img {
        max-width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .logo img {
        height: 50px;
    }
    .logo h1 {
        font-size: 1.5em;
    }

    .hero-section {
        padding: 100px 20px;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .page-hero {
        padding: 80px 20px;
    }
    .page-hero h2 {
        font-size: 2em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card, .product-item {
        padding: 15px;
    }
    .product-card img, .product-item img {
        height: 180px;
        max-width: 180px;
    }
    .product-card h4, .product-item h4 {
        font-size: 1.1em;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section ul {
        padding-left: 0;
    }
    .footer-section.social-media {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        display: none; /* Hide business name on very small screens if logo image has text */
    }
    .logo img {
        height: 45px;
        margin: 0;
    }

    .hero-section {
        padding: 80px 15px;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .page-hero {
        padding: 60px 15px;
    }
    .page-hero h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card img, .product-item img {
        height: 200px;
        max-width: 200px;
    }
    .product-item .product-info {
        width: 100%;
    }
    .contact-form-container {
        padding: 25px;
    }
}