/* Google Fonts - Nunito, Nunito Sans, Quicksand, and Mulish */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Quicksand:wght@300..700&display=swap');

:root {
  --bg: #f6fbf8;
  --text: #052014;
  --muted: #556069;
  --panel: #ffffff;
  --green-1: #197a57;
  --green-2: #1aa06a;
  --accent: #00d26f;
  --shadow-sm: 0 2px 8px rgba(13, 37, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 37, 26, 0.06);
  --shadow-lg: 0 18px 40px rgba(13, 37, 26, 0.08);
  --transition: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  
  /* Typography scale */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-logo: 'Quicksand', sans-serif;
  --font-nav: 'Mulish', sans-serif;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Typography utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(25, 122, 87, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(25, 122, 87, 0.22);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--green-1);
  color: var(--green-1);
}

.btn-secondary:hover {
  background: rgba(25, 122, 87, 0.08);
  transform: translateY(-2px);
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 37, 26, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.logo {
  font-size: 28px;
  font-family: var(--font-logo);
  font-weight: 700;
  color: var(--green-1);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo i {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(25, 122, 87, 0.2));
}

.desktop-nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

.desktop-nav a {
  font-size: 15px;
  font-family: var(--font-nav);
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
  padding: 8px 0;
}

.desktop-nav a:hover {
  color: var(--green-1);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--green-1);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
  opacity: 0.8;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.menu-btn {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: none;
  padding: 0;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 9px;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }

.menu-btn.active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-btn.active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile menu - hidden by default */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--panel);
  border-bottom: 1px solid rgba(13, 37, 26, 0.06);
  box-shadow: 0 10px 40px rgba(13, 37, 26, 0.1);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 90;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 16px;
  font-family: var(--font-nav);
  font-weight: 700;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: rgba(25, 122, 87, 0.05);
  color: var(--green-1);
}

.mobile-menu .mobile-signup {
  margin-top: 12px;
  justify-content: center;
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  color: #fff !important;
}

.mobile-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(25, 122, 87, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
}

.mobile-user-avatar {
  width: 40px;
  height: 40px;
  background: var(--green-1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.mobile-user-role {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .desktop-nav,
  .profile-section {
    display: none;
  }

  .menu-btn {
    display: block;
  }
  
  .header .container {
    padding: 14px 20px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}
