/* boundary-disputes.css — Physical Boundaries & Dispute Resolution guide */

/* ── Hero ─────────────────────────────────────────────── */
.bd-hero {
    background:
        linear-gradient(135deg, rgba(26, 86, 50, 0.20) 0%, rgba(13, 59, 102, 0.20) 100%),
        url('/static/images/bd-hero-bg.jpg') center / cover no-repeat;
    background:
        linear-gradient(135deg, rgba(26, 86, 50, 0.20) 0%, rgba(13, 59, 102, 0.20) 100%),
        url('/static/images/bd-hero-bg.webp') center / cover no-repeat;
    color: #fff;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}
.bd-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: var(--spacing-md); }
.bd-hero__lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.93;
    line-height: 1.65;
}
.bd-hero__stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-md);
}
.bd-hero__stat {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    text-align: center;
}
.bd-hero__stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.bd-hero__stat-lbl { font-size: 0.75rem; opacity: 0.85; }

/* ── Table of contents ────────────────────────────────── */
.bd-toc {
    background: #f4f7f5;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}
.bd-toc__title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bd-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: var(--spacing-lg);
}
@media (max-width: 600px) { .bd-toc__list { columns: 1; } }
.bd-toc__list li { margin-bottom: 0.4rem; }
.bd-toc__list a { color: var(--color-secondary); text-decoration: none; font-size: 0.9rem; }
.bd-toc__list a:hover { text-decoration: underline; }

