/* Shama Training Academy - Layout & Header / Footer */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 900;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 253, 249, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

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

.nav-link.active {
  color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn-trigger {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-bg-warm-alt);
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-btn-trigger:hover {
  background: var(--color-gold);
  color: var(--color-espresso-dark);
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--color-espresso);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(31, 19, 14, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 310px;
  height: 100%;
  background: var(--color-bg-pure);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-espresso);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-drawer.active .drawer-content {
  transform: translateX(0);
}

/* Footer */
.main-footer {
  background: var(--color-espresso-dark);
  color: var(--color-bg-warm);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 4px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #B5A89E;
  margin-top: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--color-gold-light);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #D6CCC2;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold-bright);
  padding-inline-start: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 226, 216, 0.12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #9C8C80;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
