/* ============================================
   Between Two Jungles — Website Styles
   Color palette inspired by book cover:
   - Deep jungle green: #1a3a2a
   - Teal: #2a8a7a
   - Light teal: #4db8a4
   - Golden yellow: #d4c84a
   - Warm cream: #f5f0e8
   - Earth brown: #3d2e1e
   ============================================ */

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

:root {
    --jungle-deep: #1a3a2a;
    --jungle-mid: #2d5a3f;
    --teal: #2a8a7a;
    --teal-light: #4db8a4;
    --teal-muted: #3a9a8a;
    --gold: #c9be3a;
    --gold-light: #d4c84a;
    --cream: #f5f0e8;
    --cream-light: #faf8f3;
    --earth: #3d2e1e;
    --earth-light: #5a4a3a;
    --text-dark: #2a2118;
    --text-body: #4a3f35;
    --text-light: #8a7f72;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(26, 58, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 58, 42, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 58, 42, 0.18);
    --shadow-book: 12px 12px 30px rgba(26, 58, 42, 0.3), -2px -2px 10px rgba(255,255,255,0.1);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--text-body);
    background-color: var(--cream-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.3;
}

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

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

a:hover {
    color: var(--teal-light);
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--jungle-deep);
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    margin-bottom: 28px;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--jungle-deep);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--jungle-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn-secondary:hover {
    background: var(--teal-muted);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 58, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
}

.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,
.nav-links a.active {
    color: var(--white);
}

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

.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);
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg,
            var(--jungle-deep) 0%,
            #1d4a32 30%,
            var(--teal) 60%,
            #2a7a6a 100%
        );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(42, 138, 122, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 190, 58, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
}

.hero-author {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bobbing 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    margin: 8px auto 0;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255,255,255,0.4);
}

/* --- Book Teaser --- */
.book-teaser {
    background: var(--cream);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.teaser-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-cover-img {
    max-width: 340px;
    border-radius: 4px;
    box-shadow: var(--shadow-book);
    position: relative;
    z-index: 1;
}

.book-cover-img.floating {
    animation: float 6s ease-in-out infinite;
}

.cover-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(26, 58, 42, 0.2) 0%, transparent 70%);
    filter: blur(8px);
}

.teaser-content {
    max-width: 520px;
}

.teaser-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 32px;
}

/* --- Pull Quote Section --- */
.pull-quote-section {
    background: var(--jungle-deep);
    text-align: center;
    padding: 80px 0;
}

.pull-quote p {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--gold);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.pull-quote p::before {
    content: '\201C';
    font-family: 'Lora', Georgia, serif;
    font-size: 4rem;
    color: var(--teal);
    position: absolute;
    top: -20px;
    left: -30px;
    opacity: 0.5;
}

/* --- About Teaser --- */
.about-teaser {
    background: var(--cream-light);
    text-align: center;
}

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

.about-teaser-content .divider {
    margin-left: auto;
    margin-right: auto;
}

.about-teaser-content p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    background: var(--jungle-deep);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

/* --- Inner Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--jungle-deep) 0%, var(--teal) 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero h1 {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
    position: relative;
    z-index: 1;
}

.page-hero .subtitle {
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* --- About Page --- */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-content p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 24px;
}

.about-content p.lead {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* --- Book Page --- */
.book-hero-section {
    padding: 80px 0;
    background: var(--cream);
}

.book-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.book-details h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.book-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 24px;
}

.book-details p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.book-highlights {
    padding: 80px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.highlight-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--jungle-deep);
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Endorsement --- */
.endorsement-section {
    padding: 60px 0;
    background: var(--cream-light);
}

.endorsement-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--teal);
}

.endorsement-quote p {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.endorsement-attribution {
    margin-top: 24px;
}

.attribution-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    margin: 0 auto 16px;
    border-radius: 2px;
}

.endorser-name {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--jungle-deep);
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.endorser-title {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--teal);
}

@media (max-width: 768px) {
    .endorsement-section {
        padding: 40px 0;
    }

    .endorsement-card {
        padding: 32px 24px;
        border-left: 3px solid var(--teal);
        text-align: left;
    }

    .endorsement-quote p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .endorsement-attribution {
        margin-top: 20px;
    }

    .attribution-line {
        margin: 0 0 12px;
    }

    .endorser-name {
        font-size: 0.9rem;
    }

    .endorser-title {
        font-size: 0.8rem;
    }
}

/* --- Contact Page --- */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-info p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail .value {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.form-success h3 {
    color: var(--teal);
    margin-bottom: 8px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes bobbing {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--jungle-deep);
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .teaser-grid,
    .book-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .teaser-image {
        order: -1;
    }

    .book-cover-img {
        max-width: 260px;
    }

    .teaser-content .divider,
    .about-teaser-content .divider {
        margin-left: auto;
        margin-right: auto;
    }

    .teaser-content {
        text-align: center;
        margin: 0 auto;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .author-photo {
        float: none !important;
        margin: 0 auto 1.5rem auto !important;
        max-width: 280px;
        display: block;
    }

    .section {
        padding: 64px 0;
    }

    .pull-quote p::before {
        left: 0;
    }
}

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

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 28px 20px;
    }
}
