/*
 * Event Hunters PH — Home page styling
 * Matches the design prototype (event-hunters-ph-prototype.html) exactly:
 * Philippine flag-inspired palette (blue / red / gold), Poppins headings,
 * Inter body text.
 *
 * Every rule here is scoped under .ehph-home so this stylesheet can never
 * affect the site header, footer, or any other page — even though it is
 * only enqueued on the front page anyway (see functions.php).
 */

.ehph-home {
	/* ---- Palette (scoped, so it can't collide with other CSS vars) ---- */
	--ehph-accent: #0038A8;
	--ehph-accent-dark: #00265e;
	--ehph-accent-light: #e8edfa;
	--ehph-cta: #CE1126;
	--ehph-cta-dark: #8f0c1a;
	--ehph-gold: #FCD116;
	--ehph-gold-dark: #b89400;
	--ehph-text: #101014;
	--ehph-text-muted: #6b7280;
	--ehph-text-faint: #9aa0ac;
	--ehph-bg: #ffffff;
	--ehph-bg-alt: #f7f7fb;
	--ehph-border: #e6e7eb;
	--ehph-radius: 14px;
	--ehph-shadow-sm: 0 1px 3px rgba(20,20,43,0.06);
	--ehph-shadow-md: 0 10px 30px rgba(20,20,43,0.08);

	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--ehph-text);
	background: var(--ehph-bg);
	-webkit-font-smoothing: antialiased;
}

.ehph-home h1,
.ehph-home h2,
.ehph-home h3,
.ehph-home h4 {
	font-family: 'Poppins', system-ui, sans-serif;
}

.ehph-home img,
.ehph-home svg { max-width: 100%; }

.ehph-home a { text-decoration: none; }

.ehph-home button { font-family: inherit; cursor: pointer; }

.ehph-home ul { margin: 0; padding: 0; list-style: none; }

.ehph-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Buttons ---------- */
.ehph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 20px;
	border-radius: 9px;
	font-weight: 600;
	font-size: 14.5px;
	border: none;
	transition: .15s;
	white-space: nowrap;
	color: #fff;
}
.ehph-btn-primary { background: var(--ehph-accent); color: #fff; }
.ehph-btn-primary:hover { background: var(--ehph-accent-dark); color: #fff; }
.ehph-btn-lg { padding: 14px 28px; font-size: 15.5px; }
.ehph-btn-cta { background: var(--ehph-cta); color: #fff; }
.ehph-btn-cta:hover { background: var(--ehph-cta-dark); color: #fff; }
.ehph-btn-outline { background: transparent; color: var(--ehph-text); border: 1.5px solid var(--ehph-border); }
.ehph-btn-outline:hover { border-color: var(--ehph-accent); color: var(--ehph-accent); }
.ehph-btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.ehph-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ehph-accent-light) 0%, #fff 100%);
	padding: 64px 0 24px;
}
.ehph-hero-sun {
	position: absolute;
	top: -70px;
	right: -70px;
	width: 280px;
	height: 280px;
	opacity: .12;
	pointer-events: none;
}
.ehph-hero-inner {
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.ehph-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--ehph-border);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ehph-accent);
	margin-bottom: 20px;
	box-shadow: var(--ehph-shadow-sm);
}
.ehph-hero h1 {
	font-size: 44px;
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ehph-text);
}
.ehph-hero h1 span { color: var(--ehph-accent); }
.ehph-lead {
	font-size: 17px;
	color: var(--ehph-text);
	margin: 0 0 30px;
	line-height: 1.6;
}

/* ---------- Section generic ---------- */
.ehph-section { padding: 64px 0; }
.ehph-hero + .ehph-section { padding-top: 24px; }
.ehph-section-alt { background: var(--ehph-bg-alt); }
.ehph-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
	gap: 20px;
	flex-wrap: wrap;
}
.ehph-section-head h2 {
	font-size: 28px;
	margin: 0 0 6px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ehph-text);
}
.ehph-section-head p { margin: 0; color: var(--ehph-text); font-size: 15px; }
.ehph-tag-pill {
	display: inline-block;
	background: var(--ehph-accent-light);
	color: var(--ehph-accent);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 10px;
}

/* ---------- Category strip & venue grid wrappers ----------
   The actual cards inside these come from the Directorist plugin's own
   shortcode markup/CSS (already active site-wide), so we only need to
   lay out the wrapper here, not restyle individual cards. */
.ehph-category-strip,
.ehph-venue-grid {
	--ehph-grid-gap: 20px;
}
.ehph-category-strip :where(ul),
.ehph-venue-grid :where(ul) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ehph-grid-gap);
}

