/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #3b82f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --dark: #0f172a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --transition: 0.25s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
  font-weight: 600;
}

p {
  color: var(--text-light);
  max-width: 70ch;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 2.5rem;
  transition: transform var(--transition);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  color: var(--text);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

/* ===== USER CONTROLS ===== */
.user-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
}

.user-btn:hover {
  background: rgba(37, 99, 235, 0.1);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  width: 100%;
  padding: 2rem 1rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  width: 100%;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--white);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--gray-300);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
}

.app-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-badge img {
  height: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  font-size: 1.25rem;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.copyright {
  color: var(--gray-300);
  font-size: 0.875rem;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  display: none;
  z-index: 999;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.cta {
  margin-top: -1.5rem;
}

.nav-item.cta i {
  background: var(--primary);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav,
  .user-controls {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    display: none;
  }
}
