/* =============================================
   Goalstox / PMS & AIF India — Base CSS (Header + Footer only)
   Used in base.html — minimal, responsive, reusable
   ============================================= */

/* ===== Design Tokens ===== */
:root {
  --bg: #f8f7f4;
  --ink: #101010;
  --ink-2: #333;
  --muted: #6f6f6f;
  --edge: #e8e6e1;
  --brand: #111111;
  --pill: #f1efe9;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.05);

  --logo-dark-yellow: #fdaa38;
  --logo-light-yellow: #ffd051;
}

/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "DM Sans",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px;
}
.muted {
  color: var(--muted);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000; /* increase from 50 to 2000 */
  z-index: 9601; /* increase from 50 to 2000 */
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px); /* Add this line */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
  max-width: 1120px !important;
}
.brand {
  display: flex;
  column-gap: 2px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0;
}

.brand .logo-taglines p {
  margin: 0;
  color: #4b4d55;
  font-size: 12px;
  line-height: 1.5;
}

.brand .logo-wrapper {
  display: flex;
  column-gap: 2px;
  align-items: center;
}

.brand-mark {
  height: 64px; /* try 40–48px; adjust to taste */
  width: auto; /* keep aspect ratio */
  object-fit: contain; /* no stretching */
  display: block;
  filter: drop-shadow(
    0 1px 2px rgba(0, 0, 0, 0.35)
  ); /* helps white logo on light header */
}
.brand-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
}
.brand .subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  line-height: 1.5;
}

/* Primary navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-list a:hover {
  background: #f0eee8;
}
.nav-cta {
  display: flex;
  gap: 10px;
}

/* Toggle for mobile */
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 2200;
}
.nav-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  margin: 5px 0;
  border-radius: 2px;
}

.nav .btn.btn-ghost {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* ===== Buttons (for header/footer CTAs) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.1;
}
.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover {
  background: #111;
}
.btn-ghost {
  background: transparent;
  border-color: var(--edge);
  color: #111;
}
.btn-ghost:hover {
  background: #f8f7f3;
}

/* ===== Footer ===== */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--edge);
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.brand-foot {
  margin-bottom: 8px;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-links a {
  text-decoration: none;
  color: #333;
}
.foot-links a:hover {
  text-decoration: underline;
}
.foot-cta {
  margin-top: 8px;
}

.nav a.btn.btn-ghost {
  border: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--edge);
    padding: 16px 20px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 2100;  /* add this line */
  }
  .nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    gap: 8px;
  }
  .nav-cta {
    margin-top: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 14px;
  }
  .brand-text {
    font-size: 0.95rem;
  }
}
.page-content {
  min-height: calc(100vh - 72px - 200px);
  display: block;
  padding: 40px 0;
}
/* Center login/register pages */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 72px - 200px); /* header + footer height */
  padding: 40px 20px;
}
/* Dashboard pages must be full width */
.dashboard-page {
  padding: 0;
}
