/* Font Face Declaration for Hertical Smooth */
@font-face {
    font-family: 'Hertical Smooth';
    src: url('assets/fonts/HerticalSmooth.woff2') format('woff2'),
         url('assets/fonts/HerticalSmooth.woff') format('woff'),
         url('assets/fonts/HerticalSmooth.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-light-green: #D8E1C0;
    --color-gray-lavender: #D6D8C7;
    --color-peach: #F4DEC8;
    --color-orange: #E88A57;
    --color-olive-green: #556B2F;
    --color-brown: #8B5A2B;
    --color-dark-olive: #3E4C3B;
    --color-white: #FFFFFF;
    --color-cream: #F5F5DC;
    --color-dark: #1a1a1a;
    
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Satisfy', cursive;
    --font-body: 'Open Sans', sans-serif;
    --font-nav: 'Poppins', sans-serif;
    
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
    --spacing-xlarge: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

section {
    padding: var(--spacing-xlarge) 0;
    position: relative;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 75px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar.scrolled .logo-text {
    color: var(--color-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-nav);
    font-size: 1rem;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 400;
}

.navbar.scrolled .nav-link {
    color: var(--color-dark);
}

.nav-link:hover {
    color: var(--color-orange);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    gap: 5px;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 25%;
    transform: translateX(-50%) translateY(-50%);
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.hamburger span:nth-child(3) {
    top: 75%;
    transform: translateX(-50%) translateY(-50%);
}

.navbar.scrolled .hamburger span {
    background: var(--color-dark);
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%);
}

.hamburger.active span:nth-child(3) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.hero-text {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.play-button {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

/* About Us Section */
.about {
    background-color: #d4dbb1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-large);
}

.about-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr; /* make image area wider */
    gap: var(--spacing-large);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.hexagon-image {
    position: relative;
    width: 100%;
    padding-bottom: 115%; /* Maintain hexagon aspect ratio */
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    overflow: hidden;
}

.hexagon-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 6%;
    left: 5%;
    right: auto;
    background: var(--color-orange);
    padding: 1.25rem 1.75rem;
    color: var(--color-white);
    max-width: 70%;
    z-index: 2;
}

.image-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.image-overlay p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-dark);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1.2rem; /* larger for readability */
    color: var(--color-dark);
    line-height: 1.8;
}

.about-image {
    width: 100%;
}

.about-plain-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* ensure image fills vertically */
}

/* Our Story Section */
.story {
    background-color: #b9c1c3; /* fallback tone matching design */
    background-image: url('assets/images/ourStory.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover; /* fill the section edge-to-edge */
}

.story-title {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-large);
    text-align: left;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr; /* single column text on left */
}

.story-text {
    max-width: 700px; /* constrain line length */
}

.story-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.8;
    text-align: left;
}

.story-subheading {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-dark);
    margin-top: var(--spacing-medium);
    text-align: left;
}

.story-image {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Our Values Section */
.values {
    background-color: #f5e1c9;
    padding: var(--spacing-xlarge) 0;
}

.values-header {
    position: relative;
    margin-bottom: var(--spacing-large);
    text-align: left; /* keep small label on left */
    padding-top: 2.2rem; /* reserve space for absolute title */
}

.values-title {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem); /* smaller corner label */
    color: var(--color-dark);
    margin: 0;
    display: block;
    position: absolute; left: calc(-1 * var(--spacing-medium)); top: 0; /* push into the far left corner beyond container padding */
}

.values-subtitle {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    font-weight: 600;
    margin-left: 0;
    display: block;
    text-align: center; /* center the tagline */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-medium);
    margin-top: var(--spacing-large);
    align-items: start; /* keep headings/descriptions aligned */
}

.value-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-image {
    width: 100%;
    max-width: 360px; /* larger consistent width */
    position: relative;
    margin: 0 auto var(--spacing-medium);
    overflow: visible; /* preserve original image silhouette */
    height: 260px; /* larger uniform height so captions align */
}

.value-image img {
    position: relative;
    width: auto;         /* keep original aspect ratio */
    height: 100%;        /* fit the uniform container height */
    object-fit: contain; /* no cropping */
    display: block;
    margin: 0 auto;      /* center within the container */
}

.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-small);
    font-weight: 600;
}

.value-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.6;
}

