/*
Theme Name:   JKTCL Theme
Theme URI:    https://jktcl.com
Author:       Aurelian Consulting Solutions Pvt. Ltd.
Description:  Custom theme for the Jammu Kashmir Tourism Cricket League site. Pairs with the JKTCL Core plugin, which must be active — the theme's templates call that plugin's shortcodes and template-tag functions to render Teams, Sponsors, Events and the public forms.
Version:      1.0.0
Requires PHP: 7.4
Requires at least: 6.0
Requires Plugins: jktcl-core
Text Domain:  jktcl-theme
*/

:root {
	--navy: #0C3D91;
	--navy-deep: #081E4A;
	--red: #E11D2F;
	--red-deep: #B01322;
	--cyan: #00CEFF;
	--blue: #1467FF;
	--cream: #F1F5F9;
	--card: #FFFFFF;
	--ink: #0B1B33;
	--muted: #5B6B80;
	--line: #DCE3EC;
	box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: 'Archivo', Arial, sans-serif;
	background: var(--cream);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Archivo', Arial, sans-serif; font-weight: 800; margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--navy-deep) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 14px 0;
	gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; justify-self: start; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text .big { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
nav.primary-menu { justify-self: center; min-width: 0; }
nav.primary-menu ul { display: none; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
nav.primary-menu ul li a { text-decoration: none; color: #DCE3EA; }
nav.primary-menu ul li a:hover { color: var(--cyan); }
@media (min-width: 1180px) { nav.primary-menu ul { display: flex; } }
.menu-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer; justify-self: end; }
@media (min-width: 1180px) { .menu-btn { display: none; } }
@media (max-width: 1179px) { .nav { grid-template-columns: auto 1fr auto; } nav.primary-menu { display: none; } }
#mobileMenu { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 18px; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); }
#mobileMenu.open { display: flex; }
#mobileMenu a { padding: 12px 4px; color: #E8ECF1; text-decoration: none; font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; border: none; white-space: nowrap; }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; box-shadow: 0 6px 18px rgba(225,29,47,0.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-navy { background: var(--navy); color: #fff; }

/* Hero */
.hero { position: relative; background: radial-gradient(1100px 500px at 15% -10%, rgba(0,206,255,0.16), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(225,29,47,0.22), transparent 55%), linear-gradient(180deg, var(--navy-deep), var(--navy) 60%, var(--navy)); color: #fff; padding: 64px 0 56px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo {
  width: 460px; max-width: 80vw; height: auto; display: block; margin-bottom: 18px;
  background: #FAF8F3; padding: 20px 28px; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
/* The new JKTCL lockup uses navy for the batsman figure and the "TCL" letters,
   which would vanish against this theme's navy hero background — the cream
   plate above is what keeps it legible there. The small header icon (just
   the ball) has no such plate because it isn't navy and reads fine either way. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); background: rgba(0,206,255,0.12); border: 1px solid rgba(0,206,255,0.35); padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.08; margin: 22px 0 14px; max-width: 820px; }
.hero h1 .accent { color: var(--cyan); }
.hero p.lead { font-size: clamp(16px, 2.1vw, 19px); color: #CBD5E0; max-width: 640px; line-height: 1.6; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 680px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px 14px; }
.stat .num { font-size: 25px; font-weight: 800; color: var(--cyan); }
.stat .lbl { font-size: 12px; color: #B8C2CC; margin-top: 2px; }
.org-strip { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #9FB0BF; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.org-strip b { color: #E7ECF1; font-weight: 600; }
.org-strip .dot { opacity: 0.5; }
.credit-line { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13.5px; line-height: 1.7; color: #9FB0BF; max-width: 880px; }
.credit-line b { color: #E7ECF1; font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
h2.section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 10px 0 14px; color: var(--navy); }
.section-copy { color: var(--muted); font-size: 16px; line-height: 1.7; }
.alt-bg { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(1,1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card .ic { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-weight: 700; font-size: 16.5px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* Org logos */
.org-logos { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: stretch; }
.logo-box { width: 220px; height: 120px; border-radius: 14px; background: var(--card); border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; }
.logo-box.has-logo { border-style: solid; }
.logo-box img { max-width: 100%; max-height: 64px; object-fit: contain; }
.logo-box .lb-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.logo-box .lb-sub { font-size: 10.5px; color: var(--muted); opacity: .75; }
.coord-note { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Teams / Tournaments grid pages */
.entity-grid { display: grid; gap: 20px; grid-template-columns: repeat(1,1fr); }
@media (min-width: 640px) { .entity-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .entity-grid { grid-template-columns: repeat(3,1fr); } }
.entity-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; text-decoration: none; color: inherit; transition: transform .15s ease; }
.entity-card:hover { transform: translateY(-2px); }
.entity-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 1px solid var(--line); }
.entity-card h3 { font-size: 16px; margin-bottom: 4px; }
.entity-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* Venues */
.venues { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .venues { grid-template-columns: 1fr 1fr; } }
.venue-card { border-radius: 18px; padding: 28px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--navy-deep)); text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.venue-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
.venue-card.alt { background: linear-gradient(145deg, var(--blue), #082C73); }
.venue-card .vtag { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.venue-card .vtag .arrow { opacity: .8; }
.venue-card h3 { color: #fff; font-size: 24px; margin: 8px 0 10px; }
.venue-card p { color: #D8E0E8; font-size: 14px; line-height: 1.6; margin: 0; }
.venue-card ul { margin: 14px 0 0; padding-left: 18px; color: #D8E0E8; font-size: 13.5px; line-height: 1.8; }

/* Sponsor benefits table (replaces the earlier tier-ladder graphic) */
.benefits-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
table.benefits-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 13px; }
table.benefits-table th, table.benefits-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.benefits-table td:first-child, table.benefits-table th:first-child { text-align: left; white-space: normal; min-width: 180px; position: sticky; left: 0; background: var(--card); font-weight: 600; }
table.benefits-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
table.benefits-table thead th:first-child { background: var(--navy-deep); }
table.benefits-table tbody tr:nth-child(even) td { background: var(--cream); }
table.benefits-table tbody tr:nth-child(even) td:first-child { background: var(--cream); }
table.benefits-table tfoot td { font-size: 10.5px; color: var(--muted); text-align: left; white-space: normal; border-bottom: none; padding-top: 14px; }

/* Guest cards with a real photo */
.jktcl-guest-grid { display: grid; gap: 16px; grid-template-columns: repeat(1,1fr); }
@media (min-width: 700px) { .jktcl-guest-grid { grid-template-columns: repeat(3,1fr); } }
.jktcl-guest-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.jktcl-guest-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(145deg, var(--cyan), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; overflow: hidden; }
.jktcl-guest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jktcl-guest-card h4 { margin: 0 0 4px; font-size: 15px; }
.jktcl-guest-role { font-size: 12.5px; color: var(--muted); }
.jktcl-invited-pill { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: rgba(20,103,255,0.12); color: var(--blue); padding: 3px 10px; border-radius: 999px; }

/* Previous Winners */
.jktcl-winners-grid { display: grid; gap: 16px; grid-template-columns: repeat(1,1fr); }
@media (min-width: 640px) { .jktcl-winners-grid { grid-template-columns: repeat(3,1fr); } }
.jktcl-winner-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; text-decoration: none; color: inherit; display: block; transition: transform .15s ease; }
.jktcl-winner-card:hover { transform: translateY(-2px); }
.jktcl-winner-season { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.jktcl-winner-trophy { font-size: 32px; margin: 10px 0; }
.jktcl-winner-name { font-weight: 800; font-size: 17px; color: var(--navy); }
.jktcl-winner-runnerup { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Latest from JKTCL (News carousel) */
.jktcl-news-track.jktcl-marquee-track { gap: 20px; }
.jktcl-news-card { flex: 0 0 auto; width: 240px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.jktcl-news-thumb { width: 100%; height: 140px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; }
.jktcl-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jktcl-news-title { font-size: 14px; font-weight: 700; padding: 14px 14px 4px; line-height: 1.4; }
.jktcl-news-date { font-size: 11.5px; color: var(--muted); padding: 0 14px 14px; }

/* Promo video */
.video-frame { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: var(--navy); border: 1px solid var(--line); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9FB0BF; text-align: center; padding: 20px; }
.video-placeholder .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(0,206,255,0.18); border: 1.5px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--cyan); }
.video-placeholder .vp-title { font-size: 14px; font-weight: 600; color: #DCE3EA; }
.video-placeholder .vp-sub { font-size: 12px; max-width: 320px; }

/* Schedule / phase cards */
.phases { display: grid; gap: 16px; grid-template-columns: repeat(1,1fr); }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(4,1fr); } }
.phase { border-radius: 16px; padding: 20px; border: 1px solid var(--line); background: var(--card); }
.phase.gate { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.phase .tag { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.phase.gate .tag { color: var(--red-deep); }
.phase .name { font-weight: 800; font-size: 18px; margin: 6px 0 4px; }
.phase .date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.phase .desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tentative { display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(225,29,47,0.12); color: var(--red-deep); padding: 3px 9px; border-radius: 999px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); }
.cta-band p { color: #C7D1DA; max-width: 520px; margin: 0 auto 28px; font-size: 15.5px; }
.cta-band .jktcl-form { margin: 0 auto; text-align: left; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.cta-band .jktcl-field label { color: #B8C2CC; }
.cta-band .jktcl-field input, .cta-band .jktcl-field select, .cta-band .jktcl-field textarea { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }

/* Footer */
footer.site-footer { background: var(--navy-deep); color: #AEB9C4; padding: 44px 0 28px; font-size: 13.5px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer h5 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
footer a { text-decoration: none; color: #AEB9C4; }
footer a:hover { color: var(--cyan); }
.flinks { display: flex; flex-direction: column; gap: 9px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #7C8894; font-size: 12.5px; }

/* Single team / tournament pages */
.detail-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.detail-header img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.roster-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.roster-table th, .roster-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.roster-table th { background: var(--navy); color: #fff; font-weight: 700; }
