/*
Theme Name: Halobeauty Yoga
Theme URI: https://halobeauty.com
Author: Halobeauty Yoga
Author URI: https://halobeauty.com
Description: A premium digital yoga & meditation products theme for home practitioners and yoga teachers. Mobile-first, calming lavender palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: halobeauty
Tags: e-commerce, one-page, wellness, yoga, woocommerce
*/

/* =============================================
   HALOBEAUTY YOGA - MAIN STYLESHEET
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #F7F4FF;
  color: #2A2438;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
.font-serif,
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; }

/* --- Layout --- */
.hb-container {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hb-section {
  padding: 5rem 1.25rem;
}

@media (min-width: 768px) {
  .hb-section { padding: 6rem 2rem; }
  .hb-container { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Sticky Header --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 184, 232, 0.3);
}

.hb-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hb-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #4C3A6B;
  text-decoration: none;
  line-height: 1.2;
}
.hb-logo em { font-style: italic; }

/* --- Desktop Nav --- */
.hb-nav-desktop { display: none; }
@media (min-width: 768px) { .hb-nav-desktop { display: block; } }

.hb-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2A2438;
  text-decoration: none;
  transition: color 0.2s;
}
.hb-nav a:hover { color: #4C3A6B; }

/* Desktop CTA: hide on mobile */
.hb-header-cta { display: none; }
@media (min-width: 768px) { .hb-header-cta { display: inline-block; } }

/* --- Hamburger Button --- */
.hb-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hb-hamburger:hover { background: rgba(201, 184, 232, 0.3); }
.hb-hamburger:focus { outline: 2px solid #C9B8E8; outline-offset: 2px; }
@media (min-width: 768px) { .hb-hamburger { display: none; } }

.hb-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #4C3A6B;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.hb-hamburger.is-open .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb-hamburger.is-open .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hb-hamburger.is-open .hb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Menu Drawer --- */
.hb-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #F7F4FF;
  z-index: 200;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(76, 58, 107, 0.15);
  overflow-y: auto;
}
.hb-mobile-menu.is-open { transform: translateX(0); }

.hb-mobile-nav {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.hb-mobile-nav li { border-bottom: 1px solid rgba(201, 184, 232, 0.35); }
.hb-mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2A2438;
  text-decoration: none;
  padding: 1rem 0;
  transition: color 0.2s, padding-left 0.2s;
}
.hb-mobile-nav a:hover { color: #4C3A6B; padding-left: 0.5rem; }

/* Shop link highlighted in mobile menu */
.hb-mobile-nav li:nth-child(4) a,
.hb-mobile-nav li:last-child a {
  color: #4C3A6B;
  font-weight: 700;
}

.hb-mobile-cta {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

/* Close button inside drawer */
#hb-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px; height: 36px;
  background: rgba(201, 184, 232, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #4C3A6B;
  transition: background 0.2s;
}
#hb-close-btn:hover { background: #C9B8E8; }
#hb-close-btn:focus { outline: 2px solid #4C3A6B; }

/* --- Overlay --- */
.hb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 56, 0.45);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hb-overlay.is-open { display: block; }

/* --- Buttons --- */
.btn-primary {
  background: #C9B8E8;
  color: #4C3A6B;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: none;
  line-height: 1.4;
}
.btn-primary:hover, .btn-primary:focus {
  background: #4C3A6B;
  color: #F7F4FF;
  outline: none;
}

.btn-hero {
  background: #C9B8E8;
  color: #4C3A6B;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  padding: 1rem 2rem;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-hero:hover, .btn-hero:focus {
  background: #4C3A6B;
  color: #F7F4FF;
  outline: none;
}

.btn-library {
  background: #C9B8E8;
  color: #4C3A6B;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: none;
}
.btn-library:hover, .btn-library:focus {
  background: #F7F4FF;
  color: #4C3A6B;
  outline: none;
}

/* --- Hero Section --- */
#hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: #F7F4FF;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.hb-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hb-hero-grid { grid-template-columns: 1fr 1fr; padding: 0 2rem; }
  #hero { padding-top: 0; padding-bottom: 0; }
}

.hb-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4C3A6B;
  opacity: 0.7;
  margin-bottom: 1rem;
}

#hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #4C3A6B;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
#hero h1 em { font-weight: 400; font-style: italic; }

.hb-hero-sub {
  font-size: 1.05rem;
  color: #2A2438;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hb-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: #2A2438;
  opacity: 0.6;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}
.hb-trust-bar li::before { content: "✦ "; color: #C9B8E8; }

.hb-hero-img {
  border-radius: 24px;
  overflow: hidden;
  height: 460px;
  max-height: 70vw;
  box-shadow: 0 20px 60px rgba(76, 58, 107, 0.12);
}
.hb-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Solutions Section --- */
#solutions { background: #FFFFFF; }

.hb-section-header { text-align: center; margin-bottom: 3.5rem; }
.hb-section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #4C3A6B;
  margin-bottom: 0.75rem;
}
.hb-section-sub {
  color: #2A2438;
  opacity: 0.6;
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.hb-cols-3 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .hb-cols-3 { grid-template-columns: repeat(3, 1fr); } }

.hb-solution-col { text-align: center; padding: 0 1rem; }
.hb-solution-icon { font-size: 3rem; margin-bottom: 1.25rem; }
.hb-solution-col h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4C3A6B;
  margin-bottom: 0.75rem;
}
.hb-solution-col p { font-size: 0.9rem; color: #2A2438; opacity: 0.7; line-height: 1.7; }

/* --- Pricing Section --- */
#pricing { background: #F7F4FF; }

.hb-cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hb-cards-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 20px rgba(76, 58, 107, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(76, 58, 107, 0.14);
}

.hb-card-meta { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: #2A2438; opacity: 0.5; margin-bottom: 0.25rem; }

.product-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4C3A6B;
  margin-top: 0.25rem;
}
.product-card .hb-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #4C3A6B;
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(201, 184, 232, 0.35);
  color: #4C3A6B;
}

