/* ==========================================================================
   Holster Firearm Finder — Manufacturer Pages
   Covers: /firearm-manufacturers/ archive and /firearm-manufacturer/{slug}/
   ========================================================================== */

/* ── Archive: Manufacturer Grid ─────────────────────────────────────────── */

.hff-manufacturers-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hff-manufacturers-header {
    text-align: center;
    margin-bottom: 40px;
}

.hff-manufacturers-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.hff-manufacturers-header p {
    font-size: 1.05em;
    color: #555;
}

.hff-manufacturers-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    gap: 20px;
}

.hff-manufacturer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hff-manufacturer-card:hover {
    box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.1 );
    transform: translateY( -3px );
    text-decoration: none;
    color: inherit;
}

.hff-manufacturer-card-logo {
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.hff-manufacturer-card-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.hff-manufacturer-card-logo-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}

.hff-manufacturer-card-name {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
}

.hff-no-manufacturers {
    text-align: center;
    color: #777;
    padding: 40px 0;
}

/* ── Single Manufacturer Page ───────────────────────────────────────────── */

.hff-manufacturer-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero */
.hff-manufacturer-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 48px;
    border: 1px solid #eee;
}

.hff-manufacturer-logo img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.hff-manufacturer-hero-text h1 {
    font-size: 2.2em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.hff-manufacturer-country {
    font-size: 1em;
    color: #555;
    margin: 0 0 6px;
}

.hff-manufacturer-model-count {
    font-size: 0.9em;
    color: #777;
    margin: 0;
}

/* Sections */
.hff-manufacturer-section {
    margin-bottom: 52px;
}

.hff-manufacturer-section h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Description */
.hff-description-content {
    line-height: 1.75;
    font-size: 1em;
    color: #333;
}

.hff-description-content p {
    margin-bottom: 1em;
}

/* Models pill list */
.hff-models-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hff-models-pill-list li {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Finder form */
.hff-manufacturer-finder > p {
    color: #555;
    margin-bottom: 16px;
}

.hff-model-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hff-model-selector select {
    flex: 1;
    min-width: 240px;
    padding: 11px 14px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.hff-model-selector select:focus {
    outline: none;
    border-color: #888;
}

.hff-finder-btn {
    padding: 11px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.hff-finder-btn:hover {
    background: #333;
}

.hff-model-error {
    color: #c00;
    font-size: 13px;
    margin-top: 8px;
}

/* Product count */
.hff-product-count {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* FAQs */
.hff-faqs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hff-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
}

.hff-faq-question {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.hff-faq-answer {
    color: #444;
    line-height: 1.7;
    font-size: 0.98em;
}

.hff-faq-answer p {
    margin-bottom: 0.6em;
}

/* ── Holster Types Checklist ────────────────────────────────────────────── */

.hff-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    gap: 10px;
}

.hff-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1em;
    line-height: 1.4;
    padding: 6px 0;
}

.hff-checklist li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Features Badge Grid ────────────────────────────────────────────────── */

.hff-features-grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 20px;
}

.hff-feature-tile {
    background: #f8f9ff;
    border: 1px solid #e4e8f0;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
}

.hff-feature-icon {
    font-size: 2em;
    margin-bottom: 10px;
    line-height: 1;
}

.hff-feature-title {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #1a1a1a;
}

.hff-feature-desc {
    font-size: 0.88em;
    color: #555;
    line-height: 1.6;
}

@media ( max-width: 768px ) {
    .hff-features-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

@media ( max-width: 480px ) {
    .hff-features-grid {
        grid-template-columns: 1fr;
    }

    .hff-checklist {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {

    .hff-manufacturer-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .hff-manufacturer-hero-text h1 {
        font-size: 1.7em;
    }

    .hff-model-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .hff-model-selector select {
        min-width: unset;
        width: 100%;
    }

    .hff-finder-btn {
        width: 100%;
        text-align: center;
    }

    .hff-manufacturers-grid {
        grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
        gap: 14px;
    }
}
