/*
Theme Name: Local Tournaments
Theme URI: https://example.com/local-tournaments
Author: Tournament Manager
Author URI: https://example.com
Description: A bold, sporty WordPress theme built to showcase local Cricket & Football tournaments and live matches. Designed to pair with the "Tournament Manager - Cricket & Football" plugin and its shortcodes. Includes a home page, tournaments, registration and about pages created automatically.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: local-tournaments
Tags: sports, custom-menu, featured-images, full-width-template, custom-logo
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root{
    --ink:#0b1622;
    --ink-2:#122436;
    --accent:#ff5b04;
    --accent-d:#e14e00;
    --green:#12b76a;
    --bg:#f4f6f9;
    --card:#ffffff;
    --border:#e6e9ef;
    --text:#141a24;
    --muted:#69717f;
    --header-h:72px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
    margin:0;
    font-family:'Manrope',system-ui,-apple-system,sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.6;
}
h1,h2,h3,h4{font-family:'Sora',sans-serif;line-height:1.12;margin:0 0 .5em;}
a{color:var(--accent);text-decoration:none;}
img{max-width:100%;display:block;}
.tlt-container{max-width:1180px;margin:0 auto;padding:0 22px;}

/* ---------- Buttons ---------- */
.tlt-btn{display:inline-flex;align-items:center;gap:8px;font-family:'Sora';font-weight:700;font-size:.95rem;padding:13px 26px;border-radius:999px;cursor:pointer;border:2px solid transparent;transition:transform .18s ease,background .2s,color .2s,border-color .2s;}
.tlt-btn-primary{background:var(--accent);color:#fff;}
.tlt-btn-primary:hover{background:var(--accent-d);color:#fff;transform:translateY(-2px);}
.tlt-btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5);}
.tlt-btn-ghost:hover{background:#fff;color:var(--ink);border-color:#fff;transform:translateY(-2px);}
.tlt-btn-dark{background:var(--ink);color:#fff;}
.tlt-btn-dark:hover{background:var(--ink-2);color:#fff;transform:translateY(-2px);}

/* ---------- Header ---------- */
.tlt-header{position:sticky;top:0;z-index:100;background:rgba(11,22,34,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08);}
.tlt-header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);}
.tlt-logo{display:flex;align-items:center;gap:10px;font-family:'Sora';font-weight:800;font-size:1.2rem;color:#fff;letter-spacing:-.02em;}
.tlt-logo .tlt-logo-badge{width:34px;height:34px;border-radius:10px;background:var(--accent);display:grid;place-items:center;color:#fff;font-size:1.05rem;}
.tlt-logo:hover{color:#fff;}
.tlt-nav{display:flex;align-items:center;gap:8px;}
.tlt-nav ul{display:flex;list-style:none;gap:4px;margin:0;padding:0;}
.tlt-nav ul li a{color:rgba(255,255,255,.82);font-weight:600;font-size:.95rem;padding:9px 15px;border-radius:8px;transition:color .2s,background .2s;}
.tlt-nav ul li a:hover,.tlt-nav ul li.current-menu-item a{color:#fff;background:rgba(255,255,255,.09);}
.tlt-nav-cta{margin-left:10px;}
.tlt-burger{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:8px;}
.tlt-burger span{width:24px;height:2px;background:#fff;border-radius:2px;transition:.25s;}

/* ---------- Site-wide ticker slot ---------- */
.tlt-ticker-slot .tm-wrap{max-width:1180px;padding:14px 22px 0;}

/* ---------- Hero ---------- */
.tlt-hero{position:relative;color:#fff;overflow:hidden;background:var(--ink);}
.tlt-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.35;}
.tlt-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(11,22,34,.96) 30%,rgba(11,22,34,.55) 100%);z-index:1;}
.tlt-hero:after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,91,4,.55),transparent 65%);z-index:1;}
.tlt-hero-inner{position:relative;z-index:2;padding:120px 0 130px;max-width:760px;}
.tlt-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);padding:7px 16px;border-radius:999px;font-family:'Sora';font-weight:700;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:22px;}
.tlt-kicker .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);}
.tlt-hero h1{font-size:clamp(2.4rem,6vw,4.4rem);letter-spacing:-.02em;margin-bottom:18px;}
.tlt-hero h1 em{font-style:normal;color:var(--accent);}
.tlt-hero p{font-size:1.2rem;color:rgba(255,255,255,.82);max-width:560px;margin-bottom:34px;}
.tlt-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.tlt-hero-stats{display:flex;gap:38px;margin-top:56px;flex-wrap:wrap;}
.tlt-hero-stats .num{font-family:'Sora';font-weight:800;font-size:2rem;display:block;}
.tlt-hero-stats .lbl{font-size:.82rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.06em;}

