/*
Theme Name: LiveO2 Theme
Author: LiveO2 Theme Generator
Description: Dual-mode theme with Default template for normal WordPress and Raw HTML template for custom HTML pages.
Version: 1.0.0
*/

/*==================================
  THEME CSS VARIABLES
  Uses liveo2- prefix to avoid conflicts
==================================*/
:root {
  --liveo2-primary-color: #3b82f6;
  --liveo2-secondary-color: #0f172a;
  --liveo2-heading-font: DM Sans, sans-serif;
  --liveo2-body-font: DM Sans, sans-serif;
}

/*==================================
  BASE LAYOUT - All Templates
==================================*/
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  width: 100%;
}

/*==================================
  DEFAULT TEMPLATE STYLES
  Normal WordPress styling for blog
  posts, page builders, etc.
  
  IMPORTANT: All styles scoped to exclude
  Raw HTML template pages using :not()
==================================*/

/* Base body - applies to all BUT overridden for Raw HTML */
body {
  margin: 0;
}

/* Default template specific body styles - ONLY for blog posts */
/* Pages (Elementor/Thrive) should not get theme typography */
.single-post {
  font-family: var(--liveo2-body-font);
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* Default template content wrapper - ONLY for blog posts */
/* Pages use Elementor/Thrive which control their own layout */
.single-post .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Pages with Elementor/Thrive get NO theme constraints */
/* Full width, no padding, no max-width - let page builders control everything */
body.page .site-main {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ===========================================
   Typography for blog posts ONLY - not pages
   Pages use Elementor/Thrive which control 
   their own styles
   =========================================== */
.single-post .entry-content:not(.elementor):not(.tve_editor) h1,
.single-post .entry-content:not(.elementor):not(.tve_editor) h2,
.single-post .entry-content:not(.elementor):not(.tve_editor) h3,
.single-post .entry-content:not(.elementor):not(.tve_editor) h4,
.single-post .entry-content:not(.elementor):not(.tve_editor) h5,
.single-post .entry-content:not(.elementor):not(.tve_editor) h6 {
  font-family: var(--liveo2-heading-font);
  color: #1a1a1a;
  margin-bottom: 0.5em;
}

.single-post .entry-content:not(.elementor):not(.tve_editor) p {
  margin-bottom: 1em;
}

.single-post .entry-content:not(.elementor):not(.tve_editor) a {
  color: var(--liveo2-primary-color);
}

/*==================================
  RAW HTML TEMPLATE STYLES
  Complete CSS isolation for custom
  HTML pages AND posts from Replit
==================================*/

/* When Raw HTML template is active, strip all defaults */
/* Works for both pages (page-template-page-raw-html) and posts (post-template-single-raw-html) */
body.page-template-page-raw-html,
body.post-template-single-raw-html {
  background: transparent !important;
  color: inherit;
  font-family: inherit;
}

body.page-template-page-raw-html .site-main,
body.post-template-single-raw-html .site-main {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Full-width, edge-to-edge content area for custom HTML */
body.page-template-page-raw-html .raw-html-content,
body.post-template-single-raw-html .raw-html-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Shortcode wrapper - automatically applied via PHP filter */
/* !important needed to override the entry-content > * rule */
body.page-template-page-raw-html .shortcode-container,
body.post-template-single-raw-html .shortcode-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  box-sizing: border-box;
}

/* Remove WordPress wrappers' layout constraints only, NOT styles */
body.page-template-page-raw-html article,
body.page-template-page-raw-html .hentry,
body.page-template-page-raw-html .entry-content,
body.post-template-single-raw-html article,
body.post-template-single-raw-html .hentry,
body.post-template-single-raw-html .entry-content {
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

/* WordPress adds paragraph wrappers - let content CSS control them */
body.page-template-page-raw-html .entry-content > *,
body.post-template-single-raw-html .entry-content > * {
  max-width: none;
}


/*==================================
  LIVEO2 SHELL - Namespaced Styles
  These styles ONLY affect elements
  inside .liveo2-shell wrapper and
  will NOT conflict with page content
==================================*/

/* Shell Container - Scoped Reset */
.liveo2-shell {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.liveo2-shell *,
.liveo2-shell *::before,
.liveo2-shell *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Container */
.liveo2-shell .lo2-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top Utility Bar */
.liveo2-shell .lo2-topbar {
  background: #0a0f1a;
  border-bottom: 1px solid #1e293b;
  padding: 8px 0;
}

.liveo2-shell .lo2-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liveo2-shell .lo2-topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.liveo2-shell .lo2-topbar-right {
  display: flex;
  align-items: center;
}

.liveo2-shell .lo2-topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.liveo2-shell .lo2-topbar-link:hover {
  color: #fff;
  text-decoration: none;
}

.liveo2-shell .lo2-topbar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.liveo2-shell .lo2-topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.liveo2-shell .lo2-topbar-search:hover {
  color: #fff;
}

.liveo2-shell .lo2-topbar-search svg {
  width: 14px;
  height: 14px;
}

/* Header Styles */
.liveo2-shell .lo2-header {
  background: #0f172a;
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #1e293b;
}

.liveo2-shell .lo2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liveo2-shell .lo2-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.liveo2-shell .lo2-logo-img {
  height: 50px;
  width: auto;
}

.liveo2-shell .lo2-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.liveo2-shell .lo2-mobile-phone {
  display: none;
  align-items: center;
  gap: 5px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
}

.liveo2-shell .lo2-mobile-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.liveo2-shell .lo2-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.liveo2-shell .lo2-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.liveo2-shell .lo2-mobile-menu {
  display: none;
  flex-direction: column;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.liveo2-shell .lo2-mobile-menu a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #334155;
}

.liveo2-shell .lo2-mobile-menu a:hover {
  background: #334155;
  color: #fff;
}

.liveo2-shell .lo2-mobile-open {
  display: flex;
}

/* Mobile Dropdown Accordion */
.liveo2-shell .lo2-mobile-dropdown {
  border-bottom: 1px solid #334155;
}

.liveo2-shell .lo2-mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #e2e8f0;
  text-decoration: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.liveo2-shell .lo2-mobile-dropdown-toggle:hover {
  background: #334155;
  color: #fff;
}

.liveo2-shell .lo2-mobile-arrow {
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.2s;
}

.liveo2-shell .lo2-mobile-dropdown-open .lo2-mobile-arrow {
  transform: rotate(45deg);
}

.liveo2-shell .lo2-mobile-dropdown-content {
  display: none;
  flex-direction: column;
  background: #0f172a;
}

.liveo2-shell .lo2-mobile-dropdown-open .lo2-mobile-dropdown-content {
  display: flex;
}

.liveo2-shell .lo2-mobile-dropdown-content a {
  padding: 12px 24px 12px 40px;
  font-size: 13px;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
}

.liveo2-shell .lo2-mobile-dropdown-content a:hover {
  background: #1e293b;
  color: #fff;
}

.liveo2-shell .lo2-nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.liveo2-shell .lo2-nav-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Dropdown Menu Styles */
.liveo2-shell .lo2-dropdown {
  position: relative;
}

.liveo2-shell .lo2-dropdown-trigger {
  cursor: pointer;
}

.liveo2-shell .lo2-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 0;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.liveo2-shell .lo2-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #334155;
}

.liveo2-shell .lo2-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1e293b;
}

.liveo2-shell .lo2-dropdown:hover .lo2-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.liveo2-shell .lo2-dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.liveo2-shell .lo2-dropdown-menu a:hover {
  background: #3b82f6;
  color: #fff;
}

/* Footer Styles */
.liveo2-shell .lo2-footer {
  background: #0f172a;
  color: #fff;
  padding: 50px 0 40px;
}

.liveo2-shell .lo2-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.liveo2-shell .lo2-footer-copyright {
  max-width: 320px;
}

.liveo2-shell .lo2-copyright-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.liveo2-shell .lo2-copyright-text {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
  line-height: 1.5;
}

.liveo2-shell .lo2-footer-legal-links {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 12px;
}

.liveo2-shell .lo2-footer-legal-links a {
  color: #60a5fa;
  text-decoration: underline;
}

.liveo2-shell .lo2-footer-legal-links a:hover {
  color: #93c5fd;
}

.liveo2-shell .lo2-footer-col {
  min-width: 120px;
}

.liveo2-shell .lo2-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.liveo2-shell .lo2-footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.liveo2-shell .lo2-footer-col a:hover {
  color: #fff;
}

.liveo2-shell .lo2-footer-social h4 {
  margin-bottom: 12px;
}

.liveo2-shell .lo2-social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.liveo2-shell .lo2-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s;
}

.liveo2-shell .lo2-social-icon svg {
  width: 28px;
  height: 28px;
}

.liveo2-shell .lo2-social-icon:hover {
  color: #fff;
}

.liveo2-shell .lo2-contact-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 12px;
}

