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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    color: #7a5734;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #7a5734;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #7a5734;
    color: white;
    transform: translateY(-2px);
}

.logo-right img {
    width: 40px;
    height: 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    position: relative;
}

/* Background Area 1: Hero Main Image */
.hero-top {
    background: #7a5734;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50%;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(122, 87, 52, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-text {
    width: 100%;
    margin-left: 100px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
    text-align: justify;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Background Area 2: Solid Brown Color */
.hero-middle {
    background: #7a5734;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

.hero-middle-image {
    background: #E74C3C;
    width: 100%;
    max-width: 800px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 42.5%;
    transform: translateX(-50%);
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-middle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.hero-middle-image::before {
    content: 'Placeholder Image';
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    position: absolute;
    z-index: 1;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Background Area 3: Hero Bottom Image */
.hero-bottom {
    background: #7a5734;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 30%;
    position: relative;
}

.hero-bottom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(122, 87, 52, 0.3);
    z-index: 1;
}

/* Hide placeholder text when images are loaded */
.hero-middle-image.image-loaded::before {
    display: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
    box-shadow: 0 5px 15px rgba(255,140,0,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF7F00, #FF9500);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255,140,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: #7a5734;
    border: 2px solid #7a5734;
}

.btn-secondary:hover {
    background: #7a5734;
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    position: relative;
    color: #fff;
}

.about-top {
    background-image: url('assets/about-bg-bottom.png');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    position: relative;
}

.about-bottom {
    background-image: url('assets/about-bg-top.png');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    position: relative;
}

.title-box {
    background-color: #B18839;
    padding: 15px 0;
    padding-left: 370px;
    text-align: left;
    position: relative;
    width: 100%;
    z-index: 3;
}

.title-box h2 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

/* Product Showcase */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 20px;
}

.product-card {
    background: white;
    border: 2px solid #7a5734;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(122, 87, 52, 0.2);
}

.product-card h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #7a5734;
    font-weight: 600;
    line-height: 1.3;
}

.product-history-image {
    margin-bottom: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-history-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-top: auto;
}

.star {
    margin: 0 2px;
}

.star.half {
    position: relative;
    display: inline-block;
}

.star.half:after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #cccccc;
}

/* Products Section */
.products {
    position: relative;
    background: #fff;
    padding: 0;
}

.top-bar {
    background-color: #B18839;
    height: 25px;
    width: 100%;
}

.product-list {
    padding: 40px 0;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    padding: 40px 20px;
    min-height: 400px;
    margin-left: 50px;
    margin-right: 50px;
}

.product-item:last-child {
    margin-bottom: 0;
}

/* Second product reverse layout */
.product-item:nth-child(2) {
    flex-direction: row-reverse !important;
}

/* Ensure reverse works on desktop */
@media (min-width: 769px) {
    .product-item:nth-child(2) {
        flex-direction: row-reverse !important;
    }
}

.product-image {
    flex: 0 0 45%;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 0 0 55%;
    padding: 20px;
}

.product-info h3 {
    color: #7a5734;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info .description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.product-info .ingredients {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
}

.bottom-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 40px;
        text-align: center;
        padding: 20px 15px;
        margin-left: 20px;
        margin-right: 20px;
        min-height: auto;
    }

    .product-item:nth-child(2) {
        flex-direction: column !important;
    }
    
    .product-item:nth-child(2) .product-image {
        order: 1;
    }
    
    .product-item:nth-child(2) .product-info {
        order: 2;
    }

    .product-image, .product-info {
        flex: none;
        width: 100%;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }

    .product-info .description {
        font-size: 1rem;
    }

    .bottom-image {
        height: 80px;
    }
}

