/*
 * Public website styles (Agrico-M)
 *
 * Loaded once from template_parts/header_head.php for all public pages.
 * Image URLs are RELATIVE to this file (assets/css/) so they resolve on any
 * host without PHP — e.g. ../images/foo.png -> assets/images/foo.png.
 *
 * Keep page-specific component styles here instead of inline <style> blocks.
 */

/* ==========================================================================
   Hero (home) — video overlay + product image hover
   ========================================================================== */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Carrefour partnership highlight card */
.partner-highlight-gradient {
    background: linear-gradient(to bottom right, #E03202, #B82902);
}

.product-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
}
.product-image-wrapper .product-image-default {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image-wrapper .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image-wrapper:hover .product-image-default {
    opacity: 0;
}
.product-image-wrapper:hover .product-image-hover {
    opacity: 1;
}

@media (min-width: 1024px) {
    .product-image-wrapper {
        min-height: 400px;
    }
}

@keyframes potato-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}
.potato-pulse {
    animation: potato-pulse 1.5s ease-in-out infinite;
}

@media (min-width: 1024px) {
    #desktop-nav {
        display: flex !important;
        align-items: center;
        gap: 2rem;
    }
    #desktop-right-nav {
        display: flex !important;
        flex: 1 1 0%;
        align-items: center;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Video hero section
   ========================================================================== */
.video-hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.navbar,
.header,
header {
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%) !important;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.9);
    z-index: 1;
    will-change: transform, filter;
    backface-visibility: hidden;
}

.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 20;
    text-align: center;
}

.video-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .video-section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .video-section-title {
        font-size: 3.5rem;
    }
}

