/*
Theme Name: Root Awakening
Theme URI: https://stage.rootawakening.tv
Description: Custom theme for Root Awakening: A Documentary Series
Author: Adam Caplan
Version: 1.2.0
Text Domain: rootawakening
*/

/* ============================================
   COLOR PALETTE (from Squarespace site)
   white:       hsl(0, 0%, 100%)        = #ffffff
   black:       hsl(240, 5%, 31%)       = #4b4a50
   lightAccent: hsl(60, 56%, 91%)       = #f5f4dc
   darkAccent:  hsl(86, 39%, 34%)       = #4d7a35
   accent:      hsl(16, 69%, 51%)       = #d56a2c
   black-bold:  hsl(205, 50%, 33%)      = #2a5a7f

   FONT SIZES (Squarespace variables @ >=1296px)
   h2:          2.8rem
   h3:          2.2rem
   h4:          1.6rem
   large-text:  1.5rem   (credit labels)
   normal-text: 1.2rem   (nav, standalone text)
   body-text:   0.9rem   (paragraph text)

   MAX CONTENT WIDTH: 1200px
   SITE GUTTER: 4vw (desktop), 6vw (mobile)
   ============================================ */

:root {
    --color-white: #ffffff;
    --color-black: #4b4a50;
    --color-light-accent: #f5f4dc;
    --color-dark-accent: #4d7a35;
    --color-accent: #d56a2c;
    --color-black-bold: #2a5a7f;
    --content-max-width: 1200px;
    --site-gutter: 4vw;
}

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

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

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

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-black);
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.4;
}

h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.6rem; }

/* Shared inner container — all content aligns to same column */
.section-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.header-solid {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px var(--site-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 90px;
    width: auto;
}

.site-logo a {
    text-decoration: none;
    display: block;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--color-black);
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.2s, opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.65;
}

/* Light text variant when header is over dark sections */
.site-header.header-light .main-nav a,
.site-header.header-light .site-logo a {
    color: var(--color-white);
}

.site-header.header-light .nav-instagram svg {
    fill: var(--color-white);
}

.site-header.header-light .menu-toggle span {
    background: var(--color-white);
}

/* Dropdown (Where To Watch) */
.main-nav .has-children > a::after {
    content: " \25BE";
    font-size: 10px;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 200px;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.main-nav .has-children:hover .sub-menu {
    display: block;
}

.main-nav .sub-menu a,
.site-header.header-light .main-nav .sub-menu a {
    padding: 6px 20px;
    font-size: 0.9rem;
    color: var(--color-black);
}

/* Instagram icon */
.nav-instagram {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.nav-instagram a {
    display: flex;
    align-items: center;
    padding: 8px;
}

.nav-instagram svg {
    width: 18px;
    height: 18px;
    fill: var(--color-black);
    transition: fill 0.2s, opacity 0.2s;
}

.nav-instagram a:hover svg {
    opacity: 0.65;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    margin: 5px 0;
    transition: all 0.3s;
}

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

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

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

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

.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 82px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 90px 0 40px 400px;
    width: 100%;
    max-width: var(--content-max-width);
    text-align: left;
}

.hero-tagline {
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.3;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */

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

.section-light {
    background-color: var(--color-light-accent);
}

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

.section-dark,
.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark a,
.section-dark .synopsis-label,
.section-dark .team-role,
.section-dark .team-bio,
.section-dark .team-bio a,
.section-dark .contact-info p,
.section-dark .contact-info a {
    color: var(--color-white);
}

.section-black {
    background-color: var(--color-black);
}

.section-black,
.section-black h1,
.section-black h2,
.section-black h3,
.section-black p,
.section-black a {
    color: var(--color-white);
}

.section-black-bold {
    background-color: var(--color-black-bold);
}

.section-black-bold,
.section-black-bold h2,
.section-black-bold h3,
.section-black-bold p,
.section-black-bold a,
.section-black-bold .team-role,
.section-black-bold .team-bio,
.section-black-bold .team-bio a {
    color: var(--color-white);
}

/* ============================================
   TRAILER
   ============================================ */

.trailer {
    padding: 40px var(--site-gutter) 0;
}

.trailer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.5%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}

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

.trailer-placeholder {
    padding: 80px 20px;
    opacity: 0.5;
}

/* ============================================
   PRODUCTION CREDITS
   ============================================ */

.credits {
    padding: 60px var(--site-gutter);
}

.credits-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
}

.credit-item {
    text-align: left;
}

.credit-item p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0em;
    color: var(--color-black);
}

.credit-item img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.credit-item a {
    text-decoration: none;
    display: block;
}

/* ============================================
   SYNOPSIS
   ============================================ */

.synopsis {
    padding: 80px var(--site-gutter);
}

