/* ================================================================
   INTERLIK SOLUTIONS — PRODUCTS CSS  (products.css)
   Shared styles for BuildComply SA & CareDesk SA across all pages.
   Link this file in: Index.html, about.html, services.html
================================================================ */

/* ── CSS variable aliases (mirror styles.css tokens) ── */
/* --bg, --surface, --card, --border, --text, --muted, --white,
   --accent (#00c8a0), --accent2 (#3b82f6) are already in styles.css */


/* ================================================================
   1.  INDEX PAGE — Products Teaser Section (#products-teaser)
================================================================ */

#products-teaser {
    padding: 6rem 5%;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.products-teaser-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}

.products-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Product teaser card ── */
.pt-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.pt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.pt-card:first-child::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.pt-card:last-child::before {
    background: linear-gradient(90deg, var(--accent2), transparent);
}

.pt-card:hover {
    transform: translateY(-5px);
}

.pt-card:first-child:hover {
    border-color: rgba(0, 200, 160, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.pt-card:last-child:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.pt-card:hover::before {
    transform: scaleX(1);
}

/* Card top row */
.pt-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin: -0.4rem -0.6rem 0;
}

.pt-card-top--teal {
    background: linear-gradient(135deg, rgba(0, 200, 160, 0.07), transparent);
}

.pt-card-top--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), transparent);
}

.pt-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.pt-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.pt-sector {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
    font-weight: 300;
}

/* In-dev badge */
.pt-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.25);
    color: #fb923c;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.pt-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fb923c;
    animation: ptPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ptPulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* Description */
.pt-desc {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    flex: 1;
}

/* Stats row */
.pt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.pt-stat {
    text-align: center;
}

.pt-stat-val {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pt-card:first-child .pt-stat-val {
    color: var(--accent);
}

.pt-card:last-child .pt-stat-val {
    color: var(--accent2);
}

.pt-stat-lbl {
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1.3;
}

/* Link */
.pt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
}

.pt-link--blue {
    color: var(--accent2);
}

.pt-link:hover {
    gap: 0.7rem;
}


/* ================================================================
   2.  ABOUT PAGE — Industry tag product variants
================================================================ */

.industry-tag--product {
    border-color: rgba(0, 200, 160, 0.2);
    background: rgba(0, 200, 160, 0.04);
}

.dot--teal {
    background: var(--accent) !important;
    box-shadow: 0 0 5px var(--accent);
}

.dot--blue {
    background: var(--accent2) !important;
    box-shadow: 0 0 5px var(--accent2);
}

.tag-product-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    background: rgba(0, 200, 160, 0.1);
    border: 1px solid rgba(0, 200, 160, 0.2);
    color: var(--accent);
}

.tag-product-badge--blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent2);
}

/* ── About Products section (#about-products) ── */
#about-products {
    padding: 6rem 5%;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.about-products-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-products-text .section-desc {
    margin-bottom: 2rem;
}

/* Product list items */
.about-product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-product-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.about-product-item:first-child:hover {
    border-color: rgba(0, 200, 160, 0.25);
}

.about-product-item:last-child:hover {
    border-color: rgba(59, 130, 246, 0.25);
}

.about-product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-product-icon--teal {
    background: rgba(0, 200, 160, 0.1);
    border: 1px solid rgba(0, 200, 160, 0.2);
}

.about-product-icon--blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.about-product-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.about-product-desc {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.55;
}

/* Right: mini product cards */
.about-products-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-pc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    position: relative;
    overflow: hidden;
}

.about-pc::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.about-pc--teal::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.about-pc--blue::after {
    background: linear-gradient(90deg, var(--accent2), transparent);
}

.about-pc-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.about-pc-icon {
    font-size: 1.4rem;
}

.about-pc-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
}

.about-pc-tag {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 300;
}

.about-pc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.about-pc-metric {
    font-size: 0.76rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.about-pc-metric span {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.about-pc--teal .about-pc-metric span {
    color: var(--accent);
}

.about-pc--blue .about-pc-metric span {
    color: var(--accent2);
}


/* ================================================================
   3.  SERVICES PAGE — Products callout (.services-products-callout)
================================================================ */

.services-products-callout {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 5rem 5%;
}

.spc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.spc-text .section-desc {
    margin-bottom: 0;
    max-width: 460px;
}

.spc-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spc-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.spc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.25s;
}

.spc-card--teal::before {
    background: var(--accent);
}

.spc-card--blue::before {
    background: var(--accent2);
}

.spc-card:hover {
    transform: translateX(5px);
}

.spc-card--teal:hover {
    border-color: rgba(0, 200, 160, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.spc-card--blue:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.spc-card:hover::before {
    transform: scaleY(1);
}

.spc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.spc-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.15rem;
}

.spc-desc {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
}

.spc-arrow {
    margin-left: auto;
    flex-shrink: 0;
    stroke: var(--muted);
    transition: stroke 0.2s, transform 0.2s;
}

.spc-card--teal:hover .spc-arrow {
    stroke: var(--accent);
    transform: translateX(3px);
}

.spc-card--blue:hover .spc-arrow {
    stroke: var(--accent2);
    transform: translateX(3px);
}


/* ================================================================
   4.  RESPONSIVE
================================================================ */

@media (max-width: 1024px) {
    .products-teaser-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-products-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .spc-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .products-teaser-grid {
        grid-template-columns: 1fr;
    }

    .about-products-inner {
        grid-template-columns: 1fr;
    }

    .pt-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-pc-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pt-card-top {
        flex-wrap: wrap;
    }

    .pt-badge {
        margin-left: 0;
    }

    .pt-stats {
        grid-template-columns: 1fr;
    }
}