/**
 * liquid-glass-portfolio.css – Claymatics.net
 * Liquid glass cards · laptop/phone mockups · glow tabs · calculator
 * Overrides and extends net-style.css portfolio rules
 */

/* ═══════════════════════════════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════════════════════════════ */
.clm-works-section {
    padding: 6rem 0 7rem;
    background: var(--clm-navy);
    position: relative;
    overflow: hidden;
}
.clm-works-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
/* Ambient glow blobs behind the grid */
.clm-works-section::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,107,255,.07) 0%, transparent 65%);
    top: -200px; right: -200px;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS FILTER TABS
═══════════════════════════════════════════════════════════════ */
.lg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}
.lg-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1px solid rgba(30,107,255,0.22);
    background: rgba(30,107,255,0.06);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
/* Shimmer on hover */
.lg-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.lg-tab:hover::before { transform: translateX(100%); }

.lg-tab:hover {
    color: #fff;
    background: rgba(30,107,255,0.15);
    border-color: rgba(30,107,255,0.45);
    box-shadow:
        0 0 0 1px rgba(30,107,255,0.2),
        0 0 18px rgba(30,107,255,0.18),
        inset 0 1px 0 rgba(255,255,255,0.07);
    transform: translateY(-1px);
}
.lg-tab.active {
    background: var(--clm-blue);
    border-color: var(--clm-blue);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(30,107,255,0.5),
        0 0 20px rgba(30,107,255,0.45),
        0 0 40px rgba(30,107,255,0.18),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.lg-tab .tab-icon { font-size: 0.95rem; line-height: 1; }
.lg-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0 4px;
    transition: background 0.25s ease;
}
.lg-tab.active .tab-count { background: rgba(255,255,255,0.28); }

