/* ==========================================================================
   Mindkoo.com — Separate Header & Footer Stylesheet
   File: elementor-header-footer.css
   Scope: Strictly scoped to #mindkoo-header and #mindkoo-footer
   ========================================================================== */

#mindkoo-header,
#mindkoo-footer {
  --mk-primary: #1769FF;
  --mk-primary-hover: #1254CC;
  --mk-primary-soft: rgba(23, 105, 255, 0.1);
  --mk-text-dark: #111827;
  --mk-text-secondary: #64748B;
  --mk-bg-surface: #FFFFFF;
  --mk-bg-subtle: #F6F8FC;
  --mk-border: #E5EAF2;
  --mk-radius-sm: 8px;
  --mk-radius-md: 10px;
  --mk-shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --mk-shadow-md: 0 12px 28px -6px rgba(17, 24, 39, 0.12);
  --mk-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mk-container-max: 1240px;

  font-family: var(--mk-font-sans);
  color: var(--mk-text-dark);
  background-color: var(--mk-bg-surface);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  width: 100%;
}

#mindkoo-header[data-mk-theme="dark"],
#mindkoo-footer[data-mk-theme="dark"] {
  --mk-text-dark: #F8FAFC;
  --mk-text-secondary: #94A3B8;
  --mk-bg-surface: #0B1323;
  --mk-bg-subtle: #111C30;
  --mk-border: #1E293B;
  --mk-primary-soft: rgba(56, 139, 255, 0.16);
}

#mindkoo-header *,
#mindkoo-header *::before,
#mindkoo-header *::after,
#mindkoo-footer *,
#mindkoo-footer *::before,
#mindkoo-footer *::after {
  box-sizing: border-box;
}

#mindkoo-header [hidden],
#mindkoo-footer [hidden] {
  display: none !important;
}

#mindkoo-header a,
#mindkoo-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#mindkoo-header .mk-container,
#mindkoo-footer .mk-container {
  width: 100%;
  max-width: var(--mk-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

#mindkoo-header .mk-sr-only,
#mindkoo-footer .mk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   SECTION A: SEPARATE HEADER (#mindkoo-header)
   ========================================================================== */
#mindkoo-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--mk-border);
  box-shadow: var(--mk-shadow-sm);
}

#mindkoo-header .mk-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

/* Brand Logo & Tagline */
#mindkoo-header .mk-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

#mindkoo-header .mk-brand-wordmark {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--mk-text-dark);
}

#mindkoo-header .mk-brand-accent {
  color: var(--mk-primary);
}

#mindkoo-header .mk-brand-tagline {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mk-text-secondary);
  white-space: nowrap;
}

/* Center Desktop Navigation */
#mindkoo-header .mk-nav {
  display: flex;
  align-items: center;
}

#mindkoo-header .mk-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#mindkoo-header .mk-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--mk-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mk-text-dark);
  white-space: nowrap;
}

#mindkoo-header .mk-nav-link:hover,
#mindkoo-header .mk-nav-link[aria-current="page"] {
  color: var(--mk-primary);
  background-color: var(--mk-primary-soft);
}

/* Right Action Buttons (Search, Dark Mode Toggle, Mobile Hamburger) */
#mindkoo-header .mk-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#mindkoo-header .mk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--mk-radius-sm);
  border: 1px solid var(--mk-border);
  background-color: var(--mk-bg-subtle);
  color: var(--mk-text-dark);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#mindkoo-header .mk-icon-btn:hover,
#mindkoo-header .mk-icon-btn[aria-expanded="true"] {
  border-color: var(--mk-primary);
  color: var(--mk-primary);
  background-color: var(--mk-primary-soft);
}

#mindkoo-header .mk-icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#mindkoo-header .mk-theme-icon-moon {
  display: block;
}

#mindkoo-header .mk-theme-icon-sun {
  display: none;
}

#mindkoo-header[data-mk-theme="dark"] .mk-theme-icon-moon {
  display: none;
}

#mindkoo-header[data-mk-theme="dark"] .mk-theme-icon-sun {
  display: block;
}

