/*
Theme Name: CMT Theme Modernized
Author: Claude (Modernized Version)
Author URI: https://anthropic.com
Version: 2.0.0
Requires at least: 5.9
Requires PHP: 7.4
Description: Modernized version of Columbia Marionette Theatre theme with PHP 8 compatibility and security hardening
Text Domain: cmt
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================
   CMT STYLING - MODERNIZED FOR PHP 8+
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Griffy&family=Roboto+Slab:wght@400;600;700&display=swap');

/* ========== BODY & BACKGROUND ========== */
body {
    font-family: 'Roboto Slab', serif;
    background-color: #F4EFD9;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    overflow-x: hidden;
}

.site-content,
.inside-article,
.inside-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER ========== */
.site-header {
	background-color: rgba(22, 90, 107, 0.85) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	transition: background-color 0.3s ease;
}

.site-header.scrolled {
	background-color: rgba(22, 90, 107, 0.95) !important;
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

.sticky-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	gap: 1rem;
	position: relative;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
	min-width: 250px;
}

.site-branding img {
	height: 60px;
	width: auto;
	display: block;
}

.site-title-wrapper {
	margin: 0;
}

.site-title {
	margin: 0;
	font-size: 0;
	height: 0;
	overflow: hidden;
}

.site-title a {
	color: #FFFFFF !important;
	text-decoration: none;
	font-family: 'Griffy', cursive;
	font-size: 0;
	display: inline-block;
	white-space: nowrap;
}

/* ========== NAVIGATION ========== */
.main-navigation {
	flex-grow: 1;
	margin: 0;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
	align-items: center;
	flex-wrap: wrap;
}

.nav-menu li {
	margin: 0;
	padding: 0;
}

.nav-menu > li > a {
	color: #FFFFFF !important;
	text-decoration: none;
	padding: 1rem 1.2rem;
	display: block;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
	color: #FF8C42 !important;
	border-bottom-color: #FF8C42;
	background-color: rgba(255, 140, 66, 0.05);
}

/* Submenu */
.nav-menu li {
	position: relative;
}

.nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #0F525C;
	border-top: 3px solid #00D9FF;
	min-width: 200px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	z-index: 1002;
}

.nav-menu li:hover > ul {
	display: block;
}

.nav-menu ul li {
	margin: 0;
}

.nav-menu ul li a {
	color: #FFFFFF !important;
	text-decoration: none;
	padding: 0.8rem 1.5rem;
	display: block;
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.nav-menu ul li a:hover {
	color: #FF8C42 !important;
	background-color: rgba(255, 140, 66, 0.1);
}

/* ========== HAMBURGER MENU ========== */
.menu-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001;
	position: relative;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 22px;
}

