/* =====================================================================
   Ceboom — blog.css
   Stylesheet for blog.php (article index) and post.php (single article).

   WHY THIS FILE EXISTS:
   Every other page on the site carries its own CSS inside a <style> block.
   blog.php and post.php are the two exceptions — they load this file
   instead. If it is missing, those two pages render as unstyled plain
   text while the rest of the site looks fine.

   Part 1 below is the shared site design system (colours, buttons,
   header, footer) so the blog pages match every other page.
   Part 2 is blog-specific: breadcrumb, hero band, article cards, pager
   and article typography.
   ===================================================================== */

/* ============ PART 1 — SHARED SITE DESIGN SYSTEM ============ */

:root {
            --teal: #0a2e1f;
            --abyss: #051a11;
            --brass: #b39b7d;
            --coral: #d97757;
            --sand: #f3ede1;
            --white: #ffffff;
            --ink: #16241d;
            --ink-soft: #5c6b62;
            --border: #e1d6c2;
            --ease: cubic-bezier(.22,.68,0,1);
        }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
            font-family: 'Work Sans', sans-serif;
            background: var(--sand);
            margin: 0;
            color: var(--ink);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
        }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; margin: 0; line-height: 1.1; color: var(--teal); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.eyebrow {
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--coral);
            font-weight: 700;
        }
.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head .eyebrow { margin-bottom: 10px; display: block; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.02rem; }
section { padding: 90px 24px; max-width: 1180px; margin: 0 auto; }
.btn {
            display: inline-flex; align-items: center; gap: 9px;
            padding: 14px 28px; border-radius: 3px; font-weight: 600; font-size: 0.92rem;
            text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
            border: 1px solid transparent; cursor: pointer;
        }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,46,31,.25); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217,119,87,.3); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
/* reveal-on-scroll */
        .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ===== HEADER ===== */
        header { background: var(--teal); color: var(--white); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--brass); }
.top-bar {
            background: rgba(0,0,0,.22); padding: 9px 24px; font-size: 0.78rem;
            display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap;
        }
.top-bar a { text-decoration: none; color: #e9e2d4; display: inline-flex; gap: 7px; align-items: center; }
.top-bar a:hover { color: var(--brass); }
.top-bar i { color: var(--brass); }
nav.main-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo-img { height: 66px; width: auto; object-fit: contain; }
.tagline {
            font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 0.88rem;
            color: var(--brass); line-height: 1.25; max-width: 200px;
            border-left: 1px solid rgba(255,255,255,.25); padding-left: 16px;
        }
@media (max-width: 720px) { .tagline { display: none; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
            text-decoration: none; color: #fff; font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
            letter-spacing: .03em; padding: 10px 16px; border-radius: 3px; transition: color .25s, background .25s;
        }
.nav-links a:hover { color: var(--brass); background: rgba(255,255,255,.06); }
.nav-links a.cta { background: var(--brass); color: var(--teal); margin-left: 8px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.search-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: #fff; font-size: 0.85rem; cursor: pointer; padding: 10px 12px; border-radius: 3px; transition: background .2s, color .2s; }
.search-toggle i { font-size: 1rem; }
@media (max-width: 480px) { .search-toggle strong { display: none; } }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--brass); background: rgba(255,255,255,.06); }
.search-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--brass); box-shadow: 0 14px 30px rgba(5,26,17,.18); padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); z-index: 1001; }
.search-panel.open { max-height: 360px; padding: 18px 24px; overflow-y: auto; }
.search-panel-inner { max-width: 640px; margin: 0 auto; }
.search-panel input[type="search"] { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 3px; font-family: 'Work Sans', sans-serif; font-size: 0.98rem; background: var(--sand); color: var(--ink); }
.search-panel input[type="search"]:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(179,155,125,.25); }
.search-results { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.search-results a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--ink); font-size: 0.92rem; transition: background .15s; }
.search-results a:hover { background: var(--sand); color: var(--teal); }
.search-results a .cat { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; }
.search-empty { color: var(--ink-soft); font-size: 0.88rem; padding: 10px 12px; }
.nav-links a.cta:hover { background: #c7af8e; color: var(--teal); }
.burger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 8px; }
@media (max-width: 880px) {
            .nav-links {
                position: absolute; top: 100%; left: 0; right: 0; background: var(--teal);
                flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
                max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
                border-bottom: 3px solid var(--brass);
            }
            .nav-links.open { max-height: 420px; }
            .nav-links a { padding: 13px 10px; }
            .nav-links a.cta { margin: 6px 0 0; text-align: center; }
            .burger { display: block; }
        }
