:root {
    /* Refined Color Palette - HSL for better harmony */
    --primary-h: 25;
    --primary-s: 35%;
    --primary-l: 33%;
    --secondary-h: 60;
    --secondary-s: 100%;
    --secondary-l: 25%;

    --bg-cream: hsl(39, 77%, 95%);
    --coffee: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --coffee-light: hsl(var(--primary-h), var(--primary-s), 45%);
    --coffee-dark: hsl(var(--primary-h), var(--primary-s), 22%);
    --olive: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --olive-light: hsl(var(--secondary-h), 56%, 41%);
    --white: #ffffff;
    --text-main: hsl(25, 33%, 20%);
    --text-muted: hsla(25, 33%, 20%, 0.65);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
    /* Changed to match index.html font import */

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px hsla(25, 35%, 20%, 0.08);
    --shadow-hover: 0 20px 40px hsla(25, 35%, 20%, 0.12);

    --container-width: 1200px;
    --section-padding: 6rem 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

/* Scroll Animations Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    padding: 1.2rem 2.8rem;
    background-color: var(--coffee);
    color: var(--white);
    border-radius: 100px;
    font-weight: 600;
    border: 2px solid var(--coffee);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--coffee);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--coffee);
}

.btn-outline:hover {
    background-color: var(--coffee);
    color: var(--white);
}

.btn-small {
    padding: 0.8rem 1.8rem !important;
    font-size: 0.9rem !important;
}

/* Header */
.top-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--coffee-dark), var(--coffee), var(--olive));
    width: 100%;
}

header {
    height: 100px;
    display: flex;
    align-items: center;
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(111, 78, 55, 0.1);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    padding: 0 !important;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--coffee);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 1.4rem;
    color: var(--olive);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--coffee);
    opacity: 0.75;
    position: relative;
}

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

.nav-links a:hover {
    opacity: 1;
    color: var(--coffee);
}

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

/* Hero Section */
.hero {
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: center;
    background: var(--bg-cream);
    position: relative;
    padding: 0 0 4rem 0;
    /* Removed top padding */
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-image-container {
    flex: 1.2;
    position: relative;
}

.hero-image-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 50% 40px 40px 50%;
    /* Deep curve on the left */
    box-shadow: var(--shadow-hover);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    background: white;
    padding: 5rem;
    border-radius: 40px;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.feature-item {
    text-align: left;
}

.feature-item i {
    font-size: 2rem;
    color: var(--olive);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: hsla(60, 100%, 25%, 0.1);
    border-radius: 15px;
}

.feature-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Catalog */
.catalog-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(111, 78, 55, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--olive);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info .btn {
    margin-top: auto;
}

.product-info h3 {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--olive);
    font-family: var(--font-body);
    font-weight: 700;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* History */
.history {
    background: var(--white);
    color: var(--text-main);
    border-radius: 50px;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(111, 78, 55, 0.1);
}

.history-content {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history h2 {
    color: var(--coffee);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.history h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--olive);
}

.history p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.history-image {
    position: relative;
    overflow: hidden;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.history:hover .history-image img {
    transform: scale(1.05);
}

/* New Sections: Testimonials, FAQ, Ordering */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.testimonial-card i.quote {
    color: var(--olive);
    opacity: 0.2;
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: 20px;
}

.stars {
    color: #ffcc00;
    margin-bottom: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--coffee);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

.faq-item.active i {
    transform: rotate(180deg);
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--coffee);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--coffee-dark);
    color: var(--bg-cream);
    padding: 6rem 0 3rem;
}

footer p {
    color: var(--bg-cream);
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

footer i {
    color: var(--olive);
    margin-top: 5px;
    /* Alignment with text line height */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    margin-bottom: 2rem;
    color: var(--bg-cream);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--olive);
    transform: translateY(-5px);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #128c7e;
}

/* Responsive */
@media (max-width: 1024px) {
    .history {
        grid-template-columns: 1fr;
        border-radius: 30px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .history-content {
        padding: 3rem 1.5rem;
        background: var(--white);
        border-radius: 30px;
        order: 2;
        margin-top: -2rem;
        position: relative;
        z-index: 2;
        box-shadow: var(--shadow-soft);
    }

    .history-image {
        height: 300px;
        border-radius: 30px;
        order: 1;
        z-index: 1;
    }

    .history h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .history h2 {
        text-align: center;
    }

    .features {
        gap: 2rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .header-grid {
        padding: 1rem !important;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header {
        height: auto;
        min-height: 140px;
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }

    .logo img {
        height: 50px !important;
    }

    .header-cta {
        width: 100%;
    }

    .header-cta .btn-small {
        width: 100%;
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    .nav-links {
        display: none;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-container {
        width: 100%;
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-image-container img {
        height: 400px;
        border-radius: 30px;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }

    .features {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }

    .feature-item i {
        margin: 0 auto 1.5rem;
    }

    .testimonials-grid,
    .order-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}