@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors: Cream, Beige, Brown Theme */
  --bg-primary: #FAF9F6; /* Cream/Off-white */
  --bg-secondary: #F5F5DC; /* Warm Beige */
  --bg-tertiary: #EBE3D5; /* Darker Beige */
  
  --text-primary: #2C1A0D; /* Very Dark Brown */
  --text-secondary: #4A3320; /* Dark Brown */
  --text-muted: #7A5C43; /* Medium Brown */
  
  /* Lighter Pastel Thematic Colors */
  --theme-notices: #e0f2fe;     /* Light Sky Blue */
  --theme-notices-text: #0284c7;
  
  --theme-financials: #dcfce7;  /* Light Green */
  --theme-financials-text: #16a34a;
  
  --theme-legal: #ffedd5;       /* Light Orange/Peach */
  --theme-legal-text: #ea580c;
  
  --theme-documents: #f3e8ff;   /* Light Purple */
  --theme-documents-text: #9333ea;

  --accent-primary: #5C4033; /* Rich Brown */
  --accent-hover: #3E2723; /* Darker Brown */
  
  --border-color: #e2e8f0;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 15px 0 rgb(0 0 0 / 0.05);
  
  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 4rem; }
.py-12 { padding: 6rem 0; }

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar .nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

#auth-buttons {
  margin-left: auto;
  display: flex !important;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
}

/* =========================================
   GLOBAL PREMIUM MODALS
   ========================================= */
.cos-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cos-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cos-modal-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 400px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cos-modal-box.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cos-modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.cos-modal-header h3 {
  margin: 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.cos-modal-body {
  padding: 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
}

.cos-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: var(--bg-secondary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
  padding-top: 15vh;
  justify-content: center;
  background-image: url('/Pics/Clancity.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.5rem;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Statistics Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  background: rgba(250, 249, 246, 0.85); /* Very light creamy glassy box */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(92, 64, 51, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  color: var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(250, 249, 246, 0.95);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
  text-shadow: none;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Journey Grid Classes */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.journey-images {
  position: relative;
}

.img-main {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-overlay {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 60%;
  border-radius: 16px;
  border: 8px solid var(--bg-secondary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .journey-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .img-overlay {
    position: static;
    width: 80%;
    border: none;
    margin-top: 0;
  }
  .analytics-grid, .filter-container {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 768px) {
  .navbar .nav-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  #hero-auth-buttons {
    flex-wrap: wrap;
  }
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  .stat-card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 140px;
    padding: 1rem;
  }
  .stat-value {
    font-size: 2rem;
  }
}
