/* ============================================
   BEST FENCE COMPANIES — BUYER'S GUIDE PAGE
   ============================================ */

/* ---------- Layout ---------- */
.bfc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .bfc-container {
        padding: 0 1.25rem;
    }
}

.bfc-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.bfc-section-header h2 {
    margin: 0.5rem 0 1rem;
}

.bfc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-700);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bfc-eyebrow svg {
    width: 16px;
    height: 16px;
}

.bfc-lead {
    color: var(--text-medium);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.bfc-note {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    text-align: center;
}

/* ---------- Disclosure ---------- */
.bfc-disclosure {
    padding: 2.5rem 0 0.5rem;
    background: var(--cream-50);
}

.bfc-disclosure-card {
    background: var(--brand-50);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bfc-disclosure-card p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.975rem;
    line-height: 1.7;
}

.bfc-disclosure-card a {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bfc-disclosure-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-500);
    color: var(--brand-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bfc-disclosure-icon svg {
    width: 18px;
    height: 18px;
}

/* ---------- Methodology ---------- */
.bfc-methodology {
    padding: 4rem 0;
    background: var(--cream-50);
}

.bfc-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

@media (max-width: 720px) {
    .bfc-checklist {
        grid-template-columns: 1fr;
    }
}

.bfc-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.975rem;
    line-height: 1.55;
    color: var(--text-medium);
}

.bfc-checklist li svg {
    width: 18px;
    height: 18px;
    color: var(--green-600);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.bfc-checklist--warn li svg {
    color: var(--accent-600);
}

/* ---------- Rankings (company cards) ---------- */
.bfc-rankings {
    padding: 4rem 0;
    background: white;
}

.bfc-company-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bfc-company-card {
    background: white;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

.bfc-company-card--us {
    border: 2px solid var(--brand-500);
    background: linear-gradient(180deg, var(--brand-50) 0%, white 60%);
    box-shadow: 0 8px 30px rgba(110, 145, 48, 0.18);
}

.bfc-company-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.bfc-rank-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.bfc-company-card--us .bfc-rank-badge {
    background: var(--brand-600);
}

.bfc-company-title h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 3.2vw, 1.875rem);
    line-height: 1.15;
}

.bfc-us-tag {
    display: inline-block;
    font-size: 0.7em;
    color: var(--brand-700);
    background: var(--brand-100);
    padding: 0.15em 0.55em;
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-left: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bfc-company-tagline {
    margin: 0;
    color: var(--text-medium);
    font-size: 1rem;
    font-style: italic;
}

.bfc-company-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream-100);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

@media (max-width: 760px) {
    .bfc-company-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .bfc-company-meta {
        grid-template-columns: 1fr;
    }
}

.bfc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bfc-meta-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

.bfc-meta-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Pros & cons */
.bfc-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
    .bfc-pros-cons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.bfc-pros h3,
.bfc-cons h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.bfc-pros h3 svg {
    color: var(--green-600);
    width: 18px;
    height: 18px;
}

.bfc-cons h3 svg {
    color: var(--accent-600);
    width: 18px;
    height: 18px;
}

.bfc-pros ul,
.bfc-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bfc-pros li,
.bfc-cons li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-medium);
}

.bfc-pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green-600);
    font-weight: 800;
}

.bfc-cons li::before {
    content: "−";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-600);
    font-weight: 800;
}

.bfc-extra {
    border-top: 1px solid var(--cream-200);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bfc-extra-row {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.55;
}

.bfc-extra-row strong {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 0.25rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.bfc-company-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Comparison Table ---------- */
.bfc-table-section {
    padding: 4rem 0;
    background: var(--cream-100);
}

.bfc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: white;
}

.bfc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.bfc-table th,
.bfc-table td {
    padding: 1rem 1.125rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-200);
    vertical-align: top;
    line-height: 1.5;
}

.bfc-table thead th {
    background: var(--green-800);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
    white-space: nowrap;
}

.bfc-table tbody th {
    background: var(--cream-50);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 200px;
}

