/* ==========================================================================
   GBEKINS CAREGIVER/PSW TRAINING COLLEGE - CORE DESIGN SYSTEM
   Brand Palette: Deep Navy Blue, Teal/Blue-Green, Healthcare Green, White, Slate
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0a2540;
  --primary-navy-dark: #061626;
  --primary-navy-light: #133a63;
  --primary-teal: #0d9488;
  --primary-teal-dark: #0f766e;
  --primary-teal-light: #14b8a6;
  --healthcare-green: #10b981;
  --healthcare-green-dark: #059669;
  --healthcare-green-light: #34d399;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;

  /* Neutral Surface & Background Colors */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0a2540;
  --bg-darker: #061626;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 37, 64, 0.08), 0 2px 4px -2px rgba(10, 37, 64, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 64, 0.1), 0 4px 6px -4px rgba(10, 37, 64, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 64, 0.12), 0 8px 10px -6px rgba(10, 37, 64, 0.04);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.25);

  /* Layout & Sizing */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-navy);
}

ul, ol {
  list-style: none;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Containers & Grid */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-padding-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */

.topbar {
  background: var(--primary-navy-dark);
  color: var(--text-light);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-contact, .topbar-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.topbar-item:hover {
  color: var(--healthcare-green-light);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary-teal-light);
}

/* Sticky Main Navigation Bar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar-wrapper.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  height: 96px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  height: 82px;
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: transform var(--transition-normal);
  display: block;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.1vw, 1.25rem);
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.88rem, 0.95vw, 0.95rem);
  color: var(--primary-navy);
  padding: 0.5rem 0.2rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary-teal);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-teal);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--primary-navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-links .nav-link {
  font-size: 1.15rem;
  padding: 0.5rem 0;
}

.mobile-nav-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   BUTTONS & CTA STYLES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1.2;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background-color: var(--primary-teal);
  color: var(--text-white);
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-teal-dark);
  border-color: var(--primary-teal-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.4);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.btn-navy:hover {
  background-color: var(--primary-navy-dark);
  border-color: var(--primary-navy-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(10, 37, 64, 0.35);
}

.btn-green {
  background-color: var(--healthcare-green);
  color: var(--text-white);
  border-color: var(--healthcare-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  background-color: var(--healthcare-green-dark);
  border-color: var(--healthcare-green-dark);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-teal {
  background: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-outline-teal:hover {
  background: var(--primary-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-navy:hover {
  background: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   ALERTS & NOTIFICATIONS
   ========================================================================== */

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border-left: 4px solid transparent;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: var(--healthcare-green);
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #f59e0b;
}

.alert-info {
  background: #f0fdfa;
  color: #115e59;
  border-color: var(--primary-teal);
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: currentColor;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: #e0f2fe; color: #0369a1; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #ccfbf1; color: #0f766e; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--primary-navy-dark);
  color: #94a3b8;
  margin-top: auto;
  border-top: 4px solid var(--primary-teal);
}

.footer-top {
  padding: 5rem 0 3rem 0;
}

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

.footer-brand .footer-logo {
  height: 78px;
  max-height: 85px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.footer-tagline {
  color: var(--healthcare-green-light);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--primary-teal);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--healthcare-green-light);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-teal-light);
  margin-top: 0.2rem;
}

.footer-branches-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.footer-branches-title {
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.footer-branches-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .navbar { height: 86px; min-height: 86px; }
  .navbar-logo { max-height: 70px; height: 68px; width: auto; }
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .navbar { height: 74px; min-height: 74px; }
  .navbar-logo { max-height: 55px; height: 52px; width: auto; }
  .topbar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .navbar { height: 68px; min-height: 68px; }
  .navbar-logo { max-height: 48px; height: 46px; width: auto; }
}
