/*PAGE LOADING STYLES */
.page-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all 0.4s 0.2s ease-in-out;
    background-color: #FFF;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

[data-bs-theme="dark"] .page-loading {
    background-color: #121519;
}

.page-loading.active {
    opacity: 1;
    visibility: visible;
}

.page-loading-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

.page-loading.active > .page-loading-inner {
    opacity: 1;
}

.page-loading-inner > span {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #6F788B;
}

[data-bs-theme="dark"] .page-loading-inner > span {
    color: #FFF;
    opacity: 0.6;
}

.page-spinner {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    vertical-align: text-bottom;
    background-color: #D7DDE2;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner 0.75s linear infinite;
}

[data-bs-theme="dark"] .page-spinner {
    background-color: rgba(255, 255, 255, 0.25);
}

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    
    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    
    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

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

a.navbar-brand img {
    max-height: 80px;
}

/* ===========================
   Moniaive Folk Festival 2026
   Custom Styles (Bootstrap-based)
   =========================== */
/* ===========================
   CSS Variables
   =========================== */
:root {
    /* Brand Colors */
    --mff-maroon: #7A2E2E;
    --mff-dark-maroon: #5A1E1E;
    --mff-orange: #E87722;
    --mff-blue: #165f88;
    --mff-dark-orange: #C85F0F;
    --mff-slate-blue: #6B8E9E;
    --mff-dark-blue: #516D7A;
    --mff-golden-yellow: #D4A853;
    --mff-mauve: #B67B9E;
    --mff-cream: #FFF8F0;
    --mff-light-cream: #FFFBF5;
    /* Typography */
    --mff-font-logo: 'Tosca Zero', 'Archivo Black', 'Impact', sans-serif;
    --mff-font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===========================
   Global Styles
   =========================== */
body {
    font-family: var(--mff-font-body);
    background-color: var(--mff-cream);
}

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

/* Override Bootstrap primary color */
.btn-primary {
    --bs-btn-bg: var(--mff-orange);
    --bs-btn-border-color: var(--mff-orange);
    --bs-btn-hover-bg: var(--mff-dark-orange);
    --bs-btn-hover-border-color: var(--mff-dark-orange);
    --bs-btn-active-bg: var(--mff-dark-orange);
    --bs-btn-active-border-color: var(--mff-dark-orange);
}

/* ===========================
   Navigation
   =========================== */
.festival-nav {
    background-color:var(--mff-cream) !important;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);*/
    transition: box-shadow 0.3s ease;
}

.festival-nav h6.festival-logo {
    font-family: var(--mff-font-logo);
    color:var(--mff-orange);
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /*text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), -1px -1px 0 rgba(255, 255, 255, 0.1);*/
    margin-top: 10px;
}

.festival-nav .nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.900) !important;
    transition: color 0.3s ease;
}

.festival-nav .nav-link:hover,
.festival-nav .nav-link.active {
    color: var(--mff-orange) !important;
}