/* Contact Section */
.contact {
    position: relative;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.contact .top-bar {
    background-color: #B18839;
    height: 25px;
    width: 100%;
}

.contact .container {
    padding: 0;
    max-width: none;
    width: 100%;
}

.contact-images-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.contact-images {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.contact-image {
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-header {
    text-align: center;
    color: #fff;
    max-width: 800px;
    z-index: 2;
}

.contact-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.contact-info-bar {
    background-color: #B18839;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    color: #fff;
    margin: 0;
    width: 100%;
}

.info-item {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.info-item:last-child {
    border-right: none;
}

.icon {
    margin-bottom: 15px;
}

.icon img {
    width: 60px;
    height: 60px;
}

.info-item h3 {
    color: #EEBA2B;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.info-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.info-item .email {
    color: white;
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    .contact-images-container {
        height: 400px;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-info-bar {
        flex-direction: column;
        padding: 30px 0;
    }

    .info-item {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .info-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .contact-images-container {
        height: 350px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    color: white;
    text-align: left;
    padding: 2rem 0;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 20px;
}

/* ================================
   RESPONSIVE DESIGN - CLEAN & ELEGANT
   ================================ */

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav.mobile-active {
    display: flex;
}

/* Mobile First - Clean Design */
@media (max-width: 768px) {
    /* Header Mobile */
    .header .container {
        justify-content: space-between;
        position: relative;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        border-radius: 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #7a5734;
        color: white;
        transform: none;
    }
    
    /* Hero Mobile - Keep it beautiful */
    .hero {
        height: 100vh;
    }
    
    .hero-top {
        padding: 2rem 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text {
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-middle-image {
        height: 150px;
        max-width: 90%;
        top: 50%;
    }
    
    .hero-text .btn-primary {
        margin-bottom: 180px;
        position: relative;
        z-index: 20;
    }
    
    /* About Mobile - Fix height issues */
    .about {
        padding: 10px 0;
        min-height: auto;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }

    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-top: 10px;
    }
    
    .product-card {
        min-height: 200px;
    }
    
    .product-history-image img {
        height: 120px;
    }
    
    /* Products Mobile - Fix height issues */
    .products {
        padding: 10px 0;
        min-height: auto;
    }
    
    .product-list {
        padding: 10px 0;
    }
    
    .product-item {
        margin-bottom: 20px;
        min-height: auto;
        padding: 15px 10px;
    }
    
    .products h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Mobile - Fix height issues */
    .contact {
        padding: 10px 0;
        min-height: auto;
    }
    
    .contact-images-container {
        height: 250px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-header p {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .contact-info-bar {
        padding: 15px 10px;
    }
    
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .title-box {
        width: 90%;
        min-width: auto;
        padding: 15px 20px;
        padding-left: 20px;
    }

    .title-box h2 {
        font-size: 1.2rem;
    }
    
    /* Fix body height issues */
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    html {
        height: 100%;
    }
}

/* Tablet - Keep original spacing */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-text {
        margin-left: 50px;
    }
    
    .hero-middle-image {
        height: 160px;
        max-width: 80%;
    }
    
    .about-content {
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Desktop - Keep beautiful original design */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Small Mobile Only - Subtle adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-middle-image {
        height: 120px;
        max-width: 85%;
        top: 50%;
    }
    
    .hero-text .btn-primary {
        margin-bottom: 150px;
        position: relative;
        z-index: 20;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    .contact-images-container{
        height: 200px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-middle-image {
        height: 100px;
        max-width: 80%;
        top: 50%;
    }
    
    .hero-text .btn-primary {
        margin-bottom: 130px;
        position: relative;
        z-index: 20;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        min-height: 220px;
    }
    
    .product-history-image img {
        height: 120px;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-card img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 2560x1440 and above resolution */
@media (min-width: 2560px) {
    /* Product page scaling */
    .product-item {
        gap: 120px;
        margin-bottom: 120px;
        padding: 60px 40px;
        min-height: 600px;
        margin-left: 100px;
        margin-right: 100px;
    }
    
    .product-item:nth-child(2) {
        flex-direction: row-reverse !important;
    }
    
    .product-item:nth-child(2) .product-image {
        order: unset;
    }
    
    .product-item:nth-child(2) .product-info {
        order: unset;
    }
    
    .product-info h3 {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .product-info .description {
        font-size: 1.5rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }
    
    .product-info .ingredients {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    /* History page - remove white gaps */
    .about {
        padding: 0;
    }
    
    .about-top {
        padding: 60px 0;
    }
    
    .about-bottom {
        padding: 60px 0;
    }
    
    .product-showcase {
        gap: 40px;
        padding-top: 40px;
    }
    
    .product-card {
        min-height: 400px;
    }
    
    .product-history-image img {
        height: 250px;
    }
    
    /* Contact page - remove white gaps */
    .contact {
        padding: 0;
    }
    
    .contact-images-container {
        height: 800px;
    }
    
    .contact-header h2 {
        font-size: 4.5rem;
        margin-bottom: 30px;
    }
    
    .contact-header p {
        font-size: 1.5rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .contact-info-bar {
        padding: 60px 40px;
    }
    
    .info-item h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .info-item p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    /* General scaling for large screens */
    .container {
        max-width: 1800px;
        padding: 0 40px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }
}

/* ================================
   SIMPLE & CLEAN OPTIMIZATIONS
   ================================ */

/* Focus states for accessibility */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #7a5734;
    outline-offset: 2px;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.about-content,
.contact-content {
    animation: fadeInUp 0.6s ease-out;
} 