/* fence-ownership.css — Fence Ownership Guide page */

/* ── Hero ─────────────────────────────────────────────── */
.fo-hero {
    background:
        linear-gradient(135deg, rgba(13, 59, 102, 0.10) 0%, rgba(26, 86, 50, 0.10) 100%),
        url('/static/images/fo-hero-bg.jpg') center / cover no-repeat;
    background:
        linear-gradient(135deg, rgba(13, 59, 102, 0.10) 0%, rgba(26, 86, 50, 0.10) 100%),
        url('/static/images/fo-hero-bg.webp') center / cover no-repeat;
    color: #fff;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}
.fo-hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: #fff;
}
.fo-hero__lead {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.93;
    line-height: 1.6;
}
.fo-hero__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--spacing-md);
}
.fo-hero__keyword {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
}

/* ── Table of contents ────────────────────────────────── */
.fo-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;
}
.fo-toc__title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fo-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: var(--spacing-lg);
}
@media (max-width: 600px) { .fo-toc__list { columns: 1; } }
.fo-toc__list li { margin-bottom: 0.4rem; }
.fo-toc__list a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}
.fo-toc__list a:hover { text-decoration: underline; }

/* ── Main content layout ──────────────────────────────── */
.fo-content {
    padding: var(--spacing-sm) 0 var(--spacing-2xl);
}
.fo-content .container {
    max-width: 900px;
}
.fo-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e8e8e8;
}
.fo-section:last-of-type { border-bottom: none; }
.fo-section h2 {
    font-size: 1.65rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    padding-top: 0;
}
.fo-section h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}
.fo-section p { color: #333; line-height: 1.75; margin-bottom: var(--spacing-sm); }
.fo-section ul, .fo-section ol {
    padding-left: 1.4rem;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}
.fo-section li { color: #444; line-height: 1.65; margin-bottom: 0.4rem; }
.fo-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;
}
.fo-section blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    font-style: normal;
    color: #666;
}

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

/* ── Key takeaway / callout box ───────────────────────── */
.fo-callout {
    background: #fff9e6;
    border: 1px solid #e8c84a;
    border-left: 4px solid #e8a838;
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
.fo-callout__title {
    font-weight: 700;
    color: #7a5800;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fo-callout p { color: #4a3800; margin: 0; }
.fo-callout ul { color: #4a3800; margin: var(--spacing-xs) 0 0; }

/* ── H-mark / T-mark visual badge ─────────────────────── */
.fo-mark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
@media (max-width: 600px) { .fo-mark-grid { grid-template-columns: 1fr; } }
.fo-mark-card {
    background: #f4f7f5;
    border: 1px solid #c8d9cc;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}
.fo-mark-card__symbol {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.fo-mark-card__title {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}
.fo-mark-card p { font-size: 0.9rem; color: #444; margin: 0; }

/* ── Case law box ──────────────────────────────────────── */
.fo-case-law {
    background: #f0f4fa;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}
.fo-case-law__title {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fo-case-law p { color: #333; font-size: 0.9rem; margin: 0; }

/* ── Step-by-step how-to ───────────────────────────────── */
.fo-steps {
    counter-reset: fo-step;
    margin: var(--spacing-lg) 0;
}
.fo-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    align-items: start;
}
.fo-step__num {
    counter-increment: fo-step;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fo-step__body h4 { font-size: 1rem; color: var(--color-secondary); margin-bottom: 0.3rem; }
.fo-step__body p { font-size: 0.9rem; color: #555; margin: 0; }

/* ── CTA inline box ───────────────────────────────────── */
.fo-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;
}
.fo-inline-cta h3 { color: #fff; margin-bottom: var(--spacing-sm); }
.fo-inline-cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--spacing-md); }
.fo-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;
}
.fo-inline-cta__btn:hover { opacity: 0.9; }

/* ── FAQ accordion ────────────────────────────────────── */
.fo-faq { padding: var(--spacing-2xl) 0; background: #f4f7f5; }
.fo-faq__heading {
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}
.fo-faq__list { max-width: 820px; margin: 0 auto; }
.fo-faq__item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.fo-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;
}
.fo-faq__question svg { flex-shrink: 0; transition: transform 0.25s; }
.fo-faq__item.open .fo-faq__question svg { transform: rotate(180deg); }
.fo-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}
.fo-faq__item.open .fo-faq__answer {
    max-height: 400px;
    padding: 0 var(--spacing-lg) var(--spacing-md);
}
.fo-faq__answer p { color: #444; line-height: 1.7; margin: 0; }

/* ── Related Guides Strip ── */
.fo-related {
    background: #f4f6f4;
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-xl);
}
.fo-related__heading {
    text-align: center;
    color: var(--color-secondary);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-lg);
}
.fo-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}
.fo-related__card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: block;
}
.fo-related__card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(26,86,50,0.12);
    transform: translateY(-2px);
}
.fo-related__card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}
.fo-related__card h3 {
    font-size: 1rem;
    color: var(--color-secondary);
    margin: 0 0 var(--spacing-xs);
    line-height: 1.4;
}
.fo-related__card p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .fo-related__grid { grid-template-columns: 1fr; }
}

/* ── 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;
}
