/* 
 * The Architecture of Awareness - CSS
 * Author: Jacob Noel
 */

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #3b82f6;
    --accent-light: #eff6ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.site-header {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--bg-white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: var(--bg-white);
    padding: 80px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-author {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.book-cover-wrapper {
    text-align: center;
}

.hero-book-cover {
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-book-cover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.4);
}

.cover-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.cover-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-style: italic;
}

.cover-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.store-availability {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 15px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
}

/* Cycle Grid */
.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cycle-step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.cycle-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cycle-step-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.cycle-step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-category {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Single Post Layout */
.post-container {
    max-width: 820px;
    margin: 50px auto 80px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 24px;
}

.post-content p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #334155;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--secondary-color);
}

.post-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 30px 0 12px;
    color: var(--secondary-color);
}

.post-content ul, .post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.quote-box, .highlight-quote {
    background: var(--accent-light);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cycle-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 50px 0 20px;
}

.cta-banner h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
}

.cta-banner p {
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .post-container {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-color);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}
