/* style.css */

/* --- CSS Variables --- */
:root {
    /* Color Palette - Neutral with Gold Accent */
    --primary-color: #d4af37; /* Muted Gold - Main Accent */
    --primary-color-darker: #c8a02b; /* Darker Gold for hover/active states */
    --primary-color-light: #e0c672; /* Lighter Gold for subtle highlights */

    --text-color: #333333;      /* Dark Grey - Main body text */
    --text-color-light: #555555; /* Lighter Grey - Subtitles, less important text */
    --heading-color: #222222;   /* Very Dark Grey/Black - Headings */
    --white-color: #FFFFFF;
    --light-background: #f9f9f9; /* Very Light Grey - Main page background */
    --section-bg-light: #f0f0f0; /* Bulma's .has-background-light is #fafafa, this can be an alternative */
    --dark-background: #333333;  /* Dark Grey - Footer background */
    --border-color: #dbdbdb;     /* Light Grey - Borders, dividers */
    --card-bg: #FFFFFF;          /* White - Card backgrounds */

    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Transitions & Animations */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --easing-bouncy: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* For bouncy effects */
    --easing-smooth: ease-in-out;

    /* Spacing & Sizing */
    --navbar-height: 3.25rem; /* Bulma's default navbar height (52px) */
    --section-padding: 3rem 1.5rem; /* Default Bulma section padding */
    --card-border-radius: 15px; /* Biomorphic rounded corners */
    --button-border-radius: 8px;
}

/* --- Global Styles & Bulma Overrides --- */
body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--light-background);
    line-height: 1.6;
    font-size: 16px; /* Base font size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--navbar-height); /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
}

.title { /* Bulma .title override */
    font-family: var(--font-primary);
    color: var(--heading-color) !important;
    font-weight: 700;
}
.subtitle { /* Bulma .subtitle override */
    font-family: var(--font-secondary);
    color: var(--text-color-light) !important;
}

.section-title { /* Custom class for centered section titles */
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem; /* Consistent section title size */
    color: var(--heading-color);
}
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed-fast) var(--easing-smooth);
}
a:hover {
    color: var(--primary-color-darker);
}

/* --- General Button Styles --- */
.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: var(--white-color);
    border-radius: var(--button-border-radius);
    font-weight: 600;
    transition: transform var(--transition-speed-fast) var(--easing-bouncy), background-color var(--transition-speed-fast) var(--easing-smooth), box-shadow var(--transition-speed-fast) var(--easing-smooth);
    padding: 0.75em 1.5em;
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.button.is-primary:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Ensure submit inputs also get styled */
input[type='submit'].button.is-primary {
    /* Inherits from .button.is-primary */
}


/* Input field styling (Bulma provides a good base) */
.input, .textarea {
    border-radius: var(--button-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color var(--transition-speed-fast) var(--easing-smooth), box-shadow var(--transition-speed-fast) var(--easing-smooth);
}
.input:focus, .textarea:focus,
.input.is-focused, .textarea.is-focused,
.input:active, .textarea:active,
.input.is-active, .textarea.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(212, 175, 55, 0.25); /* Bulma's focus style with theme color */
}

/* --- Header / Navbar --- */
.navbar.is-transparent {
    background-color: transparent; /* Initial state for hero */
}
.navbar {
    /* background-color: rgba(255, 255, 255, 0.9); */ /* Default, overridden by is-transparent or is-scrolled */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1024;
    transition: background-color var(--transition-speed-normal) var(--easing-smooth), box-shadow var(--transition-speed-normal) var(--easing-smooth);
}
.navbar.is-scrolled { /* Add via JS on scroll */
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar-item img {
    max-height: 2.5rem;
}
.navbar-item, .navbar-link {
    font-weight: 600;
    color: var(--text-color); /* Default text color for navbar items */
    transition: color var(--transition-speed-fast) var(--easing-smooth);
}
/* For navbar items on transparent hero background */
.navbar.is-transparent:not(.is-scrolled) .navbar-item,
.navbar.is-transparent:not(.is-scrolled) .navbar-link,
.navbar.is-transparent:not(.is-scrolled) .navbar-burger {
    color: var(--white-color); /* White text on hero */
}
.navbar.is-transparent:not(.is-scrolled) .navbar-link::after { /* Arrow for dropdown */
    border-color: var(--white-color);
}


.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}
/* Ensure hover on transparent navbar also uses primary color */
.navbar.is-transparent:not(.is-scrolled) .navbar-item:hover,
.navbar.is-transparent:not(.is-scrolled) .navbar-link:hover {
    color: var(--primary-color) !important;
}

