/* ==========================================================================
   The Theory of Conscious Creation - Stylesheet
   Minimal, clean design matching Wix layout
   Color Palette: Navy (#1a3a52), Gold (#C9A962), White (#ffffff)
   ========================================================================== */

/* CSS Variables */
:root {
    --color-navy: #1a3a52;
    --color-gold: #C9A962;
    --color-gold-light: #d4bc7d;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-navy);
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    width: 100%;
}

.hero-top {
    background: var(--color-white);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    color: var(--color-navy);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.header-spacer {
    width: 50px;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
}

.hero-image > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
    max-height: 70vh;
}

.hero-image-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    /* Convert black logo to gold: invert to white, then apply gold tint */
    filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.9);
    -webkit-filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.9);
}

.hero-tagline {
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: normal;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-quote {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-style: italic;
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
    background: var(--color-white);
    padding: 80px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--color-navy);
    margin-bottom: 25px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-text em {
    font-style: italic;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Author Section */
.author-section {
    padding: 80px 0;
    background: var(--color-off-white);
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1100px;
    margin: 0 auto;
}

.author-left {
    background: var(--color-navy);
    padding: 0;
}

.author-image {
    width: 100%;
    display: block;
}

.author-name-container {
    padding: 30px 40px 40px;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin-bottom: 20px;
}

.author-name {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 300;
    line-height: 1.1;
}

.author-right {
    background: var(--color-white);
    display: flex;
    align-items: center;
}

.author-bio {
    padding: 40px 50px;
    font-size: 1rem;
    line-height: 1.8;
}

.author-bio p {
    text-align: left;
    margin-bottom: 1.5rem;
}

.author-bio strong {
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    background: #1a3a52;
    color: #ffffff;
    padding: 4rem 0;
}

.newsletter-section .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-content {
    text-align: center;
}

.newsletter-section .section-title {
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-title.centered {
    text-align: center;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #C9A962;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button[type="submit"],
.newsletter-form .btn-primary,
.newsletter-content .btn-primary {
    display: inline-block;
    background: #C9A962;
    color: #1a3a52;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.newsletter-form button[type="submit"]:hover,
.newsletter-form .btn-primary:hover,
.newsletter-content .btn-primary:hover {
    background: #d4bc7d;
    color: #1a3a52;
}

.form-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    text-align: center;
}

/* Book Section */
.book-section {
    background: var(--color-white);
    padding: 80px 20px 100px;
    text-align: center;
}

.book-content {
    max-width: 600px;
    margin: 0 auto;
}

.book-icon {
    margin-bottom: 30px;
}

.book-icon img {
    width: 100px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.book-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-navy);
    margin-bottom: 15px;
    font-weight: 400;
}

.book-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 25px;
}

.book-status {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Footer */
.footer {
    background: var(--color-off-white);
    padding: 60px 20px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.footer-contact a {
    font-size: 0.95rem;
    color: var(--color-navy);
    text-decoration: underline;
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid,
    .author-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 40px;
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .author-left {
        max-width: 450px;
        margin: 0 auto;
    }

    .author-right {
        padding: 0 20px;
    }

    .author-bio {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .hero-top {
        padding: 20px;
    }

    .site-logo img {
        width: 40px;
        height: 40px;
    }

    .header-spacer {
        width: 40px;
    }

    .hero-title {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        letter-spacing: 0.15em;
        margin: 0 10px;
    }

    .hero-logo img {
        width: 140px;
        height: 140px;
    }

    .hero-image {
        max-height: 60vh;
    }

    .hero-image > img {
        max-height: 60vh;
    }

    .about-section {
        padding: 60px 20px;
    }

    .author-section {
        padding: 60px 0;
    }

    .author-name-container {
        padding: 25px 30px 35px;
    }

    .book-section {
        padding: 60px 20px 80px;
    }

    .newsletter-section {
        padding: 3rem 1rem;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .footer {
        padding: 50px 20px;
    }
}
