/* Pranabhoomi — Main styles: variables, reset, typography, layout */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');
@import url('brand.css');

:root {
  --crimson: #C0392B;
  --crimson-dark: #962d22;
  --saffron: #E67E22;
  --saffron-light: #f39c12;
  --forest: #1B4332;
  --forest-light: #2d6a4f;
  --cream: #FDF6EC;
  --charcoal: #1C1C1E;
  --gold: #F4C430;
  --mist: #EEF2F0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.12);
  --shadow-lg: 0 16px 48px rgba(27, 67, 50, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-display: 'Sora', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

*, *::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(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #5a5a5e;
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--crimson);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--cream) 0%, #fce8d0 40%, #fdebd0 70%, var(--cream) 100%);
  background-size: 200px 200px, 400% 400%;
  animation: gradientDrift 20s ease infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 3rem 3rem;
  max-width: 640px;
}

.hero-nepali {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.hero-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--crimson);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #4a4a4e;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
}

/* Stats bar */
.stats-bar {
  background: var(--forest);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-grid.stats-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-item .stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* How it works */
.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-path {
  position: absolute;
  top: 48px;
  left: 15%;
  right: 15%;
  height: 2px;
  border-top: 2px dashed var(--saffron);
  z-index: 0;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Testimonials */
.testimonials {
  background: var(--mist);
}

.carousel {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
}

.carousel-slide {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: block;
}

.carousel-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--forest);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.carousel-author {
  font-weight: 600;
}

.carousel-role {
  font-size: 0.9rem;
  color: #6a6a6e;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active {
  background: var(--crimson);
}

/* CTA banner */
.cta-banner {
  background: var(--forest);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.social-icons a:hover {
  background: var(--crimson);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Page layouts */
.page-header {
  padding: calc(var(--nav-height) + 3rem) 0 2rem;
  background: linear-gradient(180deg, var(--mist) 0%, var(--cream) 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest);
}

.two-column {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.sidebar-filters {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--forest);
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

/* Auth split */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel-left {
  background: var(--forest);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Dashboard layouts */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.dashboard-sidebar {
  background: var(--forest);
  color: var(--white);
  padding: 2rem 1.25rem;
  position: fixed;
  left: 0;
  top: var(--nav-height);
  bottom: 0;
  width: 260px;
  overflow-y: auto;
}

.dashboard-main {
  margin-left: 260px;
  padding: 2rem;
  flex: 1;
}

.admin-layout .dashboard-sidebar {
  background: #0d2818;
}

.admin-layout .dashboard-main {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-outline:not(.mobile-visible) {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }

  .steps-path {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-panel-left {
    display: none;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
  }

  .dashboard-main {
    margin-left: 0;
  }
}
