/*
Theme Name: Billionaire Numerology
Theme URI: https://topnumerologist.com/
Author: Acharya Devraj Ji
Author URI: https://topnumerologist.com/about-us/
Description: Complete SEO-optimized WordPress theme for Billionaire Numerology and Astrology. Features WPBakery and Elementor page builder support, custom numerology widgets, dynamic blog with tags, WooCommerce ready, Schema.org structured data, GEO meta, mobile-first responsive design. Brand colors: #FFFDF1, #FFCE99, #FF9644, #562F00.
Version: 2.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: flavor flavor flavor flavor flavor flavor flavor flavor flavor billionaire-numerology
Tags: blog, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, grid-layout, one-column, right-sidebar, theme-options, threaded-comments, translation-ready, two-columns, e-commerce
*/

/* ═══════════════════════════════════════════════
   BRAND PALETTE
═══════════════════════════════════════════════ */
:root {
  --bn-cream: #FFFDF1;
  --bn-peach: #FFCE99;
  --bn-orange: #FF9644;
  --bn-brown: #562F00;
  --bn-brown-dark: #3A1F00;
  --bn-brown-deep: #2A1600;
  --bn-white: #FFFFFF;
  --bn-text: #5A3D10;
  --bn-muted: #8B6B3A;
  --bn-shadow: rgba(86, 47, 0, 0.12);
  --bn-shadow-orange: rgba(255, 150, 68, 0.2);
  --bn-gradient-hero: linear-gradient(165deg, #FFFDF1 0%, #FFF5E0 40%, #FFECCC 100%);
  --bn-gradient-warm: linear-gradient(135deg, #562F00 0%, #7A4400 100%);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bn-cream);
  color: var(--bn-text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; color: var(--bn-brown); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 16px; }
.section-label {
  font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bn-orange);
  margin-bottom: 8px; display: block;
}
.section-subtitle { font-size: 1.1rem; color: var(--bn-muted); max-width: 640px; margin-bottom: 48px; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.35s cubic-bezier(.4,0,.2,1); text-decoration: none;
}
.btn-primary { background: var(--bn-gradient-warm); color: var(--bn-cream); box-shadow: 0 4px 20px var(--bn-shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(86,47,0,0.25); }
.btn-secondary { background: transparent; color: var(--bn-brown); border: 2px solid var(--bn-brown); }
.btn-secondary:hover { background: var(--bn-brown); color: var(--bn-cream); }
.btn-orange { background: var(--bn-orange); color: #fff; box-shadow: 0 4px 20px var(--bn-shadow-orange); }
.btn-orange:hover { background: #e87e2e; transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-2px); }
.bn-btn-orange { display: inline-block; padding: 10px 24px; border-radius: 50px; background: var(--bn-orange); color: #fff; font-weight: 600; font-size: .88rem; text-decoration: none; transition: all .3s; margin-top: 12px; }
.bn-btn-orange:hover { background: #e87e2e; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════════════ */
section { padding: 80px 0; }
.bg-white { background: var(--bn-white); }
.bg-cream { background: var(--bn-cream); }
.bg-warm { background: linear-gradient(165deg, var(--bn-brown-deep) 0%, var(--bn-brown) 100%); color: var(--bn-peach); }
.bg-warm h2, .bg-warm h3 { color: var(--bn-peach); }
.bg-warm .section-label { color: var(--bn-orange); }
.bg-warm .section-subtitle { color: rgba(255,206,153,0.6); }
.bg-warm p { color: rgba(255,206,153,0.7); }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.top-bar { background: var(--bn-brown); color: var(--bn-peach); font-size: 0.8rem; padding: 8px 0; text-align: center; }
.top-bar span { margin: 0 16px; opacity: 0.7; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,253,241,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(86,47,0,0.08); transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(86,47,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; background: var(--bn-gradient-warm); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--bn-peach); font-family: 'DM Serif Display', serif; font-size: 1.4rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.15rem; color: var(--bn-brown); }
.logo-tagline { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bn-muted); font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { font-size: 0.88rem; font-weight: 500; color: var(--bn-text); padding: 8px 14px; border-radius: 8px; transition: all 0.25s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--bn-orange); background: rgba(255,150,68,0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 48px rgba(86,47,0,0.12); padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.3s; z-index: 100; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: 0.85rem; border-radius: 8px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 22px; font-size: 0.85rem; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--bn-brown); border-radius: 2px; transition: 0.3s; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: var(--bn-brown-deep); color: rgba(255,206,153,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,206,153,0.1); }
.footer-brand .logo-name { color: var(--bn-peach); font-size: 1.3rem; }
.footer-brand .logo-tagline { color: rgba(255,206,153,0.5); }
.footer-brand p { font-size: 0.88rem; margin-top: 16px; line-height: 1.7; color: rgba(255,206,153,0.5); }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bn-peach); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,206,153,0.5); padding: 4px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--bn-orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.8rem; color: rgba(255,206,153,0.35); flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,206,153,0.35); }
.footer-legal a:hover { color: var(--bn-peach); }
.footer-trust { display: flex; gap: 24px; margin-top: 20px; }
.footer-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: rgba(255,206,153,0.5); }
.geo-section { text-align: center; padding: 48px 0; background: var(--bn-cream); }
.geo-label { font-size: 0.82rem; color: var(--bn-muted); margin-bottom: 16px; font-weight: 500; }
.geo-countries { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.geo-tag { background: #fff; border: 1px solid rgba(86,47,0,0.06); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 500; color: var(--bn-text); }

/* ═══════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════ */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--bn-brown); color: var(--bn-peach); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; border: none; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; box-shadow: 0 4px 16px rgba(86,47,0,0.2); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--bn-orange); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════ */
.blog-listing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.blog-post-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(86,47,0,0.06); transition: all 0.3s; }
.blog-post-card:hover { box-shadow: 0 8px 32px var(--bn-shadow); transform: translateY(-4px); }
.blog-post-card .post-thumb { width: 100%; height: 220px; overflow: hidden; }
.blog-post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-post-card:hover .post-thumb img { transform: scale(1.05); }
.blog-post-card .post-body { padding: 24px; }
.blog-post-card .post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.78rem; color: var(--bn-muted); margin-bottom: 12px; }
.blog-post-card .post-meta a { color: var(--bn-orange); font-weight: 500; }
.blog-post-card h2 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.blog-post-card h2 a:hover { color: var(--bn-orange); }
.blog-post-card .post-excerpt { font-size: 0.9rem; color: var(--bn-muted); line-height: 1.6; margin-bottom: 16px; }
.blog-post-card .read-more { font-size: 0.85rem; font-weight: 600; color: var(--bn-orange); }
.blog-post-card .read-more:hover { color: var(--bn-brown); }
.bn-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bn-post-tags a { font-size: 0.72rem; font-weight: 600; padding: 3px 12px; border-radius: 50px; background: rgba(255,150,68,0.08); color: var(--bn-orange); border: 1px solid rgba(255,150,68,0.15); text-decoration: none; transition: all 0.25s; }
.bn-post-tags a:hover { background: var(--bn-orange); color: #fff; }

/* Single Post */
.single-post-content { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.single-post-content .entry-title { margin-bottom: 16px; }
.single-post-content .entry-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--bn-muted); margin-bottom: 24px; }
.single-post-content .entry-meta a { color: var(--bn-orange); }
.single-post-content .featured-image { border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.single-post-content .entry-content { font-size: 1.05rem; line-height: 1.85; }
.single-post-content .entry-content h2, .single-post-content .entry-content h3 { margin-top: 32px; margin-bottom: 12px; }
.single-post-content .entry-content blockquote { border-left: 4px solid var(--bn-orange); padding: 16px 24px; margin: 24px 0; background: rgba(255,150,68,0.05); border-radius: 0 12px 12px 0; font-style: italic; }
.single-post-content .entry-content img { border-radius: 12px; margin: 24px 0; }
.bn-entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(86,47,0,0.08); }
.bn-entry-tags strong { font-size: 0.85rem; color: var(--bn-brown); margin-right: 4px; }
.bn-entry-tags a { font-size: 0.8rem; font-weight: 500; padding: 5px 14px; border-radius: 50px; background: rgba(255,150,68,0.08); color: var(--bn-orange); border: 1px solid rgba(255,150,68,0.15); text-decoration: none; transition: all 0.25s; }
.bn-entry-tags a:hover { background: var(--bn-orange); color: #fff; }

/* Archive Header */
.archive-header { text-align: center; padding: 60px 24px 40px; background: var(--bn-gradient-hero); }
.archive-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(86,47,0,0.1); color: var(--bn-brown); }
.pagination a:hover { border-color: var(--bn-orange); color: var(--bn-orange); }
.pagination .current { background: var(--bn-brown); color: var(--bn-cream); border-color: var(--bn-brown); }

