/* ==========================================
   QimiQ Australia - Main Stylesheet
   Modern, professional B2B design
   ========================================== */

/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    /* QimiQ Brand Colors */
    --color-primary: #003D6B;        /* Navy Blue - from QimiQ logo */
    --color-secondary: #7AB800;      /* Lime Green - from QimiQ logo */
    --color-accent: #00A0DC;         /* Light Blue - TAG accent */
    
    /* Neutral Colors */
    --color-dark: #1a1a1a;
    --color-grey-dark: #4a4a4a;
    --color-grey: #6b6b6b;
    --color-grey-light: #e5e5e5;
    --color-grey-lighter: #f5f5f5;
    --color-white: #ffffff;
    
    /* Functional Colors */
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4.5rem;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 6px;
    --border-radius-sm: 3px;
    --border-radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-grey-dark);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-grey-dark);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* On dark sections, use lime — passes 8:1 on navy */
.provenance-section .section-label,
.contact-section .section-label {
    color: var(--color-secondary);
}

.provenance-section .section-label::before,
.contact-section .section-label::before {
    background: var(--color-secondary);
}

.highlight {
    color: var(--color-primary);
}

.highlight-australia {
    color: var(--color-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

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

a:hover {
    color: var(--color-secondary);
}

/* ==========================================
   Layout Components
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-md);
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--color-grey-lighter);
    color: var(--color-primary);
}

.nav-menu .nav-cta {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-menu .nav-cta:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #002447 100%);
    color: var(--color-white);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(122, 184, 0, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(0, 160, 220, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 105%, rgba(122, 184, 0, 0.1) 0%, transparent 45%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero-text h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    display: inline;
}

.badge-australia {
    background: var(--color-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(122, 184, 0, 0.4);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background: #68a000;
    border-color: #68a000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================
   Feature Grid
   ========================================== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-pause {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: rgba(0, 61, 107, 0.12);
    border: 1px solid rgba(0, 61, 107, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 2;
}

.carousel-pause:hover {
    background: rgba(0, 61, 107, 0.25);
}

.carousel-pause svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: var(--color-primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-grey-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.feature-grid {
    display: flex;
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    text-align: left;
    border: none;
    border-left: 3px solid var(--color-secondary);
    flex: 0 0 300px;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    background: var(--color-grey-lighter);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.about-text h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   Provenance Section
   ========================================== */
.provenance-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #002447 100%);
    color: var(--color-white);
}

.provenance-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.provenance-text p {
    text-align: left;
}

.provenance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
}

.stat-icon {
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-secondary);
    stroke-width: 1.5;
    fill: none;
}

.stat h3 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.stat p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ==========================================
   Provenance Pillars
   ========================================== */
.provenance-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.provenance-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-white);
    border-left: 4px solid var(--color-secondary);
}

.pillar-icon {
    line-height: 1;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-secondary);
    stroke-width: 1.5;
    fill: none;
}

.provenance-imagery {
    margin: var(--spacing-lg) 0;
}

.provenance-imagery:empty {
    display: none;
}

.provenance-section h2 {
    color: var(--color-white);
}

