/*
Theme Name: SantaTheme
Theme URI: https://customsantavideo.com
Author: Custom Santa Video
Author URI: https://customsantavideo.com
Description: Custom theme for Custom Santa Video - personalized Santa video messages
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: santatheme
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --color-dark: #000310;
    --color-white: #ffffff;
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-red: #cd2828;
    --color-red-hover: #a82020;
    --color-light-grey: #f8f8f8;
    --color-black: #000000;

    --font-primary: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;

    --container-max: 80rem;
    --padding-global: 2.5rem;
    --padding-global-mobile: 1.5rem;

    --header-height: 76px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--color-white);
    background-color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.padding-global {
    padding-left: var(--padding-global);
    padding-right: var(--padding-global);
}

.container-large {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

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

.align-center {
    margin-left: auto;
    margin-right: auto;
}

.max-width-xlarge {
    max-width: 48rem;
}

.max-width-small {
    max-width: 32rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.heading-style-h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-style-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.heading-style-h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

.text-size-medium {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.text-size-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-color-white {
    color: var(--color-white);
}

.text-color-white-60 {
    color: var(--color-white-60);
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

.margin-bottom.margin-xsmall { margin-bottom: 0.5rem; }
.margin-bottom.margin-small { margin-bottom: 1rem; }
.margin-bottom.margin-medium { margin-bottom: 1.5rem; }
.margin-bottom.margin-large { margin-bottom: 2rem; }
.margin-bottom.margin-xlarge { margin-bottom: 3rem; }

.margin-top.margin-xsmall { margin-top: 0.5rem; }
.margin-top.margin-small { margin-top: 1rem; }
.margin-top.margin-medium { margin-top: 1.5rem; }
.margin-top.margin-large { margin-top: 2rem; }
.margin-top.margin-xlarge { margin-top: 3rem; }

.padding-section-large {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.padding-section-medium {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.section_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 3, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-white-20);
}

.main-wrapper {
    padding-top: 80px;
}

/* Homepage - no padding as hero goes behind header */
body.home .main-wrapper {
    padding-top: 0;
}

.header_component {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header_logo-link {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header_logo-link img {
    height: 60px;
    width: auto;
    margin: 0;
    padding: 0;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header_menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header_menu-link {
    color: var(--color-white-60);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header_menu-link:hover,
.header_menu-link.current-menu-item a,
.current-menu-item .header_menu-link {
    color: var(--color-white);
}

.header_menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10000;
}

.header_menu-toggle .burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when menu is open */
.header_menu-toggle.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header_menu-toggle.is-open .burger-line:nth-child(2) {
    opacity: 0;
}

.header_menu-toggle.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--color-red-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.button.secondary {
    background-color: transparent;
    border: 1px solid var(--color-white-20);
}

.button.secondary:hover {
    background-color: var(--color-white-20);
    border-color: var(--color-white-20);
}

.button.large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-group.is-center {
    justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.section_header-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section_hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.video-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero_video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 3, 16, 0.5);
}

.hero_content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero_logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.section_footer {
    background-color: var(--color-dark);
    border-top: 1px solid var(--color-white-20);
    padding: 3rem 0;
}

.footer_component {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer_logo img {
    height: 36px;
    width: auto;
}

.footer_links {
    display: flex;
    gap: 2rem;
}

.footer_link {
    color: var(--color-white-60);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer_link:hover {
    color: var(--color-white);
}

.footer_copyright {
    width: 100%;
    text-align: center;
    color: var(--color-white-60);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer_sister-site {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-white-60);
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-white-20);
    border-bottom: 1px solid var(--color-white-20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer_sister-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.footer_sister-link {
    color: #22c55e;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer_sister-link:hover {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ==========================================================================
   Reviews Banner
   ========================================================================== */

.reviews-banner {
    background: linear-gradient(135deg, var(--color-red) 0%, #8b1c1c 100%);
    padding: 1.25rem 0;
    overflow: hidden;
    position: relative;
}

.reviews-banner__track {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-banner__slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.reviews-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.reviews-banner__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--padding-global);
}

.reviews-banner__stars {
    display: block;
    font-size: 1.25rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.reviews-banner__text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.reviews-banner__author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

@media (max-width: 767px) {
    .reviews-banner {
        padding: 1rem 0;
    }

    .reviews-banner__track {
        height: 200px;
    }

    .reviews-banner__text {
        font-size: 1rem;
    }

    .reviews-banner__stars {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Hero Quote (Fixed Below Header)
   ========================================================================== */

.hero-quote {
    position: absolute;
    top: calc(var(--header-height) + 2rem);
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 0 var(--padding-global);
    background: transparent;
}

.hero-quote__text {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-white-80);
    font-style: italic;
    letter-spacing: 0.02em;
    margin: 0;
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 var(--padding-global);
    transition: opacity 0.8s ease-in-out;
}

.hero-quote__text.is-active {
    opacity: 1;
    position: relative;
}

@media (max-width: 767px) {
    .hero-quote {
        top: calc(var(--header-height) + 1.5rem);
        padding: 0 var(--padding-global-mobile);
    }

    .hero-quote__text {
        font-size: 0.85rem;
        padding: 0 var(--padding-global-mobile);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .padding-global {
        padding-left: var(--padding-global-mobile);
        padding-right: var(--padding-global-mobile);
    }

    .padding-section-large {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Mobile Nav - Off-canvas */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--color-dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    padding: 80px 24px 24px;
    border-left: 1px solid var(--color-white-20);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.mobile-nav_overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav_menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav_menu li {
    border-bottom: 1px solid var(--color-white-20);
}

.mobile-nav_menu a {
    display: block;
    padding: 16px 0;
    color: var(--color-white);
    font-size: 1.1rem;
}

.mobile-nav_cta {
    display: block;
    text-align: center;
    margin-top: 24px;
}

.header_cta-mobile {
    display: none;
}

@media (max-width: 767px) {
    .header_menu {
        display: none;
    }

    .header_cta-desktop {
        display: none;
    }

    .header_cta-mobile {
        display: inline-flex;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .header_menu-toggle {
        display: flex;
    }

    .header_nav {
        gap: 0.75rem;
    }

    .main-wrapper {
        padding-top: 70px;
    }

    body.home .main-wrapper {
        padding-top: 0;
    }

    .footer_component {
        flex-direction: column;
        text-align: center;
    }

    .footer_links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #000000;
    border: 1px solid var(--color-white-20);
    border-radius: 1rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white-60);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-white);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.modal-icon-img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--color-white-60);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-white-80);
    font-size: 1rem;
}

.modal-feature-icon {
    color: #22c55e;
    font-size: 1.25rem;
}

.modal-footer {
    color: var(--color-white-60);
    font-size: 0.9rem;
}

.modal-signup {
    margin-top: 1.5rem;
}

.modal-signup-text {
    color: var(--color-white-60);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-signup-form {
    display: flex;
    gap: 0.5rem;
    max-width: 360px;
    margin: 0 auto;
}

.modal-signup-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-white-20);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 0.95rem;
}

.modal-signup-input::placeholder {
    color: var(--color-white-40);
}

.modal-signup-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.modal-signup-btn {
    white-space: nowrap;
}

.modal-signup-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.modal-signup-message.success {
    color: #22c55e;
}

.modal-signup-message.error {
    color: #ef4444;
}

.modal-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.modal-etsy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-white-20);
    font-size: 0.9rem;
    color: var(--color-white-60);
}

.modal-etsy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.modal-etsy a:hover {
    color: var(--color-white);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-signup-form {
        flex-direction: column;
    }

    .modal-signup-btn {
        width: 100%;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignwide {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
