/* =========================================================
   DESIGN-SYSTEM.CSS
   Shared visual system loaded after page stylesheets
========================================================= */

:root {
    --surface: #ffffff;
    --surface-soft: #f5faf7;
    --ink: #14271f;
    --muted: #5f7068;
    --brand: #147a50;
    --brand-dark: #0a4f35;
    --accent: #c99539;
    --line: rgba(20, 39, 31, 0.12);
    --shadow: 0 16px 42px rgba(16, 57, 38, 0.10);
    --radius: 18px;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-padding-top: 104px;
}

body {
    color: var(--ink);
    background: var(--surface);
}

.header,
.header.scrolled {
    position: fixed !important;
}

section {
    position: relative;
}

section > .container,
section > .hero-container,
section > .category-hero-content {
    position: relative;
    z-index: 1;
}

section:not(.hero):not(.about-hero):not(.products-hero-header):not(.contact-hero):not(.category-hero) {
    padding-block: clamp(4.5rem, 7vw, 7rem);
}


/* =========================================================
   FLOATING BOTANICAL ACCENTS
========================================================= */

.floating-accent {
    position: absolute;
    width: clamp(70px, 10vw, 150px);
    aspect-ratio: 1;
    border: 1px solid rgba(20, 122, 80, 0.13);
    border-radius: 48% 52% 43% 57% / 57% 45% 55% 43%;
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.88),
        rgba(113, 204, 147, 0.17) 46%,
        rgba(20, 122, 80, 0.04) 70%
    );
    box-shadow:
        inset 8px 10px 24px rgba(255, 255, 255, 0.5),
        0 18px 44px rgba(20, 122, 80, 0.10);
    pointer-events: none;
    z-index: 0;
    animation: botanical-float 8s ease-in-out infinite;
}

.floating-accent::after {
    content: "";
    position: absolute;
    inset: 22%;
    border: 1px solid rgba(201, 149, 57, 0.22);
    border-radius: inherit;
    transform: rotate(28deg);
}

.floating-accent--left {
    top: 14%;
    left: -3.5rem;
}

.floating-accent--right {
    right: -3.5rem;
    bottom: 12%;
    animation-delay: -3s;
    animation-direction: reverse;
}

@keyframes botanical-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -18px, 0) rotate(8deg);
    }
}


/* =========================================================
   FLOATING ACTIONS / BACK TO TOP
========================================================= */

.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: grid;
    gap: 12px;
}

.floating-action {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 28px rgba(10, 79, 53, 0.28);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease;
}

.floating-action:hover {
    transform: translateY(-4px) scale(1.05);
    color: #fff;
    box-shadow: 0 17px 34px rgba(10, 79, 53, 0.35);
}

.floating-action--whatsapp {
    background: #25d366;
}

.floating-action--top {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.floating-action--top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-action svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}


/* =========================================================
   APP SCANNER TRIGGER
========================================================= */

.app-scanner-trigger {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 1200;
    width: 75px;
    height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.app-scanner-trigger__icon {
    width: 113px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.25s ease;
}

.app-scanner-trigger__icon img {
    width: 113px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28));
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.app-scanner-trigger:hover .app-scanner-trigger__icon {
    transform: scale(1.08);
}

.app-scanner-trigger:hover .app-scanner-trigger__icon img {
    transform: rotate(-1deg) scale(1.08);
    filter: drop-shadow(0 10px 16px rgba(255, 254, 254, 0.32));
}

.app-scanner-trigger__label {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.app-scanner-trigger:hover .app-scanner-trigger__label {
    transform: translateY(2px);
}


/* =========================================================
   APP SCANNER POPUP
========================================================= */

.app-scanner {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(20, 122, 80, 0.18);
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(10, 79, 53, 0.18);
    backdrop-filter: blur(12px);
    transform: translateY(-50%) translateX(30px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.app-scanner.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.app-scanner__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-dark);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.app-scanner__close:hover {
    transform: scale(1.1);
    background: var(--brand);
}

.app-scanner__code {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.app-scanner__label,
.app-scanner__text,
.app-scanner__hint {
    display: block;
}

.app-scanner__label {
    color: var(--brand);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-scanner__text {
    margin-top: 3px;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.3;
}

.app-scanner__hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}


/* =========================================================
   HOME - TRUST
========================================================= */

.trust {
    isolation: isolate;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(88, 180, 122, 0.15),
            transparent 25rem
        ),
        radial-gradient(
            circle at 94% 84%,
            rgba(201, 149, 57, 0.12),
            transparent 22rem
        ),
        linear-gradient(
            135deg,
            #f8fcf8 0%,
            #edf7f0 48%,
            #f9f6ed 100%
        );
}

.trust::before,
.trust::after {
    z-index: -1;
    opacity: 0.42;
}

.trust .section-title {
    margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.trust .section-title span {
    display: inline-block;
    color: var(--brand);
    letter-spacing: 0.14em;
}

.trust .section-title span::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin: 0.65rem auto 0;
    border-radius: 999px;
    background: var(--accent);
}

.trust .section-title h2 {
    max-width: 680px;
    margin-inline: auto;
}

.trust .section-title p {
    max-width: 625px;
    margin-inline: auto;
    color: var(--muted);
}

.trust-grid {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.trust-card {
    min-height: 100%;
    padding: 2.35rem 1.5rem 2rem;
    border: 1px solid rgba(20, 122, 80, 0.13);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 7px 24px rgba(16, 57, 38, 0.06);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.trust-card:nth-child(even) {
    border-top-color: var(--accent);
}

.trust-card::before {
    background: linear-gradient(
        105deg,
        transparent,
        rgba(255, 255, 255, 0.65),
        transparent
    );
}

.trust-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.trust-card h3 {
    color: var(--ink);
    font-size: 1.08rem;
}

.trust-card p {
    color: var(--muted);
    font-size: 0.91rem;
}

.trust-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(20, 122, 80, 0.14);
    background: linear-gradient(
        135deg,
        #fff,
        rgba(223, 243, 229, 0.9)
    );
}

.trust-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}


/* =========================================================
   HOME - ABOUT PREVIEW
========================================================= */

.about-preview {
    min-height: auto;
    padding-block: clamp(5rem, 9vw, 8rem) !important;
    isolation: isolate;
    margin-top: -1px;
    border: 0 !important;
    background-position: center right !important;
}

.about-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(237, 247, 240, 0.98) 0%,
        rgba(244, 249, 241, 0.92) 44%,
        rgba(244, 249, 241, 0.42) 72%,
        rgba(244, 249, 241, 0.13) 100%
    );
}