/* ---------- Sections ---------- */
.tlt-section{padding:80px 0;}
.tlt-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:40px;flex-wrap:wrap;}
.tlt-section-head .eyebrow{color:var(--accent);font-family:'Sora';font-weight:700;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;display:block;margin-bottom:8px;}
.tlt-section-head h2{font-size:clamp(1.8rem,3.5vw,2.6rem);}
.tlt-section-head p{color:var(--muted);margin:6px 0 0;max-width:520px;}

/* Features */
.tlt-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;}
.tlt-feature{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:30px;transition:transform .25s,box-shadow .25s;}
.tlt-feature:hover{transform:translateY(-6px);box-shadow:0 22px 48px -26px rgba(11,22,34,.4);}
.tlt-feature .ico{width:54px;height:54px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,#fff);color:var(--accent);display:grid;place-items:center;font-size:1.5rem;margin-bottom:18px;}
.tlt-feature h3{font-size:1.25rem;}
.tlt-feature p{color:var(--muted);margin:0;}

/* Sports split */
.tlt-sports{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.tlt-sport{position:relative;border-radius:20px;overflow:hidden;min-height:300px;display:flex;align-items:flex-end;color:#fff;}
.tlt-sport-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .5s;}
.tlt-sport:hover .tlt-sport-bg{transform:scale(1.06);}
.tlt-sport:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(11,22,34,.9));z-index:1;}
.tlt-sport-body{position:relative;z-index:2;padding:30px;}
.tlt-sport-body h3{font-size:1.7rem;margin-bottom:6px;}
.tlt-sport-body p{color:rgba(255,255,255,.8);margin:0 0 14px;}
.tlt-sport-tag{position:absolute;top:20px;left:20px;z-index:2;background:var(--accent);padding:6px 14px;border-radius:999px;font-family:'Sora';font-weight:700;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;}
.tlt-sport-football .tlt-sport-tag{background:var(--green);}

/* CTA band */
.tlt-cta{position:relative;overflow:hidden;border-radius:24px;color:#fff;padding:64px 48px;background:var(--ink);}
.tlt-cta-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.28;}
.tlt-cta:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(11,22,34,.94),rgba(18,36,54,.7));}
.tlt-cta-inner{position:relative;z-index:2;max-width:620px;}
.tlt-cta h2{font-size:clamp(1.8rem,3.6vw,2.6rem);}
.tlt-cta p{color:rgba(255,255,255,.82);font-size:1.1rem;margin-bottom:26px;}

/* ---------- Page hero (inner pages) ---------- */
.tlt-page-hero{background:var(--ink);color:#fff;position:relative;overflow:hidden;padding:70px 0 60px;}
.tlt-page-hero:after{content:"";position:absolute;right:-100px;bottom:-140px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,91,4,.5),transparent 65%);}
.tlt-page-hero .eyebrow{color:var(--accent);font-family:'Sora';font-weight:700;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;}
.tlt-page-hero h1{font-size:clamp(2rem,5vw,3.2rem);margin:10px 0 0;position:relative;z-index:2;}
.tlt-page-content{padding:56px 0 80px;}
.tlt-page-content .entry :where(h2){margin-top:1.4em;}
.tlt-prose{max-width:820px;}
.tlt-prose p{color:#374151;font-size:1.05rem;}

/* ---------- Footer ---------- */
.tlt-footer{background:var(--ink);color:rgba(255,255,255,.72);padding:60px 0 30px;margin-top:20px;}
.tlt-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;}
.tlt-footer h4{color:#fff;font-size:1rem;margin-bottom:16px;}
.tlt-footer .tlt-logo{margin-bottom:14px;}
.tlt-footer ul{list-style:none;margin:0;padding:0;}
.tlt-footer ul li{margin:8px 0;}
.tlt-footer ul li a{color:rgba(255,255,255,.7);font-weight:500;}
.tlt-footer ul li a:hover{color:#fff;}
.tlt-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding-top:22px;font-size:.85rem;color:rgba(255,255,255,.5);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;}

/* ---------- Responsive ---------- */
@media(max-width:860px){
    .tlt-burger{display:flex;}
    .tlt-nav{position:fixed;inset:var(--header-h) 0 auto 0;background:var(--ink);flex-direction:column;align-items:stretch;padding:16px 22px 24px;gap:6px;border-bottom:1px solid rgba(255,255,255,.1);transform:translateY(-140%);transition:transform .3s ease;}
    .tlt-nav.open{transform:translateY(0);}
    .tlt-nav ul{flex-direction:column;}
    .tlt-nav ul li a{display:block;padding:12px 10px;}
    .tlt-nav-cta{margin:8px 0 0;}
    .tlt-sports{grid-template-columns:1fr;}
    .tlt-footer-grid{grid-template-columns:1fr;gap:26px;}
    .tlt-cta{padding:44px 26px;}
    .tlt-hero-inner{padding:80px 0 90px;}
}
