/*
 Theme Name:   ESP Theme
 Theme URI:    https://enterprisesuccession.org
 Description:  Child theme for Hello Elementor, customized for the Enterprise Succession Project website.
 Author:       ESP Team
 Author URI:   https://enterprisesuccession.org
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  esp-theme
 Tags:         elementor, child-theme, dark-mode, modern
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     Colors (Update with exact Figma values)
     ------------------------------------------------------------------------- */
  
  /* Primary Colors */
  --esp-color-primary-dark: #0A0A0A;
  --esp-color-primary-accent: #00AA55;
  --esp-color-secondary-accent: #EAB308;
  
  /* Text Colors */
  --esp-color-text-light: #FFFFFF;
  --esp-color-text-dark: #111111;
  --esp-color-text-muted-light: #A3A3A3;
  --esp-color-text-muted-dark: #6B7280;
  
  /* Background Colors */
  --esp-color-bg-light: #FFFFFF;
  --esp-color-bg-dark: #18181B;
  --esp-color-bg-alt: #F5F5F5;
  
  /* Border Colors */
  --esp-color-border-light: #E5E5E5;
  --esp-color-border-dark: #27272A;
  
  /* -------------------------------------------------------------------------
     Spacing Scale
     ------------------------------------------------------------------------- */
  --esp-space-xs: 4px;
  --esp-space-sm: 8px;
  --esp-space-md: 16px;
  --esp-space-lg: 24px;
  --esp-space-xl: 32px;
  --esp-space-2xl: 48px;
  --esp-space-3xl: 64px;
  --esp-space-4xl: 80px;
  --esp-space-5xl: 120px;
  
  /* -------------------------------------------------------------------------
     Border Radius
     ------------------------------------------------------------------------- */
  --esp-radius-sm: 4px;
  --esp-radius-md: 8px;
  --esp-radius-lg: 16px;
  --esp-radius-xl: 24px;
  --esp-radius-full: 9999px;
  
  /* -------------------------------------------------------------------------
     Shadows
     ------------------------------------------------------------------------- */
  --esp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --esp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --esp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --esp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */
  --esp-transition-fast: all 0.15s ease;
  --esp-transition: all 0.3s ease;
  --esp-transition-slow: all 0.5s ease;
  
  /* -------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------- */
  --esp-font-display: 'Outfit', sans-serif;
  --esp-font-body: 'Plus Jakarta Sans', sans-serif;
  --esp-font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--esp-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--esp-color-text-dark);
  background-color: var(--esp-color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--esp-font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--esp-space-lg) 0;
}

h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h3 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

h5 {
  font-family: var(--esp-font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-family: var(--esp-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--esp-space-lg) 0;
}

a {
  color: var(--esp-color-primary-accent);
  text-decoration: none;
  transition: var(--esp-transition-fast);
}

a:hover {
  color: var(--esp-color-secondary-accent);
}

code, pre {
  font-family: var(--esp-font-mono);
  font-size: 14px;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 1024px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 48px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  h3 {
    font-size: 26px;
  }
  
  h4 {
    font-size: 20px;
  }
  
  h5 {
    font-size: 16px;
  }
  
  h6 {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  h4 {
    font-size: 18px;
  }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.esp-section {
  padding: var(--esp-space-4xl) 0;
}

@media (max-width: 1024px) {
  .esp-section {
    padding: var(--esp-space-3xl) 0;
  }
}

@media (max-width: 767px) {
  .esp-section {
    padding: var(--esp-space-2xl) 0;
  }
}

/* Dark Section */
.esp-section--dark {
  background-color: var(--esp-color-primary-dark);
  color: var(--esp-color-text-light);
}

.esp-section--dark h1,
.esp-section--dark h2,
.esp-section--dark h3,
.esp-section--dark h4,
.esp-section--dark h5,
.esp-section--dark h6 {
  color: var(--esp-color-text-light);
}

.esp-section--dark p,
.esp-section--dark li {
  color: var(--esp-color-text-muted-light);
}

/* Dark Alt Section */
.esp-section--dark-alt {
  background-color: var(--esp-color-bg-dark);
  color: var(--esp-color-text-light);
}

.esp-section--dark-alt h1,
.esp-section--dark-alt h2,
.esp-section--dark-alt h3,
.esp-section--dark-alt h4,
.esp-section--dark-alt h5,
.esp-section--dark-alt h6 {
  color: var(--esp-color-text-light);
}

.esp-section--dark-alt p,
.esp-section--dark-alt li {
  color: var(--esp-color-text-muted-light);
}

/* Light Section */
.esp-section--light {
  background-color: var(--esp-color-bg-light);
  color: var(--esp-color-text-dark);
}

/* Light Alt Section */
.esp-section--light-alt {
  background-color: var(--esp-color-bg-alt);
  color: var(--esp-color-text-dark);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.esp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--esp-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--esp-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--esp-transition);
}

@media (max-width: 1024px) {
  .esp-btn {
    padding: 14px 28px;
  }
}

@media (max-width: 767px) {
  .esp-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* Primary Button */
.esp-btn--primary {
  background-color: var(--esp-color-primary-accent);
  color: var(--esp-color-text-light);
}

.esp-btn--primary:hover {
  background-color: #009648;
  color: var(--esp-color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--esp-shadow-lg);
}

/* Secondary Button */
.esp-btn--secondary {
  background-color: transparent;
  color: var(--esp-color-text-light);
  border: 1px solid var(--esp-color-text-light);
}

.esp-btn--secondary:hover {
  background-color: var(--esp-color-primary-accent);
  border-color: var(--esp-color-primary-accent);
  color: var(--esp-color-text-light);
}

/* Ghost Button (Dark Background) */
.esp-btn--ghost-light {
  background-color: transparent;
  color: var(--esp-color-text-light);
  border: 1px solid var(--esp-color-border-dark);
  padding: 12px 24px;
}

.esp-btn--ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--esp-color-text-light);
}

/* Ghost Button (Light Background) */
.esp-btn--ghost-dark {
  background-color: transparent;
  color: var(--esp-color-text-dark);
  border: 1px solid var(--esp-color-border-light);
  padding: 12px 24px;
}

.esp-btn--ghost-dark:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--esp-color-text-dark);
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.esp-card {
  padding: var(--esp-space-xl);
  border-radius: var(--esp-radius-lg);
  transition: var(--esp-transition);
}