.navbar-burger {
    color: var(--text-color); /* Default state */
}
.navbar-dropdown {
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    background-color: var(--white-color);
}
.navbar-menu.is-active {
    background-color: var(--white-color); /* Solid background when burger menu is open */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active .navbar-item,
    .navbar-menu.is-active .navbar-link {
        color: var(--text-color) !important; /* Ensure text is dark on white mobile menu */
    }
    .navbar-menu.is-active .navbar-item:hover,
    .navbar-menu.is-active .navbar-link:hover {
        color: var(--primary-color) !important;
    }
}


/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    color: var(--white-color);
    background-attachment: fixed; /* Parallax effect */
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
    z-index: 1;
}
#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding); /* Use variable */
    /* min-height is handled by .is-fullheight from Bulma */
}
#hero .title, #hero .subtitle, #hero p { /* All text in Hero */
    color: var(--white-color) !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
#hero .title.is-1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
#hero .subtitle.is-3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
#hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media screen and (max-width: 768px) {
    #hero .title.is-1 { font-size: 2.5rem; }
    #hero .subtitle.is-3 { font-size: 1.25rem; }
    #hero p { font-size: 1rem; }
}

/* --- Card Styles (General) --- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-speed-normal) var(--easing-bouncy), box-shadow var(--transition-speed-normal) var(--easing-smooth);
}
.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card .card-image { /* This is Bulma's .card-image wrapper */
    /* No specific styles needed here if figure.image is styled */
}
.card .card-image figure.image { /* Bulma's figure for image */
    margin: 0;
    height: 220px; /* Fixed height for image containers in cards */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image respects figure boundaries */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}
.card .card-content {
    padding: 1.5rem;
    text-align: left; /* Default */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-content .title,
.card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-light);
    flex-grow: 1;
}
/* Centering content inside cards */
.card.has-text-centered .card-content,
.card.is-centered .card-content {
    text-align: center;
}
.card.is-centered .media { /* Center media object if card is centered */
    justify-content: center;
}

/* --- Specific Section Styles --- */

/* Rewards & Games Section */
#rewards .card .title.is-4 { font-size: 1.5rem; }
#rewards .card .content { font-size: 1rem; }

/* Statistics Section */
.stat-widget {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--card-border-radius);
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    transition: transform var(--transition-speed-normal) var(--easing-bouncy), box-shadow var(--transition-speed-normal) var(--easing-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-widget:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.stat-widget .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    display: block;
    margin-bottom: 0.5rem;
}
.stat-widget .stat-label { font-size: 1rem; color: var(--text-color-light); font-weight: 600; }

/* Behind the Scenes Section */
#behind-the-scenes .card .title.is-5 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Clientele/Testimonials Section */
#clientele .card { background-color: var(--section-bg-light); }
#clientele .card .title.is-5 { color: var(--primary-color); }
#clientele .card .subtitle.is-6 { color: var(--text-color-light); font-style: italic; margin-bottom: 1rem; }

/* External Resources Section */
#external-resources .resource-card { margin-bottom: 1rem; background-color: var(--card-bg); }
#external-resources .resource-card .title.is-5 a { color: var(--primary-color); text-decoration: none; }
#external-resources .resource-card .title.is-5 a:hover { text-decoration: underline; color: var(--primary-color-darker); }
#external-resources .resource-card .content { font-size: 0.9rem; color: var(--text-color-light); }

