/* ============================================
   GANESH SHIRSAT ACADEMY — Design System & Shared Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Colors - extracted from logo */
  --navy: #1a3a5c;
  --navy-dark: #0f2740;
  --navy-light: #2a5580;
  --orange: #e8722a;
  --orange-hover: #d4611e;
  --orange-light: #fdf0e8;
  --green: #3daa35;
  --green-light: #e8f5e7;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e5ea;
  --gray-300: #c8cdd5;
  --gray-400: #9ba3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,58,92,0.08);
  --shadow-md: 0 4px 12px rgba(26,58,92,0.1);
  --shadow-lg: 0 8px 30px rgba(26,58,92,0.12);
  --shadow-xl: 0 16px 50px rgba(26,58,92,0.15);
  --shadow-card: 0 2px 8px rgba(26,58,92,0.06), 0 0 0 1px rgba(26,58,92,0.04);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Utility Classes --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-in { animation: fadeInUp 0.6s ease-out both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* --- Header / Navbar --- */
.hjc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}
.hjc-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.hjc-logo { display: flex; align-items: center; gap: var(--space-sm); }
.hjc-logo img { height: 48px; width: auto; }
.hjc-nav { display: flex; align-items: center; gap: var(--space-xl); }
.hjc-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-600);
  transition: color 0.2s;
  position: relative;
}
.hjc-nav a:hover, .hjc-nav a.active { color: var(--navy); }
.hjc-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.hjc-nav-actions { display: flex; align-items: center; gap: var(--space-md); }

/* Cart icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.cart-icon:hover { background: var(--gray-100); }
.cart-icon svg { color: var(--gray-600); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu */
.mobile-menu-btn { display: none; background: none; border: none; padding: 8px; color: var(--gray-700); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 2px 8px rgba(232,114,42,0.3); }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 4px 16px rgba(232,114,42,0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--navy); color: var(--white); box-shadow: 0 2px 8px rgba(26,58,92,0.2); }
.btn-secondary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-ghost { background: transparent; color: var(--gray-600); padding: 8px 16px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #349e2d; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Course Card */
.course-card { display: flex; flex-direction: column; }
.course-card__image { position: relative; aspect-ratio: 16/10; background: var(--gray-100); overflow: hidden; }
.course-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-card__image img { transform: scale(1.05); }
.course-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-card__badge--green { background: var(--green); }
.course-card__body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.course-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 8px;
}
.course-card__title { font-family: var(--font-display); font-size: 18px; line-height: 1.3; color: var(--navy); margin-bottom: 8px; }
.course-card__meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.course-card__meta span { display: flex; align-items: center; gap: 4px; }
.course-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.course-card__price { display: flex; align-items: baseline; gap: 8px; }
.course-card__price-current { font-size: 22px; font-weight: 800; color: var(--navy); }
.course-card__price-original { font-size: 14px; color: var(--gray-400); text-decoration: line-through; }
.course-card__discount { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-light); padding: 2px 8px; border-radius: var(--radius-full); }

/* --- Section Styles --- */
.section { padding: var(--space-4xl) 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .section__subtitle { color: rgba(255,255,255,0.7); }
.section__header { text-align: center; margin-bottom: var(--space-3xl); }
.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: var(--space-md);
}
.section__title { font-family: var(--font-display); font-size: 40px; line-height: 1.2; color: var(--navy); margin-bottom: var(--space-md); }
.section--navy .section__title { color: var(--white); }
.section__subtitle { font-size: 18px; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* --- Tags / Badges --- */
.tag { display: inline-flex; align-items: center; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: var(--radius-full); gap: 4px; }
.tag--orange { background: var(--orange-light); color: var(--orange); }
.tag--green { background: var(--green-light); color: var(--green); }
.tag--navy { background: rgba(26,58,92,0.08); color: var(--navy); }

/* --- Footer --- */
.hjc-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: var(--space-4xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: var(--space-md); color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: var(--orange); color: white; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--orange); }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-input::placeholder { color: var(--gray-400); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-400); padding: var(--space-lg) 0; }
.breadcrumb a { color: var(--gray-500); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-700); font-weight: 500; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .section__title { font-size: 32px; }
}

@media (max-width: 768px) {
  .hjc-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-3xl) 0; }
  .section__title { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .container { padding: 0 var(--space-md); }
}

@media (max-width: 480px) {
  :root { --header-height: 60px; }
  .hjc-logo img { height: 38px; }
  .section__title { font-size: 24px; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
