/*
Theme Name: EquiTrace
Theme URI: https://equitrace.app/
Author: EquiTrace
Description: Lean custom block theme for equitrace.app. No page builder, no jQuery, self-hosted fonts.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: equitrace
*/

/* Only what theme.json can't express. Keep this file small. */

:root { --et-radius: 18px; --et-radius-sm: 10px; --et-radius-lg: 28px; --et-ease: cubic-bezier(.22,.8,.26,1); --et-line: #E6E4EE; --et-muted: #8A8C9C; }
body { -webkit-font-smoothing: antialiased; }

.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: .5rem 1rem; }

/* Header */
.et-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.et-header.is-scrolled { border-color: var(--et-line); box-shadow: 0 6px 20px -14px rgba(24,14,76,.35); }
.et-header .wp-block-site-logo img { width: 170px; height: auto; }
.et-header .wp-block-navigation a { text-decoration: none; }
.et-header .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 1.5px solid currentColor; }

/* Section helpers */
.is-style-et-card { background: #fff; border: 1px solid var(--et-line); border-radius: var(--et-radius); padding: var(--wp--preset--spacing--40); transition: transform .35s var(--et-ease), box-shadow .35s var(--et-ease), border-color .35s; }
.is-style-et-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); border-color: transparent; }
.et-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--wp--preset--color--blue); margin: 0; }
.et-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--navy); font-size: .85rem; font-weight: 500; }
.et-badge--verified { background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--navy); }
.et-step-number { margin: 0 0 .4rem; color: var(--wp--preset--color--blue); font: 600 .8rem/1 var(--wp--preset--font-family--heading); letter-spacing: .08em; }
.et-stat { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); letter-spacing: -.03em; color: var(--wp--preset--color--navy); line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.et-shot img { border-radius: var(--et-radius); box-shadow: var(--wp--preset--shadow--lift); }

/* FAQ */
.wp-block-details summary { cursor: pointer; font-weight: 500; color: var(--wp--preset--color--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212"; }

/* Footer */
.et-footer a { color: var(--wp--preset--color--lavender); text-decoration: none; }
.et-footer a:hover { text-decoration: underline; }
.et-footer h2 { color: #fff; font-size: var(--wp--preset--font-size--medium); }
.et-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Sections marked "hide if empty" are removed server-side by EquiTrace Site Core; this is the no-plugin fallback. */
.is-style-hide-if-empty:empty { display: none; }

/* Venue panel (rendered by EquiTrace Site Core) */
.et-venue { margin-block: var(--wp--preset--spacing--50); }
.et-venue__meta { color: var(--wp--preset--color--navy); font-weight: 500; }
.et-venue__requirements { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) 2.5rem; background: var(--wp--preset--color--cloud); border-radius: var(--et-radius); }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: transform .25s var(--et-ease), box-shadow .25s var(--et-ease), background-color .25s; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(24,14,76,.5); }
.is-style-outline .wp-block-button__link { border: 1.5px solid var(--wp--preset--color--lavender-deep); color: var(--wp--preset--color--navy); background: transparent; }
.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--navy); background: #fff; }

