/*
=========================================================
 CLASSIC PICTURES
 FILMS / VIDEO GALLERY
=========================================================
*/

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222222;
    line-height: 1.6;
}

body.film-viewer-open {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
a {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =====================================================
   HEADER
===================================================== */

.films-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;

    position: sticky;
    top: 0;

    z-index: 5000;
}

.films-header-container {
    width: min(1200px, 92%);
    min-height: 82px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
   LOGO
===================================================== */

.films-logo {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #111111;

    flex-shrink: 0;
}

.films-logo img {
    width: 55px;
    height: 55px;

    object-fit: contain;
}

.films-logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.films-logo-text strong {
    font-size: 18px;

    letter-spacing: 1px;
}

.films-logo-text small {
    margin-top: 5px;

    color: #d40000;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


/* =====================================================
   NAVIGATION
===================================================== */

.films-navigation {
    display: flex;
    align-items: center;

    gap: 24px;
}

.films-navigation a {
    color: #222222;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.films-navigation a:hover {
    color: #d40000;
}


/* =====================================================
   BOOK NOW BUTTON
===================================================== */

.films-book-button {
    background: #d40000;

    color: #ffffff !important;

    padding: 12px 20px;

    border-radius: 4px;

    font-weight: 700 !important;
}

.films-book-button:hover {
    background: #a90000;

    color: #ffffff !important;
}


/* =====================================================
   FILMS HERO
===================================================== */

.films-hero {
    position: relative;

    min-height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.85)
        ),
        url("images/films/films-hero.jpg")
        center center / cover no-repeat;

    overflow: hidden;
}

.films-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.45)
        );

    pointer-events: none;
}

.films-hero-content {
    width: min(850px, 90%);

    position: relative;

    z-index: 2;

    color: #ffffff;
}

.films-hero-label {
    color: #ff3333;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 15px;
}

.films-hero h1 {
    color: #ffffff;

    font-size: clamp(42px, 7vw, 78px);

    line-height: 1.05;

    font-weight: 800;

    margin-bottom: 20px;
}

.films-hero-line {
    width: 75px;
    height: 4px;

    background: #d40000;

    margin: 0 auto 22px;
}

.films-hero-content > p:not(.films-hero-label) {
    max-width: 720px;

    margin: 0 auto 30px;

    color: #eeeeee;

    font-size: 17px;
}

.films-hero-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.films-hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 14px 26px;

    background: #d40000;

    color: #ffffff;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.films-hero-button:hover {
    background: #ffffff;

    color: #d40000;

    transform: translateY(-2px);
}

.films-outline-button {
    background: transparent;

    border: 1px solid #ffffff;

    color: #ffffff;
}

.films-outline-button:hover {
    background: #ffffff;

    color: #111111;
}


/* =====================================================
   FILMS SECTION
===================================================== */

.films-section {
    width: min(1200px, 92%);

    margin: 0 auto;

    padding: 85px 0;
}


/* =====================================================
   SECTION HEADING
===================================================== */

.films-heading {
    text-align: center;

    margin-bottom: 45px;
}

.films-heading > p:first-child {
    color: #d40000;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.films-heading h2 {
    color: #111111;

    font-size: clamp(32px, 5vw, 50px);

    line-height: 1.15;

    margin-bottom: 15px;
}

.films-heading-line {
    width: 70px;
    height: 4px;

    background: #d40000;

    margin: 0 auto 20px;
}

.films-intro {
    max-width: 700px;

    margin: 0 auto;

    color: #666666;

    font-size: 15px;
}


/* =====================================================
   FILM FILTERS
===================================================== */

.films-filters {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;
}

.film-filter {
    border: 1px solid #dddddd;

    background: #ffffff;

    color: #333333;

    padding: 11px 20px;

    border-radius: 30px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease;
}

.film-filter:hover {
    border-color: #d40000;

    color: #d40000;

    transform: translateY(-1px);
}

.film-filter.active {
    background: #d40000;

    color: #ffffff;

    border-color: #d40000;
}


