/*
 Theme Name:   Happy Blue Lessons
 Theme URI:    https://hbledu.ro
 Description:  Child theme for Astra – Happy Blue Lessons (meditații matematică & consultanță)
 Author:       Alucard Group
 Author URI:   https://alucardgroup.ro
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hbl-child
*/

/* ============================================================
   DESIGN SYSTEM — Happy Blue Lessons
   ============================================================ */

:root {
  /* ── Palette: Blue (profesionalism, rigoare) ── */
  --hbl-blue-900: #0A1E3D;
  --hbl-blue-800: #0F2D5E;
  --hbl-blue-700: #1A3A6B;
  --hbl-blue-600: #1E4D8F;
  --hbl-blue-500: #2563EB;
  --hbl-blue-400: #3B82F6;
  --hbl-blue-300: #60A5FA;
  --hbl-blue-200: #93C5FD;
  --hbl-blue-100: #DBEAFE;
  --hbl-blue-50:  #EFF6FF;

  /* ── Palette: Happy (optimism, căldură) ── */
  --hbl-happy-600: #D97706;
  --hbl-happy-500: #F59E0B;
  --hbl-happy-400: #FBBF24;
  --hbl-happy-300: #FCD34D;
  --hbl-happy-200: #FDE68A;
  --hbl-happy-100: #FEF3C7;

  /* ── Neutrals ── */
  --hbl-gray-900: #111827;
  --hbl-gray-800: #1F2937;
  --hbl-gray-700: #374151;
  --hbl-gray-600: #4B5563;
  --hbl-gray-500: #6B7280;
  --hbl-gray-400: #9CA3AF;
  --hbl-gray-300: #D1D5DB;
  --hbl-gray-200: #E5E7EB;
  --hbl-gray-100: #F3F4F6;
  --hbl-gray-50:  #F9FAFB;
  --hbl-white:    #FFFFFF;

  /* ── Semantic ── */
  --hbl-success:  #10B981;
  --hbl-error:    #EF4444;
  --hbl-warning:  #F59E0B;

  /* ── Typography ── */
  --hbl-font-heading: 'Inter', sans-serif;
  --hbl-font-body:    'Inter', sans-serif;

  /* ── Spacing scale ── */
  --hbl-space-xs:  0.25rem;
  --hbl-space-sm:  0.5rem;
  --hbl-space-md:  1rem;
  --hbl-space-lg:  1.5rem;
  --hbl-space-xl:  2rem;
  --hbl-space-2xl: 3rem;
  --hbl-space-3xl: 4rem;
  --hbl-space-4xl: 6rem;

  /* ── Border radius ── */
  --hbl-radius-sm:   0.375rem;
  --hbl-radius-md:   0.5rem;
  --hbl-radius-lg:   0.75rem;
  --hbl-radius-xl:   1rem;
  --hbl-radius-full: 9999px;

  /* ── Shadows ── */
  --hbl-shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --hbl-shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --hbl-shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --hbl-shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* ── Transitions ── */
  --hbl-transition-fast: 150ms ease;
  --hbl-transition-base: 250ms ease;
  --hbl-transition-slow: 400ms ease;

  /* ── Layout ── */
  --hbl-max-width: 1200px;
  --hbl-header-height: 80px;
  --hbl-header-height-scrolled: 64px;
}

/* ── Google Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Global Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--hbl-font-body);
  color: var(--hbl-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hbl-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--hbl-blue-900);
}

a {
  color: var(--hbl-blue-500);
  text-decoration: none;
  transition: color var(--hbl-transition-fast);
}

a:hover {
  color: var(--hbl-blue-700);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Utility: Container ── */
.hbl-container {
  width: 100%;
  max-width: var(--hbl-max-width);
  margin: 0 auto;
  padding: 0 var(--hbl-space-lg);
}

/* ── Utility: Section Spacing ── */
.hbl-section {
  padding: var(--hbl-space-4xl) 0;
}

.hbl-section--alt {
  background-color: var(--hbl-gray-50);
}

/* ── Buttons ── */
.hbl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hbl-space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--hbl-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--hbl-radius-md);
  cursor: pointer;
  transition: all var(--hbl-transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.hbl-btn--primary {
  background: var(--hbl-blue-500);
  color: var(--hbl-white);
  border-color: var(--hbl-blue-500);
}

.hbl-btn--primary:hover {
  background: var(--hbl-blue-700);
  border-color: var(--hbl-blue-700);
  color: var(--hbl-white);
  transform: translateY(-2px);
  box-shadow: var(--hbl-shadow-lg);
}

.hbl-btn--secondary {
  background: transparent;
  color: var(--hbl-blue-500);
  border-color: var(--hbl-blue-500);
}

.hbl-btn--secondary:hover {
  background: var(--hbl-blue-500);
  color: var(--hbl-white);
  transform: translateY(-2px);
  box-shadow: var(--hbl-shadow-md);
}

.hbl-btn--happy {
  background: var(--hbl-happy-500);
  color: var(--hbl-blue-900);
  border-color: var(--hbl-happy-500);
}

.hbl-btn--happy:hover {
  background: var(--hbl-happy-600);
  border-color: var(--hbl-happy-600);
  transform: translateY(-2px);
  box-shadow: var(--hbl-shadow-lg);
}

.hbl-btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.hbl-btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ── Cards ── */
.hbl-card {
  background: var(--hbl-white);
  border-radius: var(--hbl-radius-lg);
  padding: var(--hbl-space-xl);
  box-shadow: var(--hbl-shadow-sm);
  border: 1px solid var(--hbl-gray-200);
  transition: all var(--hbl-transition-base);
}

.hbl-card:hover {
  box-shadow: var(--hbl-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--hbl-blue-200);
}

/* ── Glassmorphism card variant ── */
.hbl-card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --hbl-space-4xl: 3rem;
  }

  .hbl-container {
    padding: 0 var(--hbl-space-md);
  }
}

/* ══════════════════════════════════════════
   Astra / Elementor z-index overrides
   Force content layers below our fixed header
   ══════════════════════════════════════════ */
#primary,
.content-area,
.site-main,
.entry-content,
.elementor {
  position: relative;
  z-index: 1;
}

.elementor-section.elementor-section-stretched {
  z-index: 1 !important;
}

/* Hide Astra's built-in header/mobile menu completely */
#masthead,
.ast-mobile-popup-drawer,
.ast-mobile-header-wrap,
.ast-desktop-header-content,
.ast-mobile-header-content {
  display: none !important;
}