/* Products Section */
.products {
    width: 100%;
    padding: 0; /* remove outer white padding above/below product sections */
    margin: 0;  /* ensure no extra margins create white seams */
    overflow: hidden; /* avoid margin-collapsing causing white strips */
}

.product-section {
    width: 100%;
    padding: var(--spacing-xlarge) 0;
}

.moringa-section {
    background-color: #50653e;
    color: var(--color-cream);
}

.moringa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
    align-items: center; /* balance text with image vertically */
}

.product-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: inherit;
}

/* Slightly reduce only the Moringa heading size */
.moringa-section .product-title{
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    white-space: nowrap; /* keep on one line on wide screens */
    line-height: 1.1;
    margin-bottom: 1rem; /* add space before Available forms */
}

.product-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-medium);
    color: inherit;
}

.product-description {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: var(--spacing-medium);
    line-height: 1.8;
    color: inherit;
}

.product-benefits h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-small);
    color: inherit;
}

.product-benefits ul {
    list-style: none;
    padding: 0;
}

.product-benefits li {
    font-family: var(--font-body);
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: inherit;
}

.product-benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Refined, scoped typography just for the Moringa section */
.moringa-section .product-benefits h4{
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;         /* consistent gap above each section title */
    margin-bottom: 0.5rem;    /* tight gap before its list */
}
.moringa-section .product-benefits li{
    line-height: 1.4;        /* tighter subtext spacing */
    margin-bottom: 10px;     /* space between bullet items */
}
.moringa-section .product-benefits li strong{
    font-weight: 800;        /* emphasize main terms */
}
.moringa-section .product-benefits ul{
    margin: 0 0 1rem 0;      /* equal space after each list block */
    padding: 0;
}

/* Add a little extra space between the major groups for clarity */
.moringa-section .product-benefits h4:first-of-type{ margin-top: 0.75rem; }

/* Use Poppins for Moringa informational text (not the main title) */
.moringa-section .product-text-wrapper,
.moringa-section .product-benefits,
.moringa-section .product-benefits h4,
.moringa-section .product-benefits li{
    font-family: var(--font-nav);
}

.product-images-small {
    display: flex;
    gap: var(--spacing-small);
    margin-top: var(--spacing-medium);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.product-images-small img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: transparent; /* no background frame */
    padding: 0; /* remove white padding */
    border-radius: 0; /* remove rounded border look */
    box-shadow: none; /* ensure no shadow */
    border: none; /* ensure no border */
    max-width: 100%;
}

.product-image-large {
    width: 100%;
    height: auto; /* allow full image to show */
    overflow: visible; /* avoid clipping on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    width: 100%;
    height: auto;
    object-fit: contain; /* include whole image */
    object-position: center center;
    border-radius: 0;
    transform: none; /* no clipping from rotation */
    max-width: 100%;
    display: block; /* remove inline gap issues */
}

/* Other Products Section */
.other-products-section {
    background-color: #9b7561;
    color: var(--color-cream);
}

.other-products-content {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* more breathing room like mock */
}

.product-item {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr; /* text left, images right */
    gap: var(--spacing-large);
    align-items: start;
}

.product-item-text {
    max-width: 680px;
}

.product-item-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-medium);
    color: inherit;
}

.product-item-benefits {
    list-style: none;
    padding: 0;
}

.product-item-benefits li {
    font-family: var(--font-body);
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: inherit;
}

.product-item-benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.product-item-images {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-end; /* push images to the right */
    flex-wrap: nowrap;
}

.product-item-images img {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 340px; /* larger images like mock */
    height: auto;
    object-fit: cover;
    flex: none;
}

/* Divider line between rows similar to design */
.other-products-content > .product-item + .product-item {
    padding-top: 2rem;
    border-top: 2px solid rgba(255,255,255,0.35);
}

/* Blogs Section */
.blogs {
    background-color: var(--color-light-green);
    min-height: 400px;
}

.blogs-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-dark-olive);
    margin-bottom: var(--spacing-medium);
    position: relative;
    padding-bottom: 1rem;
}

.blogs-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: var(--color-dark-olive);
}

.blogs-content {
    padding: var(--spacing-large) 0;
    min-height: 300px;
}

/* Contact Us Section */
.contact {
    background-color: var(--color-dark-olive);
    color: var(--color-cream);
    padding: var(--spacing-xlarge) 0;
}

.contact-separator {
    width: 30%;
    height: 2px;
    background: var(--color-cream);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-large);
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-cream);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 32px;
    height: 32px;
    color: var(--color-cream);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-orange);
}