.about-preview::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(5rem, 10vw, 9rem);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        #edf7f0 0%,
        rgba(237, 247, 240, 0.74) 38%,
        rgba(237, 247, 240, 0) 100%
    );
}

.about-preview .container {
    width: min(90%, 1400px);
}

.about-content {
    max-width: 610px;
    padding: clamp(1.75rem, 3vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 50px rgba(17, 67, 42, 0.11);
    backdrop-filter: blur(7px);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.about-content:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 122, 80, 0.34);
    box-shadow:
        0 24px 55px rgba(20, 122, 80, 0.22),
        0 0 0 5px rgba(81, 177, 111, 0.08);
}

.about-content .section-tag {
    color: var(--brand);
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.about-content h2 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.45rem);
    letter-spacing: -0.045em;
    margin-bottom: 1.3rem;
}

.about-content > p {
    color: var(--muted);
    font-size: 1rem;
}

.about-features {
    margin: 1.9rem 0;
    display: grid;
    gap: 0.7rem;
}

.feature {
    gap: 0.8rem;
    margin: 0;
}

.feature span {
    width: 30px;
    height: 30px;
    background: var(--brand);
    box-shadow: 0 6px 14px rgba(20, 122, 80, 0.22);
}

.feature p {
    color: var(--ink);
    font-size: 0.92rem;
}

.about-btn {
    padding: 0.85rem 1.5rem;
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(20, 122, 80, 0.18);
}

.about-btn:hover {
    background: var(--brand-dark);
    box-shadow: 0 15px 30px rgba(20, 122, 80, 0.24);
}


/* =========================================================
   SHARED CARDS
========================================================= */

.category-card,
.contact-card,
.product-detail-card,
.mvq-card,
.business-card,
.hub-location-card,
.global-hub-card {
    border-radius: var(--radius);
    box-shadow: 0 7px 24px rgba(16, 57, 38, 0.06);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.category-card:hover,
.contact-card:hover,
.product-detail-card:hover,
.mvq-card:hover,
.business-card:hover,
.hub-location-card:hover,
.global-hub-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}


/* =========================================================
   SHARED BUTTONS
========================================================= */

.btn-primary,
.btn-secondary,
.about-btn,
.nav-shop-btn,
.explore-products-btn,
.shop-btn,
.footer-cta-btn {
    border-radius: 999px;
    letter-spacing: 0.01em;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.about-btn:hover,
.nav-shop-btn:hover,
.explore-products-btn:hover,
.footer-cta-btn:hover {
    transform: translateY(-3px);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #f2c66d;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    section:not(.hero):not(.about-hero):not(.products-hero-header):not(.contact-hero):not(.category-hero) {
        padding-block: 3.75rem;
    }

    .trust-card,
    .category-card,
    .contact-card,
    .product-detail-card,
    .mvq-card,
    .business-card {
        border-radius: 14px;
    }

    .floating-accent {
        width: 76px;
        opacity: 0.68;
    }

    .floating-accent--left {
        left: -38px;
    }

    .floating-accent--right {
        right: -38px;
    }

    .floating-actions {
        right: 16px;
        bottom: 16px;
        gap: 9px;
    }

    .floating-action {
        width: 46px;
        height: 46px;
    }

    .app-scanner {
        top: 50%;
        right: 16px;
        max-width: none;
        padding: 8px;
        border-radius: 14px;
    }

    .app-scanner__code {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .app-scanner__content {
        display: none;
    }

    .app-scanner-trigger {
        right: 16px;
        width: 65px;
        height: 78px;
    }

    .app-scanner-trigger__icon,
    .app-scanner-trigger__icon img {
        width: 50px;
        height: 50px;
    }

    .about-preview {
        background-position: 63% center !important;
    }

    .about-preview::before {
        background: rgba(240, 248, 242, 0.88);
    }

    .about-content {
        padding: 1.55rem;
        background: rgba(255, 255, 255, 0.78);
    }

    .app-scanner-trigger__label {
        font-size: 10px;
    }
}
