/*
Theme Name: GrainZap Challenge
Theme URI: https://grainzap.com
Author: GrainZap IT Solutions Pvt. Ltd.
Author URI: https://grainzap.com
Description: Event theme for the GrainZap Global Innovation Challenge 2026 — landing page, tracks, FAQ, registration and sponsor pages. Pair with the "GrainZap Challenge Registration" plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grainzap-challenge
*/

:root {
	--orange: #f47b20;
	--orange-dark: #d9640d;
	--orange-soft: #fff1e5;
	--dark: #171717;
	--dark-2: #222;
	--ink: #1d1d1f;
	--muted: #6b6b70;
	--line: #e6e6e8;
	--bg-alt: #f6f6f7;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.7rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; margin-left: .5rem; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23, 23, 23, .94); backdrop-filter: blur(10px); color: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand img { max-height: 46px; width: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), #ffb066); color: #171717; font-weight: 800; font-size: 1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: #b9b9bd; font-size: .72rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-list { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: #e7e7ea; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-list a:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: clamp(4rem, 10vw, 8rem) 0 4rem; border-left: 14px solid var(--orange); }
.hero-rings { position: absolute; right: -180px; top: -180px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, transparent 0 38%, rgba(255, 255, 255, .06) 38.2% 38.6%, transparent 38.8% 58%, rgba(255, 255, 255, .06) 58.2% 58.6%, transparent 58.8% 78%, rgba(255, 255, 255, .06) 78.2% 78.6%, transparent 78.8%); pointer-events: none; }
.hero-rings::after { content: ""; position: absolute; left: 22%; top: 48%; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); }
.hero-inner { position: relative; }
.eyebrow { color: var(--orange); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.hero h1 span { color: var(--orange); display: block; }
.tagline { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #f0f0f2; margin-bottom: .4rem; }
.lead { max-width: 640px; color: #c9c9ce; font-size: 1.08rem; }
.hero-cta { margin: 1.8rem 0 2.6rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; max-width: 820px; }
.stats div { background: #fff; color: var(--dark); padding: 1.1rem 1.2rem; text-align: center; }
.stats dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font-weight: 800; font-size: 1.6rem; }
.stats dd.small { font-size: 1rem; padding-top: .45rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-lead { color: #c9c9ce; }
.note { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.page-hero { background: var(--dark); color: #fff; padding: 4rem 0 3rem; border-left: 14px solid var(--orange); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.page-hero .lead { margin-bottom: 1.4rem; }

/* Grid & cards */
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--orange-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.card p { margin: 0; color: #444; }
.card .num { display: block; color: var(--orange); font-weight: 800; font-size: 1.6rem; margin-bottom: .3rem; }
.card-dark { background: var(--dark-2); border-color: #333; }
.card-dark p { color: #c9c9ce; }

/* Tracks */
.tracks { display: grid; gap: 1rem; margin-top: 2rem; }
.track { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.track-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; font-size: 1.3rem; }
.track h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.track p { margin: 0 0 .3rem; color: #444; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; }
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; color: #555; }
.tba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.tba div { background: var(--orange-soft); border: 1px solid var(--orange); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.tba strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* Partners / ticks */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }

/* Tiers */
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.tier.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.tier h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--orange); margin: .2rem 0 1rem; }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th { background: var(--dark); color: #fff; text-align: left; padding: .9rem 1.1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.table td { padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.trust { margin-top: 2rem; background: var(--orange-soft); border: 1px solid var(--orange); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.trust strong { display: block; }

/* Fee */
.fee-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.fee-box h2 small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.fee-box p { max-width: 560px; }

/* FAQ */
.faq { display: grid; gap: .7rem; margin-top: 1.5rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: .7rem 0 0; color: #555; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 4vw, 2.2rem); box-shadow: var(--shadow); margin-top: 1.5rem; }

/* Prose */
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.post-card { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post-card h2 a { text-decoration: none; color: var(--ink); }

/* Footer */
.site-footer { background: #101010; color: #c9c9ce; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #e7e7ea; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; }
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: .85rem; }
.footer-h { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-legal { border-top: 1px solid #2a2a2a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #8d8d92; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-legal p { margin: 0; }

/* Reveal */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal:not(.in) { opacity: 1; transform: none; }
	.reveal { transition: none; }
	.btn:hover, .card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
	.grid-3, .tba { grid-template-columns: 1fr; }
	.split, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.hero { border-left-width: 8px; padding-top: 3.5rem; }
	.hero-rings { opacity: .6; right: -320px; }
	.nav-toggle { display: block; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 1.2rem 1.5rem 1.5rem; gap: 1rem; display: none; border-top: 1px solid #2a2a2a; }
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: .9rem; }
}
@media (max-width: 520px) {
	.btn-ghost { margin: .6rem 0 0; }
	.track { grid-template-columns: 1fr; }
	.steps li { grid-template-columns: 1fr; }
}
