/* ==============================================
   MINDFUL HEALTH — refined header style
   Matches the thin, elegant logo treatment from links.html
   Append to styles.css, AFTER styles-additions.css
   ============================================== */

/* ── Header wrapper ── */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 1.75rem;
  text-align: center;
  background: #fffdf6;
  position: relative;
}

/* ── Logo: thin, elegant Playfair — matches links.html ── */
.main-header .logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 400;          /* thin weight, not bold */
  letter-spacing: 1px;
  color: #1a1a1a;
  text-decoration: none;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

/* ── Tagline under logo (optional, e.g. on links.html style pages) ── */
.main-header .header-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin: 0 0 0.5rem;
}

/* ── Nav row ── */
.main-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  position: relative;
}

.main-header .main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.main-header .main-nav a:hover {
  color: #1a1a1a;
}

.main-header .main-nav a.active {
  color: #1a1a1a;
  border-bottom-color: rgba(0,0,0,0.2);
}

/* ── Instagram icon — positioned in top-right corner of header ── */
.main-header .social-icon {
  position: absolute;
  top: 3.5rem;
  right: 5rem;
  display: inline-flex;
  align-items: center;
}

.main-header .social-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.main-header .social-icon:hover img {
  opacity: 1;
}

/* ── Language toggle pill ── */
.main-header #lang-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #999;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}

.main-header #lang-toggle:hover {
  border-color: rgba(0,0,0,0.35);
  color: #1a1a1a;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .main-header { padding: 2rem 1rem 1.5rem; }
  .main-header .logo { font-size: 1.75rem; }
  .main-header .main-nav { gap: 1rem; }
  .main-header .main-nav a { font-size: 0.88rem; }
}