.bfc-table tbody th a {
    color: var(--green-700);
}

.bfc-table tbody th a:hover {
    color: var(--green-800);
    text-decoration: underline;
}

.bfc-row-us > th,
.bfc-row-us > td {
    background: var(--brand-50) !important;
}

.bfc-us-tag-sm {
    display: inline-block;
    font-size: 0.65em;
    color: var(--brand-700);
    background: var(--brand-100);
    padding: 0.15em 0.45em;
    border-radius: var(--radius-sm);
    margin-left: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

@media (max-width: 720px) {
    /* Card-style stack on mobile */
    .bfc-table thead {
        display: none;
    }
    .bfc-table,
    .bfc-table tbody,
    .bfc-table tr,
    .bfc-table td,
    .bfc-table th {
        display: block;
        width: 100%;
    }
    .bfc-table tr {
        border-bottom: 4px solid var(--cream-100);
        padding: 1rem 0.75rem;
    }
    .bfc-table tbody th {
        background: transparent;
        padding: 0.25rem 0 0.5rem;
        font-size: 1.05rem;
        border-bottom: none;
    }
    .bfc-table td {
        border-bottom: none;
        padding: 0.4rem 0;
        font-size: 0.92rem;
    }
    .bfc-table td::before {
        content: attr(data-label) ": ";
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.78rem;
        letter-spacing: 0.05em;
        color: var(--text-light);
        display: block;
        margin-bottom: 0.15rem;
    }
}

/* ---------- How to Choose ---------- */
.bfc-how-to-choose {
    padding: 4rem 0;
    background: white;
}

.bfc-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 760px) {
    .bfc-choose-grid {
        grid-template-columns: 1fr;
    }
}

.bfc-choose-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.bfc-choose-card--warn {
    background: var(--accent-50);
    border-color: var(--accent-200);
}

.bfc-choose-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
}

.bfc-choose-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--green-700);
}

.bfc-choose-card--warn h3 svg {
    color: var(--accent-700);
}

.bfc-choose-card .bfc-checklist {
    grid-template-columns: 1fr;
    margin: 0;
}

.bfc-coastal {
    background: var(--green-900);
    color: white;
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    margin-top: 1rem;
}

.bfc-coastal h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: white;
    font-size: 1.25rem;
}

.bfc-coastal h3 svg {
    width: 22px;
    height: 22px;
    color: var(--brand-400);
}

.bfc-coastal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ---------- Franchise vs Local ---------- */
.bfc-franchise-local {
    padding: 4rem 0;
    background: var(--cream-100);
}

.bfc-vs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

@media (max-width: 760px) {
    .bfc-vs-grid {
        grid-template-columns: 1fr;
    }
}

.bfc-vs-card {
    background: white;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.bfc-vs-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.bfc-vs-card h3 svg {
    width: 22px;
    height: 22px;
    color: var(--green-700);
}

.bfc-vs-card h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 1.25rem 0 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.bfc-vs-card .bfc-checklist {
    grid-template-columns: 1fr;
    margin: 0;
}

/* ---------- FAQ ---------- */
.bfc-faq {
    padding: 4rem 0;
    background: white;
}

.bfc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bfc-faq-item {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bfc-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-dark);
    text-transform: none;
    line-height: 1.4;
}

.bfc-faq-item summary::-webkit-details-marker {
    display: none;
}

.bfc-faq-item summary svg {
    width: 20px;
    height: 20px;
    color: var(--green-700);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bfc-faq-item[open] summary svg {
    transform: rotate(180deg);
}

.bfc-faq-answer {
    padding: 0 1.5rem 1.25rem;
}

.bfc-faq-answer p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.975rem;
}

/* ---------- Final CTA ---------- */
.bfc-final-cta {
    padding: 5rem 0;
    background: var(--green-900);
    color: white;
}

.bfc-cta-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.bfc-cta-card h2 {
    color: white;
    margin: 0 0 1rem;
}

.bfc-cta-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.bfc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
