/* =====================================================================
   Benitez Guides — layout + typography for /guides hub and article pages.
   Layered ON TOP of main.css; only touches guide-specific selectors so it
   never collides with the existing site styles.
   ===================================================================== */

.guide-body {
    background: #fff;
}

/* ---------- Hub hero ---------- */

.guide-hub-hero {
    background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
    padding: calc(2.5rem + var(--nav-offset)) 0 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-hub-hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2b77ad;
    margin-bottom: 0.75rem;
}

.guide-hub-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #1a365d;
    max-width: 36ch;
}

.guide-hub-hero p {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #4a5568;
    max-width: 60ch;
    margin: 0;
}

/* ---------- Hub list ---------- */

.guide-hub-list {
    padding: 3rem 0 5rem;
}

.guide-hub-vertical {
    margin-bottom: 3.5rem;
}

.guide-hub-vertical:last-child {
    margin-bottom: 0;
}

.guide-hub-vertical h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a365d;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #d69e2e;
    display: inline-block;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.guide-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.guide-card-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.guide-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2b77ad;
    margin-bottom: 0.5rem;
}

.guide-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.6rem;
    color: #1a365d;
}

.guide-card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0 0 0.9rem;
    flex: 1;
}

.guide-card-meta {
    font-size: 0.82rem;
    color: #718096;
    margin-top: auto;
}

/* ---------- Article hero ---------- */

.guide-article {
    color: #1a202c;
}

.guide-hero {
    background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
    padding: calc(1.8rem + var(--nav-offset)) 0 2.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-breadcrumbs {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.guide-breadcrumbs a {
    color: #2b77ad;
    text-decoration: none;
}

.guide-breadcrumbs a:hover {
    text-decoration: underline;
}

.guide-breadcrumbs [aria-current="page"] {
    color: #1a365d;
    font-weight: 600;
}

.guide-vertical-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    color: #fff;
}

.guide-vertical-tag--plumbing { background: #2b77ad; }
.guide-vertical-tag--restoration { background: #b83227; }
.guide-vertical-tag--remodeling { background: #1a365d; }

.guide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
    line-height: 1.18;
    color: #1a365d;
    margin: 0 0 0.85rem;
    max-width: 30ch;
}

.guide-deck {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #4a5568;
    margin: 0 0 1.2rem;
    max-width: 60ch;
}

.guide-meta {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---------- Article body layout ---------- */

.guide-body-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    padding: 3rem 1.25rem 5rem;
}

@media (max-width: 960px) {
    .guide-body-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.guide-prose {
    font-size: 1.06rem;
    line-height: 1.72;
    color: #1a202c;
    max-width: 70ch;
}

.guide-prose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #1a365d;
    margin: 2.4rem 0 1rem;
}

.guide-prose h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #1a365d;
    margin: 2rem 0 0.7rem;
}

.guide-prose h4 {
    font-size: 1.1rem;
    color: #1a365d;
    margin: 1.5rem 0 0.6rem;
}

.guide-prose p {
    margin: 0 0 1.05rem;
}

.guide-prose a {
    color: #2b77ad;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-prose a:hover {
    color: #1a365d;
}

.guide-prose strong { font-weight: 700; color: #1a365d; }
.guide-prose em { font-style: italic; }

.guide-prose ul,
.guide-prose ol {
    margin: 0 0 1.2rem 1.4rem;
    padding: 0;
}

.guide-prose li {
    margin-bottom: 0.45rem;
}

.guide-prose blockquote {
    border-left: 4px solid #d69e2e;
    background: #fdf8ed;
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    border-radius: 0 8px 8px 0;
}

.guide-prose blockquote p {
    margin: 0;
    font-style: italic;
    color: #4a5568;
}

.guide-prose code {
    background: #f1f3f8;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ---------- FAQ block ---------- */

.guide-faq {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: #f7f8fb;
    border-radius: 12px;
}

.guide-faq h2 {
    margin-top: 0 !important;
}

.guide-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.9rem 0;
}

.guide-faq-item:last-child {
    border-bottom: 0;
}

.guide-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: #1a365d;
    padding-right: 1.6rem;
    position: relative;
    font-size: 1.04rem;
}

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

.guide-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: #d69e2e;
    transition: transform 0.15s ease;
}

.guide-faq-item[open] summary::after {
    content: "−";
}

.guide-faq-answer {
    padding: 0.6rem 0 0.4rem;
    color: #4a5568;
    line-height: 1.6;
}

.guide-faq-answer p {
    margin: 0;
}

/* ---------- Bottom CTA inside article ---------- */

.guide-cta {
    margin: 3rem 0 0;
    padding: 2rem 2rem 2.2rem;
    background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    border-radius: 14px;
    color: #fff;
}

.guide-cta h2 {
    font-family: 'Playfair Display', serif;
    color: #fff !important;
    margin: 0 0 0.6rem !important;
}

.guide-cta p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.2rem;
}

.guide-cta-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.guide-cta .btn-primary {
    background: #d69e2e;
    color: #1a365d;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.guide-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.guide-cta .btn-primary:hover { filter: brightness(1.08); }
.guide-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Sidebar ---------- */

.guide-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 110px;
    align-self: start;
}

@media (max-width: 960px) {
    .guide-side { position: static; }
}

.guide-side-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.3rem 1.4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.guide-side-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a365d;
    margin: 0 0 0.55rem;
}

.guide-side-card p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.guide-side-card .btn-primary,
.guide-side-card .btn-secondary {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.guide-side-card .btn-primary {
    background: #d69e2e;
    color: #1a365d;
}

.guide-side-card .btn-secondary {
    background: #1a365d;
    color: #fff;
}

.guide-side-trust {
    background: #f7f8fb;
    border: none;
}

.guide-side-trust ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #1a202c;
}

.guide-side-trust li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-side-trust li:last-child { border-bottom: 0; }

.btn-full { width: 100%; }
