/* Shared header/footer shell styles for pages that include includes/_header.php */
:root {
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", "Noto Sans Devanagari", sans-serif;
  --bg: #f6efe1;
  --surface: #fffdf8;
  --ink: #12213b;
  --ink-soft: #5c6a85;
  --line: #dfd4be;
  --accent: #b58a3a;
  --navy: #102247;
  --shadow-soft: 0 10px 24px rgba(14, 23, 38, 0.1);
}

html[data-theme="dark"] {
  --bg: #0a1021;
  --surface: #141f38;
  --ink: #f3ede0;
  --ink-soft: #b9c4de;
  --line: #2f3f63;
  --accent: #c7a25c;
  --navy: #050a17;
}

.announcement {
  background: color-mix(in srgb, var(--bg) 94%, #fff);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 0.38rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.87rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 94%, #fff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header .nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  width: min(100% - 2rem, 1220px);
  margin-inline: auto;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-header .brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.site-header .brand-text {
  line-height: 1.15;
  min-width: 0;
}

.site-header .brand-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.site-header .brand-sub {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.9rem;
  min-width: 0;
}

.site-header .nav-links a {
  color: inherit;
  text-decoration: none;
}

.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] {
  color: var(--ink);
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-header .segmented {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--surface);
}

.site-header .lang-btn,
.site-header .theme-btn {
  border-radius: 999px;
  padding: 0.3rem 0.66rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header .lang-btn.is-active,
.site-header .theme-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.site-header .auth {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-header .btn {
  border-radius: 12px;
  padding: 0.56rem 0.86rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.site-header .btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.site-header .btn-primary {
  background: var(--navy);
  color: #fff;
}

.site-header .user-menu {
  position: relative;
  display: none;
}

.site-header .user-menu.is-visible {
  display: block;
}

.site-header .user-trigger {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.76rem;
  background: var(--surface);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
}

.site-header .user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 165px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(18, 33, 59, 0.09);
  display: none;
  z-index: 1002;
}

.site-header .user-dropdown.open {
  display: block;
}

.site-header .user-dropdown a,
.site-header .user-dropdown button {
  width: 100%;
  text-align: left;
  padding: 0.68rem 0.82rem;
  font-size: 0.84rem;
  color: var(--ink);
  display: block;
  background: none;
  border: 0;
  font-family: inherit;
}

.site-header .user-dropdown a:hover,
.site-header .user-dropdown button:hover {
  background: color-mix(in srgb, var(--bg) 94%, #fff);
  text-decoration: none;
}

.site-header .mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header .mobile-toggle i {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.site-header .mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-header .mobile-panel.open {
  display: block;
}

.site-header .mobile-links {
  display: grid;
  gap: 0.68rem;
  padding: 0.95rem 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.site-header .mobile-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header .mobile-actions {
  display: grid;
  gap: 0.7rem;
  padding-bottom: 1rem;
}

.site-header .mobile-actions .btn {
  width: 100%;
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: center;
  display: block;
  text-decoration: none;
}

.site-header .mobile-actions .btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.site-header .mobile-actions .btn-primary {
  background: var(--navy);
  color: #fff;
}

html[lang="hi"] .site-header .brand-name,
html[lang="hi"] .site-header .brand-sub,
html[lang="hi"] .site-header .nav-links,
html[lang="hi"] .site-header .mobile-links,
html[lang="hi"] .site-header .btn,
html[lang="hi"] .site-header .lang-btn,
html[lang="hi"] .site-header .theme-btn {
  font-family: var(--font-body);
  letter-spacing: normal;
}

@media (max-width: 1140px) {
  .site-header .nav-links,
  .site-header .nav-actions {
    display: none;
  }

  .site-header .mobile-toggle {
    display: inline-flex;
  }
}

.site-footer {
  background: var(--navy);
  color: #f4ecdd;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.site-footer .container {
  width: min(100% - 2rem, 1220px);
  margin-inline: auto;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 1.1rem;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-footer .brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.site-footer .brand-text {
  min-width: 0;
}

.site-footer .brand-name,
.site-footer .brand-sub {
  color: #f4ecdd;
}

.site-footer .footer-brand p {
  margin-top: 0.72rem;
  color: #d9cfbb;
  font-size: 0.9rem;
  max-width: 30ch;
}

.site-footer .social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.site-footer .social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #efe4cf;
  text-decoration: none;
}

.site-footer .footer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  color: #e8dcc4;
}

.site-footer .footer-links {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #d9cfbb;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-bottom {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: #d5c9b0;
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  .site-header .nav-links,
  .site-header .nav-actions {
    display: none;
  }

  .site-header .mobile-toggle {
    display: inline-flex;
  }

  .site-header .brand-name {
    font-size: 1rem;
  }

  .site-header .brand-sub {
    font-size: 0.64rem;
  }
}

@media (max-width: 1160px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
  }
}
