/* ============================================
   M. SAMUELS — SCHOOLWEAR LANDING PAGE STYLES
   Zeco-pattern: logo stack, mega-menu overlay,
   tabbed tinted panels, icon-grid categories.
   ============================================ */

body.ms-body { background: #000000; }

/* ---------- MS Header ---------- */
.ms-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 40px;
}

.ms-logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
/* Placeholder wordmark — swap this <a> for <img src="assets/images/msamuels/logo.png">
   once the real M. Samuels logo file is uploaded. No other markup needs to change. */
.ms-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}
/* Real logo image */
.ms-logo-img { display: inline-block; }
.ms-logo-img img { height: 52px; width: auto; display: block; }
.ms-est {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.ms-tagline {
  font-size: 0.82rem;
  color: #FFFFFF;
  margin-top: 6px;
}

.ms-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.ms-action-btn {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ms-action-btn svg { width: 20px; height: 20px; }
.ms-menu-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
}
.ms-menu-btn svg { width: 20px; height: 20px; }

/* ---------- MS Hero ---------- */
.ms-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ms-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.ms-hero-bg.active { opacity: 0.55; }
.ms-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}
.ms-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #FFFFFF;
  padding: 0 24px;
}
.ms-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 28px;
}
.ms-hero-ctas { display: flex; gap: 14px; justify-content: center; }
.btn-ms-outline {
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  background: none;
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-ms-outline:hover { background: #FFFFFF; color: #000000; }

/* ---------- Mega menu overlay ---------- */
.ms-mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.ms-mega-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.ms-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 90vw);
  background: #F5F0E6;
  overflow-y: auto;
  transform: translateX(24px);
  transition: transform 0.32s ease;
}
.ms-mega-overlay.open .ms-menu-panel { transform: translateX(0); }

.ms-mega-close {
  position: sticky;
  top: 18px;
  float: right;
  margin-right: 22px;
  z-index: 410;
  background: none; border: none;
  color: #1A1A1A;
}
.ms-mega-close svg { width: 22px; height: 22px; }

.ms-mega-inner { padding: 54px 28px 40px; clear: both; }

.ms-mega-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 0;
}
.ms-tab {
  background: #FFFFFF;
  border: none;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 22px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6B6B6B;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.ms-tab:last-child { border-right: none; }
.ms-tab svg { width: 30px; height: 30px; stroke: currentColor; }
.ms-tab.active { color: #1A1A1A; }
.ms-tab[data-tab="boys"].active   { background: #A9C1C6; }
.ms-tab[data-tab="girls"].active  { background: #EFC3D6; }
.ms-tab[data-tab="accessories"].active { background: #DCC9A3; }
.ms-tab[data-tab="bespoke"].active { background: #B7CDB0; }

.ms-mega-panel { display: none; padding: 40px 0; }
.ms-mega-panel.active { display: block; }
.ms-mega-panel[data-panel="boys"] { background: #A9C1C6; }
.ms-mega-panel[data-panel="girls"] { background: #EFC3D6; }
.ms-mega-panel[data-panel="accessories"] { background: #DCC9A3; }
.ms-mega-panel[data-panel="bespoke"] { background: #B7CDB0; }
.ms-mega-panel { margin: 0 -40px; padding: 40px; }

.ms-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 18px;
}
.ms-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  color: #1A1A1A;
}
.ms-cat-item svg { width: 38px; height: 38px; stroke: #1A1A1A; fill: none; stroke-width: 1.3; }
.ms-cat-item span { font-size: 0.78rem; font-weight: 600; }
.ms-cat-item:hover svg { transform: translateY(-3px); }
.ms-cat-item svg { transition: transform 0.2s ease; }

.ms-mega-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 36px 0 10px;
  max-width: 700px;
}
.ms-mega-footer a {
  font-size: 0.85rem;
  color: #1A1A1A;
  padding: 6px 0;
}
.ms-mega-footer a:hover { text-decoration: underline; }

.ms-mega-auth { display: flex; gap: 14px; margin-top: 20px; }
.ms-mega-auth button, .ms-mega-auth a {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.ms-mega-auth .register { background: #1A1A1A; color: #FFFFFF; border: 1px solid #1A1A1A; }
.ms-mega-auth .login { background: none; color: #1A1A1A; border: 1px solid #1A1A1A; }

/* ---------- uniform-section.html: tinted section band + grid ---------- */
.us-tint-band {
  padding: 56px 0 40px;
}
.us-tint-band h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: #1A1A1A;
}
.us-tint-boys        { background: #A9C1C6; }
.us-tint-girls       { background: #EFC3D6; }
.us-tint-accessories { background: #DCC9A3; }
.us-tint-bespoke     { background: #B7CDB0; }

.us-grid-section { padding: 50px 0 90px; }
.us-grid-section .ms-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 42px 24px;
}
.us-grid-section .ms-cat-item svg { width: 48px; height: 48px; }
.us-grid-section .ms-cat-item span { font-size: 0.85rem; }

/* Mobile: this grid must wrap, not overflow off-screen */
@media (max-width: 860px) {
  .us-grid-section .ms-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 12px; }
  .us-grid-section .ms-cat-item svg { width: 40px; height: 40px; }
  .us-grid-section .ms-cat-item span { font-size: 0.78rem; }
  .us-tint-band { padding: 40px 0 28px; }
}
@media (max-width: 480px) {
  .us-grid-section .ms-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
}

/* M. Samuels dashboard: floating button (used on uniform-section.html),
   separate from the header to avoid a duplicate hamburger on mobile. */
.ms-menu-fab {
  position: fixed;
  bottom: 26px; left: 26px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1A1A1A;
  color: #F4D900;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.ms-menu-fab svg { width: 24px; height: 24px; }
.ms-menu-fab:hover { background: #000000; }
.ms-menu-fab {
  animation: msFabPulse 3s ease-in-out infinite;
}
@keyframes msFabPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.28), 0 0 0 0 rgba(244,217,0,0.45); }
  50% { box-shadow: 0 10px 24px rgba(0,0,0,0.28), 0 0 0 12px rgba(244,217,0,0); }
}

/* M. Samuels logo when placed inside the standard site header (uniform-section.html) */
.ms-section-logo { display: inline-flex; align-items: center; }
.ms-section-logo img { height: 44px; width: auto; display: block; }
