/* ==========================================================================
   GRIMWICK MEDIA - STYLES.CSS
   The Nocturne Library
   ========================================================================== */

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

:root {
    --mahogany: #3d1f1f;
    --blood-red: #8b0000;
    --deep-black: #0a0a0a;
    --matte-gold: #b8860b;
    --ivory: #fffff0;
    --smoke: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--deep-black);
    color: var(--ivory);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   ACCESSIBILITY - FOCUS STATES
   ========================================================================== */

a:focus, 
button:focus, 
input:focus, 
textarea:focus {
    outline: 2px solid var(--matte-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

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

nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--matte-gold);
    text-decoration: none;
    font-style: italic;
    transition: opacity 0.3s;
}

nav .logo:hover {
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--ivory);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    opacity: 0.9;
}

.nav-menu a:hover {
    color: var(--matte-gold);
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--matte-gold);
    transition: all 0.3s;
}

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

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

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(61, 31, 31, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    color: var(--matte-gold);
    text-shadow: 2px 2px 30px rgba(184, 134, 11, 0.4);
    line-height: 1.2;
}

.hero .tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    margin-bottom: 3rem;
    color: var(--ivory);
    opacity: 0.95;
}

.hero .description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--matte-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: 2px solid var(--matte-gold);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--matte-gold);
    transition: left 0.4s;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--deep-black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section {
    padding: clamp(4rem, 10vw, 8rem) 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

section h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--matte-gold);
    text-align: center;
}

section .section-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 5rem;
    opacity: 0.85;
    color: var(--ivory);
}

/* ==========================================================================
   IMAGE TEXT BLOCKS
   ========================================================================== */

.image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin: 5rem 0;
    align-items: center;
}

.image-text-block.reverse {
    direction: rtl;
}

.image-text-block.reverse > * {
    direction: ltr;
}

.image-text-block picture {
    display: block;
    width: 100%;
}

.image-text-block img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 1px solid var(--matte-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.text-content {
    padding: 2rem;
}

.text-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--matte-gold);
}

.text-content p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 1.5rem;
    line-height: 2;
    opacity: 0.9;
    max-width: 65ch;
}

/* ==========================================================================
   QUOTE BLOCKS
   ========================================================================== */

.quote-block {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-style: italic;
    text-align: center;
    padding: 5rem 2rem;
    margin: 6rem 0;
    position: relative;
    color: var(--ivory);
    border-top: 2px solid rgba(184, 134, 11, 0.3);
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: var(--matte-gold);
    opacity: 0.2;
}

.quote-block cite {
    display: block;
    font-size: 1rem;
    margin-top: 2rem;
    font-style: normal;
    color: var(--matte-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   FULL WIDTH TEXT
   ========================================================================== */

.full-width-text {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
}

.full-width-text h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--matte-gold);
}

.full-width-text p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2.2;
    opacity: 0.9;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   CREATOR SECTION
   ========================================================================== */

.creator-intro {
    background: linear-gradient(135deg, rgba(61, 31, 31, 0.3) 0%, rgba(10, 10, 10, 0.5) 100%);
    padding: 5rem;
    margin: 4rem 0;
    border-left: 4px solid var(--matte-gold);
    border-right: 4px solid var(--matte-gold);
}

.creator-intro h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--matte-gold);
    margin-bottom: 2rem;
}

.creator-intro p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2.2;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ==========================================================================
   VIDEO CONTAINER
   ========================================================================== */

.video-container {
    max-width: 1000px;
    margin: 5rem auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 2px solid var(--matte-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.video-caption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--matte-gold);
}

/* ==========================================================================
   PARALLAX SECTION
   ========================================================================== */

.parallax-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 5rem 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (min-width: 769px) {
    .parallax-bg {
        transform: translateZ(0);
        will-change: transform;
    }
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 900px;
}

.parallax-content h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--matte-gold);
    margin-bottom: 2rem;
}

.parallax-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 2;
}

/* ==========================================================================
   PARTNERSHIP SECTION
   ========================================================================== */

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 5rem 0;
}

.partnership-card {
    background: linear-gradient(135deg, rgba(61, 31, 31, 0.2) 0%, rgba(10, 10, 10, 0.4) 100%);
    padding: 3rem;
    border: 1px solid rgba(184, 134, 11, 0.3);
    transition: all 0.3s;
}

.partnership-card:hover {
    border-color: var(--matte-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.2);
}

.partnership-card h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--matte-gold);
}

.partnership-card p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.9;
    opacity: 0.85;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(61, 31, 31, 0.3) 0%, rgba(10, 10, 10, 0.5) 100%);
    padding: 4rem;
    border: 2px solid var(--matte-gold);
}

.contact-form-container h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--matte-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--matte-gold);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--ivory);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
}

.form-status {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid rgba(0, 128, 0, 0.5);
    display: block;
}

.form-status.error {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--blood-red);
    display: block;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(61, 31, 31, 0.3) 0%, rgba(10, 10, 10, 0.5) 100%);
    padding: 5rem;
    border: 2px solid var(--matte-gold);
    text-align: center;
}

.contact-container h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--matte-gold);
    margin-bottom: 2rem;
}

.contact-container p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.contact-container a {
    color: var(--matte-gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-container a:hover {
    opacity: 0.8;
}

.contact-details {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

.contact-details p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--deep-black);
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
}

.hashtag {
    display: inline-block;
    color: var(--matte-gold);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

footer .tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    display: inline-block;
    color: var(--matte-gold);
    margin: 0 1rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 2rem;
}

.fade-text {
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ==========================================================================
   FADE-IN ANIMATIONS
   ========================================================================== */

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

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

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        background-attachment: scroll !important;
    }
    
    .hero-bg {
        position: static !important;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .image-text-block { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    .image-text-block.reverse { 
        direction: ltr; 
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

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

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .creator-intro,
    .contact-form-container,
    .contact-container {
        padding: 2rem;
    }

    .image-text-block img {
        height: 300px;
    }

    /* Disable parallax on mobile */
    .parallax-bg {
        position: static !important;
        height: auto !important;
    }

    .parallax-section {
        background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7));
    }
}