.provenance-section p {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
   Products Section
   ========================================== */
.products-section {
    background: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-grey-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    background: var(--color-grey-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.product-image img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #002447 100%);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
}

.product-header-whip {
    background: linear-gradient(135deg, #ea5197 0%, #c03878 100%);
}

.product-header-creambase {
    background: linear-gradient(135deg, #83bb25 0%, #6a9a1a 100%);
}

.product-header-classic {
    background: linear-gradient(135deg, #00a9d9 0%, #0087b0 100%);
}

.product-header h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
}

.product-content {
    padding: var(--spacing-md);
}

.product-description {
    font-size: 1.05rem;
    color: var(--color-grey-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-grey-light);
}

.product-content h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.product-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.product-applications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-applications span {
    background: var(--color-grey-lighter);
    color: var(--color-grey-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================
   Applications Section
   ========================================== */
.applications-section {
    background: var(--color-grey-lighter);
}

.applications-grid {
    display: flex;
    gap: var(--spacing-md);
}

.application-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    border-left: 3px solid var(--color-secondary);
    flex: 0 0 280px;
}

.application-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.application-icon {
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.application-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
}

.application-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ==========================================
   Recipes Section
   ========================================== */
.recipes-section {
    background: var(--color-primary);
    color: var(--color-white);
}

.recipes-section h2 {
    color: var(--color-white);
}

.recipes-section .section-label {
    color: var(--color-secondary);
}

.recipes-section .section-label::before {
    background: var(--color-secondary);
}

.recipes-section .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.recipe-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.recipe-carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.recipe-carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.recipe-card {
    flex: 0 0 240px;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.recipe-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 33%;
    transition: transform var(--transition-normal);
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.05);
}

/* Recipe filter buttons */
.recipe-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.recipe-filter {
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    border: 2px solid var(--color-grey-light);
    background: transparent;
    color: var(--color-grey);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recipe-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.recipe-filter.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.recipe-filter--classic.active,
.recipe-filter--classic:hover {
    background: #00a9d9;
    border-color: #00a9d9;
    color: var(--color-white);
}

.recipe-filter--whip.active,
.recipe-filter--whip:hover {
    background: #ea5197;
    border-color: #ea5197;
    color: var(--color-white);
}

.recipe-filter--base.active,
.recipe-filter--base:hover {
    background: #83bb25;
    border-color: #83bb25;
    color: var(--color-white);
}

/* Hidden recipe cards (filtered out) */
.recipe-card.recipe-hidden {
    display: none;
}

.recipe-product {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

.recipe-product--classic {
    background: #00a9d9;
}

.recipe-product--whip {
    background: #ea5197;
}

.recipe-product--base {
    background: #83bb25;
}

.recipe-card-info {
    padding: 1rem 1.25rem 1.25rem;
}

.recipe-card-info h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recipe-meta {
    font-size: 0.8rem;
    color: var(--color-grey);
    font-weight: 500;
}

/* Recipe nav buttons */
.recipe-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.recipe-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.recipe-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.recipe-nav-btn svg {
    width: 20px;
    height: 20px;
}

.recipe-explore-link {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.recipe-explore-link a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.recipe-explore-link a:hover {
    color: #8FD400;
}

.recipe-explore-link .arrow {
    transition: transform var(--transition-fast);
    display: inline-block;
}

.recipe-explore-link a:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================
   Recipe Lightbox
   ========================================== */
.recipe-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.recipe-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.recipe-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.recipe-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 90vw;
    max-height: 92vh;
    z-index: 1;
}

.recipe-lightbox-img {
    max-height: 88vh;
    max-width: min(500px, 70vw);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.recipe-lightbox[aria-hidden="false"] .recipe-lightbox-img {
    transform: scale(1);
}

.recipe-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 2;
}

.recipe-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.recipe-lightbox-prev,
.recipe-lightbox-next {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.recipe-lightbox-prev:hover,
.recipe-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.recipe-lightbox-prev svg,
.recipe-lightbox-next svg {
    width: 22px;
    height: 22px;
}

/* Recipe responsive */
@media (max-width: 768px) {
    .recipe-card {
        flex: 0 0 200px;
    }

    .recipe-nav-btn {
        display: none;
    }

    .recipe-carousel-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .recipe-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .recipe-card {
        scroll-snap-align: start;
    }

    .recipe-lightbox-prev,
    .recipe-lightbox-next {
        display: none;
    }

    .recipe-lightbox-img {
        max-width: 92vw;
        max-height: 88vh;
    }
}

/* ==========================================
   Distribution Section
   ========================================== */
.distribution-section {
    background: var(--color-white);
}

.distribution-section-compact {
    padding: var(--spacing-xl) 0;
}

.distribution-section-compact .section-header {
    margin-bottom: var(--spacing-lg);
}

.distribution-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.distribution-item {
    background: var(--color-grey-lighter);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
}

.distribution-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dist-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.distribution-item p {
    margin-bottom: 0;
    color: var(--color-grey-dark);
    font-size: 0.95rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #002447 100%);
}

.contact-content-centered {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0 auto var(--spacing-xl);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    text-align: left;
}

.contact-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
}

.contact-item h3 {
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    stroke: var(--color-secondary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--color-white);
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--color-secondary);
}

/* ==========================================
   Partners Ticker
   ========================================== */
.partners-section {
    background: var(--color-grey-lighter);
    padding-bottom: var(--spacing-xl);
}

.partners-section .section-header {
    margin-bottom: var(--spacing-lg);
}

.partners-ticker-wrapper {
    overflow: hidden;
    position: relative;
}

/* Fade edges so logos appear/disappear smoothly */
.partners-ticker-wrapper::before,
.partners-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.partners-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-grey-lighter), transparent);
}

.partners-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-grey-lighter), transparent);
}

.partners-ticker {
    position: relative;
}

.partners-ticker-track {
    display: flex;
    gap: var(--spacing-lg);
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

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

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 80px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.partner-logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partner-logo img {
    max-height: 50px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-placeholder {
    color: var(--color-grey);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================
   Videos Section
   ========================================== */
.videos-section {
    background: var(--color-white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

.video-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.20);
    transition: background var(--transition-normal);
}

.video-card:hover .video-play-btn {
    background: rgba(0,0,0,0.10);
}

.video-play-btn svg {
    width: 64px;
    height: 45px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform var(--transition-normal);
}

.video-card:hover .video-play-btn svg {
    transform: scale(1.12);
}

.video-channel-link {
    text-align: center;
}

/* YouTube Lightbox */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.video-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
}

.video-lightbox-content {
    position: relative;
    z-index: 1;
    width: min(90vw, 960px);
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.video-lightbox-close:hover {
    opacity: 1;
}

.video-iframe-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Floating Social Strip
   ========================================== */
.social-strip {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-strip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    transition: background var(--transition-fast), width var(--transition-fast);
    text-decoration: none;
}

.social-strip-link:first-child {
    border-radius: 0 6px 0 0;
}

.social-strip-link:last-child {
    border-radius: 0 0 6px 0;
}

.social-strip-link:hover {
    background: var(--color-secondary);
    width: 46px;
}

.social-strip-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* YouTube play polygon is filled not stroked */
.social-strip-link svg polygon {
    fill: #fff;
    stroke: none;
}

@media (max-width: 1024px) {
    .social-strip {
        display: none;
    }
}

/* ==========================================
   Footer Social Links
   ========================================== */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-grey-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-social-link svg polygon {
    fill: currentColor;
    stroke: none;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-grey-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logos {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.footer-logo-wrap {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 0.4rem 0.75rem;
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    height: 32px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--color-grey-light);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: var(--spacing-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-large {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .distribution-info {
        grid-template-columns: 1fr;
    }

    .recipe-links {
        grid-template-columns: 1fr;
    }

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

    .contact-details {
        grid-template-columns: 1fr;
    }

    .provenance-pillars {
        flex-direction: column;
    }

    .provenance-pillar {
        font-size: 0.95rem;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    z-index: 9999;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* Carousel dot touch targets — visual stays 8px, hit area is 44px */
.carousel-dot {
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ==========================================
   Animated Stat Counters
   ========================================== */
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4rem);
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .carousel-track {
        transition: none;
    }

    .partners-ticker-track {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }
}
