/**
 * CXP Footer CSS - Extracted from index.php
 * Standalone footer styling for reuse across all pages
 * UPDATED: Now imports shared variables for consistency
 */

/* Import shared CSS variables */
@import url('variables.css');

/* Fallback CSS Variables for footer - Now using shared variables */
:root {
  /* Fallback values if variables.css fails to load */
  --ces-primary: #191d63;
  --ces-primary-light: #004c8a;
  --ces-secondary: #f59e0b;
  --ces-white: #ffffff;
  --ces-gray-300: #d1d5db;
  --ces-gray-400: #9ca3af;
  --transition: all 0.3s ease;
}

/* Footer with stronger CSS specificity */
.ces-footer {
  background: linear-gradient(
    135deg,
    var(--ces-primary) 0%,
    var(--ces-primary-light) 100%
  ) !important;
  color: var(--ces-white) !important;
  padding: 4rem 0 1rem !important;
}

/* Fallback background in case CSS variables fail */
.ces-footer {
  background: linear-gradient(135deg, #191d63 0%, #004c8a 100%) !important;
}

/* Ensure container exists and works */
.ces-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.ces-footer-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.ces-footer-section h3 {
  font-size: 1.2rem !important;
  margin-bottom: 1rem !important;
  color: var(--ces-white) !important;
}

.ces-footer-link {
  color: var(--ces-gray-300) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.ces-footer-link:hover {
  color: var(--ces-white) !important;
}

.ces-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 1rem !important;
  text-align: center !important;
  color: var(--ces-gray-400) !important;
}

.ces-footer-tagline {
  font-weight: 600 !important;
  color: var(--ces-secondary) !important;
  font-style: italic !important;
}

/* Responsive Footer with stronger specificity */
@media (max-width: 768px) {
  .ces-footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  .ces-footer-section {
    margin-bottom: 1rem !important;
  }
}
/**
 * CXP HEADER STYLES - SYNCHRONIZED WITH INLINE CSS
 * ✅ COLORS CONSISTENT WITH INLINE STYLING
 * ✅ LOGO LEFT-ALIGNED
 * ✅ HEX COLORS (NOT NCS) FOR CONSISTENCY
 */

:root {
  /* SYNCHRONIZED COLORS - SAME AS INLINE CSS */
  --cxp-primary: #1a365d;
  --cxp-secondary: #2d3748;
  --cxp-accent: #3182ce;
  --cxp-warm: #ed8936;
  --cxp-success: #38a169;
  --cxp-error: #e53e3e;
  --cxp-background: #f7fafc;
  --cxp-white: #ffffff;

  /* Gray scale - CONSISTENT */
  --cxp-gray-50: #f9fafb;
  --cxp-gray-100: #f7fafc;
  --cxp-gray-200: #edf2f7;
  --cxp-gray-300: #e2e8f0;
  --cxp-gray-400: #cbd5e0;
  --cxp-gray-500: #a0aec0;
  --cxp-gray-600: #718096;
  --cxp-gray-700: #4a5568;
  --cxp-gray-800: #2d3748;
  --cxp-gray-900: #1a202c;

  /* Shadows - CONSISTENT */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cxp-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* LEFT ALIGN EVERYTHING */
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--cxp-primary), var(--cxp-secondary));
  color: white;
  min-height: 80px;
  box-shadow: var(--shadow-md);
}

/* LOGO CONTAINER - LEFT SIDE */
.cxp-header .logo {
  display: flex;
  align-items: center;
  margin-right: 2rem; /* Space between logo and title */
  flex-shrink: 0; /* Don't shrink logo */
}

.cxp-header .logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.cxp-header .logo img:hover {
  opacity: 0.8;
}

/* TITLE CONTAINER - TAKES REMAINING SPACE */
.cxp-header .title {
  flex: 1; /* Take all remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cxp-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.cxp-header .subtitle {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 768px) {
  .cxp-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    min-height: auto;
  }

  .cxp-header .logo {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .cxp-header .logo img {
    height: 40px;
  }

  .cxp-header h1 {
    font-size: 1.5rem;
  }

  .cxp-header .subtitle {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cxp-header .logo img {
    height: 35px;
    max-width: 150px;
  }

  .cxp-header h1 {
    font-size: 1.3rem;
  }

  .cxp-header .subtitle {
    font-size: 0.8rem;
  }
}

/* =========================
     LEGACY / MARKETING HEADER (extracted from index.php) - .ces-* classes
     Centralized here so pages like terms.php, privacy.php, etc. can reuse.
     Keep separate from .cxp-* (application internal UI) for clarity.
     ========================= */

.ces-header {
  background: var(--ces-white, #ffffff);
  border-bottom: 1px solid var(--ces-gray-200, #e5e7eb);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.ces-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.ces-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ces-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ces-logo img {
  height: 40px;
  width: auto;
}
.ces-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ces-primary, #191d63);
  margin-bottom: 0.25rem;
}
.ces-logo-powered {
  font-size: 0.75rem;
  color: var(--ces-gray-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.ces-logo-slogan {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ces-primary, #191d63);
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ces-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.ces-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ces-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--ces-primary, #191d63),
    var(--ces-primary-light, #004c8a)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Buttons */
.ces-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.ces-btn-primary {
  background: linear-gradient(135deg, var(--ces-secondary, #f59e0b) 0%, #d97706 100%);
  color: #fff;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}
.ces-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}
.ces-btn-outline {
  background: transparent;
  color: var(--ces-primary, #191d63);
  border: 2px solid var(--ces-primary, #191d63);
}
.ces-btn-outline:hover {
  background: var(--ces-primary, #191d63);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .ces-container {
    padding: 0 1rem;
  }
  .ces-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .ces-nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ces-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .ces-logo-text {
    font-size: 1.2rem;
  }
  .ces-logo-powered {
    font-size: 0.7rem;
  }
  .ces-logo-slogan {
    font-size: 0.65rem;
  }
}
