/*
Theme Name: PaisaPedia
Theme URI: https://paisapedia.com
Author: PaisaPedia
Author URI: https://paisapedia.com
Description: Professional financial advisory and calculator platform for India's MSMEs and individuals.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paisapedia
Tags: financial, advisory, calculator, business, india
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --primary:       #1E63FF;
  --primary-dark:  #1245CC;
  --primary-light: #EBF1FF;
  --navy:          #071B3A;
  --navy-panel:    #0D2247;
  --accent-green:  #1DBF73;
  --accent-orange: #FF8C00;
  --text-dark:     #0F172A;
  --text-body:     #334155;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --bg-light:      #F8FAFC;
  --bg-white:      #FFFFFF;
  --radius:        16px;
  --radius-sm:     8px;
  --radius-lg:     24px;
  --shadow:        0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-md:     0 20px 60px rgba(2, 6, 23, 0.12);
  --shadow-blue:   0 8px 32px rgba(30, 99, 255, 0.18);
  --transition:    0.25s ease;
  --font-head:     'Poppins', sans-serif;
  --font-body:     'Poppins', sans-serif;
  --max-width:     1200px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin-bottom: 1rem; color: var(--text-body); }

.text-primary  { color: var(--primary); }
.text-green    { color: var(--accent-green); }
.text-muted    { color: var(--text-muted); }
.text-white    { color: #fff; }
.text-center   { text-align: center; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex    { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(30, 99, 255, 0.28);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: var(--primary);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-dark {
  background: var(--navy-panel);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-popular { background: #FFF3E0; color: #E65100; }
.badge-new     { background: #E8F5E9; color: #1B5E20; }
.badge-soon    { background: #EDE7F6; color: #4527A0; }

/* =============================================
   SECTION LABELS
   ============================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* =============================================
   TOP ANNOUNCEMENT STRIP
   ============================================= */
.top-strip {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 500;
}
.top-strip a { color: var(--primary); font-weight: 600; }
.top-strip a:hover { color: #fff; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(2,6,23,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img { height: 40px; width: auto; }
.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.custom-logo-link img,
.site-logo .custom-logo {
  height: 40px;
  width: auto;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text-dark); }
.logo-text span { color: var(--primary); }
.logo-tagline { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; display: block; margin-top: -2px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: var(--primary-light); color: var(--primary); }

.nav-tools-link {
  font-weight: 600;
}
.nav-tools-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}
.header-phone:hover { color: var(--primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px;
  z-index: 999;
}
.has-dropdown:hover .dropdown-menu { display: block; }

/* Fix dropdown overlap — raise hovered item above siblings */
.has-dropdown:hover {
  z-index: 100;
}
.has-dropdown:not(:hover) > .dropdown-menu {
  display: none !important;
  pointer-events: none;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-dark);
}
.dropdown-menu li a:hover { background: var(--primary-light); color: var(--primary); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
}
.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: #fff;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--primary); }

.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer-contact-item strong { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }