/* ===================================
   Hysterical Poetry - Main Styles
   =================================== */

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

:root {
    /* Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-bg-burgundy: #2d1111;
    --color-bg-burgundy-dark: #1a0a0a;
    --color-accent: #a62626;
    --color-accent-hover: #c43030;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-muted: #808080;
    --color-border: #333333;

    /* Typography */
    --font-heading: 'Bodoni Moda', Georgia, serif;
    --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

h2 em {
    font-style: italic;
    color: var(--color-accent);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.link-arrow {
    color: var(--color-accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link-arrow:hover {
    color: var(--color-accent-hover);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-burgundy) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.hero-features {
    margin-bottom: var(--spacing-lg);
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary);
}

.emoji {
    font-size: 1rem;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Experience Section
   =================================== */
.experience {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-primary);
}

.experience-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.video-showcase {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.showcase-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--spacing-sm);
    filter: invert(30%) sepia(90%) saturate(1000%) hue-rotate(330deg);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================
   Product Section
   =================================== */
.product {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.product-content h2 {
    margin-bottom: var(--spacing-md);
}

.product-features {
    margin: var(--spacing-lg) 0;
}

.product-features li {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary);
}

.product-image img {
    border-radius: 8px;
}

/* ===================================
   Venues Section
   =================================== */
.venues {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-bg-burgundy-dark) 0%, var(--color-bg-burgundy) 100%);
}

.venues-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.venues-content h2 {
    margin-bottom: var(--spacing-md);
}

.venues-list {
    margin-top: var(--spacing-lg);
}

.venues-list li {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary);
}

.venues-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
    justify-items: center;
}

.venues-logos img {
    max-height: 70px;
    width: auto;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.venues-logos img:hover {
    opacity: 1;
}

/* ===================================
   Facilitators Section
   =================================== */
.facilitators {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-primary);
}

.facilitators-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.facilitators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.facilitator-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.facilitator-card img {
    width: 100%;
    border-radius: 8px;
}

.facilitator-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.facilitator-info p {
    font-size: 0.9rem;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-primary);
}

.testimonials .section-label {
    margin-bottom: var(--spacing-xs);
}

.testimonials h2 {
    margin-bottom: var(--spacing-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.testimonial-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-header h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 2px;
}

.testimonial-header span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonial-card > p {
    font-style: italic;
    margin-bottom: 0;
}

/* ===================================
   Parallax Gallery + CTA Section
   =================================== */
.parallax-gallery {
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #1a1040 100%);
    overflow: visible;
}

.parallax-scroll-area {
    height: 250vh;
}

.parallax-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.parallax-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parallax-gallery.active .parallax-images {
    opacity: 1;
}

.parallax-img {
    position: absolute;
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Starting positions (clustered in center) */
.parallax-img-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 240px;
    height: 180px;
}

.parallax-img-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(3deg);
    width: 300px;
    height: 380px;
}

.parallax-img-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    width: 260px;
    height: 170px;
}

.parallax-img-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(5deg);
    width: 250px;
    height: 180px;
}

.parallax-img-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 220px;
    height: 160px;
}


/* ===================================
   Contact Section
   =================================== */
.contact {
    background: linear-gradient(180deg, var(--color-bg-burgundy) 0%, var(--color-bg-burgundy-dark) 100%);
    min-height: 850px;
}

.contact-form-wrapper {
    width: 100%;
    height: 850px;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-primary);
}

.faq .section-label {
    text-align: center;
}

.faq h2 {
    text-align: center;
}

.faq-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding-bottom: var(--spacing-md);
}

.faq-answer a {
    color: var(--color-accent);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-image {
    max-width: 400px;
    margin-bottom: var(--spacing-md);
    border-radius: 4px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo {
    height: 30px;
    width: auto;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

/* ===================================
   Legal Pages (Terms, Cookies, Sitemap)
   =================================== */
.legal-page {
    padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-xxl);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.legal-page .legal-updated {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.legal-page h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.legal-page p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
}

.legal-page ul {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    max-width: 800px;
}

.legal-page ul li {
    margin-bottom: var(--spacing-xs);
}

.legal-page a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-page a:hover {
    color: var(--color-text-primary);
}

.sitemap-list {
    list-style: none;
    padding-left: 0;
}

.sitemap-list li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--color-bg-secondary);
}

.sitemap-list li:last-child {
    border-bottom: none;
}

/* ===================================
   Responsive Design
   =================================== */
/* Parallax responsive adjustments */
@media (max-width: 1024px) {
    .parallax-img {
        width: 200px;
        height: 150px;
    }

    .parallax-img-2 {
        width: 240px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .parallax-scroll-area {
        height: auto;
    }

    .parallax-sticky {
        position: relative;
        height: auto;
        padding: var(--spacing-xxl) 0;
    }

    .parallax-images {
        position: relative;
        height: auto;
        opacity: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-md) var(--spacing-xl);
    }

    .parallax-gallery .parallax-images {
        opacity: 1;
    }

    .parallax-img {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 180px;
        transform: none !important;
    }

    .parallax-img-2 {
        grid-row: span 2;
        height: 100%;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .product-grid,
    .venues-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .facilitators-grid {
        grid-template-columns: 1fr;
    }

    .facilitator-card {
        grid-template-columns: 150px 1fr;
    }

    .venues-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gallery-img-1 { grid-column: 1; grid-row: 1; }
    .gallery-img-2 { grid-column: 2; grid-row: 1 / 3; }
    .gallery-img-3 { grid-column: 1; grid-row: 2; }
    .gallery-img-4 { grid-column: 1; grid-row: 3; }
    .gallery-img-5 { grid-column: 2; grid-row: 3; }
}

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
    }


    .hero {
        padding-top: calc(70px + var(--spacing-xl));
    }

    .hero-grid {
        text-align: center;
    }

    .hero-features {
        display: inline-block;
        text-align: left;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .facilitator-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .facilitator-card img {
        max-width: 200px;
        margin: 0 auto;
        order: 0;
    }

    .facilitator-info {
        order: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }

    .gallery-img-1,
    .gallery-img-2,
    .gallery-img-3,
    .gallery-img-4,
    .gallery-img-5 {
        grid-column: 1;
        grid-row: auto;
    }

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

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

    h2 {
        font-size: 1.75rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .venues-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .venues-logos img {
        max-height: 55px;
    }
}

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===================================
   Enhanced Hover Effects
   =================================== */
/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(166, 38, 38, 0.4);
}

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

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: #222;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--color-accent);
}

/* Facilitator Cards */
.facilitator-card img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.facilitator-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Venue Logos */
.venues-logos img {
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(30%);
}

.venues-logos img:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: grayscale(0%);
}

/* Hero Image */
.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Product Image */
.product-image img {
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

/* Link Arrows */
.link-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

/* Logo hover */
.logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* FAQ questions */
.faq-question {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.faq-question:hover {
    padding-left: 10px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
