/*
  Fiesta & Festivals - Style Sheet
  Design System: Neumorphism & Hyperrealistic Textures
  Color Scheme: Triadic
  Animation Style: Smooth Transitions
*/

/* ----------------------------------------------------------------
   1. Global Settings & CSS Variables
   ---------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    /* Color Palette (Triadic Inspired) */
    --primary-color: #E63946; /* A fiery red for passion and fiesta */
    --secondary-color: #457B9D; /* A deep blue for contrast and sky */
    --accent-color: #F4A261; /* A warm orange for sun and joy */
    
    /* Neumorphism Base & Text */
    --background-color: #EDF2F4; /* A very light, neutral base for neumorphism */
    --text-color: #2B2D42; /* A dark, slightly desaturated blue for high contrast */
    --text-color-light: #FFFFFF;
    
    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(141, 153, 174, 0.6);
    --neumorphic-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    --neumorphic-shadow-inset: inset 10px 10px 20px var(--shadow-dark), inset -10px -10px 20px var(--shadow-light);

    /* Typography */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    /* UI Elements */
    --border-radius: 20px;
    --transition-speed: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 1.1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   2. Typography & General Styles
   ---------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color);
}

.title.is-1 { font-size: 4rem; }
.title.is-2 { font-size: 3rem; }
.title.is-3 { font-size: 2.2rem; }
.title.is-4 { font-size: 1.5rem; }

.section-title {
    margin-bottom: 3rem !important;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

.section {
    padding: 6rem 1.5rem;
}

.has-background-light {
    background-color: #e6ebee; /* Slightly different shade for section separation */
}

/* ----------------------------------------------------------------
   3. Header / Navigation
   ---------------------------------------------------------------- */

.navbar.is-fixed-top {
    background-color: rgba(237, 242, 244, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.logo-text {
    font-family: var(--font-family-headings);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.navbar-burger {
    color: var(--text-color);
}

/* ----------------------------------------------------------------
   4. Hero Section
   ---------------------------------------------------------------- */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-body {
    position: relative;
    z-index: 2;
}

/* Overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero .title, .hero .subtitle {
    color: var(--text-color-light);
}

.has-text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ----------------------------------------------------------------
   5. UI Components (Buttons, Cards, Forms)
   ---------------------------------------------------------------- */

/* Global Button Styles */
.button, button, input[type='submit'] {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
}

.neumorphic-button {
    background-color: var(--background-color);
    box-shadow: var(--neumorphic-shadow);
    color: var(--text-color);
}

.neumorphic-button:hover {
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-inset);
}

.neumorphic-button:active {
    transform: translateY(2px);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 5px 5px 15px rgba(230, 57, 70, 0.4);
}

.button.is-primary:hover {
    background-color: #d02b3a;
    transform: translateY(-2px);
    box-shadow: 8px 8px 20px rgba(230, 57, 70, 0.5);
}

.button.is-link {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.button.is-link:hover {
    background-color: #3a6886;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.neumorphic-card {
    background: var(--background-color);
    box-shadow: var(--neumorphic-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.neumorphic-card-inset {
    background-color: var(--background-color);
    box-shadow: var(--neumorphic-shadow-inset);
}

.card .card-image {
    width: 100%;
    text-align: center;
}

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

.card .card-content {
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}

.card .card-content .content {
    flex-grow: 1;
}

/* Forms */
.input, .textarea {
    border-radius: var(--border-radius);
    border: none;
    transition: box-shadow var(--transition-speed);
}

.neumorphic-input {
    background: var(--background-color);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color);
}

.neumorphic-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.neumorphic-input:focus {
    outline: none;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light), 0 0 0 2px var(--primary-color);
}

/* ----------------------------------------------------------------
   6. Section-Specific Styles
   ---------------------------------------------------------------- */

/* Media Gallery */
#media .neumorphic-image {
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#media .neumorphic-image:hover {
    transform: scale(1.05);
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

/* Resources */
.resource-card a {
    text-decoration: none;
    font-family: var(--font-family-headings);
}
.resource-card a:hover {
    text-decoration: underline;
}

/* FAQ Accordion */
.accordion-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family-headings);
    color: var(--text-color);
    position: relative;
    padding-right: 4rem;
}
.accordion-header::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
}
.accordion-header.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}
.accordion-content p {
    padding-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #dfe5e8; /* Slightly darker than light background */
    padding: 3rem 1.5rem;
}
.footer .title {
    color: var(--secondary-color);
}
.footer, .footer a {
    color: var(--text-color);
}
.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ----------------------------------------------------------------
   7. Modals
   ---------------------------------------------------------------- */

.modal-card {
    border-radius: var(--border-radius);
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}
.modal-card-head, .modal-card-foot {
    background-color: var(--background-color);
    border-color: var(--shadow-dark);
}
.modal-card-title {
    color: var(--text-color);
}

/* ----------------------------------------------------------------
   8. Specific Page Styles
   ---------------------------------------------------------------- */

/* Success Page */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}
.success-page .box {
    background: var(--background-color);
    box-shadow: var(--neumorphic-shadow);
    border-radius: var(--border-radius);
    padding: 3rem;
}

/* Privacy & Terms Pages */
.legal-page .section, .about-page .section, .contacts-page .section {
    padding-top: calc(3.25rem + 4rem); /* Navbar height + extra space */
}
.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------------
   9. Responsive Design
   ---------------------------------------------------------------- */

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    .navbar-item {
        padding: 1rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    .title.is-1 { font-size: 2.8rem; }
    .title.is-2 { font-size: 2.2rem; }
    .columns.is-vcentered {
        flex-direction: column;
    }
    .legal-page .section, .about-page .section, .contacts-page .section {
        padding-top: calc(3.25rem + 2rem);
    }
}