/* Bobbi Graffunder Author Website - Styles */

/* CSS Variables */
:root {
    --brand-cream: #faf9f6;
    --brand-sage: #8ba88e;
    --brand-text: #333333;
    --brand-text-light: #666666;
    --brand-accent: #d4a373;
    --brand-dark: #1a1a1a;
    --brand-white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-text);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-text);
    transition: var(--transition-smooth);
}

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

.nav-links .btn-nav {
    border: 1px solid var(--brand-text);
    padding: 10px 24px;
    transition: var(--transition-smooth);
}

.nav-links .btn-nav:hover {
    background: var(--brand-text);
    color: var(--brand-white);
}

.nav-links .btn-nav::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-text);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--brand-white);
    padding: 20px 40px 40px;
    box-shadow: var(--shadow-medium);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Video Section */
.hero-video-section {
    padding: 120px 0 80px;
    background: var(--brand-cream);
}

.hero-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-content {
    padding: 20px 0;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--brand-text-light);
}

.hero-video-content h1 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--brand-text);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--brand-text-light);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Legacy Hero Section (for other pages) */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title-top {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--brand-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.20;
    pointer-events: none;
}

.hero-overlay img {
    max-width: 280px;
    width: 280px;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    color: var(--brand-white);
    margin-left: 10%;
}

.hero-buttons-below {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-left: 10%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background: var(--brand-cream);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-outline:hover {
    background: var(--brand-text);
    color: var(--brand-white);
    border-color: var(--brand-text);
}

.btn-dark {
    background: var(--brand-dark);
    color: var(--brand-white);
}

.btn-dark:hover {
    background: #333;
}

/* Quote Banner */
.quote-banner {
    background: var(--brand-white);
    padding: 80px 20px;
    text-align: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    color: var(--brand-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--brand-white);
}

.section-cream {
    background: var(--brand-cream);
}

.section-dark {
    background: var(--brand-dark);
    color: var(--brand-white);
}

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

.section-title h2 {
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: var(--brand-text-light);
    margin: 0 auto;
}

.section-dark .section-title .divider {
    background: rgba(255, 255, 255, 0.3);
}

/* Featured Book */
.featured-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.book-image {
    position: relative;
}

.book-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.book-info h2 {
    margin-bottom: 10px;
}

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

.book-description {
    margin-bottom: 30px;
    color: var(--brand-text-light);
}

.book-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Video Section */
.video-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: relative;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    border-radius: 4px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--brand-dark);
    margin-left: 4px;
}

/* About Author */
.about-author {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.author-image {
    position: relative;
}

.author-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.author-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--brand-cream);
    border-radius: 50%;
    z-index: -1;
}

.author-info h3 {
    margin-bottom: 25px;
}

.author-bio {
    color: var(--brand-text-light);
    margin-bottom: 20px;
}

/* Endorsements */
.endorsements {
    max-width: 900px;
    margin: 0 auto;
}

.endorsement {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.endorsement:last-child {
    border-bottom: none;
}

.endorsement blockquote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--brand-text);
}

.endorsement cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--brand-text-light);
}

.endorsement cite strong {
    color: var(--brand-text);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--brand-white);
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid var(--brand-sage);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.resource-card h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--brand-text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.resource-card a {
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.resource-card a:hover {
    color: var(--brand-sage);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 20px;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

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

.contact-form .btn {
    width: 100%;
    padding: 18px;
}

/* Footer */
.footer {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer-info a:hover {
    color: var(--brand-white);
}

.footer-copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: var(--brand-white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-video-grid,
    .featured-book,
    .video-section,
    .about-author {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-video-section {
        padding: 100px 0 60px;
    }
    
    .hero-video-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons-below {
        margin-left: 5%;
        justify-content: flex-start;
    }

    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
        padding: 40px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        margin: 0 20px;
        padding: 30px;
    }
    
    .hero-buttons-below {
        margin-left: 20px;
        margin-right: 20px;
        justify-content: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .book-buttons {
        flex-direction: column;
    }
    
    .book-buttons .btn {
        text-align: center;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