.video-play-button {
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-play-button:hover {
    background: #E03202;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.video-play-button:hover i {
    color: white;
}

@media (min-width: 1024px) {
    .video-play-button {
        width: 6rem;
        height: 6rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: scrollBounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.video-hero-section.scrolling .scroll-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-hero-section + section {
    position: relative;
    z-index: 10;
    background: white;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
    }

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

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        transition: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.youtube-modal.active {
    opacity: 1;
    visibility: visible;
}

.youtube-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.youtube-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10000;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.youtube-modal.active .youtube-modal-container {
    transform: scale(1);
}

.youtube-modal-content {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.youtube-modal-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    color: #1a1a1a;
}

.youtube-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .youtube-modal-container {
        width: 95%;
    }

    .youtube-modal-close {
        top: -2.5rem;
        width: 2rem;
        height: 2rem;
    }
}

/* ==========================================================================
   About page media hovers and scrolling gallery
   ========================================================================== */
.team-image-wrapper:hover .team-image-default {
    opacity: 0;
}
.team-image-wrapper:hover .team-image-hover {
    opacity: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}
.hero-image-wrapper .hero-image-default {
    position: relative;
    display: block;
}
.hero-image-wrapper .hero-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-image-wrapper:hover .hero-image-default {
    opacity: 0;
}
.hero-image-wrapper:hover .hero-image-hover {
    opacity: 1;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/about/hero-bg.svg");
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.about-stat-unit {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #928399;
}

.about-social-link {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1d5db;
    border-radius: 9999px;
    color: #4b5563;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.about-social-link:hover {
    border-color: var(--color-primary, #4661ff);
    color: var(--color-primary, #4661ff);
}

.about-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: hidden;
}

.gallery-scroll-container {
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.gallery-scroll-content {
    display: flex;
    width: fit-content;
    animation: scroll var(--scroll-speed, 38s) linear infinite;
}

.scroll-left .gallery-scroll-content {
    animation-name: scrollLeft;
}

.scroll-right .gallery-scroll-content {
    animation-name: scrollRight;
}

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

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

.gallery-scroll-container:hover .gallery-scroll-content:not(.dragging):not(.user-dragged) {
    animation-play-state: paused;
}

.gallery-scroll-content.dragging {
    animation-play-state: paused;
    user-select: none;
}

.gallery-scroll-content.dragging img,
.gallery-scroll-content.dragging video {
    pointer-events: none;
}

.about-gallery-media {
    height: 380px;
    width: auto;
}

@media (max-width: 768px) {
    .gallery-scroll-container {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
}

/* ==========================================================================
   Public content tables — legal pages and article comparison tables
   ========================================================================== */
.public-table-scroll {
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.public-content-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.public-content-table th {
    background: var(--color-primary, #ff133e);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.public-content-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5rem;
    color: #374151;
    vertical-align: top;
}

.public-content-table-sm th,
.public-content-table-sm td {
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
}

.public-content-table tbody tr + tr td {
    border-top: 1px solid #e5e7eb;
}

.public-content-table tbody tr:hover {
    background: #f9fafb;
}

.public-content-table .public-table-row-success {
    background: #f0fdf4;
}

.public-content-table .public-table-row-warning {
    background: #fefce8;
}

.public-content-table .public-table-row-danger {
    background: #fef2f2;
}

.public-content-table .public-table-cell-strong {
    font-weight: 600;
    color: #111827;
}

.public-content-table code {
    display: inline-flex;
    border-radius: 0.375rem;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    color: #111827;
}

/* ==========================================================================
   Blog post layout and prose
   ========================================================================== */
@media (min-width: 1024px) {
    .blog-post-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.blog-post-sidebar {
    max-width: 350px;
    flex: 0 0 350px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.blog-post-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.blog-post-main {
    flex: 1 1 0%;
    min-width: 0;
}

.blog-post-hero-image {
    height: 300px;
}

.blog-eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #475569;
}

.blog-title {
    margin-top: 1rem;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
}

.blog-card {
    border-radius: 1.5rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.2s ease;
}
.blog-card:hover {
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.1);
}

.blog-card-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.2s ease;
}
.blog-card:hover .blog-card-title {
    color: var(--color-primary, #4661ff);
}

.blog-load-more {
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #334155;
}
.blog-load-more:hover {
    background: #f9fafb;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 1px #e2e8f0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.blog-post-back:hover {
    background: #f8fafc;
    color: #0f172a;
}

.blog-sidebar-latest-item {
    grid-template-columns: 50px 1fr;
}

.blog-sidebar-thumb {
    width: 50px;
    height: 50px;
}

.blog-sidebar-latest-link {
    display: inline-flex;
    align-items: flex-start;
    color: #1d4ed8;
    transition: color 0.2s ease;
}
.blog-sidebar-latest-link:hover {
    color: var(--color-primary, #4661ff);
}
.dark .blog-sidebar-latest-link {
    color: #93c5fd;
}
.dark .blog-sidebar-latest-link:hover {
    color: var(--color-primary, #4661ff);
}

.blog-sidebar-social-link {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-sidebar-social-link-facebook {
    background: #2563eb;
}
.blog-sidebar-social-link-facebook:hover {
    background: #1d4ed8;
}
.blog-sidebar-social-link-tiktok {
    background: #000;
}
.blog-sidebar-social-link-tiktok:hover {
    background: #1f2937;
}
.blog-sidebar-social-link-google {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
}
.blog-sidebar-social-link-google:hover {
    background: #e5e7eb;
}
.dark .blog-sidebar-social-link-google {
    border-color: #4b5563;
    background: #374151;
    color: #fff;
}
.dark .blog-sidebar-social-link-google:hover {
    background: #4b5563;
}

.site-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--color-primary, #4661ff);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.site-primary-button:hover {
    background: color-mix(in srgb, var(--color-primary, #4661ff) 90%, #000);
}
.site-primary-button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1rem;
}
.site-primary-button-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.site-primary-button-full {
    width: 100%;
}
.site-primary-button-with-icon {
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.site-primary-button-shadow {
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1);
}
.site-primary-button-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 8px 10px -6px rgba(16, 24, 40, 0.1);
}

.site-white-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: background-color 0.2s ease;
}
.site-white-action:hover {
    background: #f9fafb;
}

.site-hero-scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}
.site-hero-scroll-link:hover {
    color: #fff;
}

.site-trust-kicker {
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.site-trust-logo {
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.site-trust-logo:hover {
    opacity: 1;
}
.site-trust-logo-cert {
    height: 3rem;
}
.site-trust-logo-partner {
    height: 2.5rem;
}

.site-section-kicker {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--color-primary, #4661ff) 10%, transparent);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--color-primary, #4661ff);
}

.site-section-title {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.site-cookie-banner {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
    background: #eff6ff;
    padding: 0.625rem 1.5rem;
    color: #1d4ed8;
}
.site-cookie-banner.hidden {
    display: none;
}
.site-cookie-banner::before {
    content: "";
    display: none;
}
.site-cookie-dismiss {
    margin: -0.75rem;
    cursor: pointer;
    padding: 0.75rem;
}
.site-cookie-dismiss:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}
.site-preloader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 28rem;
    transform: translate(-50%, -50%);
    padding: 0 1.5rem;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.site-preloader-progress {
    margin-bottom: 0.75rem;
    height: 0.25rem;
    width: 100%;
    overflow: hidden;
    border-radius: 9999px;
    background: #e5e7eb;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.site-preloader-text {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: #111827;
    transition: color 0.2s ease;
}
.site-nav-link:hover,
.site-nav-link-active {
    color: var(--color-primary, #4661ff);
}
.site-nav-link-dropdown {
    column-gap: 0.25rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.site-products-dropdown-panel {
    position: absolute;
    left: 50%;
    z-index: 10;
    margin-top: 0.75rem;
    width: 100vw;
    max-width: 28rem;
    flex: 1 1 auto;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
    font-size: 0.875rem;
    line-height: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(17, 24, 39, 0.05);
}
.site-products-dropdown-panel.hidden {
    display: none;
}
.site-mobile-menu-toggle {
    border-radius: 0.375rem;
    padding: 0.5rem;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.site-mobile-menu-toggle:hover {
    background: #f3f4f6;
    color: #111827;
}
.site-mobile-menu-toggle:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-primary, #4661ff);
}
.site-mobile-subnav-link {
    display: block;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.site-mobile-subnav-link:hover {
    background: #f9fafb;
    color: var(--color-primary, #4661ff);
}
.site-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.site-mobile-nav-link:hover,
.site-mobile-nav-link-active {
    background: #f9fafb;
    color: var(--color-primary, #4661ff);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.about-timeline-divider {
    position: absolute;
    margin-left: -0.5rem;
    height: 1px;
    width: 100vw;
    transform: translateX(-100%);
    background: rgba(17, 24, 39, 0.1);
}

.blog-tag,
.blog-post-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-size: 11px;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #334155;
}

.blog-tag {
    background: #ffffff;
    padding: 0.125rem 0.625rem;
}

.blog-post-tag {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
}

.dark .blog-wrapper {
    background: #0b0b0b !important;
}
.dark .blog-hero {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.dark .blog-eyebrow,
.dark .blog-meta,
.dark .blog-card-footer {
    color: #94a3b8 !important;
}
.dark .blog-title,
.dark .blog-card-title {
    color: #ffffff !important;
}
.dark .blog-subtitle,
.dark .blog-card-excerpt {
    color: #cbd5f5 !important;
}
.dark .blog-card {
    background: #0b0b0b !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none !important;
}
.dark .blog-tag {
    background: #111827 !important;
    color: #e5e7eb !important;
}
.dark .blog-load-more {
    background: #0b0b0b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e5e7eb !important;
}
.dark .blog-sidebar .blog-sidebar-panel {
    background-color: #0b0b0b !important;
}
.dark .blog-sidebar .blog-sidebar-cta {
    background-color: rgba(15, 23, 42, 0.7) !important;
}

.prose {
    color: #374151;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #374151;
}

.prose .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

.prose em {
    font-style: italic;
}

.prose a {
    color: var(--primary-color, #E03202);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    opacity: 0.8;
}

.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    -webkit-overflow-scrolling: touch;
}

.prose table thead {
    background: #f9fafb;
}

.prose table th,
.prose table td {
    padding: 0.875rem 1rem;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.prose table th {
    font-size: 0.8125rem;
    line-height: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.prose table td {
    font-size: 0.9375rem;
    line-height: 1.5rem;
    color: #374151;
}

.prose table tr:last-child td {
    border-bottom: 0;
}

.prose table tbody tr:hover {
    background: #f9fafb;
}

.dark .blog-breadcrumb {
    color: #94a3b8;
}
.dark .blog-breadcrumb a {
    color: #cbd5f5;
}
.dark .blog-post-article {
    background: #0b0b0b;
}
.dark .blog-post-header {
    color: #e5e7eb;
}
.dark .blog-post-title {
    color: #ffffff;
}
.dark .blog-post-meta {
    color: #94a3b8;
}
.dark .blog-post-tag {
    background: #111827;
    color: #e5e7eb;
}
.dark .blog-post-back {
    background: #0b0b0b;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.15);
}

.legal-page-title {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #111827;
}

@media (min-width: 640px) {
    .blog-title,
    .legal-page-title {
        font-size: 3rem;
        line-height: 1;
    }
    .site-cookie-banner {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    .site-cookie-banner::before {
        display: flex;
        flex: 1 1 0%;
    }
    .about-timeline-divider {
        margin-left: -1rem;
    }
}

@media (min-width: 1024px) {
    .about-values-grid {
        max-width: none;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
    .blog-title,
    .legal-page-title {
        font-size: 3.75rem;
        line-height: 1;
    }
    .site-trust-logo-cert {
        height: 3.5rem;
    }
    .site-trust-logo-partner {
        height: 3rem;
    }
    .site-section-title {
        margin-bottom: 1.5rem;
        font-size: 3.75rem;
        line-height: 1;
    }
    .site-products-dropdown-panel {
        max-width: 48rem;
    }
    .about-stat-unit {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .about-timeline-divider {
        position: static;
        margin-left: 2rem;
        margin-right: -1.5rem;
        width: auto;
        flex: 1 1 auto;
        transform: translateX(0);
    }
}
.dark .prose {
    color: #cbd5f5;
}
.dark .prose h2,
.dark .prose h3,
.dark .prose strong {
    color: #ffffff;
}
.dark .prose p,
.dark .prose li,
.dark .prose .lead {
    color: #cbd5f5;
}

/* ==========================================================================
   Contact page — hero gradient + building image hover
   ========================================================================== */
.contact-hero-gradient {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 60%, transparent 100%);
}
.dark .contact-hero-gradient {
    background: linear-gradient(to right, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0.5) 40%, rgba(17, 24, 39, 0) 60%, transparent 100%);
}
.contact-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
}
.contact-hero-image picture,
.building-image-wrapper picture {
    display: contents;
}

.building-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
}
.building-image-default,
.building-image-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease-in-out;
}
.building-image-default {
    opacity: 1;
    z-index: 1;
}
.building-image-hover {
    opacity: 0;
    z-index: 2;
}
.building-image-wrapper:hover .building-image-default {
    opacity: 0;
}
.building-image-wrapper:hover .building-image-hover {
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.footer {
    background-image: url('../images/footer-traktor.png');
    background-position: 0 0;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

footer.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.85); /* bg-gray-900/85 */
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 19, 62, 0.5), transparent);
}

.footer-bg-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 19, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 19, 62, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(55, 64, 79, 0.05) 0%, transparent 50%);
    background-size: 300px 300px, 400px 400px, 250px 250px;
    animation: footerPattern 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes footerPattern {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(5px) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

/* Responsive adjustments for footer background */
@media (max-width: 768px) {
    .footer {
        background-image: url('../images/footer-traktor.png');
        background-position: 0 0;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

@media (max-width: 576px) {
    .footer {
        background-image: url('../images/footer-traktor.png');
        background-position: 0 0;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

.footer .navbar-brand,
.footer .navbar-brand img {
    transition: all 0.3s ease;
}
.footer .navbar-brand:hover {
    transform: translateY(-2px);
}
.footer .navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.footer .company-details ul li {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    transition: all 0.3s ease;
}
.footer .company-details ul li:hover {
    border-left-color: rgba(255, 19, 62, 0.5);
    transform: translateX(5px);
}

.footer .certification-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
}
.footer .certification-logo:hover {
    opacity: 1;
    transform: scale(1.05) translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer .carrefour-partnership {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}
.footer .carrefour-partnership:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.footer .carrefour-partnership .certification-logo {
    max-width: 80px;
    filter: brightness(0) invert(1);
}

.footer .cegek-link,
.footer .anpc-link,
.footer .ultron-link {
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.footer .cegek-link:hover,
.footer .anpc-link:hover,
.footer .ultron-link:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}
.footer .cegek-link img,
.footer .anpc-link img,
.footer .ultron-link img {
    opacity: 0.7;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px;
}
.footer .cegek-link:hover img,
.footer .anpc-link:hover img,
.footer .ultron-link:hover img {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.footer .certifications {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    transition: all 0.3s ease;
}
.footer .certifications:hover,
.footer .legal-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.footer .legal-info {
    transition: all 0.3s ease;
}

.footer .social-links .btn,
.footer .contact-info a {
    transition: all 0.3s ease;
}
.footer .social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-footer-action {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-footer-action-whatsapp {
    background: #22c55e;
}
.site-footer-action-whatsapp:hover {
    background: #16a34a;
}
.site-footer-action-outline,
.site-footer-social-link {
    border: 2px solid #374151;
}
.site-footer-action-outline:hover,
.site-footer-social-link:hover {
    border-color: #fff;
}
.site-footer-social-link {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #fff;
    transition: border-color 0.2s ease;
}

.public-error-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.public-error-action-primary {
    background: var(--color-primary, #4661ff);
    color: #fff;
}
.public-error-action-primary:hover {
    background: color-mix(in srgb, var(--color-primary, #4661ff) 88%, #000);
}
.public-error-action-secondary {
    border: 2px solid #d1d5db;
    color: #374151;
}
.public-error-action-secondary:hover {
    background: #f9fafb;
}

.site-footer-trust-logo {
    max-width: 50px;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.2s ease;
}
.group:hover .site-footer-trust-logo {
    filter: grayscale(0);
}

.site-secondary-outline-action {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-secondary, #2f855a);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-weight: 500;
    color: var(--color-secondary, #2f855a);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.site-secondary-outline-action:hover {
    background: var(--color-secondary, #2f855a);
    color: #fff;
}

.home-credibility-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.3s ease;
}
.home-credibility-card:hover {
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1);
}

@media (min-width: 1024px) {
    .home-credibility-card {
        padding: 2rem;
    }
}

/* Navigation Link Enhancements */
.footer .nav-link {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px !important;
}
.footer .nav-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #ff133e;
}
.footer .nav-link:hover {
    color: #fff !important;
    opacity: 1 !important;
    transform: translateX(5px);
}
.footer .nav-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Section Headers with Icons */
.footer h6 {
    position: relative;
    padding-bottom: 8px;
}
.footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ff133e, #ff133e);
    border-radius: 1px;
}

/* Buttons */
.footer .quick-actions .btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}
.footer .quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.footer .quick-actions .btn-success:hover {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
}
.footer .btn {
    position: relative;
    overflow: hidden;
}
.footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.footer .btn:hover::before {
    left: 100%;
}

/* Map Container Enhancement */
.footer .map-container iframe {
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8);
}
.footer .map-container:hover iframe {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: grayscale(0%) brightness(1);
}

@media (max-height: 500px) {
    #whatsappFloat {
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    #whatsappFloat {
        bottom: 85px;
        right: 15px;
    }

    #whatsappFloat a {
        width: 3.5rem;
        height: 3.5rem;
    }

    #whatsappFloat svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 576px) {
    #whatsappFloat {
        bottom: 80px;
        right: 15px;
    }
}

#whatsappFloat.new-visitor {
    animation: whatsappPulse 1.5s infinite;
}

.gallery-carousel-video {
    object-fit: cover;
    max-height: 300px;
}

.gallery-section-bg-default {
    background: whitesmoke;
}

.language-selector-menu {
    --tw-ring-color: rgb(0 0 0 / 0.05);
}

.language-flag-size-12 {
    font-size: 12px;
}

.language-flag-size-20 {
    font-size: 20px;
}

.language-flag-size-22 {
    font-size: 22px;
}

.language-flag-size-38 {
    font-size: 38px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}
