/*
Theme Name: wp-compete9ja-basketball
Theme URI: https://competenaija.com
Author: Makerofapps Nigeria Ltd
Author URI: https://competenaija.com
Description: A one-page WordPress theme for competeNaija — Above The Rim, a mobile arcade basketball unit for events, venues and nightlife across Lagos. Built around the look of a live digital scoreboard, with pricing tables and a booking area. Swap every photo (or a video) and edit contact details in Appearance > Customize.
Version: 2.1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-compete9ja-basketball
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   Palette drawn from the physical product: a black-bezelled
   scoreboard with blue score digits and a green countdown clock.
   ============================================================ */
:root{
  --bg: #0b0e11;
  --panel: #12161b;
  --panel-2: #171c22;
  --line: #262c33;
  --text: #edeff2;
  --muted: #8b94a0;

  --orange: #ff6b1a;   /* Above The Rim / basketball accent */
  --orange-dim: #7a3712;
  --green: #33d17a;    /* secondary accent — booking CTA, etc. */
  --green-dim: #124a2c;
  --blue: #35b4ff;     /* scoreboard digit blue */
  --blue-dim: #0f3a52;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;

  --display: "Orbitron", "Chakra Petch", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
h1, h2, h3, h4{
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
p{ margin: 0 0 1em; color: var(--text); }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow.orange{ color: var(--orange); }
.eyebrow.green{ color: var(--green); }
.eyebrow.blue{ color: var(--blue); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary{
  background: var(--orange);
  color: #16110b;
  box-shadow: 0 0 0 rgba(255,107,26,0);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,26,.35); }
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--green); color: var(--green); }
.btn-green{
  background: var(--green);
  color: #08170f;
}
.btn-green:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(51,209,122,.35); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,17,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.site-branding{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-branding .logo-mark{
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--green));
  flex: 0 0 auto;
}
.site-title{
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.site-title span{ color: var(--muted); font-family: var(--mono); font-size: 11px; display:block; letter-spacing: .1em; text-transform: uppercase; }

.primary-menu{
  list-style: none; display: flex; gap: 28px; margin: 0; padding: 0;
}
.primary-menu a{
  text-decoration: none; font-size: 14px; color: var(--muted);
  transition: color .15s ease;
}
.primary-menu a:hover, .primary-menu a:focus-visible{ color: var(--text); }

.header-cta{ display: flex; align-items: center; gap: 14px; }
.menu-toggle{ display: none; }

@media (max-width: 780px){
  .primary-menu{ display: none; }
  .header-cta .btn-ghost{ display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255,107,26,.10), transparent 60%),
    radial-gradient(600px 300px at 85% 10%, rgba(51,209,122,.10), transparent 60%);
}
.hero-grid{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero h1{
  font-size: clamp(34px, 4.4vw, 56px);
  margin-bottom: 20px;
}
.hero h1 .accent-orange{ color: var(--orange); }
.hero h1 .accent-green{ color: var(--green); }
.hero p.lead{
  color: var(--muted);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section{ padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(26px, 3vw, 36px); }
.section-head p{ color: var(--muted); font-size: 17px; }

/* Pricing, "Why Book", and About headings are centered; other
   section headings are unchanged. */
#pricing .section-head,
#why .section-head,
#about .section-head{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TEAM (About section)
   ============================================================ */
.team-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  margin: 0 auto;
  gap: 28px;
}
@media (max-width: 640px){ .team-grid{ grid-template-columns: 1fr; } }

.team-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-card::before{
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
}
.team-card.orange::before{ background: var(--orange); }
.team-card.green::before{ background: var(--green); }

.team-photo{
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Shown when no photo has been uploaded yet — a simple person
   silhouette so the card never looks broken. */
.team-photo-placeholder{ width: 44px; height: 44px; opacity: .35; }
.team-photo-placeholder::before{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.team-body h3{ font-size: 19px; margin-bottom: 2px; }
.team-role{
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-card.orange .team-role{ color: var(--orange); }
.team-card.green .team-role{ color: var(--green); }
.team-body p{ color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ============================================================
   FLYER BANNER
   ============================================================ */
.flyer-section{
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(53,180,255,.07), transparent 62%),
    radial-gradient(700px 340px at 80% 100%, rgba(51,209,122,.07), transparent 62%);
}
.flyer-head{ margin-bottom: 32px; }
.flyer{
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.flyer a{
  display: block;
  outline-offset: -3px;
}
.flyer img{
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}
.flyer a:hover img{ transform: scale(1.01); }
/* The video plays at its own natural shape — there's no fixed frame
   to fit here (unlike the hero/card slots), so nothing gets cropped
   or letterboxed. */
.flyer video{
  width: 100%;
  height: auto;
  display: block;
}
.flyer figcaption{
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.flyer-actions{ margin-top: 28px; justify-content: center; }
@media (max-width: 520px){
  .flyer figcaption{ font-size: 11px; letter-spacing: .04em; padding: 12px 14px; }
  .flyer-actions{ justify-content: stretch; }
  .flyer-actions .btn{ flex: 1 1 100%; justify-content: center; }
}

/* header logo pulled from the flyer artwork */
.site-branding .logo-mark-img{
  height: 40px;
  width: auto;
  border-radius: 6px;
  flex: 0 0 auto;
}
@media (max-width: 520px){
  .site-branding .logo-mark-img{ height: 32px; }
}

/* ============================================================
   PRICING TABLES
   ============================================================ */
.pricing-tables{
  display: grid;
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
  gap: 28px;
}

.price-table{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table-head{
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-table.orange .price-table-head{ background: var(--orange-dim); color: #ffd9bf; }
.price-table.green .price-table-head{ background: var(--green-dim); color: #c9f5da; }

.price-row{
  display: flex; justify-content: space-between; gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.price-row .duration{ font-size: 15px; }
.price-row .duration small{ display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.price-row .amount{ font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.price-table.orange .amount{ color: var(--orange); }
.price-table.green .amount{ color: var(--green); }

/* ============================================================
   WHY TOGETHER
   ============================================================ */
.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px){ .why-grid{ grid-template-columns: 1fr; } }
.why-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--panel);
}
.why-item .why-num{
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em;
}
.why-item h4{ font-size: 17px; margin: 10px 0 8px; }
.why-item p{ color: var(--muted); font-size: 14px; margin: 0; }

/* ============================================================
   BOOKING / CONTACT
   ============================================================ */
.booking{
  background: var(--panel);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px){ .booking{ grid-template-columns: 1fr; padding: 36px; } }
.booking h2{ font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.booking p{ color: var(--muted); }
.contact-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li{
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 14px;
}
.contact-list .k{ color: var(--muted); width: 84px; flex: 0 0 auto; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.contact-list a{ text-decoration: none; color: var(--text); }
.contact-list a:hover{ color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ padding: 40px 0; }
.site-footer .container{
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-footer p{ margin: 0; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.footer-social{ display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-social a{ color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-social a:hover{ color: var(--green); }

/* ============================================================
   GENERIC PAGE / SINGLE FALLBACK CONTENT
   ============================================================ */
.entry-content{ padding: 64px 0; }
.entry-content h1{ font-size: 36px; margin-bottom: 24px; }
.entry-content img{ border-radius: var(--radius); margin: 24px 0; }

/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */
a:focus-visible, button:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }
.skip-link{
  position: absolute; left: -9999px; top: 0; background: var(--panel); color: var(--text);
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