.navbar-toggler {
    border-color: var(--mff-orange);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(232, 119, 34, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E87722' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar brand hidden until scrolled past hero */
.navbar-brand {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar-brand.navbar-brand-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    /*background: linear-gradient(135deg, var(--mff-maroon) 0%, var(--mff-dark-maroon) 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    margin-top: 100px;
    background-color:var(--mff-orange) !important;
}

/* Festival Logo with Distressed Effect */
h1.festival-logo {
    font-family: var(--mff-font-logo);
    color: white;
    font-size: 8rem;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 991px) {
    h1.festival-logo {
        font-size: 5rem;
    }
    
    .festival-date {
        font-size: 3rem !important;
    }
}

@media (max-width: 575px) {
    h1.festival-logo {
        font-size: 3rem;
    }
    
    .festival-date {
        font-size: 2rem !important;
    }
}

h6.festival-logo {
    font-family: var(--mff-font-logo);
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

.festival-date {
    color: rgba(0, 0, 0, 0.900);
    font-size: 4rem;
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: var(--mff-orange);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    
    40% {
        transform: translateY(-10px);
    }
    
    60% {
        transform: translateY(-5px);
    }
}

/* ===========================
   Section Styles
   =========================== */
/*Flyer*/
div.hero-illustration img {
    border: 1px solid rgba(0, 0, 0, 0.352);
}

.decorative-notes {
    color: var(--mff-orange);
    letter-spacing: 1rem;
}

/* About Section */
.about {
    background-color: var(--mff-light-cream);
}

.about-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.about-card .card-title {
    color: var(--mff-maroon);
}

/* ===========================
   Programme Section
   =========================== */
.programme {
    background-color: var(--mff-cream);
}

/* Stage Cards */
.stage-card {
    transition: transform 0.3s ease;
    padding: 20px;
}

.stage-card:hover {
    transform: translateY(-5px);
}

.garden-stage {
    background: var(--mff-orange);
    color: white;
}

.coachhouse-stage {
    background: white;
    color: #2C2C2C;
}

.showcase-stage {
    background: var(--mff-orange);
    color: white;
}

.stage-title {
    letter-spacing: 0.05em;
}

.garden-stage .programme-day h4,
.showcase-stage .programme-day h4 {
    color: white;
}

.coachhouse-stage .programme-day h4 {
    color: var(--mff-orange);
}

.garden-stage .time,
.showcase-stage .time {
    color: white;
}

.coachhouse-stage .time {
    color: var(--mff-orange);
}

.garden-stage .event-list li,
.showcase-stage .event-list li {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.coachhouse-stage .event-list li {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.time-range {
    color: var(--mff-orange);
}

.garden-stage .time-range,
.showcase-stage .time-range {
    color: white !important;
}

.coachhouse-stage .stage-title,
.coachhouse-stage .card-title {
    color: #E87722 !important;
}

/* Event Highlights */
.event-highlight {
    background: white;
    border: 3px solid var(--mff-orange) !important;
    transition: transform 0.3s ease;
}

.event-highlight:hover {
    transform: translateX(5px);
}

.event-highlight h3 {
    color: var(--mff-orange);
}

.event-highlight strong {
    color: var(--mff-orange);
}

/* ===========================
   Family Events Section
   =========================== */
.family-events {
    background: linear-gradient(135deg, var(--mff-mauve), #9A6082);
}

.family-event {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.family-event h4 {
    color: var(--mff-golden-yellow);
}

.family-event .time {
    color: var(--mff-golden-yellow);
}

/* ===========================
   Venues Section
   =========================== */
.venues {
    background-color: var(--mff-light-cream);
}

.venue-card {
    background: white;
    border-top-color: var(--mff-orange) !important;
    transition: transform 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-5px);
}

.venue-card h3 {
    color: var(--mff-maroon);
}

/* ===========================
   Information Section
   =========================== */
.info {
    background-color: var(--mff-cream);
}

.info-card {
    background: white;
}

.info-card h3 {
    color:var(--mff-blue);
    border-bottom-color:var(--mff-blue) !important;
}

/*.info-card LI::before
{
	(*content: '♫ ';*)
	(*color: var(--mff-orange);*)
	(*font-weight: bold;*)
}*/
/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--mff-orange);
}

.footer .festival-date {
    color: black;
}

.footer h4 {
    color: black;
}

.footer a:hover {
    color: black !important;
    text-decoration: none;
}

.tagline {
    color: black;
}

/* ===========================
   Scroll Reveal Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 991.98px) {
    .festival-nav .navbar-collapse {
        background-color: var(--mff-orange);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0;
    }
    
    .festival-nav .navbar-collapse .nav-link {
        color: white !important;
    }
    
    .festival-nav .nav-item {
        text-align: center;
        padding: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .festival-logo {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: auto;
    }
    
    .decorative-notes {
        letter-spacing: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .festival-logo {
        font-size: 2rem;
    }
    
    .hero::before {
        font-size: 1.5rem;
        letter-spacing: 1.5rem;
    }
}

/* ===========================
   Mobile: Hero centering
   =========================== */
@media (max-width: 575.98px) {
    .hero .logo-container {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    
    .hero .festival-date {
        text-align: left;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .navbar,
    .hero .btn,
    .scroll-indicator,
    .footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
    }
    
    .festival-logo,
    .festival-date {
        color: black !important;
        text-shadow: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-mff-maroon {
    color: var(--mff-maroon) !important;
}

.text-mff-orange {
    color: var(--mff-orange) !important;
}

.text-mff-blue {
    color:var(--mff-blue) !important;
}

.bg-mff-maroon {
    background-color: var(--mff-maroon) !important;
}

.bg-mff-orange {
    background-color: var(--mff-orange) !important;
}

.bg-mff-blue {
    background-color:var(--mff-blue) !important;
}

.bg-mff-blue-gradient {
    background: linear-gradient(to bottom right, #165F88, #143962);
}

.bg-mff-cream {
    background-color: var(--mff-cream) !important;
}

.border-mff-orange {
    border-color: var(--mff-orange) !important;
}
