/*
Theme Name: FleexStudio
Theme URI: https://fleexstudio.com/
Author: FleexStudio LLC
Author URI: https://fleexstudio.com/
Description: Custom Blocksy-inspired WordPress theme for FleexStudio LLC featuring a full WordPress Customizer layout system: drag-and-drop Section Builder (add, remove, reorder, duplicate sections), Header Builder, Footer Builder, Global Color Palette, Typography controls, Visual Repeaters, SEO/AEO/GEO JSON-LD Schema engine, dynamic /llms.txt, and one-click demo import.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fleexstudio
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Core WordPress alignment & accessibility helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #0b0a1a;
  color: #ffffff;
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  border-radius: 10px;
}
.alignwide { max-width: var(--maxw, 1220px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; color: var(--muted, #6E7176); margin-top: 8px; }
.sticky { position: relative; }
.bypostauthor { font-weight: 600; }

/* Adjust fixed site-header when WordPress Admin Bar is active */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav { top: 110px; height: calc(100vh - 110px); height: calc(100dvh - 110px); }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav { top: 124px; height: calc(100vh - 124px); height: calc(100dvh - 124px); }
}

/* Customizer Header Builder Flexible Slot Alignment */
.header-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header-slot-left { justify-content: flex-start; flex: 0 1 auto; }
.header-slot-center { justify-content: center; flex: 1 1 auto; }
.header-slot-right { justify-content: flex-end; flex: 0 1 auto; }
.header-social-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-social-inline a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.header-social-inline a:hover {
  background: var(--grad-brand);
  transform: translateY(-1px);
}
.header-social-inline svg { width: 15px; height: 15px; fill: currentColor; }

/* Customizer Custom Section Styles */
.fleex-custom-section-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.fleex-custom-section-wrap.has-media {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
}
.fleex-custom-section-wrap.media-left .fleex-custom-media { order: -1; }
.fleex-custom-media img {
  width: 100%;
  border-radius: var(--card-radius, 24px);
  border: 1px solid var(--card-border, rgba(114, 82, 240, 0.14));
  box-shadow: var(--shadow-card);
}
.fleex-custom-section.style-dark {
  background-color: #0B0A1A;
  background-image: var(--grad-aurora);
  color: rgba(226, 229, 245, 0.9);
}
.fleex-custom-section.style-dark h2,
.fleex-custom-section.style-dark h3 { color: #ffffff; }
.fleex-custom-section.style-dark p { color: rgba(226, 229, 245, 0.84); }
.fleex-custom-section.style-tint { background: var(--tint, #F1EEFD); }
.fleex-custom-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.fleex-custom-section.align-center .fleex-custom-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.fleex-custom-section.align-center .fleex-custom-actions { justify-content: center; }
@media (max-width: 900px) {
  .fleex-custom-section-wrap.has-media { grid-template-columns: 1fr; gap: 28px; }
  .fleex-custom-section-wrap.media-left .fleex-custom-media { order: 0; }
}

/* WordPress Default Menu Dropdown Support inside .main-nav */
.main-nav .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.65;
  transition: transform 0.25s ease;
}
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 240px;
  padding: 10px;
  background: rgba(14, 12, 34, 0.97);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(148, 127, 239, 0.26);
  border-radius: 18px;
  box-shadow: 0 30px 64px -16px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 200;
}
.main-nav > li:hover > .sub-menu,
.main-nav > li:focus-within > .sub-menu,
.main-nav > li.dd-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.22s ease, transform 0.24s ease, visibility 0s linear 0s;
}
.main-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(235, 237, 250, 0.9);
  transition: background 0.16s ease, color 0.16s ease;
}
.main-nav .sub-menu a:hover {
  background: rgba(114, 82, 240, 0.22);
  color: #ffffff;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #ffffff;
  background: var(--grad-brand);
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(128, 101, 242, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