/* ── Main content ─────────────────────────────────────── */
.bd-content { padding: var(--spacing-sm) 0 var(--spacing-2xl); }
.bd-content .container { max-width: 900px; }
.bd-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e8e8e8;
}
.bd-section:last-of-type { border-bottom: none; }
.bd-section h2 { font-size: 1.65rem; color: var(--color-secondary); margin-bottom: var(--spacing-md); padding-top: 0; }
.bd-section h3 { font-size: 1.15rem; color: var(--color-primary); margin: var(--spacing-lg) 0 var(--spacing-sm); }
.bd-section p { color: #333; line-height: 1.75; margin-bottom: var(--spacing-sm); }
.bd-section ul, .bd-section ol { padding-left: 1.4rem; margin: var(--spacing-sm) 0 var(--spacing-md); }
.bd-section li { color: #444; line-height: 1.65; margin-bottom: 0.4rem; }
.bd-section blockquote {
    border-left: 4px solid var(--color-primary);
    background: #f4f7f5;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: #3a3a3a;
}
.bd-section blockquote cite { display: block; margin-top: var(--spacing-sm); font-size: 0.85rem; font-style: normal; color: #666; }

/* ── Two-column compare grid ──────────────────────────── */
.bd-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
@media (max-width: 640px) { .bd-compare { grid-template-columns: 1fr; } }
.bd-compare__card {
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid #ddd;
}
.bd-compare__card--legal { background: #f0f4fa; border-color: var(--color-secondary); }
.bd-compare__card--physical { background: #f4f7f5; border-color: var(--color-primary); }
.bd-compare__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--spacing-sm);
}
.bd-compare__card--legal .bd-compare__label { color: var(--color-secondary); }
.bd-compare__card--physical .bd-compare__label { color: var(--color-primary); }
.bd-compare__card h3 { font-size: 1.1rem; margin: 0 0 var(--spacing-sm); color: #1a1a1a; }
.bd-compare__card ul { padding-left: 1.2rem; margin: 0; }
.bd-compare__card li { font-size: 0.9rem; color: #444; margin-bottom: 0.3rem; }

/* ── Presumption cards ────────────────────────────────── */
.bd-presumptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}
@media (max-width: 640px) { .bd-presumptions { grid-template-columns: 1fr; } }
.bd-presumption {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--color-primary);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
}
.bd-presumption__title { font-weight: 700; color: var(--color-secondary); margin-bottom: 0.4rem; font-size: 0.95rem; }
.bd-presumption p { font-size: 0.88rem; color: #444; margin: 0; line-height: 1.6; }

/* ── Checklist ────────────────────────────────────────── */
.bd-checklist {
    background: #f4f7f5;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: var(--spacing-lg) 0;
}
.bd-checklist__title { font-weight: 700; color: var(--color-primary); margin-bottom: var(--spacing-md); }
.bd-checklist__items { list-style: none; padding: 0; margin: 0; }
.bd-checklist__items li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}
.bd-checklist__items li::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Warning / cost callout ───────────────────────────── */
.bd-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #e08800;
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
.bd-warning__title { font-weight: 700; color: #7a4900; margin-bottom: 0.4rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bd-warning p { color: #5a3700; margin: 0; font-size: 0.95rem; }

/* ── Step route ───────────────────────────────────────── */
.bd-route { margin: var(--spacing-lg) 0; }
.bd-route__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-items: start;
}
.bd-route__num {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bd-route__body h4 { color: var(--color-secondary); margin-bottom: 0.3rem; font-size: 1rem; }
.bd-route__body p { color: #555; font-size: 0.9rem; margin: 0; }

/* ── Image helpers ────────────────────────────────────── */
.bd-img-right { float: right; margin: 0 0 var(--spacing-lg) var(--spacing-xl); width: 42%; max-width: 400px; }
.bd-img-left { float: left; margin: 0 var(--spacing-xl) var(--spacing-lg) 0; width: 42%; max-width: 400px; }
.bd-img-center { clear: both; margin: var(--spacing-lg) auto; max-width: 700px; }
.bd-img-right img, .bd-img-left img, .bd-img-center img {
    width: 100%; height: auto; border-radius: var(--border-radius-lg); border: 1px solid #ddd; display: block;
}
.bd-img-caption { font-size: 0.78rem; color: #666; text-align: center; margin-top: var(--spacing-xs); font-style: italic; }
.bd-clearfix::after { content: ''; display: table; clear: both; }
@media (max-width: 600px) { .bd-img-right, .bd-img-left { float: none; width: 100%; max-width: 100%; margin: var(--spacing-md) 0; } }

/* ── Related guides strip ─────────────────────────────── */
.bd-related {
    background: #f4f7f5;
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid #dde8e0;
}
.bd-related__heading { text-align: center; font-size: 1.4rem; color: var(--color-secondary); margin-bottom: var(--spacing-xl); }
.bd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}
@media (max-width: 768px) { .bd-related__grid { grid-template-columns: 1fr; } }
.bd-related__card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid #dde8e0;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.2s;
}
.bd-related__card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.bd-related__card-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); margin-bottom: 0.4rem; }
.bd-related__card h3 { color: var(--color-secondary); font-size: 1rem; margin-bottom: 0.4rem; }
.bd-related__card p { color: #666; font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ── Inline CTA ───────────────────────────────────────── */
.bd-inline-cta {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    margin: var(--spacing-xl) 0;
}
.bd-inline-cta h3 { color: #fff; margin-bottom: var(--spacing-sm); }
.bd-inline-cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--spacing-md); }
.bd-inline-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.bd-inline-cta__btn:hover { opacity: 0.9; }

/* ── FAQ ──────────────────────────────────────────────── */
.bd-faq { padding: var(--spacing-2xl) 0; background: #fff; }
.bd-faq__heading { font-size: 1.5rem; color: var(--color-secondary); text-align: center; margin-bottom: var(--spacing-xl); }
.bd-faq__list { max-width: 820px; margin: 0 auto; }
.bd-faq__item { background: #f4f7f5; border-radius: var(--border-radius); margin-bottom: var(--spacing-sm); overflow: hidden; border: 1px solid #dde8e0; }
.bd-faq__question {
    width: 100%; background: none; border: none; text-align: left;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem; font-weight: 600; color: var(--color-secondary);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.bd-faq__question svg { flex-shrink: 0; transition: transform 0.25s; }
.bd-faq__item.open .bd-faq__question svg { transform: rotate(180deg); }
.bd-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 var(--spacing-lg); }
.bd-faq__item.open .bd-faq__answer { max-height: 500px; padding: 0 var(--spacing-lg) var(--spacing-md); }
.bd-faq__answer p { color: #444; line-height: 1.7; margin: 0; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.fence-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: var(--spacing-md, 1.5rem);
    flex-wrap: wrap;
}
.fence-breadcrumb a {
    color: var(--color-primary, #1a5632);
    text-decoration: none;
    font-weight: 500;
}
.fence-breadcrumb a:hover {
    text-decoration: underline;
}
.fence-breadcrumb__sep {
    color: #bbb;
    font-size: 1rem;
    line-height: 1;
}
.fence-breadcrumb__current {
    color: #555;
}
