/*
Theme Name: Olorun MC Theme
Theme URI: https://olo.run
Author: Olorun Sistemas
Author URI: https://olo.run
Description: Tema premium, oscuro y ligero, enfocado en velocidad y branding sin builders externos. Diseñado específicamente para Motorcycle Clubs.
Version: 1.0.0
License: Propietaria (Olorun Sistemas)
License URI: https://olo.run/licencia
Text Domain: olorun-mc
Tags: dark-mode, motorcycle-club, custom-colors, custom-menu, featured-images, flexible-header, full-width-template
*/

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --c-bg-dark: #0a0a0a;
  --c-bg-surface: #151515;
  --c-bg-elevated: #202020;
  --c-primary: #0056b3; /* Law Enforcement Blue */
  --c-primary-hover: #003d82;
  --c-text-main: #f0f0f0;
  --c-text-muted: #a0a0a0;
  
  /* Typography */
  --f-heading: 'Teko', 'Bebas Neue', sans-serif;
  --f-body: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  
  /* Spacing & Layout */
  --layout-max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Misc */
  --transition-speed: 0.3s;
  --border-radius: 4px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed) ease; }
img, picture { max-width: 100%; display: block; }

body {
  background-color: var(--c-bg-dark);
  color: var(--c-text-main);
  font-family: var(--f-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 1px;
}
h1 { font-size: 4rem; margin-bottom: var(--spacing-sm); }
h2 { font-size: 3rem; margin-bottom: var(--spacing-sm); color: var(--c-primary); }
h3 { font-size: 2rem; margin-bottom: var(--spacing-xs); }
p { margin-bottom: var(--spacing-sm); color: var(--c-text-muted); }
p.lead { font-size: 1.25rem; color: var(--c-text-main); }

a:hover, a:focus { color: var(--c-primary); }

/* ==========================================================================
   4. LAYOUT & COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}
.section-alt {
  background-color: var(--c-bg-surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: var(--c-primary);
  color: #fff;
  font-family: var(--f-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.btn:hover, .btn:focus {
  background-color: var(--c-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 25, 56, 0.4);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-text-main);
}
.btn-outline:hover {
  background-color: var(--c-primary);
  color: #fff;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: var(--spacing-sm) 0;
  transition: padding var(--transition-speed) ease;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding .site-title {
  font-family: var(--f-heading);
  font-size: 2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-branding .custom-logo-link {
  display: inline-flex;
}
.site-branding img, .custom-logo {
  max-height: 70px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.main-navigation ul {
  display: flex;
  gap: var(--spacing-md);
}
.main-navigation a {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--c-primary);
  transition: width var(--transition-speed) ease;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle { display: none; }

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Offset header */
  overflow: hidden;
  background-color: var(--c-bg-dark);
}
.hero-slideshow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.15) translateX(30px); /* Start zoomed in and shifted right */
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0); /* Ken burns zoom out and slide left */
  transition: opacity 1.5s ease-in-out, transform 8s linear; /* 8 seconds continuous smooth movement */
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,1) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-sm);
}
.hero-title {
  font-size: 5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--c-text-main);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}
.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--c-bg-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--spacing-lg) 0 var(--spacing-sm);
  text-align: center;
}
.footer-logo {
  max-width: 120px;
  margin: 0 auto var(--spacing-sm);
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}
.footer-socials a {
  display: inline-flex;
  width: 40px; height: 40px;
  background-color: var(--c-bg-elevated);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}
.footer-socials a:hover {
  background-color: var(--c-primary);
  transform: translateY(-3px);
}
.site-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* ==========================================================================
   8. GUTENBERG CONTENT (Pages & Posts)
   ========================================================================== */
.site-main {
  padding-top: 100px; /* Offset global fixed header */
  min-height: 60vh;
}
.page-header {
  position: relative;
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-xl);
  background-color: var(--c-bg-dark);
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05); /* Slight static zoom for depth */
}
.page-header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(10, 10, 10, 0.75);
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: 4rem;
  margin-bottom: 0;
  text-transform: uppercase;
  color: var(--c-text-main);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.page-header .breadcrumbs {
  margin-top: var(--spacing-sm);
  font-family: var(--f-heading);
  font-size: 1.2rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.entry-content {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}
.entry-content h2 { font-size: 2.5rem; margin-top: var(--spacing-lg); }
.entry-content ul { list-style: disc; margin-left: 1.5rem; margin-bottom: var(--spacing-sm); color: var(--c-text-muted); }
.entry-content ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: var(--spacing-sm); color: var(--c-text-muted); }
.entry-content blockquote {
  border-left: 4px solid var(--c-primary);
  padding-left: var(--spacing-sm);
  font-style: italic;
  font-size: 1.2rem;
  margin: var(--spacing-md) 0;
  background-color: rgba(255,255,255,0.03);
  padding: var(--spacing-sm);
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  .hero-title { font-size: 3.5rem; }
  
  .menu-toggle {
    display: block;
    background: none; border: none;
    color: var(--c-text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .main-navigation ul {
    display: none; /* simple fallback */
  }
  .main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--c-bg-dark);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--c-primary);
  }
  .hero-actions { flex-direction: column; }
}