/* Responsive - Shell Only */
@media (max-width: 1024px) {
  .liveo2-shell .lo2-nav {
    gap: 16px;
  }
  .liveo2-shell .lo2-nav-link {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .liveo2-shell .lo2-topbar {
    display: none;
  }
  
  .liveo2-shell .lo2-container {
    padding: 0 20px;
  }
  
  .liveo2-shell .lo2-nav {
    display: none;
  }
  
  .liveo2-shell .lo2-header-inner {
    gap: 12px;
  }
  
  .liveo2-shell .lo2-logo-img {
    height: 36px;
  }
  
  .liveo2-shell .lo2-mobile-phone {
    display: flex;
    font-size: 13px;
  }
  
  .liveo2-shell .lo2-mobile-phone svg {
    width: 16px;
    height: 16px;
  }
  
  .liveo2-shell .lo2-mobile-toggle {
    display: block;
    margin-left: 8px;
  }
  
  .liveo2-shell .lo2-footer {
    padding: 24px 0 20px;
  }
  
  .liveo2-shell .lo2-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
    text-align: center;
    justify-content: center;
  }
  
  .liveo2-shell .lo2-footer-copyright {
    max-width: 100%;
    width: 100%;
    order: 4;
    padding-top: 16px;
    border-top: 1px solid #334155;
  }
  
  .liveo2-shell .lo2-footer-copyright p {
    margin-bottom: 8px;
    font-size: 11px;
  }
  
  .liveo2-shell .lo2-footer-legal-links {
    justify-content: center;
    gap: 12px;
  }
  
  .liveo2-shell .lo2-footer-legal-links a {
    font-size: 11px;
  }
  
  .liveo2-shell .lo2-footer-col {
    min-width: unset;
    flex: 0 0 auto;
  }
  
  .liveo2-shell .lo2-footer-col h4 {
    display: none;
  }
  
  .liveo2-shell .lo2-footer-col a {
    display: inline;
    padding: 0;
    font-size: 12px;
    line-height: 1.8;
  }
  
  .liveo2-shell .lo2-footer-col a::after {
    content: " · ";
    color: #475569;
  }
  
  .liveo2-shell .lo2-footer-col a:last-child::after {
    content: "";
  }
  
  .liveo2-shell .lo2-footer-social {
    width: 100%;
    order: -1;
  }
  
  .liveo2-shell .lo2-footer-social h4 {
    display: none;
  }
  
  .liveo2-shell .lo2-social-icons {
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .liveo2-shell .lo2-social-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .liveo2-shell .lo2-contact-title {
    display: none;
  }
  
  .liveo2-shell .lo2-footer-social > a {
    display: inline;
  }
  
  .liveo2-shell .lo2-footer-social > a::after {
    content: " · ";
    color: #475569;
  }
  
  .liveo2-shell .lo2-footer-social > a:last-child::after {
    content: "";
  }
}


/* Custom CSS from User */
/* Add your custom CSS here - header/footer styles are included automatically */