.feature-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #2A2438;
}
.feature-list li::before { content: "✦"; color: #C9B8E8; flex-shrink: 0; margin-top: 2px; }

/* Library Card */
.library-card {
  background: #4C3A6B;
  color: #F7F4FF;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 8px 40px rgba(76, 58, 107, 0.3);
  transition: transform 0.2s ease;
}
.library-card:hover { transform: translateY(-4px); }

.library-card .hb-card-meta { color: #F7F4FF; }
.library-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #F7F4FF;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.library-card-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .library-card-inner { grid-template-columns: 1fr 1fr; } }

.hb-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.hb-price-big {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #F7F4FF;
}
.hb-price-strike {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: rgba(247, 244, 255, 0.4);
}
.hb-popular { font-size: 0.85rem; opacity: 0.6; color: #F7F4FF; margin-top: 0.25rem; }

.badge-library { background: rgba(247, 244, 255, 0.2); color: #F7F4FF; }
.library-list li { color: rgba(247, 244, 255, 0.88); }
.library-list li::before { color: #C9B8E8; }

.library-cta-col { display: flex; flex-direction: column; gap: 1.25rem; }

/* --- How It Works --- */
#how-it-works { background: #FFFFFF; }

.hb-steps { display: grid; gap: 2.5rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .hb-steps { grid-template-columns: repeat(3, 1fr); } }

.hb-step { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: #C9B8E8; color: #4C3A6B;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.hb-step h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 600; color: #4C3A6B;
  margin-bottom: 0.75rem;
}
.hb-step p { font-size: 0.9rem; color: #2A2438; opacity: 0.7; line-height: 1.7; }
.hb-center { text-align: center; }

/* --- Split Sections (Practitioners + Teachers) --- */
.hb-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .hb-split { grid-template-columns: 1fr 1fr; } }

.hb-split-img {
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 12px 48px rgba(76, 58, 107, 0.12);
}
.hb-split-img img { width: 100%; height: 100%; object-fit: cover; }

.hb-split-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #4C3A6B;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hb-split-text h2 em { font-style: italic; font-weight: 400; }
.hb-split-text p { color: #2A2438; opacity: 0.75; line-height: 1.75; margin-bottom: 2rem; }

/* Teachers section reverse on desktop */
@media (min-width: 768px) {
  #teachers .hb-split-text { order: 1; }
  #teachers .hb-split-img { order: 2; }
}

/* --- Testimonials --- */
#testimonials { background: #F7F4FF; }

.hb-testimonials-grid { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .hb-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 2px 20px rgba(76, 58, 107, 0.08);
}
.hb-stars { color: #C9B8E8; font-size: 1.1rem; letter-spacing: 0.1rem; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: #2A2438;
  opacity: 0.8;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.hb-reviewer { display: flex; align-items: center; gap: 0.75rem; }
.hb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201, 184, 232, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #4C3A6B;
  flex-shrink: 0;
}
.hb-reviewer-name { font-weight: 600; font-size: 0.875rem; color: #4C3A6B; }
.hb-reviewer-sub { font-size: 0.75rem; color: #2A2438; opacity: 0.5; }

/* --- CTA + FAQ --- */
#cta-faq {
  background: #4C3A6B;
  color: #F7F4FF;
}

#cta-faq .hb-section-header h2 { color: #F7F4FF; }
#cta-faq .hb-section-sub { color: rgba(247, 244, 255, 0.75); }

.hb-ornament {
  text-align: center;
  color: rgba(201, 184, 232, 0.5);
  font-size: 1.1rem;
  letter-spacing: 0.5rem;
  margin-bottom: 2rem;
}

.hb-faq { max-width: 42rem; margin: 0 auto; }
.hb-faq-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 600;
  color: #F7F4FF; text-align: center;
  margin-bottom: 1.5rem;
}

.faq-item { border-bottom: 1px solid rgba(247, 244, 255, 0.2); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none;
  color: #F7F4FF; font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; padding: 1.25rem 0;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-btn:focus { outline: 2px solid #C9B8E8; outline-offset: 2px; }
.faq-answer {
  color: rgba(247, 244, 255, 0.8); font-size: 0.95rem;
  line-height: 1.7; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { max-height: 200px; padding-bottom: 1.25rem; }
.faq-icon { transition: transform 0.3s ease; font-size: 1.2rem; line-height: 1; }
.faq-icon.open { transform: rotate(45deg); }

/* --- Footer --- */
#site-footer {
  background: #2A2438;
  color: rgba(247, 244, 255, 0.6);
  padding: 2rem 1.25rem;
}
.hb-footer-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 1rem; font-size: 0.875rem;
}
@media (min-width: 768px) { .hb-footer-inner { flex-direction: row; } }

.hb-footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; font-weight: 600; color: #F7F4FF;
}
.hb-footer-links { display: flex; gap: 1.5rem; }
.hb-footer-links a { color: rgba(247, 244, 255, 0.5); transition: color 0.2s; }
.hb-footer-links a:hover { color: #F7F4FF; }

/* --- Scroll Animations --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* --- WooCommerce Overrides (basic) --- */
.woocommerce-page .hb-section,
.woocommerce .hb-section { padding: 4rem 1.25rem; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #C9B8E8 !important;
  color: #4C3A6B !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.25s, color 0.25s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #4C3A6B !important;
  color: #F7F4FF !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: #4C3A6B !important;
  color: #F7F4FF !important;
}
.woocommerce a.button.alt:hover { background: #C9B8E8 !important; color: #4C3A6B !important; }
