/* SALEA Website Styles */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent zoom on mobile devices */
    touch-action: manipulation;
}

body {
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    /* Prevent text size adjustment */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}



/* Hero Section Overlays */
.hero-overlay {
    /* updated overlay to match new brand color #32392b (rgb 50,57,43) */
    background: linear-gradient(to bottom, rgba(50, 57, 43, 0.5), rgba(50, 57, 43, 0.6));
}

.product-card-overlay {
    background: linear-gradient(to top, rgba(50, 57, 43, 0.75), rgba(50, 57, 43, 0.3), transparent);
}

/* Font Faces - Local Fonts */

/* NewYork for Hero Title */
@font-face {
    font-family: 'NewYork';
    src: url('../assets/fonts/NewYork.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.hero-title {
    font-family: 'NewYork', 'Cormorant Garamond', serif;
}

/* Brand text (logo and subline) */
.brand-title,
.brand-subtitle {
    font-family: 'NewYork', 'Cormorant Garamond', serif;
}

/* Poppins Light for navigation menu */
@font-face {
    font-family: 'PoppinsLight';
    src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.menu-font {
    font-family: 'PoppinsLight', 'Lato', sans-serif;
    font-weight: 300;
}

/* Utility to apply Poppins Light elsewhere */
.poppins-light {
    font-family: 'PoppinsLight', 'Lato', sans-serif;
    font-weight: 300;
}

/* Poppins SemiBold */
@font-face {
    font-family: 'PoppinsSemiBold';
    src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.poppins-semibold {
    font-family: 'PoppinsSemiBold', 'Lato', sans-serif;
    font-weight: 600;
}

/* Poppins Regular */
@font-face {
    font-family: 'PoppinsRegular';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.poppins-regular {
    font-family: 'PoppinsRegular', 'Lato', sans-serif;
    font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* Poppins font-family variants (single family with weight/style)      */
/* Files expected under /assets/fonts/ as requested by user           */
/* ------------------------------------------------------------------ */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Utility classes for each Poppins variant requested by user         */
/* Use these classes to apply specific weight/style quickly           */
/* ------------------------------------------------------------------ */
.poppins-thin {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 100;
}

.poppins-thin-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 100;
    font-style: italic;
}

.poppins-extra-light {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 200;
}

.poppins-extra-light-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 200;
    font-style: italic;
}

.poppins-light {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 300;
}

.poppins-light-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 300;
    font-style: italic;
}

.poppins-regular {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 400;
}

.poppins-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 500;
}

.poppins-medium-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 600;
}

.poppins-semibold-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 700;
}

.poppins-bold-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 800;
}

.poppins-extrabold-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 900;
}

