/*
Theme Name: THE MITCHELL CENTRE Elementor Theme
Theme URI: https://empirefightingchance.org/
Author: Antigravity AI Studio
Author URI: https://ai.studio/build
Description: Complete responsive WordPress theme for THE MITCHELL CENTRE, built specifically for seamless visual editing with Elementor Free.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: empire-theme
Tags: responsive-layout, custom-colors, custom-logo, full-width-template, theme-options, elementor-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ==========================================================================
   1. Theme Variables & Reset
   ========================================================================== */
:root {
  --theme-primary: #0052cc;
  --theme-primary-hover: #003fa3;
  --theme-accent: #1d4ed8;
  --theme-dark-bg: #0b0d11;
  --theme-dark-surface: #11141a;
  --theme-dark-card: #181c24;
  --theme-light-bg: #f8fafc;
  --theme-text-light: #ffffff;
  --theme-text-dark: #0f172a;
  --theme-text-muted: #94a3b8;
  --theme-border-dark: #272f3d;
  --theme-border-light: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.site-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. Base Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.05;
  margin-top: 0;
}

/* ==========================================================================
   3. Announcement Bar & Header
   ========================================================================== */
.top-announcement {
  background-color: #000000;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #1e293b;
}

.site-header {
  background-color: var(--theme-dark-bg);
  border-bottom: 1px solid #27272a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Compensate for logged-in WordPress Admin Bar */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

.brand-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.brand-logo:hover {
  text-decoration: none;
  color: #ffffff;
}

.brand-logo .brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--theme-primary);
  border-radius: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a {
  color: var(--theme-primary);
  text-decoration: none;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #94a3b8;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-menu-drawer {
  display: none;
  background-color: var(--theme-dark-bg);
  border-bottom: 1px solid #27272a;
  padding: 16px 24px 24px;
}

.mobile-menu-drawer.is-active {
  display: block;
}

.mobile-menu-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-drawer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-drawer a:hover {
  color: var(--theme-primary);
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   4. Buttons (Designed to respect Elementor overrides without !important)
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background-color: var(--theme-primary);
  color: #ffffff;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.92;
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 26px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #0f172a;
  text-decoration: none;
}

/* ==========================================================================
   5. Fallback Semantic Components (Class-based, no inline CSS)
   ========================================================================== */
.hero-fallback {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(11,13,17,0.95), rgba(11,13,17,0.5) 50%, rgba(11,13,17,0.2));
  background-size: cover;
  background-position: center;
  padding: 120px 24px 70px;
  color: #ffffff;
  text-align: center;
}

.hero-fallback h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero-fallback p {
  font-size: clamp(17px, 2vw, 21px);
  color: #f1f5f9;
  max-width: 800px;
  margin: 0 auto 28px;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  color: var(--theme-primary);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading {
  font-size: clamp(36px, 5vw, 54px);
  margin: 8px 0 16px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.activity-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.activity-card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.activity-card-body {
  padding: 26px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-card-title {
  font-size: 26px;
  margin: 0 0 12px;
  line-height: 1.1;
}

.activity-card-desc {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  flex: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.news-card {
  background: #111722;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card-imgwrap {
  position: relative;
  height: 220px;
  background: #000000;
  overflow: hidden;
}

.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: start;
}

.map-card {
  background: var(--theme-dark-card);
  border: 1px solid var(--theme-border-dark);
  border-radius: 12px;
  overflow: hidden;
}

.contact-card {
  background: var(--theme-dark-card);
  border: 1px solid var(--theme-border-dark);
  border-radius: 12px;
  padding: 32px;
}

/* ==========================================================================
   5b. Team Section & Profiles (Direct Inline Accordion Layout)
   ========================================================================== */
.team-header-styled {
  text-align: center;
  margin-bottom: 48px;
}
.team-accent-bar {
  width: 96px;
  height: 6px;
  background-color: var(--theme-primary, #0052cc);
  margin: 16px auto 0;
  border-radius: 999px;
}

.team-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.team-accordion-item {
  background-color: #141b27;
  border: 1px solid #1f2a3c;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.team-accordion-item.is-active {
  border-color: #334155;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.team-accordion-trigger {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.team-accordion-item.is-active .team-accordion-trigger {
  background-color: var(--theme-primary, #0052cc);
  color: #ffffff;
}

.team-accordion-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.team-accordion-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-accordion-meta {
  min-width: 0;
  flex: 1;
}

.team-accordion-name {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.team-accordion-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary, #0052cc);
  margin: 4px 0 0;
}
.team-accordion-item.is-active .team-accordion-role {
  color: rgba(255, 255, 255, 0.9);
}

.team-accordion-arrow {
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}
.team-accordion-item.is-active .team-accordion-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Inline Profile Drawer Directly Under Clicked Member */
.team-accordion-drawer {
  display: none;
  background-color: #0c111a;
  border-top: 1px solid #1f293b;
  padding: 28px;
}
.team-accordion-item.is-active .team-accordion-drawer {
  display: block;
}

.team-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .team-drawer-inner {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
  }
}

.team-drawer-img {
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #283548;
}

.team-drawer-content {
  flex: 1;
  min-width: 0;
}

.team-drawer-name {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 6px;
}

.team-drawer-role {
  color: var(--theme-primary, #0052cc);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.team-drawer-quote {
  border-left: 4px solid var(--theme-primary, #0052cc);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.team-drawer-bio {
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 20px;
}

.team-drawer-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1f293b;
}

.team-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--theme-primary, #0052cc);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  transition: filter 0.2s ease;
}
.team-drawer-btn:hover {
  filter: brightness(1.15);
  color: #ffffff;
}

/* Fallback Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.team-card {
  background: #141822;
  border: 1px solid #242c3b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-primary);
}

.team-card-imgwrap {
  position: relative;
  height: 280px;
  background: #090c12;
  overflow: hidden;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-img {
  transform: scale(1.04);
}

.team-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-badge {
  display: inline-block;
  background: rgba(0, 82, 204, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(0, 82, 204, 0.4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.team-card-name {
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.1;
}

.team-card-role {
  font-size: 13px;
  font-weight: 800;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.team-card-quote {
  font-size: 12px;
  font-style: italic;
  color: #94a3b8;
  border-left: 2px solid var(--theme-primary);
  padding-left: 8px;
  margin: 0 0 12px;
  line-height: 1.4;
}

.team-card-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 16px;
  flex: 1;
}

.team-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #1f2735;
}

.team-qual-pill {
  font-size: 11px;
  background: #1c222e;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   6. Funders Marquee Ribbon
   ========================================================================== */
@keyframes marquee-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.funders-marquee {
  display: flex;
  width: max-content;
  animation: marquee-ltr 32s linear infinite;
}

.funders-marquee:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: #090b0e;
  color: var(--theme-text-muted);
  padding: 64px 24px 36px;
  border-top: 1px solid #1f242d;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.footer-col h3,
.footer-col h4,
.widget-title {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.1;
  font-size: 15px;
}

.footer-col a {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: var(--theme-primary);
}

.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1e2430;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   8. Elementor Compatibility Safeguards
   ========================================================================== */
.elementor-full-width-content {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Unpin sticky header in Elementor Editor so section control tabs remain clickable */
body.elementor-editor-active .site-header,
.elementor-editor-active .site-header {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
}