.contact-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: stretch;
}

.contact-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
}

.contact-logo {
    margin-top: 1rem;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-logo-image {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.logo-text-small {
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.copyright {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--color-dark-olive);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .story-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-medium);
    }

    .product-image-large img {
        max-height: none; /* let it size naturally */
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .moringa-content {
        grid-template-columns: 1fr;
    }

    .product-item {
        grid-template-columns: 1fr;
    }

    .product-item-images {
        justify-content: flex-start;
    }

    .values-subtitle {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .story-image {
        min-height: 400px;
    }

    .contact-image {
        height: auto;
        min-height: 400px;
        max-width: 100%;
    }
    
    .contact-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    .about-plain-image {
        height: auto;
    }

    /* Collapse nav into hamburger for tablets and large phones */
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        background: rgba(255,255,255,0.98);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 5rem 2rem 2rem; gap: 1.5rem;
        transition: right 0.3s ease; box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;          /* allow scroll if needed */
        -ms-overflow-style: none;  /* hide scrollbar IE/Edge */
        scrollbar-width: none;     /* hide scrollbar Firefox */
    }
    .nav-menu::-webkit-scrollbar{ display:none; } /* hide scrollbar WebKit */
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-link { font-size: 0.95rem; color: var(--color-dark); width: 100%; display: block; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
    .nav-link:hover { color: var(--color-orange); padding-left: 0.5rem; transition: all 0.3s ease; }
}

@media (max-width: 768px) {
    :root {
        --spacing-large: 2rem;
        --spacing-xlarge: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-image-large img {
        max-height: 75vh; /* give more room to avoid cropping */
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        margin: 0 auto;
    }

    /* Moringa small thumbnails: 3 across */
    .product-images-small { justify-content: center; gap: 0.75rem; }
    .product-images-small img {
        flex: 0 1 calc((100% - 1.5rem) / 3); /* 2 gaps of 0.75rem */
        width: calc((100% - 1.5rem) / 3);
        height: auto;
        object-fit: contain;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .nav-menu::-webkit-scrollbar{ display:none; }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        font-size: 0.95rem;
        color: var(--color-dark);
        width: 100%;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link:hover {
        color: var(--color-orange);
        padding-left: 0.5rem;
        transition: all 0.3s ease;
    }

    .hero-text {
        font-size: 2rem;
    }

    .section-title,
    .story-title,
    .values-title,
    .contact-title {
        font-size: 2.5rem;
    }

    .values-subtitle {
        font-size: 1.8rem;
    }

    .story-subheading {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-medium);
    }
    .value-image{ max-width: 300px; height: 220px; }

    .product-title {
        font-size: 2rem;
    }

    .product-item-title {
        font-size: 1.8rem;
    }

    .product-images-small,
    .product-item-images {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .product-images-small img,
    .product-item-images img {
        width: 100px;
        height: 100px;
    }

    /* Make main image responsive on tablets */
    .product-image-large {
        height: auto;
        margin-top: var(--spacing-medium);
    }

    .logo-image {
        height: 60px;
        max-width: 220px;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .contact-logo-image {
        height: 55px;
        max-width: 200px;
    }

    .logo-text-small {
        font-size: 0.8rem;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .about-text p,
    .story-text p {
        font-size: 1.05rem;
    }

    .hexagon-image {
        margin-bottom: var(--spacing-medium);
    }

    .image-overlay {
        left: 4%;
        bottom: 4%;
        padding: 1rem 1.25rem;
        max-width: 85%;
    }

    .image-overlay h3 {
        font-size: 1.4rem;
    }

    .image-overlay p {
        font-size: 0.95rem;
    }

    .about-image {
        margin-bottom: var(--spacing-medium);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-small);
    }

    section {
        padding: var(--spacing-large) 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero-text {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .play-button svg {
        width: 50px;
        height: 50px;
    }

    .section-title,
    .story-title,
    .values-title,
    .contact-title,
    .blogs-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .values-subtitle {
        font-size: 1.5rem;
        margin-top: 0.5rem;
    }

    .story-subheading {
        font-size: 1.3rem;
    }

    .product-title {
        font-size: 1.7rem;
    }

    .product-item-title {
        font-size: 1.5rem;
    }

    .product-subtitle {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 50px;
        max-width: 200px;
    }

    .nav-menu {
        width: 85%;
        padding: 4rem 1.5rem 2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .about-text p,
    .story-text p,
    .value-card p,
    .product-description,
    .product-benefits li,
    .product-item-benefits li {
        font-size: 1rem;
    }

    .product-images-small img,
    .product-item-images img {
        width: 80px;
        height: 80px;
    }

    /* Make main image responsive on phones */
    .product-image-large {
        height: auto;
    }

    .story-image {
        min-height: 300px;
    }

    .contact-image {
        height: auto;
        max-width: 100%;
    }
    
    .contact-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .contact-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

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

    .hexagon-image {
        padding-bottom: 100%;
    }

    .image-overlay {
        padding: 0.75rem 1rem;
        bottom: 5%;
        left: 3%;
    }

    .image-overlay h3 {
        font-size: 1rem;
    }

    .image-overlay p {
        font-size: 0.8rem;
    }

    .values-grid { gap: var(--spacing-small); }
    .value-image{ max-width: 240px; height: 180px; }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    .contact-logo-image {
        height: 50px;
        max-width: 180px;
    }

    .logo-text {
        font-size: 0.65rem;
    }

    .logo-text-small {
        font-size: 0.7rem;
    }

    /* Keep 3 thumbnails responsive without cropping */
    .product-images-small { gap: 0.5rem; }
    .product-images-small img {
        flex: 0 1 calc((100% - 1rem) / 3); /* 2 gaps of 0.5rem */
        width: calc((100% - 1rem) / 3);
        height: auto;
        object-fit: contain;
    }
}

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

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive tweaks to keep composition */
@media (min-width: 1200px) {
    .story {
        background-size: cover;
        background-position: right center;
    }
}

@media (max-width: 1024px) {
    .story {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 768px) {
    .story {
        background-size: contain; /* show entire image on phones */
        background-position: center bottom;
        background-repeat: no-repeat;
        min-height: 600px; /* ensure there's room for the full image under text */
    }
    .story-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .story {
        background-size: contain; /* keep full image visible */
        background-position: center bottom;
        background-repeat: no-repeat;
        min-height: 520px;
    }
}

/* Remove unintended gaps between sections */
.moringa-section,
.values {
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden; /* avoid margin-collapsing seams */
}

@media (max-width: 1200px) {
    .product-item-images img { width: 300px; }
}

@media (max-width: 1024px) {
    .product-item {
        grid-template-columns: 1fr;
    }
    .product-item-images img {
        width: 280px;
    }
    .product-item-images { justify-content: flex-start; flex-wrap: wrap; }
    .product-item-title { font-size: 2rem; }
    .product-item-benefits li { font-size: 1rem; }
}

@media (max-width: 768px) {
    .product-item-images {
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-item-images img {
        width: calc(50% - 0.75rem);
        height: auto;
        object-fit: contain; /* avoid cropping on small tablets */
    }
    .product-item-title { font-size: 1.6rem; }
    .product-item-benefits li { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .product-item-images img {
        width: 100%;
        height: auto;
        object-fit: contain; /* ensure full image visible on phones */
    }
    .product-item-title { font-size: 1.4rem; }
    .product-item-benefits li { font-size: 0.9rem; }
}

/* =====================================================================
   Responsive Enhancements (Non‑destructive)
   - These rules only improve scaling, alignment and spacing.
   - They DO NOT change colors, typography, or layout intent.
   - All original classes/IDs remain intact so JS continues to work.
   ===================================================================== */

/* Global guardrails */
* , *::before, *::after {
    box-sizing: border-box; /* ensure predictable sizing across breakpoints */
}
html, body {
    max-width: 100%;
    overflow-x: hidden; /* prevent accidental horizontal scroll on small screens */
}
img {
    max-width: 100%;
    height: auto;
    display: block; /* remove baseline gaps */
}

/* Section rhythm on medium/large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-medium); /* keep outer gutters consistent */
    }
}

/* Laptop and down */
@media (max-width: 1024px) {
    /* Keep headings readable without overflowing */
    .section-title,
    .story-title,
    .values-title,
    .contact-title,
    .blogs-title,
    .product-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

    /* Ensure two-column areas scale evenly */
    .about-content,
    .story-content,
    .moringa-content,
    .contact-content { grid-template-columns: 1fr; gap: var(--spacing-medium); }

    /* Tighten inner spacing to avoid large gaps on shorter laptops */
    section { padding: var(--spacing-large) 0; }
}

/* Tablet and down */
@media (max-width: 768px) {
    /* Values grid collapses to 2 columns while keeping design balance */
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Product rows stack cleanly */
    .product-item { grid-template-columns: 1fr; }

    /* Main Moringa image scales naturally without cropping */
    .product-image-large { height: auto; }
    .product-image-large img { width: 100%; height: auto; object-fit: contain; }

    /* Keep thumbnails in one row with equal widths */
    .product-images-small { justify-content: center; gap: 0.75rem; }
    .product-images-small img {
        flex: 0 1 calc((100% - 1.5rem) / 3); /* 3 images + 2 gaps */
        width: calc((100% - 1.5rem) / 3);
        height: auto;
        object-fit: contain;
    }

    /* Comfortable base sizing on tablet */
    body { font-size: 1rem; }
}

/* Small phones */
@media (max-width: 480px) {
    /* Single column values grid for smallest screens */
    .values-grid { grid-template-columns: 1fr; }

    /* Slightly reduce general padding to fit content vertically */
    section { padding: var(--spacing-medium) 0; }

    /* Keep 3 thumbnails responsive without cropping */
    .product-images-small { gap: 0.5rem; }
    .product-images-small img {
        flex: 0 1 calc((100% - 1rem) / 3);
        width: calc((100% - 1rem) / 3);
        height: auto;
        object-fit: contain;
    }

    /* Headings scale smartly on very small screens */
    .product-title,
    .product-item-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
}

/* ==========================================
   Hero Slideshow - namespaced .hs-*
   Fills full hero height
   ========================================== */
.hero-slideshow{
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.hs-slide{
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity 1000ms ease-in-out;
}
.hs-slide.active{opacity: 1; pointer-events: auto;}

/* Ensure slide media covers entire frame */
.hs-slide img,
.hs-slide picture,
.hs-slide video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast; /* improve perceived sharpness on WebKit */
    image-rendering: optimizeQuality;
    filter: none;
}

.hs-caption-container{
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem; pointer-events: none;
}
.hs-caption{max-width: min(92vw, 1100px); text-shadow: 0 6px 22px rgba(0,0,0,.55);} 
.hs-caption .l1, .hs-caption .l2{opacity:0; transform: translateY(20px); color:#fff; margin:.25em 0;}
.hs-caption .l1{font-weight:800; letter-spacing:.02em; font-size:clamp(1.2rem,3.6vw,3rem);} 
.hs-caption .l2{font-weight:600; font-size:clamp(1rem,2.4vw,1.6rem);} 

@keyframes hsSlideUpAndFade{0%{opacity:0; transform:translateY(20px);}100%{opacity:1; transform:translateY(0);}}
.hs-slide.active .hs-caption .l1{animation:hsSlideUpAndFade .7s ease forwards; animation-delay:.3s;}
.hs-slide.active .hs-caption .l2{animation:hsSlideUpAndFade .7s ease forwards; animation-delay:.8s;}

.hs-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:46px; height:46px; border:none; border-radius:50%;
    display:grid; place-items:center; cursor:pointer; z-index:3;
    background:#00000055; color:#fff; transition:background .2s ease, transform .2s ease;
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.hs-nav:hover{background:#00000088; transform:translateY(-50%) scale(1.05);} 
.hs-prev{left:16px;} .hs-next{right:16px;}
.hs-nav svg{width:22px; height:22px;}

.hs-dots{position:absolute; left:0; right:0; bottom:18px; z-index:3; display:flex; gap:10px; justify-content:center; align-items:center;}
.hs-dots .dot{width:10px; height:10px; border-radius:50%; background:#ffffffb8; cursor:pointer; transition:transform .2s ease, background .2s ease; box-shadow:0 2px 10px rgba(0,0,0,.4);} 
.hs-dots .dot:hover{transform:scale(1.15);} 
.hs-dots .dot.active{background:#fff; transform:scale(1.25);} 

@media (max-width: 520px){
    .hs-caption-container{padding:1.25rem;}
    .hs-nav{width:40px; height:40px;}
    .hs-prev{left:10px;} .hs-next{right:10px;}
}

/* Hover zoom for masked product images */
.shape-frame img{ transition: transform 0.6s ease; }
.shape-frame:hover img{ transform: scale(1.05); }

