/* style.css — Build WP Website */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0f172a;
  --secondary: #6366f1;
  --light: #f8fafc;
  --dark: #020617;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--primary);
  line-height: 1.7;
}

/* --- Top Navigation --- */
.top-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--primary);
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--secondary);
}

/* Dropdown Submenu */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu li {
  margin: 0;
  padding: 0;
}

.nav-submenu a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-submenu a:hover {
  background: #f1f5f9;
  color: var(--secondary);
}

/* Hamburger Button (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 4rem 0 3rem;
  text-align: center;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.45rem;
  color: #1e293b;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 1.2rem 2.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.5rem;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  font-size: 1.15rem;
}

.card {
  background: var(--light);
  border-radius: 28px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.5);
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 1.8rem;
  color: var(--dark);
  font-weight: 800;
}

.stats-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.stat-card,
.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.latest-guides {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.latest-guides li {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  position: relative;
}
.latest-guides li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.floating-cta a {
  display: inline-block;
  background: var(--gradient-primary);
  color: white !important;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: white;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  margin-top: 3rem;
}
footer a {
  color: #93c5fd;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  /* Show hamburger */
  .nav-toggle {
    display: block;
  }

  /* Hide desktop menu */
  .nav-menu {
    display: none;
  }

  /* Show full vertical menu when active */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem 0;
    animation: slideDown 0.3s ease;
  }

  .nav-menu.active > li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  /* Hide dropdowns on mobile (not needed) */
  .nav-submenu {
    display: none !important;
  }

  /* Typography adjustments */
  h1 { font-size: 2.8rem; }
  .subtitle { font-size: 1.2rem; }
  .card { padding: 2rem; }
  h2 { font-size: 1.9rem; }
  .hero-cta { font-size: 1rem; padding: 1rem 2rem; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}