/* Archive page — tabs on white bg */
.clm-port-filter-bar .lg-tab {
    background: rgba(30,107,255,0.05);
    color: #333;
    border-color: rgba(30,107,255,0.18);
    backdrop-filter: none;
}
.clm-port-filter-bar .lg-tab:hover {
    background: rgba(30,107,255,0.1);
    color: var(--clm-blue);
    border-color: rgba(30,107,255,0.38);
}
.clm-port-filter-bar .lg-tab.active {
    background: var(--clm-blue);
    border-color: var(--clm-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO GRID
═══════════════════════════════════════════════════════════════ */
.lg-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS CARD
═══════════════════════════════════════════════════════════════ */
.lg-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30,107,255,0.2);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    will-change: transform;
}
.lg-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(30,107,255,0.55);
    box-shadow:
        0 0 0 1px rgba(30,107,255,0.3),
        0 0 30px rgba(30,107,255,0.18),
        0 0 60px rgba(30,107,255,0.08),
        0 20px 50px rgba(0,0,0,0.4);
}
/* Archive: white card */
.lg-card--white {
    background: #fff;
    border-color: rgba(30,107,255,0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.lg-card--white:hover {
    border-color: rgba(30,107,255,0.4);
    box-shadow:
        0 0 0 1px rgba(30,107,255,0.2),
        0 12px 40px rgba(30,107,255,0.1),
        0 20px 50px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   DEVICE MOCKUP – LAPTOP
═══════════════════════════════════════════════════════════════ */
.device-mockup {
    position: relative;
    padding: 20px 20px 0;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lg-card--white .device-mockup {
    background: #f0f4ff;
    border-bottom-color: rgba(30,107,255,0.08);
}

/* Laptop */
.mockup-laptop {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.mockup-laptop__screen {
    background: #0d1117;
    border-radius: 8px 8px 0 0;
    border: 2px solid rgba(255,255,255,0.12);
    border-bottom: none;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}
/* Notch / camera dot */
.mockup-laptop__screen::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    z-index: 2;
}
.mockup-laptop__screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.lg-card:hover .mockup-laptop__screen img { transform: scale(1.05); }
.mockup-laptop__base {
    height: 14px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-radius: 0 0 4px 4px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top: none;
    position: relative;
}
/* Trackpad */
.mockup-laptop__base::after {
    content: '';
    position: absolute;
    width: 30%; height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    bottom: 3px;
    left: 50%; transform: translateX(-50%);
}
/* Stand */
.mockup-laptop__stand {
    height: 6px;
    background: linear-gradient(to bottom, #111, #0a0a0a);
    width: 40%;
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
}

/* ── Phone Mockup ───────────────────────────────────────────── */
.mockup-phone-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0 0;
}
.mockup-phone {
    width: 110px;
    background: #111;
    border-radius: 22px;
    border: 2px solid rgba(255,255,255,0.14);
    padding: 10px 6px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Top speaker */
.mockup-phone::before {
    content: '';
    position: absolute;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}
/* Home indicator */
.mockup-phone::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.mockup-phone__screen {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    position: relative;
}
.mockup-phone__screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.lg-card:hover .mockup-phone__screen img { transform: scale(1.06); }

/* Screen shimmer overlay on hover */
.mockup-laptop__screen::after,
.mockup-phone__screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 1;
}
.lg-card:hover .mockup-laptop__screen::after,
.lg-card:hover .mockup-phone__screen::after { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   CARD BODY
═══════════════════════════════════════════════════════════════ */
.lg-card__body {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Category badges row */
.lg-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.lg-badge--web {
    background: rgba(24,194,156,0.15);
    border: 1px solid rgba(24,194,156,0.35);
    color: #18C29C;
    box-shadow: 0 0 6px rgba(24,194,156,0.2);
}
.lg-badge--app {
    background: rgba(108,92,231,0.15);
    border: 1px solid rgba(108,92,231,0.35);
    color: #a09af0;
    box-shadow: 0 0 6px rgba(108,92,231,0.2);
}
.lg-badge--ecom {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    color: #f59e0b;
}
.lg-badge--soft {
    background: rgba(30,107,255,0.12);
    border: 1px solid rgba(30,107,255,0.28);
    color: #7eb3ff;
}
.lg-badge--industry {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}
.lg-card--white .lg-badge--industry {
    background: rgba(var(--glow-blue-rgb),0.06);
    border-color: rgba(var(--glow-blue-rgb),0.12);
    color: #888;
}

/* Title */
.lg-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}
.lg-card__title a { color: inherit; text-decoration: none; }
.lg-card__title a:hover { color: var(--clm-teal); }
.lg-card--white .lg-card__title { color: var(--clm-navy); }
.lg-card--white .lg-card__title a:hover { color: var(--clm-blue); }

/* Description */
.lg-card__desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.6;
    margin: 0;
}
.lg-card--white .lg-card__desc { color: #666; }

/* Tech tags */
.lg-card__techs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.lg-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(30,107,255,0.1);
    border: 1px solid rgba(30,107,255,0.18);
    color: #7eb3ff;
}
.lg-card--white .lg-tech {
    background: rgba(30,107,255,0.07);
    border-color: rgba(30,107,255,0.14);
    color: var(--clm-blue);
}

/* Action buttons */
.lg-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.28s ease;
    flex: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}
/* Demo button – glass */
.lg-btn--demo {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8) !important;
    border: 1px solid rgba(255,255,255,0.12);
}
.lg-btn--demo:hover {
    background: rgba(24,194,156,0.12);
    color: #18C29C !important;
    border-color: rgba(24,194,156,0.3);
    box-shadow: 0 0 12px rgba(24,194,156,0.2);
    transform: translateY(-1px);
}
/* Quote button – teal glow */
.lg-btn--quote {
    background: linear-gradient(135deg, var(--clm-teal), #0fa87a);
    color: #fff !important;
    border: 1px solid rgba(24,194,156,0.4);
    box-shadow: 0 0 10px rgba(24,194,156,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.lg-btn--quote:hover {
    box-shadow: 0 0 20px rgba(24,194,156,0.55), 0 0 40px rgba(24,194,156,0.18),
                inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #fff !important;
}
.lg-btn--quote .btn-glow-ring {
    background: conic-gradient(from var(--angle,0deg), transparent 70%, rgba(24,194,156,.6) 85%, transparent 100%);
}
/* Archive: buttons on white bg */
.lg-card--white .lg-btn--demo {
    background: rgba(24,194,156,0.07);
    color: var(--clm-teal) !important;
    border-color: rgba(24,194,156,0.22);
}
.lg-card--white .lg-btn--demo:hover {
    background: var(--clm-teal);
    color: #fff !important;
}

/* Empty state */
.lg-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.95rem;
    grid-column: 1 / -1;
    display: none;
}
.lg-empty.visible { display: block; }

/* ═══════════════════════════════════════════════════════════════
   PROJECT COST CALCULATOR
═══════════════════════════════════════════════════════════════ */
.lg-calculator-section {
    padding: 5.5rem 0;
    background: rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}
.lg-calculator-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Glass box */
.lg-calc-box {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30,107,255,0.2);
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    position: relative;
    overflow: hidden;
}
.lg-calc-box::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24,194,156,0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* Slider group */
.lg-slider-group { margin-bottom: 1.6rem; }
.lg-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.lg-slider-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    font-family: 'DM Sans', sans-serif;
}
.lg-slider-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(30,107,255,0.15);
    border: 1px solid rgba(30,107,255,0.3);
    color: var(--clm-blue);
    min-width: 60px;
    text-align: center;
    transition: background 0.2s ease;
}

/* Custom range slider */
input[type="range"].lg-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    /* filled portion set via JS */
}
input[type="range"].lg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #1E6BFF, #0f4fd4);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(30,107,255,0.25), 0 0 14px rgba(30,107,255,0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
input[type="range"].lg-slider::-webkit-slider-thumb:hover,
input[type="range"].lg-slider:active::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(30,107,255,0.3), 0 0 22px rgba(30,107,255,0.7);
    transform: scale(1.15);
}
input[type="range"].lg-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #1E6BFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(30,107,255,0.5);
}
input[type="range"].lg-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
}

