/*
Theme Name: EZ Golf Academy
Theme URI: https://ezgolfacademy.com
Description: Custom WordPress child theme for EZ Golf Academy, inspired by elitegolfofaz.com. Features single-scroll homepage, golf program cards, results sections, testimonials, and SimplyBook.me integration. Based on Elementor-compatible golf themes.
Author: EZ Golf Academy
Author URI: https://ezgolfacademy.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ezgolf-academy
Tags: golf, sports, education, elementor, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ========================================
   EZ Golf Academy - Elite Performance
   Design tokens loaded via design-tokens.css
   Legacy aliases: --ezgolf-* map to --ez-*
   ======================================== */

:root {
	--ezgolf-primary-blue: var(--ez-primary);
	--ezgolf-gold: var(--ez-accent);
	--ezgolf-green: #228B22;
	--ezgolf-white: var(--ez-surface);
	--ezgolf-text-dark: var(--ez-text);
	--ezgolf-text-light: var(--ez-text-muted);
	--ezgolf-bg-light: var(--ez-surface-alt);
	--ezgolf-border: var(--ez-border);
}

/* ========================================
   Base Styles & Reset
   ======================================== */

body {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: var(--ezgolf-text-dark);
	line-height: 1.6;
}

* {
	box-sizing: border-box;
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
	background: #0E2A47 !important;
	color: var(--ezgolf-white);
	padding: 8px 0 !important;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	min-height: auto;
}

/* Header Logo - Transparent, Match Footer */
.site-header .site-logo,
.site-header .custom-logo-link,
.site-header .ez-logo {
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
	display: inline-block;
	line-height: 0;
}

.site-header .site-logo img,
.site-header .custom-logo-link img,
.site-header .ez-logo img,
.site-header .ez-logo .logo-icon img {
	max-height: 45px !important;
	width: auto;
	height: auto;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	display: block;
	border: none !important;
	margin: 0;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
	color: var(--ezgolf-white);
}

.logo-icon {
	width: auto;
	height: auto;
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: bold;
	color: var(--ezgolf-primary-blue);
	position: relative;
	overflow: visible;
	transition: transform 0.3s ease;
	padding: 0;
	border: none;
}

/* Ensure header logo icon is transparent */
.site-header .logo-icon {
	background: transparent !important;
	background-color: transparent !important;
}

/* Remove legacy "E" overlay in header logo (was showing before the logo image) */
.logo-icon::before {
	content: '' !important;
	display: none !important;
}

/* Remove legacy shimmer overlay that can obscure the logo image */
.logo-icon::after {
	content: '' !important;
	display: none !important;
}

@keyframes wing-flutter {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-10px) rotate(5deg); }
}

.site-logo:hover .logo-icon {
	transform: scale(1.1) rotate(5deg);
}

.logo-text {
	display: flex;
	flex-direction: column;
}

.logo-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.logo-tagline {
	font-size: 12px;
	opacity: 0.9;
	margin: 0;
	font-style: italic;
}

/* Navigation */
.primary-navigation {
	display: flex;
	gap: 30px;
	align-items: center;
}

.main-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 25px;
}

.main-menu li {
	position: relative;
}

.main-menu a {
	color: var(--ezgolf-white);
	text-decoration: none;
	font-weight: 500;
	padding: 8px 15px;
	transition: all 0.3s ease;
	border-radius: 4px;
	display: block;
}

.main-menu a:hover,
.main-menu a:focus {
	background: rgba(218, 165, 32, 0.2);
	color: var(--ezgolf-gold);
	outline: 2px solid var(--ezgolf-gold);
	outline-offset: 2px;
}

.main-menu .current-menu-item > a {
	color: var(--ezgolf-gold);
	border-bottom: 2px solid var(--ezgolf-gold);
}

/* Submenu */
.main-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--ezgolf-primary-blue);
	min-width: 200px;
	list-style: none;
	padding: 10px 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.main-menu li:hover .sub-menu,
