/* Prevent horizontal scroll from step section */
.step-by-step-process {
    overflow-x: hidden;
}
.step-by-step-process .container--process {
    overflow-x: hidden;
    max-width: 100%;
}

/* Container */
.process-container {
    position: relative;
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Circle */
.center-circle {
    width: 52%;
    height: 52%;
    border-radius: 50%;
    background: 
        linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.6));
    border: 8px solid white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
}

/* SVG lines */
.lines-svg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}


/* Steps */
.step {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--primary);
    border: 4px solid var(--theme-logo);
    border-radius: 50%;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;

    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.step:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(176, 141, 87, 0.7);
}

.step b {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

/* Positioning */
.step-1 { top: 4%;  right: 22%; }
.step-2 { top: 42%; right: -4%; }
.step-3 { bottom: 4%; right: 22%; }
.step-4 { bottom: 4%; left: 22%; }
.step-5 { top: 42%; left: -4%; }
.step-6 { top: 4%;  left: 22%; }

/* Tooltip */
.tooltip {
    visibility: hidden;
    opacity: 0;
    width: min(180px, 85vw);
    max-width: 220px;
    background-color: var(--theme-logo);
    color: var(--dark);
    text-align: justify;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    font-size: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: opacity 0.25s ease;
    border-radius: 12px;
}

/* Tooltip positions - stay inside viewport on small screens */
.tooltip-right {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 110%;
    margin-left: 0;
}
.tooltip-left {
    left: 50%;
    transform: translateX(-50%);
    bottom: 110%;
    right: auto;
}
@media (min-width: 992px) {
    .tooltip-right {
        right: -190px;
        left: auto;
        transform: none;
        bottom: 10px;
    }
    .tooltip-left {
        left: -190px;
        right: auto;
        transform: none;
        bottom: 10px;
    }
}

.step:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
/* ========== Product CTA Section — View our Range of Products (LEFT) ========== */
.product-cta-section {
    background: linear-gradient(180deg, var(--bg-cream) 0%, #f5f0e8 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-cta-content {
    animation: fadeInUp 0.6s ease-out;
}

.product-cta-content--left {
    text-align: left;
}

.product-cta-content--left .sec-head,
.product-cta-content--left .product-cta-subtitle {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.product-cta-subtitle {
    font-size: 1.05rem;
    max-width: 420px;
}

/* ========== Enquiry CTA — Content left, Button right, vertically centered ========== */
.enquiry-cta-box--split .enquiry-cta-inner {
    text-align: center;
}

.enquiry-cta-btn-wrap {
    display: inline-block;
    margin-bottom: 0;
}

/* Desktop: button aligned to the right of its column */
.enquiry-cta-box--split .enquiry-cta-btn-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .enquiry-cta-box--split .enquiry-cta-btn-wrap {
    margin-left: auto;
    margin-right: 0;
} */

/* Mobile: content and button centered, stacked (button first via order-1) */
@media (max-width: 991px) {
    .enquiry-cta-box--split .enquiry-cta-inner {
        text-align: center;
    }
    .enquiry-cta-box--split .enquiry-cta-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .enquiry-cta-box--split .enquiry-cta-btn-col {
        justify-content: center;
    }
    .enquiry-cta-box--split .enquiry-cta-btn-wrap {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========== Shared CTA button + PULSE WAVE animation ========== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Pulse waves — expanding rings that fade out */
.cta-btn__pulse-wave {
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    border: 2px solid var(--accent);
    background: transparent;
    animation: pulse-wave 2s ease-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* All waves pulse simultaneously */
.cta-btn__pulse-wave {
    animation-delay: 0s !important;
}


/* .cta-btn__pulse-wave:nth-child(3) { animation-delay: 0s; }
.cta-btn__pulse-wave:nth-child(4) { animation-delay: 0.65s; }
.cta-btn__pulse-wave:nth-child(5) { animation-delay: 1.3s; } */

.cta-btn--enquiry .cta-btn__pulse-wave {
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-btn--enquiry .cta-btn__pulse-wave:nth-child(3) { animation-delay: 0s; }
.cta-btn--enquiry .cta-btn__pulse-wave:nth-child(4) { animation-delay: 0.65s; }
.cta-btn--enquiry .cta-btn__pulse-wave:nth-child(5) { animation-delay: 1.3s; }

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    z-index: 1;
    pointer-events: none;
}

.cta-btn--products::after {
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
}

.cta-btn--enquiry::after {
    background: var(--primary);
}

.cta-btn__text,
.cta-btn__icon {
    position: relative;
    z-index: 2;
}

.cta-btn__icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

/* View Products button */
.cta-btn--products {
    color: var(--white);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.cta-btn--products:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

.cta-btn--products:hover .cta-btn__icon {
    transform: translateX(4px);
}

/* Enquiry CTA button */
.cta-btn--enquiry {
    color: var(--white);
    padding: 1rem 2rem;
}

.cta-btn--enquiry:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-btn--enquiry:hover::after {
    background: var(--theme-logo);
}

.cta-btn--enquiry:hover .cta-btn__icon--left {
    transform: scale(1.12);
}

.cta-btn:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy class kept for any other pages */
.custom-btn {
    background-color: var(--accent);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--white);
    transition: all 0.3s ease;
}
.custom-btn:hover {
    background-color: var(--theme-logo);
    color: var(--white);
    transform: translateY(-2px);
}

/* Custom Sustainability Styles */
.sustainability-section {
    background-color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.tracking-wider {
    letter-spacing: 2px;
}

.bg-light-green-gradient {
    background: linear-gradient(135deg, #f0f9f1 0%, #e4f2e7 100%);
    border-radius: 20px;
}

.sustainability-section h2 {
    color: #2d3436;
}

.badge.bg-success {
    background-color: #28a745 !important;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add a subtle animation to the card on hover */
.card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}

/* Styling for the blockquote-style text */
.italic {
    font-style: italic;
    color: #555;
}
.sec-head {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* Grid Layout */
.wheat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* The Card Container */
.gallery-card {
    position: relative;
    height: 350px; /* Fixed height for a uniform gallery */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* The Content Overlay (Hidden by Default) */
.card-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0; /* Start hidden */
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px); /* Slight slide-up effect */
}

/* Hover Actions */
.gallery-card:hover .card-info {
    opacity: 1; /* Show content */
    transform: translateY(0); /* Reset position */
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1); /* Slight zoom on image */
}

/* Text inside the overlay */
.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent); /* Wheat/Gold accent color */
}

.card-info p {
    font-size: 0.95rem;
    line-height: 1.4;
}
/* ========== Enquiry CTA — Ready to Source Responsibly ========== */
.enquiry-cta-section .cta-box,
.enquiry-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2b18 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 1.5rem;
    box-shadow: 0 20px 50px rgba(22, 72, 22, 0.25);
    animation: ctaBoxFadeIn 0.7s ease-out;
}

@media (min-width: 576px) {
    .enquiry-cta-box {
        padding: 3.5rem 2rem;
    }
}

@media (min-width: 992px) {
    .enquiry-cta-box {
        padding: 4rem 3rem;
    }
}

@keyframes ctaBoxFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enquiry-cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.enquiry-cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* .enquiry-cta-box--split .enquiry-cta-desc {
    margin-left: 0;
    margin-right: auto;
} */

.enquiry-cta-note {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.enquiry-cta-box .row.position-relative {
    z-index: 1;
}

.enquiry-cta-section .btn-light {
    color: var(--accent);
    transition: all 0.3s ease;
    border: none;
}

.enquiry-cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Decorative circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-circle--1 {
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
}

.bg-circle--2 {
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}
/* Tablet: smaller circle, steps pulled in, no horizontal overflow */
@media (max-width: 991px) {
    .process-container {
        width: min(420px, 85vw);
        height: min(420px, 85vw);
        max-width: 420px;
        max-height: 420px;
    }

    .step {
        width: 82px;
        height: 82px;
        font-size: 0.68rem;
    }

    /* Pull steps INSIDE the circle to avoid overflow */
    .step-1 { top: 6%;  right: 16%; }
    .step-2 { top: 42%; right: 4%; }
    .step-3 { bottom: 6%; right: 16%; }
    .step-4 { bottom: 6%; left: 16%; }
    .step-5 { top: 42%; left: 4%; }
    .step-6 { top: 6%;  left: 16%; }

    .tooltip {
        width: min(160px, 75vw);
        font-size: 0.7rem;
    }
}

/* Mobile: vertical timeline layout - no horizontal scroll */
@media (max-width: 768px) {
    .process-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        margin: 2rem auto;
        display: block;
        padding: 0 0.5rem;
    }

    .step-by-step-process .lines-svg {
        display: none;
    }

    .step-by-step-process .center-circle {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 16px;
        min-height: 80px;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }

    .step-by-step-process .step {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 72px;
        margin: 0 auto 1rem;
        border-radius: 12px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        text-align: left;
        border: 3px solid var(--theme-logo);
    }

    .step-by-step-process .step::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -1rem;
        width: 2px;
        height: 1rem;
        background: var(--theme-logo);
        transform: translateX(-50%);
    }

    .step-by-step-process .step:last-child::before {
        display: none;
    }

    .step-by-step-process .step b {
        margin-bottom: 0;
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .step-by-step-process .step .tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 100%;
        top: auto;
        margin-bottom: 8px;
        width: min(260px, 90vw);
        max-width: 280px;
    }

    .step-by-step-process .step .tooltip-right,
    .step-by-step-process .step .tooltip-left {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .step-by-step-process .step {
        max-width: 100%;
        min-height: 64px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .tooltip {
        width: min(150px, 90vw);
        font-size: 0.7rem;
    }
}