.hamburger span {
	width: 100%;
	height: 4px;
	background-color: #FFFFFF;
	border-radius: 2px;
	transition: all 0.3s ease;
	display: block;
	box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.menu-toggle.active .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* FORCE hamburger on screens 1024px and below */
@media (max-width: 1024px) {
	.header-container {
		padding: 0 1.5rem;
	}

	.nav-menu > li > a {
		padding: 0.8rem 1rem;
		font-size: 0.95rem;
	}
	
	/* Show hamburger on tablet too */
	button.menu-toggle,
	.menu-toggle {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.main-navigation {
		display: none !important;
	}
	
	.main-navigation.active {
		display: flex !important;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: flex !important;
		order: 3;
	}

	.site-header {
		padding: 0.5rem 0;
	}

	.site-header .header-container {
		flex-wrap: nowrap;
		position: relative;
		padding: 0 1rem;
		min-height: 50px;
		align-items: center;
	}
	
	.site-branding {
		flex: 1;
		min-width: auto;
		display: flex;
		align-items: center;
	}

	.site-branding img,
	.custom-logo {
		height: 40px !important;
		width: auto !important;
		max-width: 150px;
	}

	.site-branding .custom-logo-link {
		display: flex;
		align-items: center;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: rgba(15, 82, 92, 0.98);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		display: none !important;
		flex-direction: column;
		width: 100%;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		z-index: 1000;
	}

	.main-navigation.active {
		display: flex !important;
	}

	.nav-menu {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.nav-menu > li {
		width: 100%;
	}

	.nav-menu > li > a {
		padding: 1rem 1.5rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		border-left: 3px solid transparent;
	}

	.nav-menu > li > a:hover,
	.nav-menu > li.current-menu-item > a {
		border-left-color: #FF8C42;
		background-color: rgba(255, 140, 66, 0.1);
	}

	/* Submenu on mobile */
	.nav-menu ul {
		position: static;
		display: none;
		background-color: rgba(13, 61, 71, 0.95);
		border-top: none;
		border-left: 3px solid #00D9FF;
		box-shadow: none;
		padding-left: 1rem;
	}

	.nav-menu li:hover > ul {
		display: none;
	}

	.nav-menu li.menu-item-has-children.open > ul {
		display: block;
	}

	.nav-menu ul li a {
		padding: 0.7rem 1rem;
		font-size: 0.9rem;
	}

	.site-title a {
		font-size: 1.1rem;
	}

	.header-container {
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.header-container {
		padding: 0 1rem;
	}

	.site-title a {
		font-size: 1rem;
	}

	.nav-menu > li > a {
		padding: 0.8rem 1rem;
		font-size: 0.9rem;
	}
}

/* ========== HEADINGS ========== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
    font-family: 'Griffy', cursive !important;
    color: #1B8FA3;
    font-weight: 400;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* ========== CONTENT ========== */
.site-content,
.entry-content,
article,
.main-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
}

.entry-content p,
.main-content p {
    color: #333333;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Make sure WordPress blocks can contain grids */
.wp-block-group,
.wp-block-columns,
.entry-content,
.main-content {
    width: 100%;
}

/* ========== RESPONSIVE GRID SYSTEM ========== */
.responsive-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.grid-item {
    background: #ffffff;
    border: 3px solid #1B8FA3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.grid-item-content {
    padding: 1.5rem;
}

.grid-item h3,
.grid-item h2 {
    color: #1B8FA3;
    font-family: 'Griffy', cursive;
    margin-bottom: 0.5rem;
}

.grid-item p {
    color: #333333;
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* Two column grid */
.grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Three column grid */
.grid-3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Four column grid */
.grid-4-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* WordPress Gallery Grid Support */
.wp-block-gallery,
.blocks-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .responsive-grid,
    .content-grid,
    .grid-2-col,
    .grid-3-col,
    .grid-4-col {
        grid-template-columns: 1fr;
    }
}

/* ========== BUTTONS ========== */
.wp-block-button__link,
button,
.button,
input[type="submit"],
.woocommerce-button,
.single_add_to_cart_button {
    background-color: #165A6B !important;
    color: #FFFFFF !important;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Griffy', cursive;
    font-size: 1.1rem;
}

.wp-block-button__link:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce-button:hover,
.single_add_to_cart_button:hover {
    background-color: #1B8FA3 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========== LINKS ========== */
a {
    color: #00D9FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1B8FA3;
    text-decoration: underline;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 900px;
}

.about-section h1,
.about-section h2 {
    color: #1B8FA3;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-section p {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========== SHOW GRID ========== */
.show-grid,
.responsive-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.show-item,
.grid-item {
    background: #ffffff;
    border: 3px solid #1B8FA3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.show-item:hover,
.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.show-item img,
.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.show-item-content,
.grid-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.show-item h3 {
    color: #1B8FA3;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-family: 'Griffy', cursive;
    text-align: center;
}

.show-item p {
    color: #333333;
    line-height: 1.6;
    margin: 0.5rem 0;
    flex-grow: 1;
}

.show-item .show-dates {
    color: #666666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* ========== HERO BANNER ========== */
.page-header,
.hero-section,
#page-title {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2rem 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.page-header::before,
.hero-section::before,
#page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 90, 107, 0.65);
    z-index: 1;
}

.page-header .entry-header,
.page-header h1,
.hero-section .entry-header,
.hero-section h1,
#page-title h1 {
    position: relative;
    z-index: 2;
    color: #FFFFFF !important;
    text-align: center;
    padding: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .page-header,
    .hero-section,
    #page-title {
        background-attachment: scroll;
        min-height: 250px;
    }
}

.current-show-hero {
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.current-show-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 90, 107, 0.7);
    z-index: 1;
}

.current-show-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem 2rem;
    max-width: 800px;
}

.current-show-hero h1,
.current-show-hero h2 {
    color: #FFFFFF !important;
    font-size: 3rem;
    margin: 0 0 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.current-show-hero .show-dates {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: #00D9FF;
    font-weight: 600;
}

.current-show-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #FFFFFF;
}

/* ========== DARK SECTIONS ========== */
.teal-section,
.dark-section {
    background-color: #165A6B;
    color: #ffffff;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.teal-section h2,
.teal-section h3,
.dark-section h2,
.dark-section h3 {
    color: #F5C02C !important;
    margin-bottom: 1.5rem;
}

.teal-section p,
.dark-section p {
    line-height: 1.8;
    color: #ffffff;
}

/* ========== THREE COLUMN ========== */
.three-column-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    background: #165A6B;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.column-item {
    text-align: center;
    color: #ffffff;
}

.column-item h2 {
    color: #F5C02C !important;
    margin-bottom: 1rem;
}

.column-item img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.column-item p {
    line-height: 1.8;
}

/* ========== WIDGETS & SIDEBAR ========== */
.widget-area .widget,
.upcoming-shows-widget {
    background: #C83B6E;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.widget-area .widget h2,
.widget-area .widget h3,
.upcoming-shows-widget h3 {
    color: #FFFFFF !important;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.upcoming-show-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.upcoming-show-item:last-child {
    border-bottom: none;
}

.upcoming-show-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #FFFFFF;
    font-family: 'Griffy', cursive;
}

.upcoming-show-item h4 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.upcoming-show-item h4 a:hover {
    color: #00D9FF;
}

.upcoming-show-item .show-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #3A3A3A !important;
    color: #FFFFFF !important;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.site-footer .inside-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer h1, 
.site-footer h2, 
.site-footer h3, 
.site-footer h4 {
    color: #FFFFFF !important;
    font-family: 'Griffy', cursive;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-contact {
    line-height: 1.8;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.footer-contact a {
    color: #00D9FF !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #FFFFFF !important;
}

.footer-social h3 {
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #00D9FF;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #00D9FF;
    color: #3A3A3A;
}

.site-footer .copyright-bar {
    background: transparent;
    color: #FFFFFF;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .three-column-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .show-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .three-column-section {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .current-show-hero h1,
    .current-show-hero h2 {
        font-size: 2rem !important;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .site-footer .inside-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-section {
        padding: 2rem 1rem;
    }

    .site-content,
    .inside-article,
    .inside-header {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    
    .wp-block-button__link,
    button,
    .button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .site-title a {
        font-size: 1.4rem;
    }
    
    .current-show-hero {
        min-height: 300px;
    }
    
    .current-show-hero h1,
    .current-show-hero h2 {
        font-size: 1.5rem !important;
    }
}

/* ========== BIRTHDAY PARTY PAGE STYLING ========== */
.party-intro {
    max-width: 1200px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #2c5f6f;
}

/* Party Themes Grid */
.party-themes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.theme-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(44, 95, 111, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #00a8cc;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(44, 95, 111, 0.25);
    border-color: #00a8cc;
}

.theme-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.theme-name {
    padding: 20px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #2c5f6f;
    background: transparent;
    font-family: 'Griffy', cursive;
    letter-spacing: 1px;
    border-top: 2px solid #00a8cc;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: transparent;
    padding: 35px;
    border-radius: 8px;
    box-shadow: none;
    border: 2px solid #00a8cc;
}

.content-section h3 {
    color: #ff8c42;
    font-size: 32px;
    margin-bottom: 25px;
    border-bottom: 3px solid #ff8c42;
    padding-bottom: 12px;
    font-family: 'Griffy', cursive;
    letter-spacing: 1px;
}

.content-section ul {
    line-height: 1.9;
    font-size: 16px;
    color: #2c5f6f;
}

.content-section ul li {
    margin-bottom: 12px;
}

.content-section strong {
    color: #2c5f6f;
}

/* Pricing Highlight */
.pricing-highlight {
    background: transparent;
    border: 2px solid #ff8c42;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 6px;
}

.pricing-highlight strong {
    color: #d97020;
    font-size: 18px;
}

.pricing-highlight ul {
    color: #2c5f6f;
}

/* Important Info */
.important-info {
    background: transparent;
    border: 2px solid #00a8cc;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 6px;
}

.important-info strong {
    color: #00758f;
    font-size: 18px;
}

/* Booking Section */
.booking-section {
    background: linear-gradient(135deg, #2c5f6f 0%, #00a8cc 100%);
    border: none !important;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.booking-section h3 {
    color: #fff !important;
    border: none !important;
    margin-bottom: 20px;
    font-size: 36px;
}

.booking-section p {
    color: #e8f4f8;
    font-size: 17px;
}

.booking-section a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.booking-section a:hover {
    color: #ff8c42;
}

.cta-button {
    display: inline-block;
    background: #ff8c42 !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.cta-button:hover {
    background: #e67a33 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

.download-link {
    color: #ff8c42;
    font-weight: bold;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #00a8cc;
}

/* Section Labels */
.section-label {
    display: inline-block;
    background: #ff8c42;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Birthday Party Responsive */
@media (max-width: 768px) {
    .party-themes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h3 {
        font-size: 26px;
    }

    .booking-section {
        padding: 30px 20px;
    }

    .booking-section h3 {
        font-size: 28px;
    }
}


/* ===========================================
   CMT MOBILE RESPONSIVE FIX - FULL
   =========================================== */

/* Force all content to respect viewport width */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Container - ensure it exists and works */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Main content wrapper layout */
#main-content-wrapper {
    padding: 2rem 0;
    background: #F4EFD9;
}

#main-content-wrapper > .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#main-content-wrapper .main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-sizing: border-box;
}

#main-content-wrapper .subnav {
    width: 280px;
    flex-shrink: 0;
}

.def-pad {
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Images must not overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Page title / hero area */
#page-title {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

#page-title .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

#page-title .container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

#page-title h1,
#page-title .page-title {
    color: #fff;
    font-family: 'Griffy', cursive;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Page icon box with blue banner/flag */
#page-icon-box {
    text-align: center;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

/* Blue banner/flag behind icon */
#page-icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 130px;
    background-color: #1B9AAA;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    z-index: 1;
}

#page-icon-box .icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    padding-top: 25px;
    position: relative;
    z-index: 2;
    /* White icon on blue banner - use filter if needed */
    filter: brightness(0) invert(1);
}

/* Clear float */
.clear {
    clear: both;
}

/* ========== TABLET BREAKPOINT ========== */
@media (max-width: 992px) {
    #main-content-wrapper > .container {
        flex-direction: column;
    }
    
    #main-content-wrapper .subnav {
        width: 100%;
        order: 2;
    }
    
    #main-content-wrapper .main-content {
        order: 1;
        width: 100%;
    }
    
    #page-title h1,
    #page-title .page-title {
        font-size: 2.5rem;
    }
}

/* ========== MOBILE BREAKPOINT ========== */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Main content */
    #main-content-wrapper {
        padding: 1rem 0;
    }
    
    #main-content-wrapper > .container {
        gap: 1rem;
    }
    
    #main-content-wrapper .main-content {
        padding: 1.25rem;
        border-radius: 0;
    }
    
    .def-pad {
        padding: 1rem;
    }
    
    /* Page title */
    #page-title {
        min-height: 180px;
        background-attachment: scroll !important;
    }
    
    #page-title h1,
    #page-title .page-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    /* Page icon with banner - mobile */
    #page-icon-box {
        margin-top: -50px;
    }
    
    #page-icon-box::before {
        width: 70px;
        height: 100px;
    }
    
    #page-icon-box .icon {
        width: 40px;
        height: 40px;
        padding-top: 20px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .entry-content p,
    .main-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    #main-content-wrapper .main-content {
        padding: 1rem;
    }
    
    .def-pad {
        padding: 0.75rem;
    }
    
    #page-title {
        min-height: 150px;
    }
    
    #page-title h1,
    #page-title .page-title {
        font-size: 1.5rem;
    }
}