/* Dark Card */
.esp-card--dark {
  background-color: #27272A;
  border: 1px solid #3F3F46;
}

.esp-card--dark:hover {
  border-color: #52525B;
  transform: translateY(-4px);
}

.esp-card--dark h3,
.esp-card--dark h4,
.esp-card--dark h5 {
  color: var(--esp-color-text-light);
}

.esp-card--dark p {
  color: var(--esp-color-text-muted-light);
}

/* Light Card */
.esp-card--light {
  background-color: var(--esp-color-bg-light);
  border: 1px solid var(--esp-color-border-light);
  box-shadow: var(--esp-shadow-md);
}

.esp-card--light:hover {
  box-shadow: var(--esp-shadow-lg);
  transform: translateY(-4px);
}

/* ==========================================================================
   Marquee / Ticker Component
   ========================================================================== */

.esp-marquee {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--esp-color-primary-dark);
  padding: 16px 0;
}

.esp-marquee__track {
  display: inline-flex;
  animation: esp-marquee-scroll 30s linear infinite;
}

.esp-marquee__content {
  font-family: var(--esp-font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--esp-color-text-light);
  padding-right: var(--esp-space-lg);
}

@keyframes esp-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 767px) {
  .esp-marquee {
    padding: 12px 0;
  }
  
  .esp-marquee__content {
    font-size: 12px;
  }
}

/* ==========================================================================
   Stats Component
   ========================================================================== */

.esp-stat {
  text-align: center;
}

.esp-stat__number {
  font-family: var(--esp-font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--esp-color-primary-accent);
  margin-bottom: var(--esp-space-sm);
}

.esp-stat__label {
  font-family: var(--esp-font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--esp-color-text-muted-dark);
}

@media (max-width: 1024px) {
  .esp-stat__number {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .esp-stat__number {
    font-size: 40px;
  }
  
  .esp-stat__label {
    font-size: 12px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Colors */
.text-light { color: var(--esp-color-text-light) !important; }
.text-dark { color: var(--esp-color-text-dark) !important; }
.text-muted { color: var(--esp-color-text-muted-dark) !important; }
.text-accent { color: var(--esp-color-primary-accent) !important; }

/* Background Colors */
.bg-dark { background-color: var(--esp-color-primary-dark) !important; }
.bg-dark-alt { background-color: var(--esp-color-bg-dark) !important; }
.bg-light { background-color: var(--esp-color-bg-light) !important; }
.bg-light-alt { background-color: var(--esp-color-bg-alt) !important; }

/* Text Alignment */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Text Transform */
.uppercase { text-transform: uppercase !important; }
.capitalize { text-transform: capitalize !important; }

/* Font Families */
.font-display { font-family: var(--esp-font-display) !important; }
.font-body { font-family: var(--esp-font-body) !important; }
.font-mono { font-family: var(--esp-font-mono) !important; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--esp-space-sm) !important; }
.mb-md { margin-bottom: var(--esp-space-md) !important; }
.mb-lg { margin-bottom: var(--esp-space-lg) !important; }
.mb-xl { margin-bottom: var(--esp-space-xl) !important; }
.mb-2xl { margin-bottom: var(--esp-space-2xl) !important; }

/* ==========================================================================
   Elementor Overrides
   ========================================================================== */

/* Ensure Elementor respects our font settings */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--esp-font-display);
}

.elementor-widget-text-editor {
  font-family: var(--esp-font-body);
}

/* Remove default Elementor button styles when using custom classes */
.elementor-button.esp-btn {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

p{
	margin: 0;
}