/* =====================================================
   FILM GRID
===================================================== */

.films-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: start;
}


/* =====================================================
   FILM CARD
===================================================== */

.film-card {
    width: 100%;

    min-width: 0;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    border: 1px solid #eeeeee;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.film-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   IMPORTANT VIDEO WRAPPER
===================================================== */

.film-video-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000000;

    overflow: hidden;

    cursor: pointer;
}


/* =====================================================
   ACTUAL VIDEO
===================================================== */

.film-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    background: #000000;

    z-index: 1;
}


/*
=========================================================
IMPORTANT:
The video controls must remain clickable.
=========================================================
*/

.film-video::-webkit-media-controls {
    z-index: 20;
}


/* =====================================================
   PLAY OVERLAY
===================================================== */

.film-play-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, 0.20);

    z-index: 5;

    pointer-events: none;

    transition:
        background 0.3s ease,
        opacity 0.3s ease;
}

.film-card:hover .film-play-overlay {
    background:
        rgba(0, 0, 0, 0.32);
}


/* =====================================================
   PLAY ICON
===================================================== */

.film-play-icon {
    width: 70px;
    height: 70px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding-left: 4px;

    background: #d40000;

    color: #ffffff;

    font-size: 28px;

    line-height: 1;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.film-card:hover .film-play-icon {
    transform: scale(1.1);

    background: #ffffff;

    color: #d40000;
}


/* =====================================================
   FILM CARD CONTENT
===================================================== */

.film-card-content {
    padding: 22px;
}

.film-category {
    display: inline-block;

    color: #d40000;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.film-card-content h3 {
    color: #111111;

    font-size: 21px;

    line-height: 1.25;

    margin-bottom: 10px;

    word-break: break-word;
}

.film-card-content p {
    color: #666666;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 18px;
}


/* =====================================================
   WATCH FILM BUTTON
===================================================== */

.watch-film-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;

    background: #111111;

    color: #ffffff;

    padding: 11px 17px;

    border-radius: 4px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.watch-film-button:hover {
    background: #d40000;

    transform: translateY(-2px);
}


/* =====================================================
   FILM ERROR
===================================================== */

.film-card.film-error
.film-video-wrapper {
    background: #220000;
}

.film-card.film-error
.film-play-overlay {
    background:
        rgba(120, 0, 0, 0.55);
}


/* =====================================================
   EMPTY FILMS MESSAGE
===================================================== */

.films-empty {
    text-align: center;

    padding: 60px 20px;

    margin-top: 20px;

    background: #f7f7f7;

    border-radius: 8px;

    color: #666666;
}

.films-empty-icon {
    font-size: 50px;

    margin-bottom: 15px;
}

.films-empty h3 {
    color: #222222;

    font-size: 24px;

    margin-bottom: 8px;
}

.films-empty p {
    color: #777777;

    font-size: 14px;
}


/* =====================================================
   FILM CTA
===================================================== */

.films-cta {
    background: #f5f5f5;

    text-align: center;

    padding: 85px 20px;
}

.films-cta-content {
    width: min(800px, 92%);

    margin: 0 auto;
}

.films-cta-content > p:first-child {
    color: #d40000;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.films-cta h2 {
    color: #111111;

    font-size: clamp(30px, 5vw, 50px);

    line-height: 1.1;

    margin-bottom: 15px;
}

.films-cta-line {
    width: 70px;
    height: 4px;

    background: #d40000;

    margin: 0 auto 22px;
}

.films-cta-content > p:not(:first-child) {
    max-width: 680px;

    margin: 0 auto 25px;

    color: #666666;

    font-size: 15px;
}

.films-cta-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.films-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    background: #d40000;

    color: #ffffff;

    padding: 14px 28px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.films-cta-button:hover {
    background: #111111;

    transform: translateY(-2px);
}

.films-whatsapp-button {
    background: #25d366;
}

.films-whatsapp-button:hover {
    background: #128c4a;
}


/* =====================================================
   FOOTER
===================================================== */

.films-footer {
    background: #111111;

    color: #ffffff;

    padding: 55px 0 25px;
}

.films-footer-container {
    width: min(1200px, 92%);

    margin: 0 auto;
}

.films-footer-brand {
    text-align: center;

    margin-bottom: 30px;
}

.films-footer-brand h2 {
    font-size: 22px;

    letter-spacing: 1px;

    margin-bottom: 5px;
}

.films-footer-brand p {
    color: #bbbbbb;

    font-size: 13px;
}

.films-footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    padding-bottom: 30px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}