#mindkoo-header .mk-mobile-toggle {
  display: none;
}

/* Collapsible Search Drawer */
#mindkoo-header .mk-search-panel {
  border-top: 1px solid var(--mk-border);
  background-color: var(--mk-bg-subtle);
  padding: 14px 0;
}

#mindkoo-header .mk-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

#mindkoo-header .mk-search-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--mk-radius-sm);
  border: 1px solid var(--mk-border);
  background-color: var(--mk-bg-surface);
  color: var(--mk-text-dark);
  font-size: 0.95rem;
}

#mindkoo-header .mk-search-input:focus {
  outline: 2px solid var(--mk-primary);
  outline-offset: 1px;
  border-color: var(--mk-primary);
}

#mindkoo-header .mk-search-submit {
  height: 42px;
  padding: 0 20px;
  border-radius: var(--mk-radius-sm);
  border: none;
  background-color: var(--mk-primary);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

#mindkoo-header .mk-search-submit:hover {
  background-color: var(--mk-primary-hover);
}

/* Mobile Navigation Drawer */
#mindkoo-header .mk-mobile-drawer {
  border-top: 1px solid var(--mk-border);
  background-color: var(--mk-bg-surface);
  padding: 16px 0 20px;
  box-shadow: var(--mk-shadow-md);
}

#mindkoo-header .mk-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#mindkoo-header .mk-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--mk-radius-sm);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--mk-text-dark);
}

#mindkoo-header .mk-mobile-nav-link:hover,
#mindkoo-header .mk-mobile-nav-link[aria-current="page"] {
  background-color: var(--mk-primary-soft);
  color: var(--mk-primary);
}

@media (max-width: 1080px) {
  #mindkoo-header .mk-nav {
    display: none;
  }

  #mindkoo-header .mk-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  #mindkoo-header .mk-brand-tagline {
    font-size: 0.62rem;
  }

  #mindkoo-header .mk-search-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   SECTION J: SEPARATE FOOTER (#mindkoo-footer)
   ========================================================================== */
#mindkoo-footer {
  border-top: 1px solid var(--mk-border);
  background-color: var(--mk-bg-subtle);
  padding: 56px 0 32px;
}

#mindkoo-footer .mk-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--mk-border);
}

#mindkoo-footer .mk-footer-brand {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 14px;
}

#mindkoo-footer .mk-footer-wordmark {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--mk-text-dark);
}

#mindkoo-footer .mk-footer-accent {
  color: var(--mk-primary);
}

#mindkoo-footer .mk-footer-tagline {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mk-text-secondary);
}

#mindkoo-footer .mk-footer-desc {
  margin: 0 0 20px;
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mk-text-secondary);
}

#mindkoo-footer .mk-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#mindkoo-footer .mk-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--mk-radius-sm);
  border: 1px solid var(--mk-border);
  background-color: var(--mk-bg-surface);
  color: var(--mk-text-secondary);
}

#mindkoo-footer .mk-social-link:hover {
  border-color: var(--mk-primary);
  color: var(--mk-primary);
  background-color: var(--mk-primary-soft);
}

#mindkoo-footer .mk-social-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#mindkoo-footer .mk-footer-heading {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mk-text-dark);
}

#mindkoo-footer .mk-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#mindkoo-footer .mk-footer-links a {
  font-size: 0.92rem;
  color: var(--mk-text-secondary);
}

#mindkoo-footer .mk-footer-links a:hover {
  color: var(--mk-primary);
}

#mindkoo-footer .mk-footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--mk-text-secondary);
}

#mindkoo-footer .mk-footer-copy {
  margin: 0;
}

#mindkoo-footer .mk-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--mk-radius-sm);
  border: 1px solid var(--mk-border);
  background-color: var(--mk-bg-surface);
  color: var(--mk-text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

#mindkoo-footer .mk-back-to-top:hover {
  border-color: var(--mk-primary);
  color: var(--mk-primary);
}

@media (max-width: 960px) {
  #mindkoo-footer .mk-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #mindkoo-footer .mk-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #mindkoo-footer .mk-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
