/* ==========================================================================
   EF Aqua - References Page & Showcase Styles
   ========================================================================== */

:root {
    --ef-ref-primary: #00685f;
    --ef-ref-primary-dark: #004d47;
    --ef-ref-accent: #f7c600;
    --ef-ref-accent-hover: #e0b400;
    --ef-ref-dark: #0f172a;
    --ef-ref-text: #334155;
    --ef-ref-muted: #64748b;
    --ef-ref-bg-light: #f8fafc;
    --ef-ref-card-border: #e2e8f0;
    --ef-ref-radius: 20px;
    --ef-ref-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --ef-ref-shadow-hover: 0 20px 40px -12px rgba(0, 104, 95, 0.16);
}

/* --------------------------------------------------------------------------
   Subpage Hero Styling
   -------------------------------------------------------------------------- */
.ef-ref-subpage-hero {
    position: relative;
    background: linear-gradient(135deg, #0b2320 0%, #004d47 100%);
    color: #ffffff;
    padding: 130px 0 70px;
    overflow: hidden;
}

.ef-ref-subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 198, 0, 0.12) 0%, rgba(0, 104, 95, 0) 70%);
    pointer-events: none;
}

.ef-ref-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 198, 0, 0.15);
    color: #f7c600;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(247, 198, 0, 0.3);
    margin-bottom: 18px;
}

.ef-ref-hero-title {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 18px;
}

.ef-ref-hero-title em {
    font-style: normal;
    color: #f7c600;
    background: linear-gradient(120deg, #f7c600, #ffe785);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ef-ref-hero-desc {
    font-size: 16.5px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin-bottom: 24px;
}

.ef-ref-subpage-hero .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.ef-ref-subpage-hero .breadcrumb-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ef-ref-subpage-hero .breadcrumb-nav a:hover {
    color: #f7c600;
}

.ef-ref-subpage-hero .breadcrumb-nav .sep {
    color: rgba(255, 255, 255, 0.4);
}

.ef-ref-hero-stat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 36px;
    text-align: left;
}

.ef-ref-hero-stat strong {
    display: block;
    font-size: 54px;
    font-weight: 900;
    color: #f7c600;
    line-height: 1;
    margin-bottom: 6px;
}

.ef-ref-hero-stat span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.ef-ref-hero-stat small {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   Filter Tabs
   -------------------------------------------------------------------------- */
.ef-ref-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 60px;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e2e8f0;
}

.ef-ref-filter-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ef-ref-filter-btn .badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ef-ref-filter-btn:hover {
    color: var(--ef-ref-primary);
    background: rgba(255, 255, 255, 0.6);
}

.ef-ref-filter-btn.active {
    background: var(--ef-ref-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 104, 95, 0.28);
}

.ef-ref-filter-btn.active .badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Reference Cards (Catalog & Grid)
   -------------------------------------------------------------------------- */
.ef-ref-single-card {
    background: #ffffff;
    border: 1px solid var(--ef-ref-card-border);
    border-radius: var(--ef-ref-radius);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--ef-ref-shadow-sm);
    position: relative;
    overflow: hidden;
}

.ef-ref-single-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ef-ref-primary), #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ef-ref-single-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 104, 95, 0.35);
    box-shadow: var(--ef-ref-shadow-hover);
}

.ef-ref-single-card:hover::before {
    opacity: 1;
}

.ef-ref-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.ef-ref-logo-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-width: 130px;
    transition: background-color 0.3s ease;
}

.ef-ref-single-card:hover .ef-ref-logo-container {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ef-ref-img-logo {
    max-height: 38px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ef-ref-single-card:hover .ef-ref-img-logo {
    transform: scale(1.05);
}

.ef-ref-text-logo {
    font-weight: 800;
    font-size: 15px;
    color: var(--ef-ref-dark);
}

.ef-ref-cat-pill {
    background: rgba(0, 104, 95, 0.08);
    color: var(--ef-ref-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid rgba(0, 104, 95, 0.16);
}

.ef-ref-card-main {
    flex-grow: 1;
    margin-bottom: 20px;
}

.ef-ref-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--ef-ref-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ef-ref-solution-highlight {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.ef-ref-solution-highlight i {
    color: #16a34a;
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
}

.ef-ref-solution-highlight small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ef-ref-solution-highlight strong {
    display: block;
    font-size: 13.5px;
    color: #14532d;
    font-weight: 700;
}

.ef-ref-description {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ef-ref-text);
    margin-bottom: 0;
}

.ef-ref-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.ef-ref-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #059669;
}

.ef-ref-status-badge i {
    font-size: 16px;
}

.ef-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ef-ref-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ef-ref-link:hover {
    color: var(--ef-ref-primary-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Trust Callout Box
   -------------------------------------------------------------------------- */
.ef-ref-trust-callout {
    background: linear-gradient(135deg, #022c28 0%, #004d47 100%);
    border-radius: 24px;
    padding: 44px 48px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 104, 95, 0.16);
    position: relative;
    overflow: hidden;
}

.ef-ref-trust-callout::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(247, 198, 0, 0.15) 0%, rgba(247, 198, 0, 0) 70%);
    pointer-events: none;
}

.ef-ref-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(247, 198, 0, 0.2);
    color: #f7c600;
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

.ef-ref-callout-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.ef-ref-callout-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 680px;
}

.ef-ref-callout-btn {
    border-radius: 50px;
    padding: 14px 28px;
}

@media (max-width: 991px) {
    .ef-ref-trust-callout {
        padding: 32px 24px;
        text-align: left;
    }
}
