/*
Theme Name: IAFL Event Registration
Theme URI: https://www.iafl.com/
Author: Jaffe Management
Description: Lightweight standalone WordPress theme for IAFL event-registration pages. Reproduces the look of the iafl.com header and footer (logo, fonts, colors, spacing, responsive behavior) so embedded registration widgets feel native to the main site. Navigation is a static, simplified reproduction only — no login, search, or dropdown behavior.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iafl-event-registration
*/

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 24px;
	color: #222222;
	background-color: #ffffff;
}
img { max-width: 100%; height: auto; }
a { color: #007e47; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Header ---------- */
#headerWrap {
	background-color: #ffffff;
	border-bottom: 1px solid #ececec;
}
#headerWrap .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	min-height: 113px;
	padding-top: 0;
	padding-bottom: 0;
}

#logo { display: block; padding: 15px 0; }
#logo a {
	display: block;
	width: 180px;
	height: 60px;
	background-image: url('assets/images/logo-sprite.png');
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 409px 409px;
	text-indent: -9999px;
	overflow: hidden;
}

/* Static, simplified nav with dropdowns — no search, no member login */
#site-nav {
	display: flex;
}
#site-nav > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
#site-nav > ul > li {
	margin: 0;
	position: relative;
}
#site-nav > ul > li > a {
	display: block;
	color: #007e47;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 14px 10px 12px;
	white-space: nowrap;
}
#site-nav > ul > li > a:hover { text-decoration: none; color: #00543b; }

/* Dropdown toggle caret */
.submenu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
}

/* Submenu panel */
.sub-menu {
	display: none;
	min-width: 230px;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.is-open > .sub-menu {
	display: block;
}

/* Desktop: flyout panel */
@media (min-width: 769px) {
	.has-sub > a { padding-right: 18px; }
	.has-sub > a::after {
		content: '';
		display: inline-block;
		margin-left: 6px;
		width: 6px;
		height: 6px;
		border-right: 1px solid currentColor;
		border-bottom: 1px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
	}
	.sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		background-color: #ffffff;
		box-shadow: 0 10px 24px rgba(0,0,0,0.14);
		padding: 8px 0;
		z-index: 100;
	}
	.sub-menu li { white-space: nowrap; }
	.sub-menu li a {
		display: block;
		color: #222222;
		font-size: 13px;
		font-weight: 400;
		text-transform: none;
		letter-spacing: normal;
		padding: 9px 20px;
	}
	.sub-menu li a:hover { background-color: #f4f4f4; text-decoration: none; color: #007e47; }
}

/* Mobile menu toggle button (hidden on desktop) */
#menu-toggle {
	display: none;
	width: 100%;
	background-color: #007e47;
	color: #ffffff;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: 0;
	padding: 14px 20px 11px;
	text-align: left;
	position: relative;
	cursor: pointer;
}
#menu-toggle::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 14px;
	background:
		linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
		linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
		linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
}

/* ---------- Footer ---------- */
#footerWrap {
	background-color: #00355a;
	color: #ffffff;
	padding: 45px 0 35px;
}
#footerWrap .footer-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
#footerWrap .footer-brand { flex: 1 1 220px; }
#footerWrap .footer-brand img { width: 60px; height: auto; margin-bottom: 15px; }
#footerWrap .footer-brand p {
	font-size: 13px;
	color: #ffffff;
	margin: 0;
}
#footerWrap .footer-links { flex: 1 1 200px; }
#footerWrap .footer-links ul li { margin-bottom: 10px; }
#footerWrap .footer-links ul li a {
	color: #ffffff;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 13px;
}
#footerWrap .footer-links ul li a:hover { color: #9fd9c3; text-decoration: none; }

/* ---------- Content area ---------- */
#contentWrap { min-height: 50vh; }
#contentWrap .container { padding-top: 40px; padding-bottom: 40px; }
#embed-container { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	#headerWrap .container {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
		padding: 15px 0 0;
	}
	#logo { padding: 0 20px 15px; }
	#logo a {
		width: 110px;
		height: 37px;
		background-size: 250px 250px;
	}
	#site-nav { display: none; width: 100%; }
	#site-nav.is-open { display: block; }
	#site-nav > ul { flex-direction: column; width: 100%; }
	#site-nav > ul > li {
		width: 100%;
		border-top: 1px solid rgba(255,255,255,0.15);
		display: flex;
		flex-wrap: wrap;
	}
	#site-nav > ul > li > a {
		flex: 1 1 auto;
		color: #ffffff;
		background-color: #00543b;
		padding: 14px 20px;
	}
	.submenu-toggle {
		display: flex;
		flex: 0 0 48px;
		align-items: center;
		justify-content: center;
		background-color: #00543b;
	}
	.submenu-toggle::after {
		content: '';
		width: 8px;
		height: 8px;
		border-right: 2px solid #ffffff;
		border-bottom: 2px solid #ffffff;
		transform: rotate(45deg);
		transition: transform 0.15s ease;
	}
	.has-sub.is-open > .submenu-toggle::after { transform: rotate(-135deg); }
	.sub-menu {
		flex: 0 0 100%;
		width: 100%;
		background-color: #013626;
	}
	.sub-menu li a {
		display: block;
		color: #ffffff;
		font-size: 13px;
		text-transform: none;
		letter-spacing: normal;
		padding: 12px 20px 12px 34px;
		border-top: 1px solid rgba(255,255,255,0.1);
	}
	#menu-toggle { display: block; }
	#footerWrap .footer-grid { gap: 25px; }
}
