/*!
Theme Name: Brandon Scherer
Author: Brandon Scherer
Description: Catholic men's spirituality, speaking, and author platform
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
License: GPL v2 or later
Text Domain: brandon-scherer
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1a1f3a;
    --navy-dark: #0f1219;
    --purple: #6b5b95;
    --purple-light: #8b7ba8;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #2a2f4a;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-light); }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
    background: var(--navy-dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.site-logo a:hover { color: var(--purple); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--purple); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--purple);
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--purple);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--purple-light); border-color: var(--purple-light); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Hero */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy) 60%, var(--navy-dark) 100%);
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-light);
    border-left: 3px solid var(--purple);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--navy-dark); }

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-light);
    border-left: 3px solid var(--purple);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Topics grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.topic-card {
    border-left: 3px solid var(--purple);
    padding: 1.25rem 1.5rem;
}

.topic-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.75rem;
}

.topic-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.topic-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col-img {
    background: var(--navy-dark);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.two-col-img img { width: 100%; height: 100%; object-fit: cover; }

.two-col-text h2 { margin-bottom: 1rem; }
.two-col-text p { color: var(--text-muted); margin-bottom: 1rem; }
.two-col-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Book cover ratio */
.book-img { aspect-ratio: 2 / 3; max-width: 320px; }

/* Blockquote */
.pullquote {
    border-left: 3px solid var(--purple);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
}

.pullquote cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label { font-size: 0.9rem; color: var(--text); }

.form-field input,
.form-field textarea,
.form-field select {
    padding: 0.75rem 1rem;
    background: var(--navy-dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.form-field textarea { min-height: 130px; resize: vertical; }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 { font-size: 1rem; margin-bottom: 0.75rem; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--purple); }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Blog / archive */
.page-hero {
    padding: 4rem 0 2rem;
    background: var(--navy-dark);
    border-bottom: 1px solid var(--border);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.post-card {
    background: var(--navy-dark);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 1.5rem; }
.post-card-body h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.post-card-body h2 a { color: var(--text); }
.post-card-body h2 a:hover { color: var(--purple); }
.post-card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.post-card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* Single post */
.single-hero { padding: 4rem 0 2rem; background: var(--navy-dark); }
.single-content { padding: 3rem 0; max-width: 740px; }
.single-content p { color: var(--text); line-height: 1.8; margin-bottom: 1.25rem; }
.single-content h2, .single-content h3 { margin-top: 2rem; }

.post-meta { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination a:hover, .pagination .current {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

/* 404 / no results */
.not-found { padding: 6rem 0; text-align: center; }
.not-found h1 { margin-bottom: 1rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .site-header .container { flex-wrap: wrap; gap: 1rem; }

    .main-nav ul { gap: 1rem; flex-wrap: wrap; }

    .hero { padding: 3.5rem 0; }

    .two-col,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .two-col-img, .book-img { max-width: 100%; }

    .hero-btns, .two-col-btns { flex-direction: column; }
    .hero-btns .btn, .two-col-btns .btn { text-align: center; }
}
