/* ============================================
   Jackie Macgirvin - Author Website
   Warm & Elegant Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --gold: #C5A55A;
    --gold-light: #D4BA7A;
    --gold-dark: #A8893E;
    --cream: #FDF8EF;
    --cream-dark: #F5EDD8;
    --brown-dark: #3D2B1F;
    --brown: #5C4033;
    --brown-light: #8B7355;
    --white: #FFFDF7;
    --text: #3D2B1F;
    --text-light: #6B5B4F;
    --shadow: rgba(61, 43, 31, 0.1);
    --shadow-md: rgba(61, 43, 31, 0.15);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --nav-height: 70px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
    height: var(--nav-height);
}

.navbar.scrolled {
    background: rgba(253, 248, 239, 0.97);
    box-shadow: 0 2px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--brown-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--gold-dark);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--brown-dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('Assets/Prayinig Man Background Image.webp') center/cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 43, 31, 0.75) 0%,
        rgba(61, 43, 31, 0.5) 40%,
        rgba(92, 64, 51, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--gold-light);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

#youtube-link {
    font-size: 1.05rem;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 165, 90, 0.4);
}

.btn-secondary {
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
    font-size: 1.05rem;
}

.btn-secondary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 165, 90, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn:hover .btn-icon {
    transform: translateY(-1px);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

.title-with-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(197, 165, 90, 0.45);
    border-radius: 999px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(197, 165, 90, 0.24);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- About Section --- */
.about {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 8px 30px var(--shadow-md);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.02rem;
}

.about-text h3 {
    font-family: var(--font-heading);
    color: var(--brown-dark);
    font-size: 1.35rem;
    margin: 30px 0 12px;
}

.about-text ul,
.about-text ol {
    margin: 0 0 22px 22px;
    color: var(--text);
}

.about-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.about-note {
    font-style: italic;
    color: var(--gold-dark);
}

.about-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin: 6px 0 8px;
}

.about-text p:last-child,
.about-text li:last-child {
    margin-bottom: 0;
}

/* --- Book Sections --- */
.book-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.book-content.reverse {
    grid-template-columns: 1fr 280px;
}

.book-content.reverse .book-cover {
    order: 2;
}

.book-content.reverse .book-details {
    order: 1;
}

.book-cover img {
    border-radius: 4px;
    box-shadow: 0 10px 40px var(--shadow-md);
    transition: transform var(--transition);
}

.book-cover img:hover {
    transform: scale(1.02);
}

.book-tagline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.book-details p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.02rem;
}

.book-details .btn {
    margin-top: 10px;
}

.book-companions {
    display: grid;
    gap: 28px;
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid rgba(197, 165, 90, 0.35);
}

.companion-feature {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 50px;
    align-items: center;
    padding: 24px;
    background: rgba(255, 253, 247, 0.92);
    border: 1px solid rgba(197, 165, 90, 0.22);
    border-radius: 8px;
}

.companion-art {
    position: relative;
    width: 220px;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 24px var(--shadow-md);
}

.companion-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.companion-feature:hover .companion-art img {
    transform: scale(1.04);
}

.companion-kicker {
    margin-bottom: 4px;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.companion-details h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.companion-details p {
    margin-bottom: 12px;
    font-size: 1.02rem;
}

.companion-details .btn {
    margin-top: 10px;
}

/* --- Alternating Book Sections --- */
.aoh-section {
    background: var(--cream);
}

/* --- Banner Break --- */
.banner-break {
    position: relative;
    padding: 80px 20px;
    background: url('Assets/Prayinig Man Background Image.webp') center/cover no-repeat fixed;
    text-align: center;
    color: var(--white);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(61, 43, 31, 0.8);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.banner-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--gold-light);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h3,
.newsletter-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brown-dark);
    margin-bottom: 20px;
}

.newsletter-wrapper > p {
    margin-bottom: 24px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.hidden {
    display: none;
}

.form-status {
    min-height: 1.4em;
    margin-top: 12px;
    font-size: 0.9rem;
}

.form-status.success {
    color: var(--gold-dark);
}

.form-status.error {
    color: #8f3b2d;
}

.newsletter-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- Footer --- */
.footer {
    background: var(--brown-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    align-self: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
    align-self: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.5;
}

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

    .about-image {
        text-align: center;
    }

    .about-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-lists {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .book-content,
    .book-content.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .book-content.reverse .book-cover,
    .book-content.reverse .book-details {
        order: unset;
    }

    .book-cover img {
        max-width: 220px;
        margin: 0 auto;
    }

    .companion-feature {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 22px;
    }

    .companion-art {
        width: min(100%, 280px);
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(253, 248, 239, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        color: var(--text) !important;
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links a:hover {
        background: var(--cream);
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 50px 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn.btn-secondary {
        font-size: 0.98rem;
    }

    #youtube-link {
        font-size: 0.98rem;
    }
}
