/* --- CSS Variables & Reset --- */
:root {
    --bg-primary: #F9F8F6;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --accent-primary: #8F9779; /* Sage Green */
    --accent-secondary: #C5A880; /* Gold/Tan */
    --white: #ffffff;
    --light-gray: #EDF2F7;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --container-max: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Typography Helpers --- */
.section-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #7A8265;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-cta {
    background-color: var(--accent-secondary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-cta:hover {
    background-color: #B2956D;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    will-change: padding, background-color;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header.scrolled .logo a, 
header.scrolled .nav-links a:not(.btn-cta) {
    color: var(--text-primary);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    font-weight: 400;
    color: var(--accent-secondary);
    margin-left: 2px;
}

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

.nav-links a:not(.btn-cta) {
    color: var(--white);
    font-weight: 400;
    position: relative;
}

.nav-links a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-secondary);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn-cta):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin-bottom: 5px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(
        rgba(45, 55, 72, 0.75),
        rgba(45, 55, 72, 0.75)
    ), url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- About Section --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Testimonials --- */
.testimonial-slider-container {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-item {
    flex: 0 0 100%;
    width: 100%;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    text-align: center;
    border-top: 4px solid var(--accent-primary);
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.testimonial-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-item p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.author {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dots Styling (Modern Expanding Dots) */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(45, 55, 72, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot:hover {
    background-color: rgba(45, 55, 72, 0.4);
}

.dot.active {
    background-color: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-info .logo a {
    color: var(--white);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.hero-content {
    transform: translateY(30px);
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .grid-2 {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex; /* Override previous display: none */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn-cta) {
        color: var(--text-primary);
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active span {
        background-color: var(--text-primary);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    header.scrolled .hamburger span {
        background-color: var(--text-primary);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}
