/*index style*/
html, body {
    height: 100%;
}

body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff8f0;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation Bar */
.navbar {
    background-color: #ffcccc;   
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar .brand {
    font-size: 1.5rem;        
    font-weight: bold;         
    text-decoration: none;     
    color: #333;               
}

.navbar .menu {
    list-style: none;          
    display: flex;           
    margin: 0;                 
    padding: 0;               
}

.navbar .menu li {
    margin-left: 20px;      
}

.navbar .menu a {
    text-decoration: none;     
    color: #333;               
    font-weight: normal;    
}   

.navbar .menu a.active {
    font-weight: bold;         
    color: #c0392b;            
}


/* Hero Section */
.hero {
    background-color: #fff0e6; 
    text-align: center;        
    padding: 80px 20px;        
}

.hero h1 {
    font-size: 3rem;       
    margin-bottom: 20px;  
}

.hero p {
    font-size: 1.2rem; 
}

/* Footer */
footer {
    background-color: #ffcccc; 
    text-align: center;        
    padding: 20px;             
    margin-top: 40px;          
    font-size: 0.9rem;         
}

footer p {
    margin: 6px 0 0;
}

/* About Page */

.content {
    max-width: 800px;      
    margin: 40px auto;     
    padding: 0px 20px;       
    line-height: 1.6;   
}   

.content h2 {
    margin-top: 30px;      
    color: #b34747;        
}

.content p {
    margin-top: 10px;      
}

/* Google Maps embedded using official documentation:
     https://developers.google.com/maps/documentation/embed/embedding-map*/


/* Two-column Contact Section */
.contact-section {
    display: flex;
    gap: 40px;           
    align-items: stretch;    
    justify-content: center;  
    flex-wrap: wrap;          
    max-width: 1000px;
    margin: 40px auto;        
}


.contact-left {
    flex: 1 1 400px;          
    display: flex;
    flex-direction: column;
}


.contact-right {
    flex: 1 1 400px;          
    display: flex;
    flex-direction: column;
}


.contact-right .map {
    flex: 1;                  
    border-radius: 8px;
    overflow: hidden;
}


.contact-right .map iframe {
    width: 100%;
    height: 100%;
    min-height: 100%; 
    border: 0;
}


.contact-left .contact-form {
    flex: 1;                  
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Labels and inputs */
.contact-left .contact-form label {
    margin-top: 15px;
    font-weight: bold;
}

.contact-left .contact-form input,
.contact-left .contact-form textarea {
    margin-top: 5px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button */
.contact-left .contact-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #b34747;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-left .contact-form button:hover {
    background-color: #8f3636;
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
        gap: 30px;
    }

    .contact-left, .contact-right {
        flex: 1 1 100%;
    }

    .contact-right .map iframe {
        min-height: 300px;
    }
}

/* Card style for contact sections */
.contact-left,
.contact-right {
    background-color: #ffffff;      
    padding: 25px;
    border-radius: 12px;            
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);  
}

/* Products Page */

.products {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.products h2 {
    color: #b34747;
    margin-bottom: 30px;
}

/* Grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px;
}

/* Card hover referenced from:
    https://codepen.io/jorgesanes10/pen/QdMEXr
*/

/* Product cards */
.product-card {
    position: relative;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;     
    border-radius: 8px;
}

.product-card h3 {
    margin-top: 15px;
    color: #333;
}

.product-card p {
    margin-top: 5px;
    font-size: 0.95rem;
    color: #666;
}

.featured .product-card img {
    height: 500px;
    object-fit: cover;
    display: block;
    width: flex;
  }
  
/* Responsive for tablets & phones */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
}

@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: 1fr; /* 1 column */
    }
}


/* Price styling */
.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b34747;   /* brand jam red */
    margin: 10px 0;
}


/* Button style */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: #b34747;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #8f3636;
    transform: translateY(-2px);
}


.product-card {
    background-color: #fffdfb;   /* slightly warm white */
}

.product-card {
    border: 1px solid #f2dede;
}

.product-card h3 {
    color: #b34747;
}



.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Variations */
.badge.bestseller {
    background-color: #f39c12; 
    z-index: 10;
}


/* Home - main */
.featured {
    background-color: #fffdfb;
    padding: 60px 20px;
    text-align: center;
}

.featured h2 {
    color: #b34747;
    margin-bottom: 10px;
}

.featured p {
    margin-bottom: 40px;
}


.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Cards */
.featured-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.featured-card img {
    width: 100%;
    height: 260;
    object-fit: cover;
    border-radius: 8px;
}

.featured-card h3 {
    margin-top: 15px;
    color: #b34747;
}


/* hero img background */
.home-cta {
    margin-top: 40px;
}


.hero {
    background-image: url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
    padding: 120px 20px;

    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text animation technique inspired by:
   https://animate.style*/

.hero h1 {
    animation: fadeUp 1s ease-out forwards;
}

.hero p {
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}


/* Image overlay technique inspired by: 
https://www.w3schools.com/howto/howto_css_image_overlay.asp*/

   
/* Ingredients toggle */
.product-image-toggle {
    position: relative;
}

.ing-toggle {
    display: none;
}

.ing-media {
    position: relative;
    display: block;
    cursor: pointer;
}

.ing-media img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

/* Hidden ingredients overlay */
.ing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

/* Toggle ON */
.ing-toggle:checked + .ing-media img {
    filter: brightness(0.6);
}

.ing-toggle:checked + .ing-media .ing-overlay {
    opacity: 1;
}

/*Social media icons*/
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    color: #555;
    font-size: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #c94a6a; 
    transform: scale(1.2);
}


.hero .home-cta {
    position: relative;
    z-index: 1;
}