/*
Theme Name: SwiftCore
Description: Ultra-lightweight, high-performance WordPress theme. 95+ PageSpeed. Fully responsive + WPBakery ready.
Author: Grok by xAI
Version: 1.6.9
Text Domain: swiftcore
*/

:root {
  --primary-color: #0073aa;
  --header-height: 80px;
  --box-width: 1200px;
  --bg-color: #ffffff;
  --text-color: #222222;
  
  /* Typography */
  --body-font: system-ui, -apple-system, sans-serif;
  --body-size: 16px;
  --headings-font: system-ui, -apple-system, sans-serif;
  --headings-size: 36px;
  --menu-font: system-ui, -apple-system, sans-serif;
  --menu-size: 16px;
  --sidebar-font: system-ui, -apple-system, sans-serif;
  --sidebar-size: 15px;
  --footer-font: system-ui, -apple-system, sans-serif;
  --footer-size: 14px;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #eeeeee;
}

* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: var(--body-font); font-size: var(--body-size); line-height: 1.6; background: var(--bg-color); color: var(--text-color); }
h1,h2,h3,h4,h5,h6 { font-family: var(--headings-font); }
.subheader h1 { font-size: var(--headings-size); }
.main-menu a { font-family: var(--menu-font); font-size: var(--menu-size); }
aside, .widget { font-family: var(--sidebar-font); font-size: var(--sidebar-size); }
footer, .footer-menu a, footer p { font-family: var(--footer-font); font-size: var(--footer-size); }

/* ====================== HEADER ====================== */
.header {
  height: var(--header-height);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
body.dark-mode .header { background: #1f1f1f; }
.sticky-header { position: sticky; top: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* ====================== MAIN MENU + PIPELINE ====================== */
.main-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: var(--menu-align, center);
  align-items: center;
  flex-wrap: wrap;
}
.main-menu li {
  position: relative;
}
.main-menu a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  padding: 8px 0;
}
.main-menu li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--menu-separator-color, #e0e0e0);
}

/* ====================== CONTENT AREA – DEFAULT PARAGRAPH SPACING (Fixed) ====================== */
.main-content,
.entry-content,
.post-content,
.page-content,
.vc_column_container .wpb_wrapper,
.the_content {
  line-height: 1.85;
}

.main-content p,
.entry-content p,
.post-content p,
.page-content p,
.vc_column_container .wpb_wrapper p {
  margin-bottom: 25px;           /* Clean gap between every paragraph */
  margin-top: 0;
}

.main-content p:last-child {
  margin-bottom: 0;
}

/* ====================== CONTENT WRAPPER – 70-30 RATIO + 10px GAP ====================== */
.content-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.main-content {
  flex: 7;
  min-width: 0;
  padding: 0 60px;
}
aside {
  flex: 3;
  padding: 0 35px;
  background: var(--bg-color);
}

/* ====================== SIDEBAR WIDGETS ====================== */
.widget {
  margin-bottom: 40px;
  padding: 25px 20px;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
body.dark-mode .widget {
  background: #1f1f1f;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ====================== SUBHEADER ====================== */
.subheader {
  margin-top: 50px;
  display: flex;
  align-items: center;
  min-height: 120px;
}

/* ====================== SLIDER FULL-BLEED ====================== */
.main-content > .vc_row:first-child,
.main-content > .vc_row:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-content { max-width: var(--box-width); margin: 0 auto; }

/* ====================== WHATSAPP + BACK-TO-TOP + PRELOADER ====================== */
#whatsapp-chat {
  position: fixed; bottom: 100px; right: 20px; background: #25D366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 28px; z-index: 999; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
#whatsapp-chat.left { right: auto; left: 20px; }

#back-to-top {
  position: fixed; bottom: 30px; right: 30px; background: var(--primary-color); color: #fff;
  width: 50px; height: 50px; border-radius: 50%; display: none; align-items: center;
  justify-content: center; font-size: 24px; z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#preloader {
  position: fixed; inset: 0; background: var(--bg-color); display: flex;
  align-items: center; justify-content: center; z-index: 9999; transition: opacity .4s;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
#preloader div {
  width: 50px; height: 50px; border: 5px solid #ddd; border-top-color: var(--primary-color);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .header { height: auto; padding: 15px 20px; flex-wrap: wrap; }
  .main-menu ul { display: none; flex-direction: column; width: 100%; background: #fff; padding: 20px; }
  body.dark-mode .main-menu ul { background: #1f1f1f; }
  .main-menu.active ul { display: flex; }
  .mobile-menu-toggle { display: block; }
  .main-content { padding: 0 20px; }
  .subheader { margin-top: 40px; }
  .content-wrapper { flex-direction: column; gap: 30px; }
  aside { padding: 0 20px; }
}

.mobile-menu-toggle { 
  display: none; 
  font-size: 28px; 
  cursor: pointer; 
  background: none; 
  border: none; 
  color: var(--text-color); 
}