/* ========== CURRENT SHOW FEATURE ========== */
.current-show-feature {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}
.current-show-image-wrap { flex: 1 1 300px; }
.current-show-image-wrap img { width: 100%; height: auto; display: block; }
.current-show-info { flex: 1 1 300px; padding: 30px; }
.current-show-label {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.current-show-title { margin: 0 0 15px; font-size: 28px; }
.current-show-title a { color: inherit; text-decoration: none; }
.current-show-title a:hover { color: #e63946; }
.current-show-dates { font-size: 18px; color: #333; margin-bottom: 5px; }
.current-show-times { color: #666; margin-bottom: 15px; }
.current-show-excerpt { color: #555; line-height: 1.6; margin-bottom: 15px; }
.current-show-price { font-weight: bold; color: #333; margin-bottom: 20px; }
.current-show-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.current-show-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.current-show-buttons .btn-primary { background: #e63946; color: #fff; }
.current-show-buttons .btn-primary:hover { background: #c62936; }
.current-show-buttons .btn-secondary { background: #457b9d; color: #fff; }
.current-show-buttons .btn-secondary:hover { background: #356a8a; }

/* ========== SHOW GRID ========== */
.show-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.grid-2-col { grid-template-columns: repeat(2, 1fr); }
.grid-3-col { grid-template-columns: repeat(3, 1fr); }
.grid-4-col { grid-template-columns: repeat(4, 1fr); }
.show-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.show-grid-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.show-grid-item.is-featured { border: 3px solid #e63946; }
.show-grid-image { display: block; position: relative; }
.show-grid-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e63946;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}
.show-grid-content { padding: 15px; }
.show-grid-content h3 { margin: 0 0 10px; font-size: 18px; }
.show-grid-content h3 a { color: #333; text-decoration: none; }
.show-grid-content h3 a:hover { color: #e63946; }
.show-grid-content p { margin: 0; color: #666; font-size: 14px; }

/* ========== UPCOMING SHOWS WIDGET ========== */
.upcoming-shows-list { list-style: none; padding: 0; margin: 0; }
.upcoming-show-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.upcoming-show-item:last-child { border-bottom: none; }
.upcoming-show-item.is-current { background: #fff9e6; margin: 0 -15px; padding: 12px 15px; border-radius: 5px; }
.upcoming-show-thumb { flex-shrink: 0; width: 60px; height: 60px; overflow: hidden; border-radius: 5px; }
.upcoming-show-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upcoming-show-info { display: flex; flex-direction: column; justify-content: center; }
.now-showing-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
    width: fit-content;
}
.upcoming-show-title { font-weight: bold; color: #333; text-decoration: none; font-size: 14px; }
.upcoming-show-title:hover { color: #e63946; }
.upcoming-show-dates { font-size: 12px; color: #666; margin-top: 3px; }

/* ========== GRID RESPONSIVE ========== */
@media (max-width: 992px) {
    .grid-3-col, .grid-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr; }
    .current-show-info { padding: 20px; }
    .current-show-title { font-size: 22px; }
    .show-grid-image img { height: 180px; }
}

/* ========== ADMIN BAR FIX FOR MOBILE ========== */
@media screen and (max-width: 782px) {
    html.admin-bar {
        margin-top: 0 !important;
    }
    
    .admin-bar .site-header {
        top: 46px;
    }
    
    .admin-bar #page-title {
        margin-top: 0;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
        position: relative;
    }
}

/* ========== ENSURE LOGO ALWAYS VISIBLE ========== */
.site-branding .custom-logo-link,
.site-branding .custom-logo-link img,
.site-branding img.custom-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile logo sizing */
@media (max-width: 480px) {
    .site-branding img,
    .custom-logo,
    .site-branding .custom-logo-link img {
        height: 35px !important;
        width: auto !important;
    }
    
    .site-header .header-container {
        padding: 0 0.75rem;
    }
    
    .hamburger {
        width: 24px;
        height: 18px;
    }
    
    .hamburger span {
        height: 3px;
    }
}

/* ===========================================
   HAMBURGER MENU - FORCE SHOW ON MOBILE/TABLET
   This section MUST be at the end to override everything
   =========================================== */

/* Hide desktop nav, show hamburger on tablet and mobile */
@media screen and (max-width: 1024px) {
    /* FORCE hamburger button visible */
    #menu-toggle,
    button#menu-toggle,
    .menu-toggle,
    button.menu-toggle,
    #site-header .menu-toggle,
    .site-header .menu-toggle,
    .header-container .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 9999 !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 8px;
        width: 44px;
        height: 44px;
    }
    
    /* Hamburger lines container */
    .menu-toggle .hamburger,
    #menu-toggle .hamburger,
    button.menu-toggle .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
    }
    
    /* Hamburger lines */
    .menu-toggle .hamburger span,
    #menu-toggle .hamburger span,
    button.menu-toggle .hamburger span {
        display: block !important;
        width: 100%;
        height: 3px;
        background-color: #FFFFFF !important;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hide desktop navigation */
    #site-navigation,
    .main-navigation,
    nav.main-navigation {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 82, 92, 0.98);
        flex-direction: column;
        z-index: 9998;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    /* Show nav when active */
    #site-navigation.active,
    .main-navigation.active,
    nav.main-navigation.active {
        display: flex !important;
    }
    
    /* Nav menu styling when open */
    .main-navigation .nav-menu,
    #site-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation .nav-menu > li,
    #site-navigation .nav-menu > li {
        width: 100%;
    }
    
    .main-navigation .nav-menu > li > a,
    #site-navigation .nav-menu > li > a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #fff !important;
    }
    
    /* X animation when menu is open */
    .menu-toggle.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
