/* ============================================================
   FEATURES AT A GLANCE (.fg-*) — product detail page
   Loaded ONLY via product.blade.php @section('css'), so these rules
   can't leak to other pages. Card system matches the site's calm-card
   family (.hiw-step / .prm-card): white card, hairline #f0f1f3 border,
   18px radius, soft layered shadow, flat amber-tint icon chip, and a
   colour-only hover (no lift — site hover policy keeps lifts for
   image-grid cards only).
   ============================================================ */

/* Compound selector + !important beats the global .site-section{padding:20px!important} */
.site-section.features-glance-section {
    padding-top: 26px !important;
    padding-bottom: 34px !important;
    background: var(--white, #fff);
}

.features-glance-section .section-header { margin-bottom: 38px; }

.fg-sub {
    max-width: 620px;
    margin: 16px auto 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--Dgray, #666);
}

/* ── Grid ── */
.fg-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fg;
}

/* ── Card ── */
.fg-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;                       /* beats the global li{margin:inherit} reset */
    padding: 24px 22px;
    background: var(--white, #fff);
    border: 1px solid #f0f1f3;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(44, 62, 80, .04), 0 10px 26px -10px rgba(44, 62, 80, .12);
    transition: border-color .28s ease, box-shadow .28s ease;
}

.fg-item:hover {
    border-color: rgba(232, 154, 14, .38);
    box-shadow: 0 1px 3px rgba(44, 62, 80, .04), 0 12px 30px -12px rgba(232, 154, 14, .3);
}

/* ── Icon chip — flat amber tint (matches .quote-head__badge on this page) ── */
.fg-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(232, 154, 14, .1);
    box-shadow: inset 0 0 0 1px rgba(232, 154, 14, .2);
    color: var(--secondary, #E89A0E);
    font-size: 19px;
    transition: background .28s ease, color .28s ease, box-shadow .28s ease;
}

.fg-icon i { transition: transform .35s cubic-bezier(.22, .68, 0, 1.2); }

/* dark-on-amber on hover = WCAG-safe, same as the rest of the system */
.fg-item:hover .fg-icon {
    background: linear-gradient(135deg, var(--secondary, #E89A0E), #f4b743);
    box-shadow: none;
    color: #16181d;
}
.fg-item:hover .fg-icon i { transform: scale(1.14); }

/* ── Copy ── */
.fg-content { min-width: 0; }        /* long words can't force overflow */

.fg-content .fg-title {
    margin: 2px 0 6px;
    padding-right: 26px;             /* clear of the corner index */
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--steel-blue, #2C3E50);
}

.fg-content .fg-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--Dgray, #666);
}

/* ── Corner index — keeps the <ol> ordinal without competing with the icon ── */
.fg-node {
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--Lgray, #b3b3b3);
    transition: color .28s ease;
}
.fg-item:hover .fg-node { color: var(--secondary, #E89A0E); }

/* ── Staggered reveal — .fg-anim is only added by JS, so no-JS shows all ── */
.fg-list.fg-anim .fg-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, .68, 0, 1.2),
                border-color .28s ease, box-shadow .28s ease;
    transition-delay: calc(var(--fg-i, 0) * 60ms);
}
.fg-list.fg-anim .fg-item.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .site-section.features-glance-section { padding-top: 20px !important; padding-bottom: 26px !important; }
    .features-glance-section .section-header { margin-bottom: 28px; }
    .fg-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 575px) {
    .site-section.features-glance-section { padding-top: 16px !important; padding-bottom: 20px !important; }
    .fg-list { grid-template-columns: 1fr; gap: 14px; }
    .fg-item { padding: 20px 18px; gap: 14px; }
    .fg-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
}

/* ── Motion safety ── */
@media (prefers-reduced-motion: reduce) {
    .fg-item, .fg-icon, .fg-icon i, .fg-node { transition: none; }
    .fg-list.fg-anim .fg-item { opacity: 1; transform: none; transition: none; }
    .fg-item:hover .fg-icon i { transform: none; }
}