/* Sidebar */
.sidebar .widget { margin-bottom: 32px; background: #fff; border-radius: 16px; padding: 24px; border: 1px solid rgba(86,47,0,0.06); }
.sidebar .widget h3 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,150,68,0.2); }
.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid rgba(86,47,0,0.04); }
.sidebar .widget ul li a { font-size: 0.9rem; color: var(--bn-text); }
.sidebar .widget ul li a:hover { color: var(--bn-orange); }
.sidebar .tagcloud a { display: inline-block; font-size: 0.78rem !important; font-weight: 500; padding: 4px 12px; margin: 3px 2px; border-radius: 50px; background: rgba(255,150,68,0.08); color: var(--bn-orange); border: 1px solid rgba(255,150,68,0.15); }
.sidebar .tagcloud a:hover { background: var(--bn-orange); color: #fff; }

/* Post Navigation */
.post-navigation { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(86,47,0,0.08); }
.post-navigation a { font-size: 0.9rem; font-weight: 500; color: var(--bn-brown); padding: 12px 24px; border-radius: 12px; background: var(--bn-cream); border: 1px solid rgba(86,47,0,0.08); }
.post-navigation a:hover { border-color: var(--bn-orange); color: var(--bn-orange); }

/* Comments */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(86,47,0,0.08); }
.comments-area .comment-list { list-style: none; }
.comments-area .comment { padding: 20px 0; border-bottom: 1px solid rgba(86,47,0,0.04); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea { width: 100%; padding: 12px 16px; border: 1px solid rgba(86,47,0,0.12); border-radius: 12px; font-family: 'Outfit', sans-serif; font-size: 0.95rem; margin-bottom: 16px; background: var(--bn-cream); }
.comment-respond input:focus, .comment-respond textarea:focus { outline: none; border-color: var(--bn-orange); }
.comment-respond .submit { background: var(--bn-gradient-warm); color: var(--bn-cream); border: none; padding: 12px 32px; border-radius: 50px; font-weight: 600; cursor: pointer; }

/* ═══════════════════════════════════════════════
   WPBakery + Elementor Widget Styles
═══════════════════════════════════════════════ */
.bn-vc-numerology-grid { display: grid; gap: 16px; }
.bn-vc-numerology-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bn-vc-numerology-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.bn-vc-number-card { text-align: center; padding: 24px 16px; border-radius: 16px; border: 1px solid rgba(86,47,0,0.06); background: #fff; transition: all 0.35s; }
.bn-vc-number-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--bn-shadow-orange); border-color: var(--bn-orange); }
.bn-vc-number-card .num { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.8rem; color: var(--bn-orange); line-height: 1; margin-bottom: 8px; }
.bn-vc-number-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--bn-brown); margin: 0 0 6px; }
.bn-vc-number-card p { font-size: 0.82rem; color: var(--bn-muted); line-height: 1.5; margin: 0; }
.bn-vc-number-card.master-card { background: linear-gradient(160deg, #FFFDF1, #FFF5E0); border-color: var(--bn-orange); position: relative; }
.bn-vc-number-card.master-card::after { content: 'MASTER'; position: absolute; top: 8px; right: 8px; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.12em; color: #fff; background: var(--bn-orange); padding: 2px 8px; border-radius: 50px; }
.bn-vc-number-card.master-card .num { color: var(--bn-brown); }
.bn-service-card-wrap { background: #fff; border-radius: 20px; padding: 32px 28px; border: 1px solid rgba(86,47,0,0.06); transition: all 0.35s; text-align: center; }
.bn-service-card-wrap:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--bn-shadow); }
.bn-stat-item { text-align: left; }
.bn-stat-number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--bn-brown); line-height: 1; }
.bn-stat-label { font-size: 0.8rem; color: var(--bn-muted); margin-top: 4px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 16px; border: 1px solid rgba(86,47,0,0.06); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; color: var(--bn-brown); text-align: left; line-height: 1.4; }
.faq-toggle { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,150,68,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; color: var(--bn-orange); transition: transform 0.3s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.95rem; color: var(--bn-muted); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 600px; }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bn-cream); z-index: 9999; padding: 80px 24px 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid rgba(86,47,0,0.06); }
.mobile-menu a { display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 500; color: var(--bn-brown); }
.mobile-menu a:hover { color: var(--bn-orange); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bn-vc-numerology-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .blog-listing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-header nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-secondary { display: none; }
  section { padding: 56px 0; }
  .blog-listing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bn-vc-numerology-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .bn-vc-numerology-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  nav.mobile-open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 12px 32px rgba(86,47,0,0.1); border-radius: 0 0 16px 16px; z-index: 999; }
}
@media (max-width: 480px) {
  .post-navigation { flex-direction: column; }
  .bn-vc-numerology-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .bn-vc-numerology-grid.cols-3 { grid-template-columns: 1fr; }
  .geo-countries { gap: 8px; }
}
