/* ==========================================================================
   ERFID landing — extra sections (implementation cases + FAQ).
   Loaded on demand by the _cases.php / _faq.php partials. Uses the design
   tokens from landing.css (--dark, --light, --primary, --text-light, gradients)
   and mirrors the existing card/hover patterns.
   ========================================================================== */

/* ------------------------------------------------------------------- CASES */
.cases {
    background: var(--light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.case-metric {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------- FAQ */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 20px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--link);
}

.faq-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-chevron svg {
    width: 20px;
    height: 20px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.7;
}

/* -------------------------------------------------------------- RESPONSIVE */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        padding: 28px;
    }

    .case-metric {
        font-size: 1.9rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .faq-answer-inner {
        padding: 0 20px 18px;
    }
}

/* --- SEO landing pages (/solutions/*, /equipment/*) --- */
.landing-hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 140px 0 70px;
}

.landing-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 25px;
}

.landing-breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
}

.landing-breadcrumb a:hover {
    color: var(--accent);
}

.landing-breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}

.landing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 18px;
    max-width: 900px;
}

.landing-summary {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 760px;
    line-height: 1.65;
}

.landing-body-section {
    background: var(--light);
    padding: 70px 0 90px;
}

.landing-article {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 50px 55px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    color: var(--text);
    line-height: 1.8;
}

.landing-article h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin: 35px 0 15px;
}

.landing-article h2:first-child {
    margin-top: 0;
}

.landing-article p {
    margin-bottom: 16px;
}

.landing-article ul,
.landing-article ol {
    margin: 0 0 16px 24px;
}

.landing-article li {
    margin-bottom: 8px;
}

.landing-article a {
    color: var(--link);
    font-weight: 500;
}

.landing-article a:hover {
    color: var(--link-hover);
}

.landing-article table,
.landing-article .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.landing-article th,
.landing-article td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.landing-article th {
    background: var(--dark);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.landing-siblings {
    max-width: 860px;
    margin: 50px auto 0;
}

.landing-siblings h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.landing-siblings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.landing-sibling-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.landing-sibling-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.landing-sibling-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.landing-sibling-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

/* Category hub (/solutions, /equipment, /industries): the landings grid leads
   the page — no extra top gap, SEO article follows below. */
.category-landings {
    margin-top: 0;
    margin-bottom: 50px;
}

/* "Learn more" links on landing-section cards (home page) */
.card-more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-more:hover {
    color: var(--link-hover);
}

.solution-card .card-more {
    color: var(--primary-light);
}

.solution-card .card-more:hover {
    color: var(--accent);
}

/* Footer landing links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .landing-article {
        padding: 30px 22px;
    }

    .landing-hero {
        padding: 120px 0 50px;
    }
}

/* --- Compact hero for news/article pages --- */
.landing-hero-compact {
    padding: 120px 0 50px;
}

.landing-meta-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-list-section,
.news-article-section {
    background: var(--light);
    padding: 60px 0 80px;
}

.news-article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Landing contact section (compact version of the home contact) --- */
.landing-contact {
    padding: 80px 0;
}

.landing-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.landing-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.landing-contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.landing-contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}