.main-menu li:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-menu .sub-menu a {
	padding: 10px 20px;
	white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--ezgolf-white);
	color: var(--ezgolf-white);
	padding: 8px 15px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
	background: linear-gradient(135deg, var(--ezgolf-primary-blue) 0%, #003366 100%);
	color: var(--ezgolf-white);
	padding: 120px 20px 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="golf" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(218,165,32,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23golf)"/></svg>');
	opacity: 0.3;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.hero-logo-large {
	width: auto;
	height: auto;
	max-width: 400px;
	max-height: 200px;
	margin: 0 auto 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fade-in-up 1s ease-out;
}

.hero-logo-large .hero-logo-image {
	width: 100%;
	height: auto;
	max-width: 400px;
	max-height: 200px;
	display: block;
	filter: drop-shadow(0 10px 30px rgba(218, 165, 32, 0.4));
	transition: all 0.3s ease;
}

.hero-logo-large:hover .hero-logo-image {
	transform: scale(1.02);
	filter: drop-shadow(0 15px 40px rgba(218, 165, 32, 0.6));
}

@keyframes fade-in-up {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse-glow {
	0%, 100% { 
		filter: drop-shadow(0 10px 30px rgba(218, 165, 32, 0.4));
	}
	50% { 
		filter: drop-shadow(0 15px 40px rgba(218, 165, 32, 0.6));
	}
}

.hero-title {
	font-size: 56px;
	font-weight: 700;
	margin: 0 0 20px;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
	font-size: 24px;
	margin: 0 0 40px;
	opacity: 0.95;
	font-style: italic;
	color: var(--ezgolf-gold);
}

.hero-cta {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 40px;
}

.btn {
	padding: 15px 35px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.btn-primary {
	background: var(--ezgolf-gold);
	color: var(--ezgolf-primary-blue);
	border-color: var(--ezgolf-gold);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--ezgolf-primary-blue);
	color: var(--ezgolf-gold);
	border-color: var(--ezgolf-gold);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
	outline: none;
}

.btn-secondary {
	background: transparent;
	color: var(--ezgolf-white);
	border-color: var(--ezgolf-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: var(--ezgolf-white);
	color: var(--ezgolf-primary-blue);
	transform: translateY(-3px);
	outline: none;
}

/* ========================================
   Programs Section
   ======================================== */

.programs-section {
	padding: 80px 20px;
	background: var(--ezgolf-bg-light);
}

.section-header {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 60px;
}

.section-title {
	font-size: 42px;
	font-weight: 700;
	color: #1a5f3f; /* Consistent green color matching other pages */
	margin: 0 0 20px;
}

.section-subtitle {
	font-size: 18px;
	color: var(--ezgolf-text-light);
	margin: 0;
}

.programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.program-card {
	background: var(--ezgolf-white);
	border-radius: 12px;
	padding: 40px 30px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border-top: 4px solid var(--ezgolf-gold);
	position: relative;
	overflow: hidden;
}

.program-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.program-card:hover::before {
	opacity: 1;
}

.program-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	background: var(--ezgolf-green);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	color: var(--ezgolf-white);
	position: relative;
	z-index: 1;
}

.program-card h3 {
	font-size: 28px;
	color: var(--ezgolf-primary-blue);
	margin: 0 0 15px;
	position: relative;
	z-index: 1;
}

.program-card p {
	color: var(--ezgolf-text-light);
	margin: 0 0 25px;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

.program-card .btn {
	margin-top: 10px;
	position: relative;
	z-index: 1;
}

/* ========================================
   Results & Stories Sections
   ======================================== */

.results-section,
.stories-section {
	padding: 80px 20px;
}

.results-section {
	background: var(--ezgolf-white);
}

.stories-section {
	background: var(--ezgolf-bg-light);
}

.results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.result-card {
	background: var(--ezgolf-white);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition: transform 0.3s ease;
}

.result-card:hover {
	transform: scale(1.05);
}

.result-number {
	font-size: 48px;
	font-weight: 700;
	color: var(--ezgolf-gold);
	margin: 0 0 10px;
}

.result-label {
	font-size: 16px;
	color: var(--ezgolf-text-dark);
	margin: 0;
}

/* Stories Carousel */
.stories-carousel {
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}

.story-slide {
	background: var(--ezgolf-white);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.story-content {
	font-size: 18px;
	font-style: italic;
	color: var(--ezgolf-text-dark);
	margin: 0 0 25px;
	line-height: 1.8;
}

.story-author {
	font-size: 16px;
	font-weight: 600;
	color: var(--ezgolf-primary-blue);
	margin: 0;
}

.story-role {
	font-size: 14px;
	color: var(--ezgolf-text-light);
	margin: 5px 0 0;
}

/* ========================================
   Why EZ Section
   ======================================== */

.why-ez-section {
	padding: 80px 20px;
	background: var(--ezgolf-primary-blue);
	color: var(--ezgolf-white);
}

.why-ez-list {
	max-width: 1200px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.why-ez-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 30px 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	border-top: 4px solid var(--ezgolf-gold);
	transition: all 0.3s ease;
}

.why-ez-item:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.why-ez-icon {
	font-size: 48px;
	color: var(--ezgolf-gold);
	margin-bottom: 20px;
	flex-shrink: 0;
}

.why-ez-content {
	width: 100%;
}

.why-ez-content h3 {
	margin: 0 0 15px;
	font-size: 18px;
	font-weight: 600;
	color: var(--ezgolf-white);
}

.why-ez-content p {
	margin: 0;
	opacity: 0.9;
	line-height: 1.6;
	font-size: 14px;
}

/* Responsive - Why EZ Section */
@media (max-width: 992px) {
	.why-ez-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}

@media (max-width: 480px) {
	.why-ez-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.why-ez-item {
		padding: 25px 15px;
	}
	
	.why-ez-icon {
		font-size: 40px;
		margin-bottom: 15px;
	}
}

/* ========================================
   About & Founder Sections
   ======================================== */

.about-section,
.founder-section {
	padding: 80px 20px;
}

.about-section {
	background: var(--ezgolf-white);
}

.founder-section {
	background: var(--ezgolf-bg-light);
}

.about-content,
.founder-content {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.founder-image {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.founder-image img {
	width: 100%;
	height: auto;
	display: block;
}

.founder-bio h3 {
	font-size: 32px;
	color: var(--ezgolf-primary-blue);
	margin: 0 0 20px;
}

.founder-bio p {
	color: var(--ezgolf-text-dark);
	line-height: 1.8;
	margin: 0 0 20px;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-section {
	padding: 80px 20px;
	background: var(--ezgolf-white);
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.testimonial-card {
	background: var(--ezgolf-bg-light);
	padding: 30px;
	border-radius: 12px;
	border-top: 4px solid var(--ezgolf-gold);
	position: relative;
}

.testimonial-quote {
	font-size: 16px;
	font-style: italic;
	color: var(--ezgolf-text-dark);
	margin: 0 0 20px;
	line-height: 1.6;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.testimonial-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--ezgolf-primary-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ezgolf-white);
	font-weight: 700;
	flex-shrink: 0;
}

.testimonial-info h4 {
	margin: 0 0 5px;
	font-size: 16px;
	color: var(--ezgolf-primary-blue);
}

.testimonial-info p {
	margin: 0;
	font-size: 14px;
	color: var(--ezgolf-text-light);
}

/* ========================================
   SimplyBook.me Integration
   ======================================== */

.ezgolf-booking-modal,
.ezgolf-simplybook-widget {
	border-radius: 12px;
	overflow: hidden;
}

.simplybook-widget-container {
	background: var(--ezgolf-white);
	border: 2px solid var(--ezgolf-primary-blue);
	border-radius: 12px;
	padding: 20px;
}

.simplybook-widget-container iframe {
	border: none;
	border-radius: 8px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
	background: #001F3F !important;
	color: var(--ezgolf-white);
	padding: 8px 0 !important;
	text-align: center;
	min-height: auto;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.footer-logo {
	margin-bottom: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-logo,
.footer-logo a,
.footer-logo .custom-logo-link {
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	display: inline-block;
	line-height: 0;
	margin: 0;
}

.footer-logo img,
.footer-logo .custom-logo-link img {
	max-height: 45px !important;
	width: auto;
	height: auto;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	display: block;
	border: none !important;
	margin: 0;
}

.footer-nav {
	margin: 0;
	padding: 0;
	display: none;
}

.footer-nav a {
	color: var(--ezgolf-white);
	text-decoration: none;
	margin: 0 15px;
	transition: color 0.3s ease;
}

.footer-nav a:hover {
	color: var(--ezgolf-gold);
}

.footer-copyright {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	opacity: 0.8;
	font-size: 0.7rem;
	line-height: 1;
}

.footer-copyright p {
	margin: 0;
	padding: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	
	.primary-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ezgolf-primary-blue);
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	}
	
	.primary-navigation.active {
		display: flex;
	}
	
	.main-menu {
		flex-direction: column;
		width: 100%;
		gap: 0;
	}
	
	.main-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		margin-left: 20px;
	}
	
	.hero-title {
		font-size: 36px;
	}
	
	.hero-tagline {
		font-size: 18px;
	}
	
	.hero-cta {
		flex-direction: column;
	}
	
	.section-title {
		font-size: 32px;
	}
	
	.programs-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}
	
	.about-content,
	.founder-content {
		grid-template-columns: 1fr;
	}
	
	.why-ez-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.why-ez-item {
		padding: 25px 15px;
	}
	
	.why-ez-icon {
		font-size: 40px;
		margin-bottom: 15px;
	}
	
	.why-ez-content h3 {
		font-size: 16px;
	}
	
	.why-ez-content p {
		font-size: 13px;
	}
}

@media (max-width: 768px) {
	.hero-logo-large {
		max-width: 250px;
		max-height: 125px;
		margin-bottom: 25px;
	}
	
	.hero-logo-large .hero-logo-image {
		max-width: 250px;
		max-height: 125px;
	}
	
	.hero-title {
		font-size: 36px;
	}
	
	.hero-tagline {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 28px;
	}
	
	.logo-title {
		font-size: 18px;
	}
	
	.hero-logo-large {
		max-width: 200px;
		max-height: 100px;
		margin-bottom: 20px;
	}
	
	.hero-logo-large .hero-logo-image {
		max-width: 200px;
		max-height: 100px;
	}
	
	.hero-tagline {
		font-size: 16px;
	}
	
	.why-ez-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ========================================
   Accessibility
   ======================================== */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

*:focus {
	outline: 2px solid var(--ezgolf-gold);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--ezgolf-primary-blue);
	color: var(--ezgolf-white);
	padding: 8px 16px;
	text-decoration: none;
	z-index: 10000;
}

.skip-link:focus {
	top: 0;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Print styles */
@media print {
	.site-header,
	.site-footer,
	.btn {
		display: none;
	}
}