.poppins-black-italic {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* NewYork helper class */
.font-newyork {
    font-family: 'NewYork', 'Cormorant Garamond', serif;
}


/* Card Components */

/* Card bottom green panel */
.card-bottom {
    /* card bottom uses semi-transparent brand color (rgb 50,57,43) */
    background: rgba(50, 57, 43, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 1.25rem 1.5rem;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

.card-bottom h4 {
    margin: 0 0 0.75rem 0;
}

.card-bottom .btn-small {
    border-width: 2px;
    padding: 0.45rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    display: inline-block;
}

/* Asymmetric product card shape: larger rounding on top-left and bottom-right */
.product-card-shape {
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 2.5rem;
    border-bottom-left-radius: 0.75rem;
}

/* Horizontal scroll styling for product cards on index page */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #6B5D52 #EDE8E0;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #EDE8E0;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #6B5D52;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #5a4d44;
}

/* ========================================== */
/* Core Products Page - Product Accordion    */
/* ========================================== */

.product-item {
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    border-radius: 0 0 80px 0 !important;
    overflow: hidden !important;
    transition: all 0.7s ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-collapsed {
    height: 180px;
}

.product-expanded {
    height: auto;
    min-height: 600px;
}

.product-header {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    overflow: hidden;
    border-radius: 0 0 80px 0;
    transition: background-color 0.8s ease;
}

/* Background color for header - per product colors (applies to both collapsed and expanded) */
.product-coffee .product-header {
    background-color: #6B5D52;
    /* Coffee brown */
}

.product-candlenut .product-header {
    background-color: #C9B28A;
    /* Candlenut beige/tan */
}

.product-seasalt .product-header {
    background-color: #E8E4DF;
    /* Sea salt light gray/white */
}

.product-cocofiber .product-header {
    background-color: #B8944D;
    /* Cocofiber gold/mustard */
}

.product-cinnamon .product-header {
    background-color: #5D4E45;
    /* Cinnamon dark brown */
}

/* Background colors for expanded product details content */
.product-coffee .product-details-content {
    background-color: #6B5D52 !important;
    /* Coffee brown */
}

.product-candlenut .product-details-content {
    background-color: #C9B28A !important;
    /* Candlenut beige/tan */
}

.product-seasalt .product-details-content {
    background-color: #E8E4DF !important;
    /* Sea salt light gray/white */
}

.product-cocofiber .product-details-content {
    background-color: #B8944D !important;
    /* Cocofiber gold/mustard */
}

.product-cinnamon .product-details-content {
    background-color: #5D4E45 !important;
    /* Cinnamon dark brown */
}

/* Text color adjustments for light backgrounds */
/* Sea Salt - dark text for both collapsed and expanded */
.product-seasalt .product-details-content,
.product-seasalt .product-title-container h3,
.product-seasalt .product-details-content h4,
.product-seasalt .product-details-content p,
.product-seasalt .product-details-content strong,
.product-seasalt .product-details-content li,
.product-seasalt .icon-badge p {
    color: #2d2d2d !important;
}

.product-seasalt .expand-icon {
    color: #2d2d2d !important;
    border-color: rgba(45, 45, 45, 0.3) !important;
}

/* Candlenut - dark text for both collapsed and expanded */
.product-candlenut .product-title-container h3,
.product-candlenut .product-details-content h4,
.product-candlenut .product-details-content p,
.product-candlenut .product-details-content strong,
.product-candlenut .product-details-content li,
.product-candlenut .icon-badge p {
    color: #2d2d2d !important;
}

.product-candlenut .expand-icon {
    color: #2d2d2d !important;
    border-color: rgba(45, 45, 45, 0.3) !important;
}

/* Override text color to white when collapsed (background image visible) */
.product-seasalt.product-collapsed .product-title-container h3,
.product-candlenut.product-collapsed .product-title-container h3 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.product-seasalt.product-collapsed .expand-icon,
.product-candlenut.product-collapsed .expand-icon {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Full background image with overlay for collapsed state */
.product-bg-image {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: brightness(0.85) saturate(1.1);
    opacity: 1;
    /* Visible when collapsed */
}

/* Hide background image when expanded */
.product-expanded .product-bg-image {
    opacity: 0;
    visibility: hidden;
}

/* Elegant gradient overlay on background */
.product-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.30) 100%);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Decorative left border accent - REMOVED */
/* .product-header::before removed for cleaner look */

.product-title-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.product-title-container h3 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.15em;
    font-weight: 300;
    position: relative;
    padding-left: 1.5rem;
}

/* Decorative line under title */
.product-title-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1.5rem;
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

.product-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out,
        opacity 0.5s ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.product-details.active {
    max-height: 2500px;
    opacity: 1;
}

.product-details-content {
    opacity: 0;
    transform: translateY(-10px) translateZ(0);
    transition: opacity 0.6s ease-out 0.2s,
        transform 0.6s ease-out 0.2s;
    padding-top: 2.5rem;
    backface-visibility: hidden;
}

.product-details.active .product-details-content {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.expand-icon {
    transition: all 0.6s ease-in-out;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.expand-icon.rotated {
    transform: rotate(180deg);
    /* Arrow pointing up when expanded */
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.product-item:hover .expand-icon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .expand-icon.rotated {
    transform: rotate(180deg) scale(1.1);
    /* Keep rotation when hovering expanded state */
}

/* Smooth hover effect */
.product-item:hover {
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-item:hover .product-bg-image {
    filter: brightness(0.95) saturate(1.2);
}

.product-item:hover .product-bg-image::after {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.20) 100%);
}

/* Removed hover effect for left border as it's been removed */

.product-item:hover .product-title-container h3::after {
    width: 120px;
    background: rgba(255, 255, 255, 0.8);
}

/* Details image animation */
.detail-image {
    transition: transform 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.02);
}

/* Icon badges animation */
.icon-badge {
    transition: all 0.25s ease;
}

.icon-badge:hover {
    transform: translateY(-3px);
}

/* Inline SVG icon sizing to match previous emoji size (text-5xl) */
.icon-badge .icon-svg {
    width: 3rem;
    /* ~48px */
    height: 3rem;
    display: inline-block;
    color: inherit;
    /* use current text color */
}


/* ==========================
   Asymmetric card rounding
   Ensure all product card images and headers keep
   larger rounding on top-left and bottom-right.
   This override is appended to guarantee it takes effect.
   ==========================*/
.product-item {
    border-radius: 2.5rem 0 2.5rem 0 !important;
    overflow: hidden !important;
}

.product-header,
.product-bg-image,
.product-bg-image img,
.detail-image {
    border-radius: 2.5rem 0 2.5rem 0 !important;
}

/* Make sure the image inside the expanded card is clipped to the shape */
.product-details-content>.overflow-hidden img,
.product-details-content img.detail-image {
    border-radius: 2.5rem 0 2.5rem 0 !important;
    display: block;
}

/* ==========================
   Responsive Fixes for Mobile
   ==========================*/

/* Mobile responsive adjustments */
@media (max-width: 767px) {

    /* Reset any zoom/scale for mobile */
    body {
        zoom: 1 !important;
        transform: none !important;
    }

    /* Hero title sizing for mobile */
    .hero-title {
        font-size: 1.75rem !important;
        /* ~28px */
        line-height: 1.3 !important;
        letter-spacing: 0.05em !important;
    }

    /* Adjust hero paragraph text */
    .poppins-extra-light p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Export compliance cards - smaller padding and text */
    .bg-salea-dark-green.p-10 {
        padding: 1.5rem !important;
        min-height: 200px !important;
    }

    .bg-salea-dark-green.p-10 p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Logistics section text */
    .poppins-regular p {
        font-size: 14px !important;
    }

    /* Section padding adjustments */
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section.px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Responsive scaling for different screen sizes */

/* Small screens (phones) */
@media (max-width: 767px) {
    body {
        zoom: 1;
        transform: none;
    }
}

/* Tablets and small laptops (768px - 1366px width) */
@media (min-width: 768px) and (max-width: 1366px) {
    body {
        zoom: 0.85;
        -moz-transform: scale(0.85);
        -moz-transform-origin: 0 0;
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Medium resolution (1367px - 1599px) - slight zoom adjustment */
@media (min-width: 1367px) and (max-width: 1599px) {
    body {
        zoom: 0.9;
        -moz-transform: scale(0.9);
        -moz-transform-origin: 0 0;
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* 1920x1080 screens (Full HD standard monitors) */
@media (min-width: 1600px) and (max-width: 1920px) and (max-height: 1080px) {
    body {
        zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
        transform: scale(0.75);
        transform-origin: 0 0;
    }
}

/* MacBook and similar high-res screens (1920x1200+) */
@media (min-width: 1600px) and (min-height: 1081px) {
    body {
        zoom: 1;
        transform: none;
    }
}

/* Large 4K/5K displays */
@media (min-width: 2560px) {
    body {
        zoom: 1;
        transform: none;
    }
}