/*
Theme Name: Electric Box 2026
Theme URI: https://electricboxhuddersfield.co.uk/
Author: Baseline Digital Marketing
Description: Block theme for Electric Box EMS Training, BigBox Leisure Club Huddersfield. Neon tunnel hero, three booking calls to action, brand fonts (Barlow Semi Condensed, Roboto) and colours.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: electric-box-2026
*/

/* ---------- Header ---------- */
.eb-header { position: relative; z-index: 5; }
.eb-brand a { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.eb-brand a::before { content: ""; width: 34px; height: 34px; background: url("assets/images/bolt.svg") center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(109, 207, 214, .45)); }
.eb-header .wp-block-navigation a { color: #B8BCC8; }
.eb-header .wp-block-navigation a:hover { color: #fff; }
.eb-header .wp-block-button__link { padding: .85rem 1.4rem; font-size: .875rem; }

/* ---------- Neon tunnel hero ---------- */
.eb-hero { position: relative; overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(120% 95% at 50% 42%, #07154A 0%, #01083A 45%, #00042B 100%); margin-top: 0 !important; }
.eb-hero > * { position: relative; z-index: 3; }
.eb-hero .eb-neon { position: absolute !important; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; margin: 0 !important; max-width: none !important; }
.eb-hero .eb-neon span { position: absolute; width: 96vmin; height: 96vmin; border: 2px solid #6DCFD6; box-shadow: 0 0 4px rgba(170,240,245,.95), 0 0 16px rgba(109,207,214,.9), 0 0 38px rgba(109,207,214,.65), 0 0 72px rgba(60,170,210,.4), inset 0 0 26px rgba(109,207,214,.22); transform: scale(.04); opacity: 0; animation: eb-tunnel 12s linear infinite; will-change: transform, opacity; }
.eb-hero .eb-neon span:nth-child(1) { animation-delay: 0s; }   .eb-hero .eb-neon span:nth-child(2) { animation-delay: -1s; }
.eb-hero .eb-neon span:nth-child(3) { animation-delay: -2s; }  .eb-hero .eb-neon span:nth-child(4) { animation-delay: -3s; }
.eb-hero .eb-neon span:nth-child(5) { animation-delay: -4s; }  .eb-hero .eb-neon span:nth-child(6) { animation-delay: -5s; }
.eb-hero .eb-neon span:nth-child(7) { animation-delay: -6s; }  .eb-hero .eb-neon span:nth-child(8) { animation-delay: -7s; }
.eb-hero .eb-neon span:nth-child(9) { animation-delay: -8s; }  .eb-hero .eb-neon span:nth-child(10) { animation-delay: -9s; }
.eb-hero .eb-neon span:nth-child(11) { animation-delay: -10s; } .eb-hero .eb-neon span:nth-child(12) { animation-delay: -11s; }
.eb-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, #050507 0%, rgba(5,5,7,.7) 14%, transparent 32%), radial-gradient(62% 62% at 50% 48%, transparent 0%, rgba(0,4,43,.45) 100%); }
.eb-hero h1 { text-shadow: 0 0 30px rgba(109,207,214,.55); letter-spacing: .04em; }
@keyframes eb-tunnel { 0% { transform: scale(.04); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eb-hero .eb-neon span { animation: none; opacity: .6; transform: scale(.5); } }

/* ---------- Eyebrows ---------- */
.eb-eyebrow { color: #6DCFD6 !important; font-size: .875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 0; }

/* ---------- Three booking cards ---------- */
.eb-cta { position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 2.25rem !important; background-color: #00042B; background-size: cover; background-position: 70% 40%; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; transition: transform .2s, box-shadow .2s; }
.eb-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #00042B 34%, rgba(0,4,43,.55) 60%, rgba(0,4,43,0) 85%); }
.eb-cta > * { position: relative; max-width: 62%; margin: 0 !important; }
.eb-cta h3 { font-size: clamp(2.25rem, 3.4vw, 2.875rem); line-height: .95; }
.eb-cta p { font-size: .9375rem; line-height: 1.5; }
.eb-cta .wp-block-button__link { background: transparent; color: #fff; padding: 0 0 .6rem; border-bottom: 2px solid #E8B738; letter-spacing: .1em; font-size: .9375rem; }
.eb-cta .wp-block-button__link::after { content: "  ›"; }
.eb-cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #6DCFD6, 0 0 30px rgba(109,207,214,.35); }
.eb-cta .wp-block-button__link::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.eb-cta .wp-block-buttons, .eb-cta .wp-block-button { position: static; }

/* ---------- Cards, stats, photos ---------- */
.eb-who { background: #0A1140; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.eb-who figure { margin: 0 !important; }
.eb-who img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 35%; display: block; }
.eb-who > :not(figure) { padding-left: 1.6rem; padding-right: 1.6rem; }
.eb-who > :last-child { padding-bottom: 1.75rem; }
.eb-stat { background: #00042B; border-radius: 4px; padding: 1.4rem !important; }
.eb-stat .eb-stat-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2.375rem; color: #fff !important; line-height: 1.1; margin: 0; }
.eb-stat p { margin: 0; }
.eb-photo img { width: 100%; height: 560px; object-fit: cover; border-radius: 4px; }
.eb-band { border: 1px solid #6DCFD6; box-shadow: 0 0 40px rgba(109,207,214,.18); border-radius: 4px; }
.eb-visit h2 { font-size: 1.5rem; letter-spacing: .08em; color: #6DCFD6; margin-bottom: .5rem; }
.eb-visit p { color: #fff; margin-top: 0; }
.eb-line-top { border-top: 1px solid rgba(255,255,255,.12); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 4px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: #050507; }

@media (max-width: 700px) {
	.eb-cta > * { max-width: 100%; }
	.eb-cta::before { background: linear-gradient(0deg, #00042B 45%, rgba(0,4,43,.6) 75%, rgba(0,4,43,.2) 100%); }
	.eb-cta { min-height: 460px; justify-content: flex-end; gap: 1rem; }
	.eb-photo img { height: 420px; }
}

/* Header floats over the hero on the homepage */
.home .eb-header-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.admin-bar.home .eb-header-wrap { top: 32px; }
.eb-band h2 { margin-top: 0; }

/* v1.0.1 fixes */
.eb-hero h1.wp-block-heading { font-size: clamp(4rem, 10vw, 8.25rem) !important; line-height: .9; margin: .25em 0 .2em; }
.eb-header { padding-left: clamp(1.25rem, 4vw, 3rem) !important; padding-right: clamp(1.25rem, 4vw, 3rem) !important; }
/* v1.0.2 fixes */
.eb-line-top:where(footer) , footer.wp-block-group { padding-left: clamp(1.25rem, 4vw, 3rem) !important; padding-right: clamp(1.25rem, 4vw, 3rem) !important; }
.eb-hero h1.wp-block-heading { max-width: 1240px !important; }
/* v1.0.3: card border = soft neon at rest, full glow on hover; no photo bleed under the edge */
.eb-cta { border: 0 !important; background-clip: padding-box; box-shadow: 0 0 0 1px rgba(109,207,214,.35), 0 0 18px rgba(109,207,214,.08); }
.eb-cta:hover, .eb-cta:focus-within { box-shadow: 0 0 0 1px #6DCFD6, 0 0 30px rgba(109,207,214,.35); }
/* v1.0.4: stats stack on small screens */
.eb-stat, .eb-stat p { overflow-wrap: normal; word-break: normal; hyphens: none; }
.eb-stat .eb-stat-num { white-space: nowrap; }
@media (max-width: 781px) {
	.wp-block-group:has(> .eb-stat) { grid-template-columns: 1fr !important; gap: .75rem !important; }
	.eb-stat { display: flex !important; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem !important; }
	.eb-stat .eb-stat-num { font-size: 2rem; min-width: 5.5rem; }
}
/* v1.0.5: long email address wraps cleanly */
.eb-visit a { overflow-wrap: anywhere; }

/* v1.1.0: goal pages + clickable goal cards */
.eb-who { position: relative; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.eb-who .eb-more { margin-top: auto !important; font-family: var(--wp--preset--font-family--heading); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9375rem; }
.eb-who .eb-more a { color: #fff; border-bottom: 2px solid #E8B738; padding-bottom: .35rem; }
.eb-who .eb-more a::after { content: ""; position: absolute; inset: 0; }
.eb-who:hover, .eb-who:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 1px #6DCFD6, 0 0 30px rgba(109,207,214,.35); }
.page-template-page-goal .eb-header-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.admin-bar.page-template-page-goal .eb-header-wrap { top: 32px; }
.eb-goal-hero { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; background-color: #00042B; background-size: cover; background-position: 50% 30%; margin-top: 0 !important; }
.eb-goal-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #050507 0%, rgba(0,4,43,.85) 35%, rgba(0,4,43,.35) 75%, rgba(0,4,43,.55) 100%); }
.eb-goal-hero > * { position: relative; }
.eb-goal-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem) !important; line-height: .95; text-shadow: 0 0 30px rgba(109,207,214,.35); }
.eb-goal-body p { font-size: 1.1875rem; line-height: 1.75; color: #D4D7E0; }
.eb-goal-body p:first-child { font-size: 1.375rem; color: #fff; }
.eb-goal-note { border-left: 0; background: #0A1140; border: 1px solid rgba(109,207,214,.35); border-radius: 4px; padding: 1.25rem 1.5rem !important; font-size: 1rem !important; }
.eb-back a { font-family: var(--wp--preset--font-family--heading); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9375rem; }