.films-footer-links a {
    color: #aaaaaa;

    font-size: 13px;

    transition: color 0.3s ease;
}

.films-footer-links a:hover {
    color: #ffffff;
}

.films-footer-bottom {
    text-align: center;

    padding-top: 25px;

    color: #888888;

    font-size: 12px;
}


/* =====================================================
   FULLSCREEN FILM VIEWER
===================================================== */

.film-viewer {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background:
        rgba(0, 0, 0, 0.96);

    overflow: auto;
}

.film-viewer.active {
    display: flex;
}

.film-viewer-content {
    position: relative;

    width: min(1100px, 94vw);

    max-height: 92vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* =====================================================
   VIEWER VIDEO
===================================================== */

#film-viewer-video {
    width: 100%;

    max-width: 1100px;

    max-height: 78vh;

    display: block;

    background: #000000;

    border-radius: 6px;

    object-fit: contain;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.7);
}


/* =====================================================
   VIEWER INFO
===================================================== */

.film-viewer-info {
    width: 100%;

    text-align: center;

    color: #ffffff;

    padding-top: 15px;
}

.film-viewer-info > span {
    color: #ff3333;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.film-viewer-info h2 {
    color: #ffffff;

    font-size: 20px;

    margin-top: 5px;
}

.film-viewer-counter {
    margin-top: 5px;

    color: #aaaaaa;

    font-size: 12px;
}


/* =====================================================
   VIEWER CLOSE
===================================================== */

.film-viewer-close {
    position: fixed;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: 0;

    border-radius: 50%;

    background: #d40000;

    color: #ffffff;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    z-index: 1000000;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.film-viewer-close:hover {
    background: #ffffff;

    color: #d40000;

    transform: rotate(90deg);
}


/* =====================================================
   VIEWER PREVIOUS / NEXT
===================================================== */

.film-viewer-prev,
.film-viewer-next {
    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.13);

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    z-index: 1000000;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.film-viewer-prev {
    left: 20px;
}

.film-viewer-next {
    right: 20px;
}

.film-viewer-prev:hover,
.film-viewer-next:hover {
    background: #d40000;
}

.film-viewer-prev:hover {
    transform:
        translateY(-50%)
        scale(1.05);
}

.film-viewer-next:hover {
    transform:
        translateY(-50%)
        scale(1.05);
}


/* =====================================================
   FLOATING WHATSAPP
===================================================== */

.films-floating-whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 4000;

    display: flex;

    align-items: center;

    gap: 8px;

    background: #25d366;

    color: #ffffff;

    padding: 12px 17px;

    border-radius: 30px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.films-floating-whatsapp:hover {
    color: #ffffff;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3);
}

