/*
Theme Name: Jay Cousins Author Theme v3
Author: Assistant
Description: A premium dark theme for author Jay Cousins
Version: 1.0.1
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #0a1128;
    /* Deep Midnight Blue */
    --bg-card: #14213d;
    /* Slightly Lighter Blue for Cards/Sections */
    --text-light: #f7f7f7;
    /* Almost white for reading */
    --text-muted: #aab4c2;
    /* Grey-blue for less important text */
    --accent-gold: #f4e274;
    /* Light Yellow from Book Cover Title */
    --accent-gold-hover: #d8c65f;
    /* Darker Yellow for hover state */
    --nav-bg: rgba(10, 17, 40, 0.95);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

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

/* Base Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main Content Area filling remaining space */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6rem;
    /* Space for fixed nav */
}

/* Navigation Banner */
header {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-gold);
}

/* Call to Action Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
}

.nav-links li a.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--bg-dark);
}

.nav-links li a.btn::after {
    display: none;
    /* Disable underline for button layout */
}

.nav-links li a.btn:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Hero Section (Index) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-muted);
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-images img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    width: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-images img:hover {
    transform: translateY(-5px);
}

/* Generic Pages (About, Books, Reviews) */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--accent-gold);
}

.page-content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-text {
    flex: 1;
    min-width: 300px;
}

.page-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.page-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.review-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.stars {
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Specific */
.contact-card {
    background-color: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    /* Above the nav links */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation classes */
.hamburger.toggle span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger.toggle span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        /* Darker solid background for menu */
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
        padding: 0;
    }

    .nav-links.show {
        max-height: 1000px;
        padding: 2rem 0;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a::after {
        display: none;
        /* Turn off underline on mobile */
    }

    .nav-links .btn {
        margin-top: 1rem;
        padding: 0.75rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-content-wrapper {
        flex-direction: column;
    }
}
