/* ============================================================
   DESERT AIR CINEMA — LICENSING PAGE STYLES
   Mirrors the FAQ page aesthetic (.faq-page wrapper) and
   adds licensing-specific elements:
     • Quick reference cards (need / don't need)
     • Licensing agency CTA buttons
     • Service callout box
   Uses the site's CSS variables for full day/night mode.
   ============================================================ */

.faq-page {
    --faq-radius:    16px;
    --faq-radius-sm: 10px;

    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 60px;
}

.faq-page .faq-container-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============== Hero ============== */
.faq-page .faq-hero {
    text-align: center;
    padding: 56px 0 60px;
    position: relative;
}

.faq-page .faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 22px;
    font-weight: 700;
}
.faq-page .faq-eyebrow::before,
.faq-page .faq-eyebrow::after {
    content: '';
    width: 24px; height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.faq-page .faq-h1 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(40px, 6.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 18px 0;
    color: var(--text-color);
}
.faq-page .faq-h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--primary-color);
}

.faq-page .faq-lede {
    font-size: 17px;
    color: var(--muted-text-color);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-page .faq-horizon {
    width: 100%;
    max-width: 600px;
    height: 60px;
    margin: 32px auto 0;
    overflow: hidden;
    color: var(--primary-color);
}
.faq-page .faq-horizon svg { width: 100%; height: 100%; display: block; }

/* ============== Quick reference cards (licensing-specific) ============== */
.faq-page .lic-quick-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}
.faq-page .lic-quick-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--faq-radius);
    padding: 24px 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.faq-page .lic-quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
}
.faq-page .lic-quick-card.lic-need::before  { background: var(--primary-color); }
.faq-page .lic-quick-card.lic-skip::before  { background: var(--muted-text-color); opacity: 0.5; }

.faq-page .lic-quick-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin-bottom: 14px;
    font-size: 16px;
}
.faq-page .lic-quick-card.lic-need .lic-quick-icon {
    background: var(--primary-color);
    color: #fff;
}
.faq-page .lic-quick-card.lic-skip .lic-quick-icon {
    background: var(--border-color);
    color: var(--muted-text-color);
}

.faq-page .lic-quick-card h3 {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
}
.faq-page .lic-quick-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-page .lic-quick-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 14.5px;
    color: var(--text-color);
    line-height: 1.55;
}
.faq-page .lic-quick-card ul li:last-child { margin-bottom: 0; }
.faq-page .lic-quick-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 8px; height: 1px;
    background: var(--primary-color);
}
.faq-page .lic-quick-card.lic-skip ul li::before { background: var(--muted-text-color); opacity: 0.6; }

/* ============== Toolbar (search) ============== */
.faq-page .faq-toolbar {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--faq-radius);
    padding: 14px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.faq-page .faq-search-row {
    display: flex; align-items: center;
    gap: 12px;
    padding: 4px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: border-color .25s ease;
}
.faq-page .faq-search-row:focus-within {
    border-color: var(--primary-color);
}
.faq-page .faq-search-row svg {
    flex-shrink: 0;
    color: var(--primary-color);
    width: 18px; height: 18px;
}
.faq-page .faq-search-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 15px;
    padding: 11px 0;
}
.faq-page .faq-search-row input::placeholder {
    color: var(--muted-text-color);
    opacity: 0.75;
}

/* ============== Accordion ============== */
.faq-page .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 56px;
}

.faq-page .faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.faq-page .faq-item:hover {
    border-color: var(--primary-color);
}
.faq-page .faq-item.open {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.faq-page .faq-item.hidden { display: none; }

.faq-page .faq-q {
    width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 22px 26px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.faq-page .faq-num {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    min-width: 32px;
}
.faq-page .faq-q-text {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.faq-page .faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: grid; place-items: center;
    transition: all .3s ease;
    flex-shrink: 0;
}
.faq-page .faq-toggle svg {
    width: 12px; height: 12px;
    color: var(--muted-text-color);
    transition: transform .3s ease;
}
.faq-page .faq-item.open .faq-toggle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.faq-page .faq-item.open .faq-toggle svg {
    color: #fff;
    transform: rotate(180deg);
}

.faq-page .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s ease;
}
.faq-page .faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-page .faq-a-inner { overflow: hidden; }
.faq-page .faq-a-content {
    padding: 4px 26px 26px 78px;
    color: var(--text-color);
    font-size: 15.5px;
    line-height: 1.75;
}
.faq-page .faq-a-content p { margin-bottom: 14px; }
.faq-page .faq-a-content p:last-child { margin-bottom: 0; }
.faq-page .faq-a-content ul {
    list-style: none;
    margin: 14px 0;
    padding-left: 0;
}
.faq-page .faq-a-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}
.faq-page .faq-a-content ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 8px; height: 1px;
    background: var(--primary-color);
}
.faq-page .faq-a-content strong {
    color: var(--text-color);
    font-weight: 700;
}
.faq-page .faq-a-content .subheading {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.faq-page .faq-a-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity .2s ease;
}
.faq-page .faq-a-content a:hover { opacity: 0.7; }

