/*
Theme Name: Cape VIPee
Theme URI: https://capevipee.com
Author: Sippican Digital
Author URI: https://sippicandigital.com
Description: Cape VIPees custom wordpress
Version: 1.0.1
*/

/* Base Variables */
:root {
    --primary: #1e5f74;
    --secondary: #447c7b;
    --accent: #af5f06;
    --light: #f9f9f9;
    --dark: #333;
}

/* Updated Navigation styles */
nav {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* ======= HERO BANNER ======= */
.hero-banner {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    letter-spacing: 10px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.hero-content .subtitle::before,
.hero-content .subtitle::after {
    content: '';
    height: 1px;
    width: 80px;
    background-color: white;
    position: absolute;
    top: 50%;
}

.hero-content .subtitle::before {
    right: 100%;
    margin-right: 15px;
}

.hero-content .subtitle::after {
    left: 100%;
    margin-left: 15px;
}

.location-text {
    margin-top: 20px;
    font-style: italic;
}

/* ======= VIDEO SECTION ======= */
.video-tour {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.video-container {
    position: relative;
    overflow: hidden;
    /* 16:9 Aspect Ratio */
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container.full-width {
    max-width: 100%;
    margin: 0 auto 30px;
}

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

.video-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* ======= GALLERY ======= */
.video-gallery h3 {
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide the standalone gallery section */
section.gallery {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* ======= TRAILER SECTION ======= */
.trailer-box {
    background-color: #f5f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.trailer-features ul {
    text-align: left;
    list-style-position: inside;
    margin: 15px 0;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 768px) {

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
        letter-spacing: 5px;
    }

    .hero-content .subtitle::before,
    .hero-content .subtitle::after {
        width: 40px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Media query to disable sticky navigation on mobile */
@media (max-width: 768px) {
    nav {
        position: relative;
        /* Override sticky positioning */
        top: auto;
    }

    .hero-banner {
        display: none;
    }
}

/* Discount Modal */
#discount-modal {
    z-index: 2000;
    /* Higher than other modals */
}

#discount-modal .modal-content {
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideDown 0.5s ease-out;
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#discount-modal h2 {
    color: var(--primary);
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

#discount-modal p {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

#discount-modal .btn {
    background-color: var(--accent);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 12px 20px;
    margin-top: 10px;
}

#discount-modal .btn:hover {
    background-color: #d17000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(175, 95, 6, 0.3);
}

#discount-thank-you-modal {
    z-index: 2001;
    /* Higher than discount modal */
}

#discount-thank-you-modal .modal-content {
    color: black !important;
    max-width: 450px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Animation for thank you modal */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#discount-thank-you-modal .modal-content {
    animation: fadeInScale 0.3s ease-out;
}