/* ==========================================
   Jalvi Group — Custom CSS
   ========================================== */

:root {
  --gold: #C9A84C;
  --gold-dark: #A8893D;
  --gold-light: #E8C96A;
  --navy: #0D1B2A;
  --black: #0A0A0A;
  --off-black: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #F9F7F3;
  --border-light: #E8E4DC;
  --muted: #6B6B6B;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Base body */
body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: var(--off-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-link {
  color: var(--black);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* ---- GOLD DIVIDER ---- */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.gold-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---- SECTION LABEL ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-dark:hover { background: var(--off-black); transform: translateY(-1px); }

/* ---- BRAND CARDS ---- */
.brand-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.brand-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
  transform: translateY(-4px);
}
.brand-card .brand-logo-area {
  background: var(--off-white);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

/* ---- TEAM CARDS ---- */
.team-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.team-card img {
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
}
.team-card:hover img { border-color: var(--gold); }

/* ---- STATS SECTION ---- */
.stats-section {
  background: var(--navy);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---- BLOG CARDS ---- */
.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
}
.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.blog-card .category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: #9CA3AF;
}
.footer a {
  color: #ffffff;
  transition: color 0.2s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.3);
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover {
  background: var(--gold);
  color: var(--black);
}

/* ---- ADMIN SIDEBAR ---- */
.admin-sidebar {
  background: var(--navy);
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transition: transform 0.3s;
}
.admin-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  border-left: 3px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.admin-sidebar .sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.admin-sidebar .sidebar-item.active {
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: #fff;
}
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: #F4F4F5;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ---- ADMIN CARDS ---- */
.admin-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.admin-table th {
  background: var(--off-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
}
.admin-table tr:hover td { background: #FFFDF7; }

/* ---- FLASH MESSAGES ---- */
.flash-success {
  background: #F0FDF4;
  border: 1px solid var(--gold);
  color: #166534;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-error {
  background: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- FORMS ---- */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--off-black);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ---- ADMIN LOGIN ---- */
.admin-login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* ---- STATUS BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: #F3F4F6; color: #4B5563; }

/* ---- HERO DECORATIVE ---- */
.hero-globe {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0 8px;
}

/* ---- COUNTER ANIMATION ---- */
.counter { font-variant-numeric: tabular-nums; }

/* ---- MOBILE ADMIN ---- */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--navy) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- MEDIA LIBRARY ---- */
.media-item {
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}
.media-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}
.media-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.media-item:hover .overlay { opacity: 1; }

/* ---- STAR RATING ---- */
.stars { color: var(--gold); }

/* ---- PRINT ---- */
@media print {
  .navbar, .footer, .admin-sidebar, .admin-topbar { display: none; }
}