/* ---------- CTA band ---------- */
.ehph-cta-band {
	background: linear-gradient(120deg, var(--ehph-accent) 0%, var(--ehph-accent) 55%, var(--ehph-cta) 100%);
	border-radius: 20px;
	padding: 50px;
	text-align: center;
	color: #fff;
	margin: 0 auto;
}
.ehph-cta-band h2 { font-size: 26px; margin: 0 0 10px; font-weight: 800; color: #fff; }
.ehph-cta-band p { margin: 0 0 24px; opacity: .9; }
.ehph-cta-band .ehph-btn-cta { padding: 13px 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.ehph-hero h1 { font-size: 30px; }
	.ehph-hero { padding: 48px 0 40px; }
}

/* ---------- Featured venues: card grid (matches prototype) ---------- */
.ehph-venue-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ehph-venue-card {
	background: #fff;
	border: 1px solid var(--ehph-border);
	border-radius: var(--ehph-radius);
	overflow: hidden;
	box-shadow: var(--ehph-shadow-sm);
	transition: .15s;
	display: flex;
	flex-direction: column;
}
.ehph-venue-card:hover {
	box-shadow: var(--ehph-shadow-md);
	transform: translateY(-2px);
}
.ehph-venue-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ehph-venue-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ehph-ph-icon {
	width: 34px;
	height: 34px;
	color: rgba(255,255,255,0.55);
}
.ehph-ph-label {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	opacity: .9;
	text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.ehph-venue-type-badge,
.ehph-price-tier-badge {
	position: absolute;
	top: 12px;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,0.92);
	color: var(--ehph-text);
}
.ehph-venue-type-badge { left: 12px; }
.ehph-price-tier-badge { right: 12px; background: rgba(16,16,20,0.55); color: #fff; }
.ehph-venue-body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.ehph-venue-body h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ehph-text);
}
.ehph-venue-loc {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ehph-text-muted);
	font-size: 13px;
	margin-bottom: 10px;
}
.ehph-venue-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 10px;
	font-size: 12.5px;
	color: var(--ehph-text-muted);
}
.ehph-venue-meta-row span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ehph-pc-mini {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
	font-size: 12.5px;
}
.ehph-pro { color: #16a34a; }
.ehph-con { color: #dc2626; }
.ehph-venue-price {
	margin-top: auto;
	margin-bottom: 12px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ehph-text);
}
.ehph-venue-price small {
	display: block;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ehph-text-muted);
	margin-top: 2px;
}
.ehph-btn-block { width: 100%; }

@media (max-width: 900px) {
	.ehph-venue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.ehph-venue-grid { grid-template-columns: 1fr; }
}

/* ---- Category toggle (Browse by category: Venue / Supplier) ---- */
.ehph-cat-toggle-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.ehph-cat-toggle-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 40px;
	border-radius: 14px;
	border: 2px solid #e6e7eb;
	background: #fff;
	color: var(--ehph-text);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: 0.15s;
	font-family: inherit;
}
.ehph-cat-toggle-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.ehph-cat-toggle-btn:hover { border-color: var(--ehph-accent); color: var(--ehph-accent); }
.ehph-cat-toggle-btn.active { background: var(--ehph-accent); border-color: var(--ehph-accent); color: #fff; }
.ehph-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.ehph-cat-card {
	border: 1px solid #e6e7eb;
	border-radius: 12px;
	padding: 22px;
	text-align: center;
	background: #fff;
}
.ehph-cat-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ehph-text); }
.ehph-cat-card span { font-size: 13px; color: var(--ehph-text-muted); }
.ehph-cat-card { display: block; text-decoration: none; color: inherit; transition: 0.15s; }
.ehph-cat-card:hover { border-color: var(--ehph-accent); box-shadow: 0 4px 14px rgba(0,56,168,0.08); transform: translateY(-2px); }

/* ---- Featured Venues / Featured Suppliers tabs ---- */
.ehph-feat-tabs {
	display: flex;
	gap: 8px;
	background: #f1f3f7;
	padding: 4px;
	border-radius: 10px;
	flex-shrink: 0;
}
.ehph-feat-tab {
	padding: 9px 18px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ehph-text-muted);
	cursor: pointer;
	transition: 0.15s;
	font-family: inherit;
	white-space: nowrap;
}
.ehph-feat-tab.active { background: #fff; color: var(--ehph-accent); box-shadow: 0 1px 3px rgba(16, 16, 20, 0.1); }
.ehph-feat-viewall { margin-top: 28px; text-align: center; }
.ehph-supplier-excerpt { font-size: 13.5px; color: var(--ehph-text); line-height: 1.5; margin: 8px 0 14px; }
.ehph-empty-msg {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 24px;
	color: var(--ehph-text-muted);
	font-size: 14px;
	border: 1.5px dashed #e6e7eb;
	border-radius: 14px;
	background: #fafbfc;
}
.ehph-empty-msg a { color: var(--ehph-accent); font-weight: 700; text-decoration: none; }

@media (max-width: 620px) {
	.ehph-cat-grid { grid-template-columns: 1fr 1fr; }
	.ehph-cat-toggle-btn { padding: 14px 28px; }
}