.synopsis-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.synopsis-label {
    font-size: 2.8rem;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 8px;
    line-height: 1.4;
}

.synopsis h3 {
    margin-bottom: 40px;
}

.synopsis-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.synopsis-text p {
    margin-bottom: 24px;
}

.synopsis-images {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.synopsis-images img {
    width: 100%;
    object-fit: cover;
}

/* ============================================
   TEAM
   ============================================ */

.team {
    padding: 80px var(--site-gutter);
}

.team-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.team-heading {
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.team-member {
    text-align: center;
}

.team-member-photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 24px;
}

.team-member h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.team-member .team-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.team-member .team-bio {
    text-align: left;
}

.team-member .team-bio p {
    opacity: 0.85;
}

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

.contact {
    padding: 80px var(--site-gutter);
}

.contact-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact h2 {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* Contact Form 7 Styling */
.contact-form .wpcf7-form p {
    margin-bottom: 16px;
}

.contact-form .wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--color-white);
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    
    border-radius: 0;
    background: rgba(0, 0, 0, 0.25);
    color: var(--color-white);
    transition: background 0.2s;
    -webkit-appearance: none;
}

.contact-form .wpcf7-form input[type="text"]::placeholder,
.contact-form .wpcf7-form input[type="email"]::placeholder,
.contact-form .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.35);
}

.contact-form .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-appearance: none;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    opacity: 0.85;
}

/* ============================================
   DEFAULT PAGE TEMPLATE
   ============================================ */

.page-content {
    margin-top: 82px;
    padding: 80px var(--site-gutter);
    background: var(--color-white);
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.entry-content h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 12px; }
.entry-content h3 { font-size: 1.3rem; margin-top: 30px; margin-bottom: 10px; }
.entry-content h4 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul {
    margin: 0 0 16px 1.5em;
}

.entry-content li {
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.entry-content a {
    color: var(--color-black);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-white);
    padding: 16px var(--site-gutter);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-banner-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cookie-btn:hover {
    opacity: 0.85;
}

.cookie-btn-manage {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-accept {
    background: var(--color-accent);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

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

.site-footer {
    padding: 60px var(--site-gutter);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: border-color 0.2s;
}

.footer-social a:hover {
    border-color: var(--color-black);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: var(--color-black);
}

.site-footer .copyright {
    font-size: 16px;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

/* ============================================
   SCREENINGS PAGE
   ============================================ */

.screenings-page .screenings-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.screenings-hero {
    padding: 80px var(--site-gutter);
    padding-top: 120px;
}

.screenings-form-section {
    padding: 80px var(--site-gutter);
}

.screenings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.screenings-poster img {
    width: 100%;
}

.screenings-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.screening-info h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

.screening-info p {
    margin-bottom: 16px;
}

.event-label {
    color: var(--color-accent);
}

.screening-cta {
    font-size: 1.2rem;
    margin-top: 30px;
}

.section-black .screening-cta a {
    color: var(--color-white);
}

.host-screening {
    margin-top: 60px;
    padding-top: 60px;
    
}

.host-screening h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.host-screening > p {
    margin-bottom: 30px;
}

.screening-form {
    max-width: 600px;
}

/* Screening form — white background variant of contact form */
.screening-form .wpcf7-form p {
    margin-bottom: 16px;
}

.screening-form .wpcf7-form label {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0px;
    line-height: 1.8;
    color: var(--color-black);
}

.wpcf7-form label .required {
    font-size: 16px;
    opacity: 0.7;
}

.screening-form .wpcf7-form input[type="text"],
.screening-form .wpcf7-form input[type="email"],
.screening-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px 10px 5px;
    font-size: 1.2rem;
    font-family: inherit;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-black);
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.screening-form .wpcf7-form input:focus,
.screening-form .wpcf7-form textarea:focus {
    outline: none;
    border-bottom-color: rgba(0, 0, 0, 0.3);
}

.screening-form .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.screening-form .wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 19.2px 32px;
    font-size: 16px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 400;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-appearance: none;
}

.screening-form .wpcf7-form input[type="submit"]:hover {
    opacity: 0.85;
}

/* Side-by-side name fields */
.form-row-half {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
}

.form-row-half:first-child {
    margin-right: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .screenings-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .synopsis-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-overlay {
        width: 100%;
        padding-left: 200px;
    }
}

@media (max-width: 768px) {
    :root {
        --site-gutter: 6vw;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

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

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .main-nav .sub-menu {
        position: static;
        display: block;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
    }

    .main-nav .has-children > a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-instagram {
        margin-left: 0;
        margin-top: 16px;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-tagline {
        font-size: 1.6rem;
    }

    .hero-overlay {
        padding: 60px var(--site-gutter) 30px;
    }

    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .synopsis-label {
        font-size: 2rem;
    }
}