/* Hero */
.et-hero { position: relative; overflow: hidden; background: radial-gradient(60rem 30rem at 85% 10%, rgba(233,229,243,.9), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, rgba(227,240,247,.7), transparent 60%), #fff; }
.et-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--et-line) 1px, transparent 1px), linear-gradient(90deg, var(--et-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 65%); }
.et-hero > * { position: relative; z-index: 1; }
.et-credential { margin-top: var(--wp--preset--spacing--30); padding: var(--wp--preset--spacing--30) 0 0 2.6rem; border-top: 1px solid var(--et-line); max-width: 30rem; font-size: .9rem; color: var(--wp--preset--color--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M15 2.5 25 6.3v7.4c0 6.3-4.2 11.3-10 13.8C9.2 25 5 20 5 13.7V6.3L15 2.5Z' fill='%23E9E5F3' stroke='%23180E4C' stroke-width='1.6'/%3E%3Cpath d='m10.5 15 3 3 6-6.5' stroke='%23180E4C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 calc(var(--wp--preset--spacing--30) + 2px)/30px no-repeat; }
.et-credential span { color: var(--et-muted); font-size: .78rem; }
.et-stage { position: relative; }
.et-stage__shot img { border-radius: var(--et-radius-lg); box-shadow: var(--wp--preset--shadow--deep); }
.et-float { position: absolute; z-index: 2; margin: 0; background: #fff; border-radius: 16px; box-shadow: var(--wp--preset--shadow--lift); padding: .8rem 1rem; font-size: .8rem; line-height: 1.35; color: var(--wp--preset--color--ink); }
.et-float span { color: var(--et-muted); font-size: .72rem; }
.et-float--a { top: 4%; left: -6%; }
.et-float--b { bottom: 6%; right: -6%; }
.et-float--c { top: 50%; left: -9%; }
@media (max-width: 781px) { .et-float--b, .et-float--c { display: none; } .et-float--a { left: 0; top: 0; } }

/* Logo marquee */
.et-logos { border-bottom: 1px solid var(--et-line); }
.et-logos__label { color: var(--et-muted); font-size: .9rem; }
.et-marquee { overflow: hidden; }
.et-marquee__track { gap: 1rem !important; flex-wrap: wrap !important; justify-content: center; }
.et-logo { margin: 0 !important; flex: none; background: #EEEDF3; border-radius: var(--et-radius-sm); padding: .5rem 1rem; transition: background .3s, transform .3s var(--et-ease); }
.et-logo img { filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.et-logo:hover { background: var(--wp--preset--color--lavender); transform: translateY(-2px); }
.et-logo:hover img { filter: none; opacity: 1; }
.et-venues { margin-top: var(--wp--preset--spacing--50); }
.et-venues__title { font-family: var(--wp--preset--font-family--body); font-size: .9rem; font-weight: 500; }
.et-venue-slot { height: 72px; margin: 0; border: 1.5px dashed var(--wp--preset--color--lavender-deep); border-radius: var(--et-radius-sm); display: grid; place-items: center; color: var(--et-muted); font-size: .8rem; }

/* Stats, steps, quotes, organiser band */
.et-stats { position: relative; overflow: hidden; }
.et-stats .et-stat { color: #fff; }
.et-stat-item { border-left: 1px solid rgba(233,229,243,.16); padding-left: var(--wp--preset--spacing--40); }
.et-stat-item:first-child { border-left: 0; padding-left: 0; }
.et-quote:hover { transform: translateY(-4px); }
.et-org { border-radius: var(--et-radius-lg); position: relative; overflow: hidden; }
.et-org h2 { color: #fff; }
.et-org .et-eyebrow { color: #8FC6E2; }
.et-org .wp-block-button__link { background: #fff; color: var(--wp--preset--color--navy); }
.et-org .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(233,229,243,.35); }

/* Motion. Only applied by assets/js/motion.js (adds .et-motion) and only below the first screen. */
@keyframes et-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes et-bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes et-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes et-marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.et-stage__shot { animation: et-bob 7s ease-in-out infinite; }
.et-float--a { animation: et-bob2 6s ease-in-out infinite; }
.et-float--b { animation: et-bob 8s ease-in-out .6s infinite; }
.et-float--c { animation: et-bob2 7s ease-in-out 1.2s infinite; }
.et-hero__copy > * { animation: et-rise .8s var(--et-ease) both; }
.et-hero__copy > :nth-child(2) { animation-delay: .08s; }
.et-hero__copy > :nth-child(3) { animation-delay: .16s; }
.et-hero__copy > :nth-child(4) { animation-delay: .24s; }
.et-hero__copy > :nth-child(5) { animation-delay: .32s; }
.et-motion .et-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.et-motion .et-marquee__track.is-looping { flex-wrap: nowrap !important; justify-content: flex-start; width: max-content; animation: et-marquee 38s linear infinite; }
.et-motion .et-marquee:hover .et-marquee__track { animation-play-state: paused; }
.et-motion .et-reveal.is-armed { opacity: 0; transform: translateY(24px); }
.et-motion .et-reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--et-ease) var(--et-delay, 0s), transform .8s var(--et-ease) var(--et-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
