/*
Theme Name: CFS Convention Modern
Theme URI: https://cfsconvention.com.au
Description: A clean, light, and minimalist modern theme for the 2026 Convention.
Author: GitHub Copilot
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --text-primary: #111111;
    --text-secondary: #555555;
    --bg-body: #ffffff;
    --bg-light: #f9f9f9;
    --accent: #d4af37; /* Classic Gold */
    --accent-hover: #b49328;
    --border-color: #e5e5e5;
    --max-width: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 { font-size: 4rem; text-transform: uppercase; font-weight: 900; letter-spacing: -1px; }
h2 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    transition: background 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding .custom-logo-link img {
    height: 50px;
    width: auto;
    display: block;
}

.site-branding .site-title-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation ul li {
    display: inline-block;
}

.main-navigation ul li a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: flex-start; /* Align left */
    overflow: hidden;
    color: #fff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    filter: brightness(0.7); /* Darken slightly for readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 80px; /* Offset from left */
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    display: block;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent);
    padding-left: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Convention HQ (Split Layout) */
.hq-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 80vh;
}

.hq-image-side {
    flex: 1;
    min-width: 400px;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
    position: relative;
}

.hq-content-side {
    flex: 1;
    padding: 100px 80px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hq-content-side p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Tickets (Clean List/Grid) */
.tickets-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.tickets-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.ticket-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    border: 1px solid var(--border-color);
    background: #fff;
}

.ticket-item {
    padding: 60px 40px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.ticket-item:hover {
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    z-index: 5;
    transform: scale(1.02);
}

.ticket-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
}

.ticket-price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
}

.ticket-features {
    list-style: none;
    margin-bottom: 0;
}

.ticket-features li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.ticket-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.kids-banner {
    background: var(--text-primary);
    color: #fff;
    padding: 60px;
    margin-top: 80px;
    text-align: center;
}
.kids-banner h3 { color: #fff; }

/* Page Templates */
.page-header {
    position: relative;
    height: 400px; /* Ensure this is being applied */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #222; /* Hardcoded dark fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff !important; /* Force text white */
    margin-bottom: 60px;
    margin-top: -100px; /* Pull up behind the transparent header if needed, assuming header is ~100px */
    padding-top: 100px; /* Push content down to compensate */
}

/* If no background image, use the main accent color or dark gray */
.page-header.no-bg-image {
    background-color: var(--text-primary);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header .page-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Content Styling Improvements */
.entry-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2, 
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.entry-content ul {
    margin-bottom: 30px;
    list-style: none; /* Reset default points */
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.entry-content ul li::before {
    content: "➜"; /* Or a checkmark */
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Strikethrough styling */
.entry-content s, 
.entry-content strike {
    opacity: 0.6;
    text-decoration-color: var(--accent); /* If supported */
}

.content-container {
    padding-bottom: 80px;
}

/* Footer */
footer {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Response */
@media (max-width: 992px) {
    .hero-content {
        padding-left: 20px;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hq-content-side {
        padding: 50px 30px;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.2s; }
.animate-delay-2 { transition-delay: 0.4s; }
.animate-delay-3 { transition-delay: 0.6s; }

/* Loading Screen */
#site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999; /* Higher than everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#site-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loader-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Customizations */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8; /* 20% Transparent by default */
}

.btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 1; /* Full visibility on hover */
}

.hero-btn {
    font-size: 1.1rem;
    padding: 20px 50px;
    margin-top: 30px;
}

.cta-btn {
    font-size: 1.5rem;
    padding: 25px 60px;
}
