/* ==========================================================================
   Spicehaus Grocery Landing Page Design System & Stylesheet
   ========================================================================== */

/* --- CSS Variables & Custom Properties --- */
:root {
    --primary-color: #1E3F20;
    /* Deep Organic Forest Green */
    --primary-light: #EBF2EC;
    /* Soft Green Tint for highlights */
    --primary-dark: #132814;
    /* Darker Green for hover states */
    --accent-color: #D78F5E;
    /* Spice Amber Orange */
    --accent-light: #FBEFDF;
    /* Warm Amber Tint */
    --accent-dark: #B96120;
    /* Dark Spice Amber */
    --text-dark: #1E2520;
    /* Deep Charcoal for rich contrast */
    --text-muted: #5B6B5F;
    /* Mid-tone grey/green for description texts */
    --bg-light: #FAF8F5;
    /* Warm Ivory/Beige background */
    --bg-white: #FFFFFF;
    --border-color: #E2ECE5;
    /* Soft greenish grey border */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Border Radii */
    --shadow-sm: 0 4px 6px rgba(30, 63, 32, 0.04);
    --shadow-md: 0 12px 24px rgba(30, 63, 32, 0.08);
    --shadow-lg: 0 20px 40px rgba(30, 63, 32, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-fast);
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography System --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
}

/* --- Reusable Components (Buttons, Badges, etc.) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-call-us {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.btn-call-us:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-top: 8px;
}

.section-header .subtitle {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 8px auto 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top bar contact details */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    display: flex;
    gap: 20px;
}

.top-contact-info a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-contact-info a:hover {
    color: var(--accent-color);
}

.top-bar-promo {
    font-weight: 600;
    color: var(--accent-color);
}

/* Header Navbar */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.main-header.scrolled .header-container {
    height: 60px;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.logo img,
.logo-img {
    display: block;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.main-header.scrolled .logo img,
.main-header.scrolled .logo-img {
    max-height: 50px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.logo-text span {
    color: var(--accent-color);
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-wrapper {
    display: flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-select:focus {
    outline: 2px solid rgba(30,63,32,0.12);
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 9px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section Banner
   ========================================================================== */
.hero-section {
    padding: 120px 0;
    min-height: calc(80vh - 75px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 650px;
    color: var(--bg-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(216, 125, 56, 0.9);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: 3.25rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: capitalize;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 96px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    height: 480px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    text-align: center;
}

.experience-badge .years {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
}

.about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 18px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Categories Section (What We Sell)
   ========================================================================== */
.categories-section {
    padding: 96px 0;
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    height: 350px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 63, 32, 0.15);
}

.category-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.6); */
    transition: var(--transition-slow);
}

.category-card:hover .category-img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.11) 0%, rgba(19, 40, 20, 0.2) 10%, #0000 100%);
    transition: var(--transition-normal);
}

.category-overlay h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: var(--transition-normal);
    text-transform: capitalize;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(-8px);
}

.category-action-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-normal);
    display: none;
}

.category-card:hover .category-action-label {
    opacity: 1;
    transform: translateY(-4px);
}

/* ==========================================================================
   Brand Logo Carousel
   ========================================================================== */
.brand-carousel-section {
    padding: 48px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.carousel-title {
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D87D38;
    margin-bottom: 24px;
    font-weight: 600;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.brand-slide {
    flex-shrink: 0;
}

.brand-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
    transition: var(--transition-fast);
    padding: 8px 16px;
}

.brand-logo-placeholder:hover {
    opacity: 0.95;
    color: var(--primary-color);
}

.brand-logo-placeholder i {
    font-size: 1.4rem;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 24px));
        /* Accounts for half of track content + gap offset */
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    background-color: #f8f1d4;
    padding: 80px 0 0;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: #374822;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: var(--accent-color);
}

.brand-col .footer-logo {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.brand-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}
#footer-brand-desc {
  padding-top: 30px;
}

.logo-icon-brand {
  width: 200px;
  height: 200px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    color:#3A4B24;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    font-size: 0.9rem;
}

/* .links-col a:hover {
    color: var(--accent-color);
    padding-left: 6px;
} */

.info-col p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.info-col p i {
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    background-color: rgb(58, 75, 36);
    padding: 24px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.container.footer-bottom-content p {
  color: white;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   WhatsApp Floating Widget (Right Side Overlapping)
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.whatsapp-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn .pulse-ring {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    border: 3px solid #25D366;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip Dialog above WhatsApp Button */
.whatsapp-tooltip {
    pointer-events: auto;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 260px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    position: relative;
    animation: tooltipFadeIn 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.whatsapp-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-tooltip p {
    line-height: 1.4;
}

.whatsapp-tooltip strong {
    color: var(--primary-color);
}

.close-tooltip {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
}

.close-tooltip:hover {
    color: var(--text-dark);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    h1 {
        font-size: 2.75rem !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img {
        height: 380px;
    }

    .experience-badge {
        bottom: 15px;
        right: 15px;
        padding: 16px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .info-col {
        grid-column: span 2;
    }
}

@media (max-width: 834px){

    #brands-title {
  margin-top: 50px;
}
    .top-bar-promo {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
    }

    /* Navigation Menu Mobile layout */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 110px;
        /* Accounts for header + topbar heights */
        left: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background-color: var(--bg-white);
        z-index: 99;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

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

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 24px;
    }

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

    /* Menu Icon transform when open */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem !important;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .info-col {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        width: 220px;
    }

    /* Hide call text in header on very small screens to fit layout */
    .btn-call-us span {
        display: none;
    }

    .btn-call-us {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .lang-select {
           margin-left: 8px;
           margin-right: 0px;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 5px;
    }
}