/* ============== Licensing agency buttons (Q3) ============== */
.faq-page .lic-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.faq-page .lic-cta {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--faq-radius-sm);
    padding: 16px 18px;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-color);
    transition: all .25s ease;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
}
.faq-page .lic-cta:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.faq-page .lic-cta-name {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    grid-column: 1;
    grid-row: 1;
}
.faq-page .lic-cta-meta {
    font-size: 12px;
    color: var(--muted-text-color);
    grid-column: 1;
    grid-row: 2;
    line-height: 1.3;
}
.faq-page .lic-cta i {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--primary-color);
    font-size: 14px;
    transition: transform .25s ease;
}
.faq-page .lic-cta:hover i {
    transform: translate(2px, -2px);
}

/* ============== Licensing service callout (Q4) ============== */
.faq-page .lic-callout {
    margin-top: 16px;
    background: var(--card-bg-color);
    border: 1px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--faq-radius-sm);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.faq-page .lic-callout-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 22px;
    line-height: 1;
    padding-top: 2px;
}
.faq-page .lic-callout-body strong {
    display: block;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.faq-page .lic-callout-body p {
    margin: 0 !important;
    font-size: 14.5px;
    color: var(--text-color);
    line-height: 1.6;
}

/* ============== Bottom CTA ============== */
.faq-page .faq-cta-block {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 32px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.faq-page .faq-cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}
.faq-page .faq-cta-block h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
    color: var(--text-color);
}
.faq-page .faq-cta-block h2 em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 400;
}
.faq-page .faq-cta-block p {
    color: var(--muted-text-color);
    font-size: 16px;
    margin: 0 auto 26px;
    max-width: 480px;
}
.faq-page .faq-cta-buttons {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.faq-page .faq-btn {
    padding: 13px 26px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.faq-page .faq-btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.faq-page .faq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    filter: brightness(1.08);
}
.faq-page .faq-btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.faq-page .faq-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============== Empty state ============== */
.faq-page .faq-no-results {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted-text-color);
}
.faq-page .faq-no-results svg {
    width: 32px; height: 32px;
    color: var(--primary-color);
    margin-bottom: 14px;
}
.faq-page .faq-no-results h3 {
    font-family: var(--heading-font);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 6px 0;
}

/* ============== Reveal animation ============== */
@keyframes faqRise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.faq-page .faq-item { animation: faqRise .5s ease backwards; }
.faq-page .faq-item:nth-child(1) { animation-delay: .05s; }
.faq-page .faq-item:nth-child(2) { animation-delay: .10s; }
.faq-page .faq-item:nth-child(3) { animation-delay: .15s; }
.faq-page .faq-item:nth-child(4) { animation-delay: .20s; }
.faq-page .faq-item:nth-child(5) { animation-delay: .25s; }
.faq-page .faq-item:nth-child(6) { animation-delay: .30s; }
.faq-page .faq-item:nth-child(7) { animation-delay: .35s; }

/* ============== Responsive ============== */
@media (max-width: 768px) {
    .faq-page .faq-container-inner { padding: 0 18px; }
    .faq-page .faq-hero { padding: 32px 0 44px; }
    .faq-page .lic-quick-cards { grid-template-columns: 1fr; gap: 12px; }
    .faq-page .lic-quick-card { padding: 20px 22px; }
    .faq-page .faq-q { padding: 18px 16px; gap: 14px; }
    .faq-page .faq-q-text { font-size: 16px; }
    .faq-page .faq-num { font-size: 16px; min-width: 24px; }
    .faq-page .faq-a-content { padding: 0 16px 22px 54px; font-size: 15px; }
    .faq-page .lic-buttons { grid-template-columns: 1fr; }
    .faq-page .faq-cta-block { padding: 36px 22px; }
}

@media (max-width: 480px) {
    .faq-page .faq-a-content { padding: 0 16px 22px 16px; }
    .faq-page .faq-num { display: none; }
    .faq-page .faq-q { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
