/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 5rem;

    /* Colors */
    --bg-color: #FCF3E2; /* Warm Parchment */
    --text-color: #36241A;
    --text-color-light: #5c4b41;
    --highlight-color: #C29D73; /* Golden Tan */
    --primary-color: #36241A; /* Rich Espresso */
    --accent-color: #6A7B53; /* Earthy Olive */
    --white-color: #FFFFFF;
    --border-color: #EADBC8;

    /* Typography */
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Cormorant Garamond', serif;

    /* Font sizes */
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
    --normal-size: 1rem;
    --small-size: 0.9rem;
}

@media screen and (min-width: 992px) {
    :root {
        --h1-size: 4.5rem;
        --h2-size: 3rem;
        --h3-size: 1.75rem;
        --normal-size: 1.05rem;
    }
}

/* ==================== BASE STYLES ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-size);
    background-color: var(--bg-color);
    color: var(--text-color-light);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.section {
    padding: 7rem 0 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

.section-title h2 .highlight {
    color: var(--highlight-color);
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
    cursor: pointer;
    font-family: var(--body-font);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #586845;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== HEADER & NAV ==================== */
#header {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s;
    padding: 0.5rem 0;
}

#header.scrolled {
    background-color: rgba(252, 243, 226, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 0;
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.nav-link:hover { color: var(--highlight-color); }
.nav-link:hover::after { width: 100%; }

/* Style for active navigation link */
.nav-link.active {
    color: var(--highlight-color);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}


.header-btn {
    font-size: var(--small-size);
    padding: 0.6rem 1.5rem;
}

.nav-toggle {
    font-size: 1.5rem; cursor: pointer; display: none;
    color: var(--white-color);
    transition: color 0.3s;
    z-index: 101;
}
#header.scrolled .nav-toggle { color: var(--primary-color); }

/* ==================== HERO SECTION ==================== */
.hero {
    height: 100vh; min-height: 700px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/hero_img.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero-content {
    color: var(--white-color);
    max-width: 850px;
}
.hero-title {
    font-size: var(--h1-size);
    color: var(--white-color);
    margin-bottom: 1.5rem; font-weight: 600;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
    font-family: var(--body-font);
    font-weight: 400;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 4rem; align-items: center;
}
.about-image img {
    border-radius: 12px;
}
.about-text h3 {
    font-size: var(--h3-size);
    margin-bottom: 1.5rem;
    color: var(--highlight-color);
}
.about-text p { margin-bottom: 2rem; }

.about-highlights li {
    margin-bottom: 1rem;
    display: flex; align-items: center;
}
.about-highlights i {
    color: var(--accent-color); margin-right: 1rem;
    font-size: 1.3rem;
}

/* ==================== SIGNATURE PRODUCT SECTION ==================== */
#product-focus {
    background-color: #f7ede0;
}
.product-focus-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.product-focus-image img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.product-focus-details .subtitle {
    color: var(--highlight-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}
.product-focus-details h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
}
.product-focus-details .description {
    margin-bottom: 2rem;
}
.specs-list {
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.specs-list li {
    padding-left: 1.5rem;
    position: relative;
}
.specs-list li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 4px;
}

/* ==================== QUALITY SECTION ==================== */
.cert-logos {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 2.5rem;
}
.cert-logos img {
    max-height: 60px; filter: grayscale(100%); opacity: 0.6;
    transition: filter 0.4s, opacity 0.4s;
}
.cert-logos:hover img {
    filter: grayscale(0%); opacity: 1;
}

/* ==================== GALLERY / SLIDER SECTION ==================== */
#gallery {
    background-color: #f7ede0;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background-color: #fff;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    user-select: none;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    transform: translateY(-50%);
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-color);
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer;
    pointer-events: all;
    transition: transform 0.2s;
    color: var(--primary-color);
}
.slider-btn:hover { transform: translateY(-3px); }

.slider-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 1rem;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); cursor: pointer; border: 0;
}
.dot.active {
    background: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.gallery-copy h3 { margin-bottom: 1rem; }
.gallery-copy p { margin-bottom: 1rem; }
.gallery-copy ul { margin-top: 1rem; }
.gallery-copy li { margin-bottom: 0.75rem; padding-left: 1rem; position: relative; }
.gallery-copy li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}


/* ==================== CONTACT SECTION ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    background-color: var(--white-color);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.contact-form h3, .contact-info h3 {
    font-size: var(--h3-size);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--small-size);
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fcf9f4;
    font-family: var(--body-font);
    font-size: var(--normal-size);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(194, 157, 115, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    margin-top: 5px;
}

.info-list strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.info-list a {
    color: var(--text-color-light);
    transition: color 0.3s;
}
.info-list a:hover {
    color: var(--primary-color);
}

.map-placeholder {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    background-color: var(--border-color);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================== FOOTER ==================== */
#footer {
    background-color: var(--border-color);
    padding: 5rem 0 2rem;
    color: var(--text-color-light);
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; margin-bottom: 3rem;
}
.footer-socials {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 3rem;
}
.footer-socials h3 {
    margin-bottom: 1.5rem;
}
.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: var(--heading-font);
}
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a, .footer-col p a {
    color: var(--text-color-light);
    transition: color 0.3s;
}
.footer-col ul li a:hover, .footer-col p a:hover { color: var(--primary-color); }
.footer-col p i { margin-right: 0.75rem; }
.social-icons a {
    font-size: 1.5rem; margin: 0 0.6rem;
    color: var(--primary-color);
    transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
    color: var(--highlight-color);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--highlight-color);
    padding-top: 2rem;
    font-size: var(--small-size);
}

/* ==================== SCROLL REVEAL ANIMATION ==================== */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.active {
    opacity: 1; transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media screen and (min-width: 993px) {
    #header:not(.scrolled) .nav-link { 
        color: var(--white-color); 
    }
    #header:not(.scrolled) .nav-link.active {
        color: var(--highlight-color);
    }
    #header.scrolled .nav-link { 
        color: var(--primary-color); 
    }
}

@media screen and (max-width: 992px) {
    html, body { overflow-x: hidden; }

    .nav-right { display: none; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 70%;
        height: 100vh;
        background-color: rgba(252, 243, 226, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; align-items: center;
        padding: 6rem 2rem 0; gap: 3rem;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
    }
    .nav-menu.show-menu { right: 0; }
    
    .nav-link {
        color: var(--primary-color);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-size: 2.5rem; --h2-size: 2rem;
    }
    .section { padding: 5rem 0 2rem; }
    .about-content, .product-focus-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image { margin: 0 auto 2rem auto; }
    .about-highlights, .specs-list {
        text-align: left; display: inline-block;
    }
    .product-focus-content {
        gap: 3rem;
    }
    .product-focus-image { order: -1; } /* Image appears first on mobile */
    .hero { height: 90vh; }
    .hero-buttons {
        display: flex; flex-direction: column;
        align-items: center; gap: 1rem;
    }
    .btn-secondary { margin-left: 0; }
    .contact-grid {
        padding: 2rem 1.5rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .slide img { height: 300px; }
}