/* Tick labels under slider */
.lg-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}
.lg-slider-ticks span {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    font-family: 'JetBrains Mono', monospace;
}

/* Price result */
.lg-calc-result {
    background: rgba(30,107,255,0.08);
    border: 1px solid rgba(30,107,255,0.25);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    text-align: center;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}
.lg-calc-result::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,107,255,0.04), rgba(24,194,156,0.04));
    pointer-events: none;
}
.lg-result-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}
.lg-result-price {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(30,107,255,0.4);
}
.lg-result-price.pulse {
    animation: pricePulse 0.35s ease-out;
}
@keyframes pricePulse {
    0%  { transform: scale(1);    }
    50% { transform: scale(1.05); color: var(--clm-teal); text-shadow: 0 0 30px rgba(24,194,156,0.6); }
    100%{ transform: scale(1);    }
}
.lg-result-note {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.3);
    margin-top: 6px;
    font-family: 'DM Sans', sans-serif;
}

/* Complexity labels */
.lg-complexity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}
.lg-complexity-labels span {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .lg-portfolio-grid { grid-template-columns: repeat(3,1fr); gap: 20px; }
}
@media (max-width: 991px) {
    .lg-portfolio-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
    .lg-calc-box { padding: 1.8rem 1.4rem; }
}
@media (max-width: 767px) {
    .lg-tabs { gap: 6px; }
    .lg-tab  { padding: 8px 16px; font-size: 0.78rem; }
    .lg-result-price { font-size: 1.6rem; }
}
@media (max-width: 575px) {
    .lg-portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
    .lg-card__actions  { flex-direction: column; }
    .lg-btn            { flex: none; width: 100%; }
    .mockup-laptop     { max-width: 240px; }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES v2 – white card demo button · phone sizing · tab sm
═══════════════════════════════════════════════════════════════ */

/* Small tab variant */
.lg-tab--sm {
    padding: 6px 14px;
    font-size: 0.76rem;
}

/* Demo button on white cards – was invisible (white text on white) */
.lg-card--white .lg-btn--demo {
    background: rgba(24,194,156,0.08) !important;
    color: #0e8a6d !important;
    border: 1px solid rgba(24,194,156,0.3) !important;
    font-weight: 600;
}
.lg-card--white .lg-btn--demo:hover {
    background: var(--clm-teal) !important;
    color: #fff !important;
    border-color: var(--clm-teal) !important;
    box-shadow: 0 0 14px rgba(24,194,156,0.4) !important;
}

/* Quote button on white cards */
.lg-card--white .lg-btn--quote {
    background: linear-gradient(135deg, var(--clm-blue), #0f4fd4) !important;
    border-color: rgba(30,107,255,0.4) !important;
    box-shadow: 0 0 10px rgba(30,107,255,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
.lg-card--white .lg-btn--quote:hover {
    box-shadow: 0 0 20px rgba(30,107,255,0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Phone mockup — correct image aspect for portrait screens */
.mockup-phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
/* Laptop screen — landscape crop */
.mockup-laptop__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Phone wrap needs padding bottom so stand shows */
.mockup-phone-wrap {
    padding-bottom: 18px;
}

/* Device mockup on white card */
.lg-card--white .device-mockup {
    background: #f0f4ff;
    border-bottom: 1px solid rgba(30,107,255,0.07);
}

/* Ensure grid-column span works for empty state */
.lg-portfolio-grid .lg-empty,
.lg-portfolio-grid > [style*="grid-column"] {
    grid-column: 1 / -1;
}

/* lg-card__body gap on white card */
.lg-card--white .lg-card__body {
    background: #fff;
}

/* Portfolio page filter bar — text contrast fix */
.clm-port-filter-bar .lg-tab {
    color: #2d3748;
}
.clm-port-filter-bar .lg-tab.active {
    color: #fff;
}

/* Load more button on light bg */
#loadMoreWrap .clm-btn--ghost {
    border-color: rgba(30,107,255,0.25);
    color: var(--clm-blue);
}
#loadMoreWrap .clm-btn--ghost:hover {
    background: rgba(30,107,255,0.06);
    border-color: rgba(30,107,255,0.45);
}

/* ═══════════════════════════════════════════════════════════════
   HARD OVERRIDES v3 – guarantee visibility in all contexts
   High-specificity rules to beat any Bootstrap/theme conflicts
═══════════════════════════════════════════════════════════════ */

/* ── Demo button: dark cards (homepage) ── */
.clm-works-section .lg-btn.lg-btn--demo,
.lg-portfolio-grid .lg-card:not(.lg-card--white) .lg-btn.lg-btn--demo {
    display: inline-flex !important;
    visibility: visible !important;
    background: rgba(255,255,255,0.09) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    opacity: 1 !important;
}
.clm-works-section .lg-btn.lg-btn--demo:hover,
.lg-portfolio-grid .lg-card:not(.lg-card--white) .lg-btn.lg-btn--demo:hover {
    background: rgba(24,194,156,0.18) !important;
    color: #18C29C !important;
    border-color: rgba(24,194,156,0.45) !important;
    box-shadow: 0 0 14px rgba(24,194,156,0.3) !important;
}

/* ── Demo button: white cards (portfolio page) ── */
.lg-card.lg-card--white .lg-btn.lg-btn--demo {
    display: inline-flex !important;
    visibility: visible !important;
    background: rgba(24,194,156,0.09) !important;
    color: #0e7a5e !important;
    border: 1px solid rgba(24,194,156,0.28) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}
.lg-card.lg-card--white .lg-btn.lg-btn--demo:hover {
    background: var(--clm-teal, #18C29C) !important;
    color: #fff !important;
    border-color: var(--clm-teal, #18C29C) !important;
}

/* ── Quote button universal ── */
.lg-btn.lg-btn--quote {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Phone mockup: ensure portrait image fills correctly ── */
.mockup-phone {
    width: 110px;
    flex-shrink: 0;
}
.mockup-phone__screen {
    aspect-ratio: 9 / 17;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.mockup-phone__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ── Laptop screen: ensure image fills ── */
.mockup-laptop__screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 6px 6px 0 0;
}
.mockup-laptop__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ── card body: ensure white bg on archive cards ── */
.lg-card.lg-card--white {
    background: #fff !important;
}
.lg-card.lg-card--white .device-mockup {
    background: #eef2ff !important;
}
.lg-card.lg-card--white .lg-card__body {
    background: #fff !important;
}

/* ── Grid: ensure 3 cols on desktop ── */
#lgPortGrid.lg-portfolio-grid,
#lgWorksGrid.lg-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 991px) {
    #lgPortGrid.lg-portfolio-grid,
    #lgWorksGrid.lg-portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 575px) {
    #lgPortGrid.lg-portfolio-grid,
    #lgWorksGrid.lg-portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── card title color override ── */
.lg-card.lg-card--white .lg-card__title,
.lg-card.lg-card--white .lg-card__title a {
    color: #0B1F3B !important;
}
.lg-card.lg-card--white .lg-card__desc {
    color: #555 !important;
}
