/*
Theme Name: Kingdom Ranker
Theme URI: https://www.linkedin.com/in/abhijith-jayaprakash/
Author: Abhijith Jayaprakash
Author URI: https://www.linkedin.com/in/abhijith-jayaprakash/
Description: Next Generation Marketing Agency - Premier Generative Engine Optimization (GEO), AI Search Citations, and Enterprise SEO WordPress Theme.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kingdom-ranker
Tags: search-engine-optimization, digital-marketing, dark-mode, custom-colors, custom-menu, featured-images, translation-ready
*/

:root {
  --wp--primary: #f59e0b;
  --wp--secondary: #080c16;
  --wp--accent: #991b1b;
  --wp--font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --wp--radius: 16px;
  --wp--bg: #050811;
  --wp--surface: #0b1120;
  --wp--surface-card: #0f172a;
  --wp--border: #1e293b;
  --wp--text: #f8fafc;
  --wp--text-muted: #94a3b8;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--wp--font);
  color: var(--wp--text);
  background-color: var(--wp--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--wp--primary);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a:hover {
  opacity: 0.85;
}

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

.site-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--border);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-branding .site-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.site-branding .site-description {
  font-size: 0.8rem;
  color: var(--wp--text-muted);
}

.primary-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}
.primary-navigation a {
  color: var(--wp--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-navigation a:hover {
  color: var(--wp--primary);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-action .btn-header {
  display: inline-block;
  background: var(--wp--primary);
  color: #000000;
  padding: 0.5rem 1.25rem;
  border-radius: var(--wp--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.header-action .btn-header:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--wp--border);
  border-radius: var(--wp--radius);
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--wp--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--wp--primary);
  color: #000000;
}
.btn-secondary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--wp--border);
}
.btn-secondary:hover {
  border-color: var(--wp--primary);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 60%), #050811;
  border-bottom: 1px solid var(--wp--border);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--wp--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.hero-subheadline {
  font-size: 1.2rem;
  color: var(--wp--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--wp--border);
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--wp--text-muted);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: #070b16;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--wp--text-muted);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 2rem;
  background: var(--wp--surface-card);
  border: 1px solid var(--wp--border);
  border-radius: var(--wp--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--wp--primary);
}
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--wp--radius);
  background: rgba(245, 158, 11, 0.15);
  color: var(--wp--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--wp--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: #050811;
  border-top: 1px solid var(--wp--border);
  border-bottom: 1px solid var(--wp--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-bullets {
  list-style: none;
  margin-top: 1.5rem;
}
.about-bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--wp--text);
}
.about-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wp--primary);
  font-weight: bold;
}

/* Showcase Section */
.showcase-section {
  padding: 5rem 0;
  background: #080d1a;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.showcase-card {
  border: 1px solid var(--wp--border);
  border-radius: var(--wp--radius);
  overflow: hidden;
  background: var(--wp--surface-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--wp--primary);
}
.showcase-body {
  padding: 1.75rem;
}
.showcase-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--primary);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.showcase-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.showcase-card p {
  color: var(--wp--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--wp--border);
  font-weight: 700;
  color: #ffffff;
}

/* Blog Section */
.blog-section {
  padding: 5rem 0;
  background: #070b16;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--wp--surface-card);
  border: 1px solid var(--wp--border);
  border-radius: var(--wp--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}
.blog-card:hover {
  border-color: var(--wp--primary);
}
.blog-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.blog-card p {
  color: var(--wp--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.blog-meta {
  font-size: 0.85rem;
  color: var(--wp--text-muted);
  display: flex;
  gap: 0.75rem;
}

/* Contact / CTA Section */
.contact-section {
  padding: 5rem 0;
  background: #050811;
  border-top: 1px solid var(--wp--border);
  color: #ffffff;
  text-align: center;
}
.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #ffffff;
}
.contact-section p {
  font-size: 1.15rem;
  color: var(--wp--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Footer */
.site-footer {
  background: #02040a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--wp--border);
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--wp--text-muted);
}
.footer-col a:hover {
  color: var(--wp--primary);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--wp--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Audit Modal */
.kr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.kr-modal-backdrop.is-open {
  display: flex;
}
.kr-modal-card {
  background: #0f172a;
  border: 1px solid var(--wp--border);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 540px;
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.kr-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .primary-navigation {
    display: none;
  }
  .primary-navigation.is-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b1120;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--wp--border);
  }
  .primary-navigation.is-active ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
