/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
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: astra-child
Template: astra
*/

/* ========== MB88 Child Theme Header (no Tailwind) ========== */
:root {
  --brand: #1a4da1;
  --brand-dark: #0d2b5e;
  --text: #ffffff;
  --text-muted: #e6eefb;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --max: 1200px;
  --z-header: 50;
  --z-overlay: 55;
  --z-drawer: 60;
}
* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout helpers */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.only-desktop {
  display: none;
}
.only-mobile {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .only-desktop {
    display: block;
  }
  .only-mobile {
    display: none !important;
  }
}

/* Header bar */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: var(--brand);
}
.site-nav {
  padding: 0.9rem 0;
}
@media (min-width: 1025px) {
  .site-nav {
    padding: 0.55rem 0;
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1320px;
  width: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  min-height: 40px;
}
.brand img {
  height: 24px;
  width: auto;
  display: block;
}
@media (min-width: 601px) {
  .brand img {
    height: 40px;
  }
}
.brand-placeholder {
  height: 36px;
  width: 80px;
  border-radius: 6px;
  background: #d1d5db;
  display: inline-block;
  margin-right: 0.75rem;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.btn-cta {
  background: #fff;
  color: #474747;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}
.btn-cta:hover {
  transform: scale(0.95);
  color: #474747;
}
.btn-primary {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.btn-primary:hover {
  transform: scale(0.98);
}
.icon-btn {
  padding: 0.5rem;
  border-radius: 10px;
  color: #fff;
  background: transparent;
  transition: background-color 0.2s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.hidden {
  display: none;
}

/* Desktop menu */
.desktop-menu .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-menu .menu img {
  height: 20px;
  width: auto;
  display: block;
}
.menu-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  gap: 0.5rem;
  margin-right: 32px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.desktop-menu .menu .menu-item:last-child {
  margin-right: 0;
}
.menu-link:hover {
  color: #fff;
  transform: scale(0.9);
}

@media (min-width: 1025px) {
  .menu-link {
    padding: 0.75rem 1rem;
    margin-right: 0;
  }
}

/* Mobile overlay + drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(120%) blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: var(--z-overlay);
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: var(--shadow);
  z-index: var(--z-drawer);
}
.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer-logo {
  max-width: 100px;
  height: auto;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 0;
}
.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
}
.drawer-menu li:first-child a {
  display: flex !important;
  align-items: center;
  gap: 15px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.drawer-menu li a,
.drawer-menu li a:hover {
  color: #fff !important;
}
.drawer-menu .menu-image-title-hide {
  display: inline !important;
}
.nav-drawer .drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.nav-drawer .drawer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1);
}
.icon-home-lg {
  height: 24px;
  width: 24px;
  object-fit: contain;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: inline-block;
  transition: all 0.2s ease;
}
.nav-drawer .drawer-link:hover .dot {
  background: #fff;
  transform: scale(1.4);
}

.drawer-foot {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-foot .btn-primary {
  width: 100%;
  text-align: center;
}

.drawer-foot .btn-primary:hover {
  color: #1a4da1;
}

/* Spacing under fixed header (if needed) */
body {
  --header-h: 72px;
}
@media (min-width: 640px) {
  body {
    --header-h: 80px;
  }
}
.admin-bar .site-header {
  top: 32px;
} /* WP admin bar */

/* ========== React App Styles on Front Page ========== */
/* CRITICAL: Reset ALL WordPress/Astra styles to prevent conflicts with Tailwind */

/* Remove all WordPress container constraints */
.home.page,
.home.page body,
.home.page #content,
.home.page .site,
.home.page .site-content,
.home.page .ast-container,
.home.page #primary,
.home.page .content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Reset site-main completely */
.home.page .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* React root container */
.home.page #root {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* FORCE Tailwind box-sizing */
.home.page #root,
.home.page #root *,
.home.page #root *::before,
.home.page #root *::after {
  box-sizing: border-box !important;
}

/* Reset WordPress typography that conflicts with Tailwind */
.home.page #root h1,
.home.page #root h2,
.home.page #root h3,
.home.page #root h4,
.home.page #root h5,
.home.page #root h6,
.home.page #root p,
.home.page #root a,
.home.page #root span,
.home.page #root div {
  margin: 0 !important;
  font-family: inherit !important;
  line-height: inherit !important;
}

/* Remove WordPress link styles */
.home.page #root a {
  color: inherit !important;
  text-decoration: none !important;
}

.home.page #root a:hover {
  color: inherit !important;
}

/* Hide any WordPress generated content */
.home.page .site-content > *:not(#root),
.home.page .entry-content,
.home.page .ast-article-single,
.home.page .ast-separate-container {
  display: none !important;
}

/* Force clean slate for images */
.home.page #root img {
  max-width: none !important;
  height: auto !important;
  border: none !important;
}

/* Remove WordPress list styles */
.home.page #root ul,
.home.page #root ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
