/* Unified site header & footer */

:root {
  --site-chrome-bg: rgba(255, 255, 255, 0.98);
  --site-chrome-border: rgba(197, 198, 205, 0.55);
  --site-chrome-ink: #041020;
  --site-chrome-muted: #44474c;
  --site-chrome-accent: #0f6a60;
  --site-chrome-footer-bg: #041020;
  --site-chrome-footer-muted: #808ca1;
  --site-header-offset: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
}

.site-header__bar {
  background: var(--site-chrome-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--site-chrome-border);
  box-shadow: 0 4px 24px rgba(4, 16, 32, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 0.65rem 2rem;
  }
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--site-chrome-ink);
  min-width: 0;
  flex: 1;
}

.site-header__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid rgba(15, 106, 96, 0.35);
  box-shadow: 0 2px 8px rgba(4, 16, 32, 0.1);
}

.site-header__brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.site-header__brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-telugu .site-header__brand-name {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
  font-size: 0.9375rem;
}

.site-header__brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--site-chrome-muted);
  letter-spacing: 0.02em;
}

body.is-telugu .site-header__brand-sub {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-chrome-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
}

.site-header__link:hover {
  color: var(--site-chrome-ink);
  background: rgba(15, 106, 96, 0.06);
}

.site-header__link.is-active {
  color: var(--site-chrome-accent);
  background: rgba(15, 106, 96, 0.1);
}

body.is-telugu .site-header__link {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
  font-size: 0.875rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.site-header__lang {
  display: inline-flex;
  padding: 0.125rem;
  border-radius: 9999px;
  border: 1px solid var(--site-chrome-border);
  background: #f4f6fb;
}

.site-header__lang button {
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--site-chrome-muted);
}

.site-header__lang button[data-lang="te"] {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
}

@media (min-width: 400px) {
  .site-header__lang button {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
}

.site-header__lang button.is-active {
  background: #fff;
  color: var(--site-chrome-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: none;
  border-radius: 9999px;
  background: rgba(15, 106, 96, 0.08);
  color: var(--site-chrome-ink);
  cursor: pointer;
}

@media (min-width: 900px) {
  .site-header__menu {
    display: none;
  }
}

.site-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(4, 16, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-mobile-nav-panel {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  position: fixed;
  z-index: 69;
  left: 1rem;
  right: 1rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  top: 4.25rem;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  border-radius: 1rem;
  background: var(--site-chrome-bg);
  border: 1px solid var(--site-chrome-border);
  box-shadow: 0 16px 48px rgba(4, 16, 32, 0.14);
}

@media (min-width: 900px) {
  .site-mobile-nav-panel,
  .site-nav-scrim {
    display: none !important;
  }
}

.site-mobile-nav-panel.is-open {
  display: flex;
}

.site-mobile-nav-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--site-chrome-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

body.is-telugu .site-mobile-nav-panel a {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
}

.site-mobile-nav-panel a:hover {
  background: rgba(15, 106, 96, 0.08);
  color: var(--site-chrome-ink);
}

.site-mobile-nav-panel a.is-active {
  color: var(--site-chrome-accent);
  font-weight: 700;
  background: rgba(15, 106, 96, 0.1);
}

body.site-nav-open {
  overflow: hidden;
}

body.is-telugu .lang-en {
  display: none !important;
}

body:not(.is-telugu) .lang-te,
body:not(.is-telugu) .lang-te-block {
  display: none !important;
}

body.is-telugu .lang-te {
  display: inline;
}

body.is-telugu .lang-te-block {
  display: block;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.site-footer__social a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a0eee2;
  text-decoration: none;
}

.site-footer__social a:hover {
  color: #fff;
}

.site-footer {
  background: var(--site-chrome-footer-bg);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.is-telugu .site-footer__title,
body.is-telugu .site-footer__tagline,
body.is-telugu .site-footer__bottom p {
  font-family: "Noto Sans Telugu", system-ui, sans-serif;
}

.site-footer__tagline {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--site-chrome-footer-muted);
  max-width: 28rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--site-chrome-footer-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--site-chrome-footer-muted);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