.films-floating-whatsapp span {
    font-size: 18px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .films-navigation {
        gap: 15px;
    }

    .films-navigation a {
        font-size: 12px;
    }

    .films-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .films-header-container {
        min-height: 70px;
    }

    .films-logo img {
        width: 45px;
        height: 45px;
    }

    .films-logo-text strong {
        font-size: 14px;
    }

    .films-logo-text small {
        font-size: 7px;
    }

    .films-navigation {
        display: none;
    }


    /* HERO */

    .films-hero {
        min-height: 500px;

        padding: 70px 0;
    }

    .films-hero h1 {
        font-size: 43px;
    }

    .films-hero-label {
        font-size: 11px;

        letter-spacing: 2.5px;
    }

    .films-hero-content > p:not(.films-hero-label) {
        font-size: 15px;
    }

    .films-hero-buttons {
        flex-direction: column;

        align-items: center;
    }

    .films-hero-button {
        width: min(300px, 90%);
    }


    /* SECTION */

    .films-section {
        padding: 60px 0;
    }

    .films-heading {
        margin-bottom: 35px;
    }


    /* GRID */

    .films-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    /* VIDEO */

    .film-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .film-play-icon {
        width: 62px;
        height: 62px;

        font-size: 24px;
    }


    /* CARD */

    .film-card-content {
        padding: 18px;
    }

    .film-card-content h3 {
        font-size: 19px;
    }


    /* CTA */

    .films-cta {
        padding: 65px 20px;
    }

    .films-cta-buttons {
        flex-direction: column;

        align-items: center;
    }

    .films-cta-button {
        width: min(320px, 100%);
    }


    /* VIEWER */

    .film-viewer {
        padding: 20px 10px;
    }

    .film-viewer-content {
        width: 100%;

        max-height: 90vh;
    }

    #film-viewer-video {
        width: 100%;

        max-height: 70vh;
    }

    .film-viewer-close {
        top: 10px;
        right: 10px;

        width: 42px;
        height: 42px;

        font-size: 25px;
    }

    .film-viewer-prev,
    .film-viewer-next {
        width: 42px;
        height: 42px;

        font-size: 22px;
    }

    .film-viewer-prev {
        left: 7px;
    }

    .film-viewer-next {
        right: 7px;
    }


    /* WHATSAPP */

    .films-floating-whatsapp {
        right: 15px;
        bottom: 15px;

        padding: 11px 14px;
    }

    .films-floating-whatsapp strong {
        display: none;
    }


    /* FOOTER */

    .films-footer {
        padding-top: 45px;
    }

    .films-footer-links {
        gap: 14px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .films-hero {
        min-height: 470px;
    }

    .films-hero h1 {
        font-size: 37px;
    }

    .films-hero-label {
        font-size: 10px;

        letter-spacing: 2px;
    }

    .films-filter {
        font-size: 10px;
    }

    .films-filters {
        gap: 7px;
    }

    .film-filter {
        padding: 9px 13px;

        font-size: 10px;
    }

    .film-play-icon {
        width: 56px;
        height: 56px;

        font-size: 22px;
    }

    .film-card-content {
        padding: 16px;
    }

    .film-viewer-info h2 {
        font-size: 17px;
    }

}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.film-filter:focus,
.watch-film-button:focus,
.films-hero-button:focus,
.films-book-button:focus,
.films-cta-button:focus,
.film-viewer-close:focus,
.film-viewer-prev:focus,
.film-viewer-next:focus {
    outline: 3px solid rgba(212, 0, 0, 0.35);

    outline-offset: 3px;
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}

/* =====================================================
   FILMS — FORCE ONE HORIZONTAL LINE
===================================================== */

.films-preview-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 25px;
    width: 100%;
    overflow-x: auto;
    padding: 5px 5px 20px;
    scroll-behavior: smooth;
}


/* =====================================================
   FILM CARDS — ONE LINE
===================================================== */

.films-preview-card {
    flex: 0 0 calc((100% - 50px) / 3) !important;
    min-width: 300px;

    display: block;

    background: #ffffff;
    color: #111111;

    overflow: hidden;

    border: 1px solid #e8e8e8;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =====================================================
   SCROLL BAR
===================================================== */

.films-preview-grid::-webkit-scrollbar {
    height: 7px;
}

.films-preview-grid::-webkit-scrollbar-track {
    background: #eeeeee;
}

.films-preview-grid::-webkit-scrollbar-thumb {
    background: #c8102e;
    border-radius: 10px;
}


/* Firefox */

.films-preview-grid {
    scrollbar-color: #c8102e #eeeeee;
    scrollbar-width: thin;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .films-preview-card {
        flex: 0 0 45% !important;
        min-width: 280px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .films-preview-grid {
        gap: 15px;
    }

    .films-preview-card {
        flex: 0 0 82% !important;
        min-width: 0;
    }

}