/**
 * Glassmorphism cards — proof testimonials & logistics hubs
 */

.ag-proof-section,
.ag-depot-finder-section {
    position: relative !important;
    overflow: hidden !important;
    contain: paint !important;
    isolation: isolate !important;
}

.ag-proof-section {
    background: linear-gradient(155deg, #e8eee5 0%, #eef4ef 42%, #e2ebe4 100%) !important;
}

.ag-proof-section::before,
.ag-proof-section::after,
.ag-depot-finder-section::before,
.ag-depot-finder-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ag-proof-section::before {
    width: 380px;
    height: 380px;
    top: 0;
    right: 0;
    background: radial-gradient(circle, rgba(200, 239, 80, 0.16), transparent 70%);
}

.ag-proof-section::after {
    width: 320px;
    height: 320px;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle, rgba(31, 111, 91, 0.10), transparent 70%);
}

.ag-depot-finder-section {
    background: linear-gradient(180deg, #f7faf8 0%, #eef3f0 55%, #e8efeb 100%) !important;
}

.ag-depot-finder-section::before {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 68%);
}

.ag-depot-finder-section::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -90px;
    background: radial-gradient(circle, rgba(200, 239, 80, 0.16), transparent 70%);
}

.ag-proof-section > .ag-container,
.ag-depot-finder-section > .ag-container {
    position: relative;
    z-index: 1;
}

/* Shared glass card base */
.tolo-glass-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px !important;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.35s ease;
    will-change: transform;
}

.tolo-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.04) 42%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.tolo-glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 45%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(18deg) translateX(-120%);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 2;
}

.tolo-glass-card:hover {
    transform: translateY(-12px) scale(1.012);
}

.tolo-glass-card:hover::before {
    opacity: 1;
}

.tolo-glass-card:hover::after {
    transform: rotate(18deg) translateX(320%);
}

.tolo-glass-card > * {
    position: relative;
    z-index: 1;
}

/* Proof cards */
.ag-proof-grid {
    gap: 22px !important;
}

.ag-proof-card.tolo-glass-card {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    box-shadow:
        0 10px 36px rgba(15, 47, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ag-proof-card.tolo-glass-card:hover {
    border-color: rgba(200, 239, 80, 0.42) !important;
    box-shadow:
        0 28px 56px rgba(15, 47, 39, 0.14),
        0 0 0 1px rgba(200, 239, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ag-proof-card.tolo-glass-card .ag-proof-quote {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.ag-proof-card.tolo-glass-card:hover .ag-proof-quote {
    transform: scale(1.06) translateY(-2px);
}

.ag-proof-card.tolo-glass-card p {
    color: #0f2a22 !important;
}

.ag-proof-card.tolo-glass-card div {
    border-top-color: rgba(15, 47, 39, 0.1) !important;
}

.ag-proof-card.tolo-glass-card div span {
    color: #5c6b64 !important;
}

.ag-proof-card-featured.tolo-glass-card {
    background: rgba(15, 47, 39, 0.78) !important;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    border: 1px solid rgba(200, 239, 80, 0.28) !important;
    box-shadow:
        0 16px 44px rgba(15, 47, 39, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ag-proof-card-featured.tolo-glass-card::before {
    background: linear-gradient(145deg, rgba(200, 239, 80, 0.12) 0%, transparent 55%);
}

.ag-proof-card-featured.tolo-glass-card:hover {
    border-color: rgba(200, 239, 80, 0.55) !important;
    box-shadow:
        0 32px 64px rgba(15, 47, 39, 0.38),
        0 0 24px rgba(200, 239, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ag-proof-card-featured.tolo-glass-card p {
    color: #ffffff !important;
}

.ag-proof-card-featured.tolo-glass-card div {
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.ag-proof-card-featured.tolo-glass-card div span {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Depot / logistics hub cards */
.ag-depots-grid {
    gap: 24px !important;
}

.ag-depot-card.tolo-glass-card {
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow:
        0 10px 36px rgba(15, 47, 39, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    padding: 18px !important;
}

.ag-depot-card.tolo-glass-card:hover {
    border-color: rgba(31, 111, 91, 0.35) !important;
    box-shadow:
        0 26px 52px rgba(15, 47, 39, 0.13),
        0 0 0 1px rgba(31, 111, 91, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ag-depot-card.tolo-glass-card .ag-depot-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(15, 47, 39, 0.1);
}

.ag-depot-card.tolo-glass-card .ag-depot-thumb {
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-depot-card.tolo-glass-card:hover .ag-depot-thumb {
    transform: scale(1.07);
}

.ag-depot-card.tolo-glass-card h3 {
    color: #0a241e !important;
    transition: color 0.3s ease;
}

.ag-depot-card.tolo-glass-card:hover h3 {
    color: #1f6f5b !important;
}

.ag-depot-card.tolo-glass-card .ag-depot-type {
    color: #1f6f5b !important;
}

.ag-depot-card.tolo-glass-card .ag-depot-specs {
    color: #5c6b64 !important;
}

.ag-depot-card.tolo-glass-card .ag-depot-contact {
    border-top-color: rgba(15, 47, 39, 0.1) !important;
}

.ag-depot-card.tolo-glass-card .ag-depot-contact a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.ag-depot-card.tolo-glass-card:hover .ag-depot-contact a {
    color: #1f4d3d !important;
}

/* Dark mode */
html[data-theme="dark"] .ag-proof-section {
    background: linear-gradient(155deg, #0b1411 0%, #101a16 45%, #0d1612 100%) !important;
}

html[data-theme="dark"] .ag-depot-finder-section {
    background: linear-gradient(180deg, #0b1411 0%, #101916 100%) !important;
}

html[data-theme="dark"] .ag-proof-card.tolo-glass-card,
html[data-theme="dark"] .ag-depot-card.tolo-glass-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .ag-proof-card.tolo-glass-card::before,
html[data-theme="dark"] .ag-depot-card.tolo-glass-card::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

html[data-theme="dark"] .ag-proof-card.tolo-glass-card p {
    color: #e8f0ec !important;
}

html[data-theme="dark"] .ag-proof-card.tolo-glass-card div span {
    color: #9eb0a8 !important;
}

html[data-theme="dark"] .ag-proof-card-featured.tolo-glass-card {
    background: rgba(15, 47, 39, 0.82) !important;
    border-color: rgba(200, 239, 80, 0.32) !important;
}

html[data-theme="dark"] .ag-depot-card.tolo-glass-card h3 {
    color: #f4faf7 !important;
}

html[data-theme="dark"] .ag-depot-card.tolo-glass-card .ag-depot-specs,
html[data-theme="dark"] .ag-depot-card.tolo-glass-card .ag-depot-contact p {
    color: #9eb0a8 !important;
}

html[data-theme="dark"] .ag-depot-card.tolo-glass-card .ag-depot-type {
    color: #c8ef50 !important;
}

html[data-theme="dark"] .ag-depot-card.tolo-glass-card .ag-depot-contact a {
    color: #7dd3b0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .tolo-glass-card,
    .tolo-glass-card::after,
    .tolo-glass-card .ag-depot-thumb,
    .tolo-glass-card .ag-proof-quote {
        transition: none !important;
    }

    .tolo-glass-card:hover {
        transform: none;
    }

    .tolo-glass-card:hover::after {
        transform: rotate(18deg) translateX(-120%);
    }

    .ag-depot-card.tolo-glass-card:hover .ag-depot-thumb {
        transform: none;
    }
}

@media (max-width: 900px) {
    .tolo-glass-card:hover {
        transform: translateY(-6px);
    }
}