position: relative; width: 100%; overflow: hidden;

            /* EDGE-TO-EDGE OVERRIDE — the generic rule above,
                   section { padding: 90px 24px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 560px) {
            .video-hero { min-height: 480px; }
        }
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue { animation: bounce 2s infinite; } }
0%, 100% { transform: translate(-50%, 0); }
50% { transform: translate(-50%, 8px); }
@media (max-width: 700px) { .partner-content { padding: 34px 24px; } }
/* ===== FOOTER INQUIRY FORM (shared partial) ===== */
        .footer-inquire { max-width: 640px; margin: 0 auto 50px; }
.footer-inquire .eyebrow { display: block; text-align: center; margin-bottom: 6px; }
.footer-inquire h4 { color: #fff; text-align: center; font-size: 1.2rem; font-weight: 600; margin: 0 0 24px; }
.inquiry-form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 30px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.field label { font-size: 0.82rem; font-weight: 600; color: #b9c4be; }
.field input, .field select, .field textarea {
            font-family: 'Work Sans', sans-serif; font-size: 0.95rem; padding: 12px 14px;
            border: 1px solid rgba(255,255,255,.15); border-radius: 3px; background: rgba(255,255,255,.07); color: #fff;
            transition: border-color .2s, box-shadow .2s;
        }
.field input::placeholder, .field textarea::placeholder { color: #7f8d86; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
            outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(179,155,125,.25);
        }
.field select option { color: #16241d; }
.form-alert { padding: 13px 16px; border-radius: 3px; font-size: 0.9rem; margin-bottom: 20px; }
.form-alert.success { background: rgba(46,166,111,.15); border: 1px solid #2ea66f; color: #bfe8d2; }
.form-alert.error { background: rgba(217,119,87,.18); border: 1px solid var(--coral); color: #f3c9bb; }
@media (max-width: 540px) { .field-row { flex-direction: column; gap: 0; } }
/* ===== FOOTER ===== */
        footer { background: var(--abyss); color: #fff; padding: 60px 24px 30px; margin-top: 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--brass); margin-bottom: 18px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; font-family: 'Work Sans', sans-serif; font-weight: 700; }
.footer-col p, .footer-col a { color: #b9c4be; text-decoration: none; font-size: 0.9rem; margin: 0 0 9px; display: block; }
.footer-col a:hover { color: var(--brass); }
.footer-tagline { font-family: 'Fraunces', serif; font-style: italic; color: var(--brass); font-size: 0.9rem; margin: 0 0 10px; }
.social-icons { display: flex; gap: 12px; margin-top: 4px; }
.social-icons a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--brass); transition: background .25s, color .25s; }
.social-icons a:hover { background: var(--brass); color: var(--teal); }
.foot-bottom { text-align: center; margin-top: 44px; font-size: 0.74rem; color: #5d6b64; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
/* ===== AGENTS DIRECTORY (shared partial: footer.php) ===== */
        .agents-footer { max-width: 1200px; margin: 0 auto 50px; }
.agents-footer .eyebrow { color: var(--brass); display: block; text-align: center; margin-bottom: 6px; }
.agents-footer h4 { color: #fff; text-align: center; font-size: 1.15rem; font-weight: 600; margin: 0 0 30px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.agent-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 20px 22px; }
.agent-card h5 { color: #fff; font-family: 'Work Sans', sans-serif; font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.agent-card .a-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: #b9c4be; margin-bottom: 6px; }
.agent-card .a-row i { color: var(--brass); margin-top: 2px; width: 14px; text-align: center; }
.agent-card .a-row a { color: #b9c4be; text-decoration: none; }
.agent-card .a-row a:hover { color: var(--brass); }
.agent-card .licenses { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.agent-card .licenses span { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--brass); letter-spacing: .02em; }
.safety-banner { text-align: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-family: 'Fraunces', serif; font-style: italic; font-size: 0.95rem; color: var(--brass); }
@media (max-width: 480px) { .hero-search button span { display: none; } .hero-search button { padding: 12px 16px; } }

/* =====================================================================
   BLOG-SPECIFIC STYLES  (appended after the shared site design system)
   Covers blog.php and post.php: breadcrumb, hero band, article cards,
   pager, article body typography, empty state and closing CTA band.
   ===================================================================== */

/* ---- Breadcrumb ---------------------------------------------------- */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    font-size: 0.82rem; color: var(--ink-soft);
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--coral); }
.breadcrumb-inner span { color: var(--brass); }
.breadcrumb-inner .current { color: var(--teal); font-weight: 600; }

/* ---- Page hero band (blog index + article header) ------------------ */
.prop-hero {
    position: relative; overflow: hidden;
    background: var(--teal); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 74px 24px 66px;
    border-bottom: 3px solid var(--brass);
}
.prop-hero.page-band { min-height: 0; }
/* Article cover photo sits behind the title */
.prop-hero .hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; z-index: 0;
}
.prop-hero .scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(5,26,17,.72) 0%, rgba(10,46,31,.62) 45%, rgba(5,26,17,.86) 100%);
}
.prop-hero .hero-content {
    position: relative; z-index: 2; max-width: 820px; padding: 0 4px;
}
.prop-hero .eyebrow { color: var(--brass); }
.prop-hero h1 {
    color: var(--white); margin-top: 12px;
    font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.08;
}
.prop-hero .sub {
    color: #dde6e0; margin: 16px auto 0; max-width: 680px; font-size: 1.02rem;
}
.prop-hero .sub a { color: var(--brass); }

/* ---- Article cards (blog index grid) ------------------------------- */
.listing-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.listing-card.post-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    background: var(--white); border: 1px solid var(--border); border-radius: 6px;
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.listing-card.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(10,46,31,.14); }
.post-card .photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.post-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .photo img { transform: scale(1.05); }
.post-card .no-photo {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--brass); font-size: 1.7rem;
}
.video-badge {
    position: absolute; right: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,.65); color: #fff;
    font-size: 0.72rem; font-weight: 600; letter-spacing: .04em;
    padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .date {
    font-family: 'Space Mono', monospace; font-size: 0.64rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--coral);
}
.post-card h3 {
    font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600;
    color: var(--teal); margin: 8px 0 8px; line-height: 1.28;
}
.post-card .excerpt { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.post-card .read-more {
    margin-top: auto; font-weight: 600; font-size: 0.85rem; color: var(--coral);
    display: inline-flex; align-items: center; gap: 7px;
}
.post-card:hover .read-more { text-decoration: underline; }

/* ---- Empty state --------------------------------------------------- */
.catalog-empty {
    text-align: center; padding: 70px 24px;
    background: var(--white); border: 1px dashed var(--border); border-radius: 8px;
}
.catalog-empty h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.catalog-empty p { color: var(--ink-soft); margin: 0; }

/* ---- Pager --------------------------------------------------------- */
.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 44px; }
.pager a, .pager .current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; padding: 9px 14px; border-radius: 3px;
    font-size: 0.88rem; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border); background: var(--white); color: var(--teal);
    transition: border-color .2s, color .2s, background .2s;
}
.pager a:hover { border-color: var(--coral); color: var(--coral); }
.pager .current { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ---- Article body typography (post.php) ---------------------------- */
.post-body {
    max-width: 720px; margin: 0 auto; font-size: 1.04rem; line-height: 1.8; color: var(--ink);
}
.post-body p { margin: 0 0 22px; }
.post-body h2 {
    font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600; color: var(--teal); margin: 40px 0 14px; line-height: 1.2;
}
.post-body h3 {
    font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600;
    color: var(--teal); margin: 32px 0 12px;
}
.post-body ul { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin-bottom: 9px; }
.post-body a { color: var(--coral); font-weight: 600; }
.post-body a:hover { text-decoration: underline; }
.post-body strong { color: var(--teal); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0 24px; }
.post-body blockquote {
    margin: 28px 0; padding: 4px 0 4px 22px;
    border-left: 3px solid var(--brass);
    font-family: 'Fraunces', serif; font-style: italic; color: var(--teal);
}

/* ---- Closing CTA band (shared by post.php) ------------------------- */
.cta-band { text-align: center; }
.cta-band .actions,
section .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 640px) {
    .prop-hero { padding: 56px 20px 50px; }
    .breadcrumb-inner { padding: 12px 18px; font-size: 0.78rem; }
    .post-body { font-size: 1rem; }
}