/* FAQ Section - Accordion */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--button-border-radius);
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color var(--transition-speed-fast) var(--easing-smooth);
    color: var(--heading-color);
}
.accordion-header:hover { background-color: #f5f5f5; }
.accordion-header span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform var(--transition-speed-normal) var(--easing-bouncy);
}
.accordion-item.is-active .accordion-header span:last-child { transform: rotate(45deg); }
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed-normal) var(--easing-bouncy), padding var(--transition-speed-normal) var(--easing-smooth);
    border-top: 1px solid transparent; /* For transition, becomes visible when active */
}
.accordion-item.is-active .accordion-content {
    border-top-color: var(--border-color);
}
.accordion-content p {
    padding: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color-light);
}
.accordion-item.is-active .accordion-content { max-height: 500px; /* Adjust as needed */ }

/* Contact Section */
#contactForm label.label { color: var(--heading-color); font-weight: 600; }

/* --- Footer --- */
.footer {
    background-color: var(--dark-background);
    color: #cccccc;
    padding: 3rem 1.5rem;
}
.footer .title { /* For h4 in footer */
    color: var(--white-color) !important;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.footer p, .footer li { font-size: 0.95rem; color: #cccccc; }
.footer a { color: var(--primary-color-light); font-weight: normal; }
.footer a:hover { color: var(--white-color); text-decoration: underline; }
.footer .content p { color: #aaaaaa; } /* For copyright text */
.footer .column ul { list-style: none; margin-left: 0; }
.footer .column li { margin-bottom: 0.5rem; }
.footer .column h4.title + p a { display: inline-block; margin-bottom: 0.3rem; padding: 0.2rem 0; }

/* --- Page Specific Styles --- */
/* Success Page */
.page-container-centered { /* Generic centered container for success, error etc. */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height));
    text-align: center;
    padding: 2rem;
    background-color: var(--light-background);
}
.page-container-centered .icon { color: var(--primary-color); font-size: 4rem; margin-bottom: 1rem; }
.page-container-centered .title { color: var(--heading-color); margin-bottom: 0.5rem; }
.page-container-centered .subtitle { color: var(--text-color-light); margin-bottom: 1.5rem; }

/* Privacy & Terms Pages */
.content-page-container { /* For privacy, terms */
    padding: 2rem 1.5rem; /* Top padding is already on body */
    background-color: var(--white-color);
    min-height: calc(100vh - var(--navbar-height) - 72px); /* 72px is approx footer height */
}
.content-page-container .content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-page-container .content h1,
.content-page-container .content h2,
.content-page-container .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}
.content-page-container .content p { margin-bottom: 1rem; line-height: 1.7; color: var(--text-color); }
.content-page-container .content ul, .content-page-container .content ol { margin-left: 1.5em; margin-bottom: 1rem; }


/* --- Utility Classes --- */
.has-text-shadow { text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed-normal) var(--easing-smooth);
}
.read-more-link:hover::after { width: 100%; }
.read-more-link:hover { color: var(--primary-color-darker); }

/* Barba.js Page Transitions (Basic Example) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity var(--transition-speed-slow) var(--easing-smooth);
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) { /* Tablet and below */
    .columns.is-reversed-mobile { flex-direction: column-reverse; }
    .section { padding: 2rem 1rem; }
    body { padding-top: var(--navbar-height); } /* Ensure padding-top is consistent */
}
@media screen and (max-width: 480px) { /* Mobile specific */
    .section-title { font-size: 1.8rem; }
    .button.is-large { font-size: 1rem; }
    .stat-widget .stat-number { font-size: 2.2rem; }
    .stat-widget .stat-label { font-size: 0.9rem; }
    .card .card-image figure.image { height: 180px; } /* Slightly smaller card images */
}

/* Cookie Consent Popup - Minimal style override if HTML styles are not enough */
#cookie-consent-popup {
    /* HTML has inline styles, these can be overrides */
    font-family: var(--font-secondary);
}
#cookie-consent-popup a {
    color: var(--primary-color-light); /* Ensure link matches theme */
}
#accept-cookie-consent {
    background-color: var(--primary-color);
    color: var(--white-color);
}
#accept-cookie-consent:hover {
    background-color: var(--primary-color-darker);
}
.navbar-item{
    color: #c8a02b !important;
}
html,body{
    overflow-x: hidden;
}
.navbar-burger span{
    color: #222222;
}
*{
    opacity: 1 !important;
}