/*
Theme Name: The Time Paradox
Theme URI: https://shimokprakash.gt.tc
Author: Shimok Prakash
Description: Custom theme for Sherlock Holmes in India - The Time Paradox
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    color: #111;
    background: #fff;
    font-size: 18px;
    line-height: 1.7;
}

a {
    color: #111;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER & NAV --- */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-title a {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

/* --- SECTIONS --- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-alt {
    background: #f9f9f9;
}

.section-alt .section {
    padding: 80px 24px;
}

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 32px;
}

.hero-image {
    flex: 0 0 380px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- CTA BUTTONS --- */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #111;
    color: #fff;
    border: 2px solid #111;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #111;
    border: 2px solid #111;
}

.btn-secondary:hover {
    background: #111;
    color: #fff;
}

/* --- PITCH SECTION --- */
.pitch h2 {
    font-size: 32px;
    margin-bottom: 28px;
    font-weight: 700;
}

.pitch p {
    margin-bottom: 16px;
    font-size: 19px;
}

.pitch .highlight {
    font-style: italic;
    font-size: 20px;
    margin-top: 24px;
}

/* --- REVERSE CTA SECTION --- */
.reverse-cta h2 {
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
}

.reverse-cta .subtitle {
    font-size: 20px;
    margin-bottom: 16px;
}

/* --- AUTHOR SECTION --- */
.author {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.author-photo {
    flex: 0 0 260px;
}

.author-photo img {
    width: 100%;
    border-radius: 4px;
}

.author-text {
    flex: 1;
}

.author-text h2 {
    font-size: 30px;
    margin-bottom: 24px;
    font-weight: 700;
}

.author-text p {
    margin-bottom: 14px;
    font-size: 18px;
}

/* --- FINAL CTA --- */
.final-cta {
    text-align: center;
    padding: 80px 24px;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 22px;
    margin-bottom: 8px;
}

.final-cta .cta-group {
    justify-content: center;
}

/* --- BLOG --- */
.blog-list {
    max-width: 760px;
    margin: 0 auto;
}

.blog-post-card {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.blog-post-card h2 a:hover {
    opacity: 0.6;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-post-card .excerpt {
    font-size: 17px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid #111;
}

/* --- SINGLE POST --- */
.single-post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.single-post-content h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.single-post-content .post-meta {
    margin-bottom: 32px;
}

.single-post-content p {
    margin-bottom: 18px;
}

.single-post-content h2 {
    font-size: 26px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.single-post-content blockquote {
    border-left: 3px solid #111;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
}

/* --- CONTACT PAGE --- */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.contact-section h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-section .contact-intro {
    margin-bottom: 40px;
    font-size: 18px;
}

.email-form {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 14px 18px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 17px;
    border: 2px solid #111;
    background: #fff;
    outline: none;
}

.email-form button {
    padding: 14px 28px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    cursor: pointer;
    transition: all 0.3s;
}

.email-form button:hover {
    background: #333;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    font-size: 17px;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.6;
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid #e0e0e0;
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    padding-bottom: 32px;
}

.footer-col h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    font-size: 16px;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #777;
}

.footer-widget-item {
    margin-bottom: 16px;
}

/* --- PAGE TEMPLATE --- */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px;
}

.page-content h1 {
    font-size: 38px;
    margin-bottom: 24px;
}

.page-content p {
    margin-bottom: 18px;
}

/* --- PAGINATION --- */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}

.pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 24px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 24px;
        min-height: auto;
    }

    .hero-image {
        flex: none;
        max-width: 280px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .cta-group {
        justify-content: center;
    }

    .section {
        padding: 48px 24px;
    }

    .section-alt .section {
        padding: 48px 24px;
    }

    .author {
        flex-direction: column;
        text-align: center;
    }

    .author-photo {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
    }

    .pitch h2, .reverse-cta h2 {
        font-size: 26px;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .single-post-content h1, .page-content h1 {
        font-size: 28px;
    }

    .contact-section h1 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
}