/* Standard Site Styles for Header, Footer, and Base Layout */
:root {
  --bg: #fdf5e6;
  --bg-soft: #fbf3e3;
  --surface: rgba(255, 251, 244, 0.82);
  --surface-strong: #fffaf2;
  --text: #2d241c;
  --muted: #685847;
  --gold: #c8a55a;
  --gold-deep: #9d7c36;
  --green: #214232;
  --green-soft: #2f5a46;
  --brown: #4a3527;
  --shadow: 0 18px 45px rgba(43, 31, 20, 0.12);
  --radius: 22px;
  --max-width: 1380px;
  --header-height: 92px;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-display: "Marcellus", "Source Serif 4", "Noto Serif Devanagari", "Noto Serif Malayalam", Georgia, serif;
  --font-ui-indic: "Source Sans 3", "Nirmala UI", "Segoe UI", "Kohinoor Devanagari", "Kohinoor Telugu", "Kohinoor Kannada", "Latha", "Arial Unicode MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fdf5e6 0%, #f4ebdc 100%);
  color: var(--text);
  line-height: 1.75;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 240, 228, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(45, 36, 28, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(74, 53, 39, 0.08);
}

.site-header.scrolled {
  background: rgba(247, 240, 228, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(45, 36, 28, 0.08);
  border-color: rgba(74, 53, 39, 0.08);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* Logo Styles */
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 9 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
}

.logo-icon {
  width: 2.7rem !important;
  height: 2.7rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg,#fffaf2 0%,#f3d18c 100%) !important;
  border: 1px solid rgba(255,243,210,0.72) !important;
  box-shadow: 0 8px 18px rgba(64,43,19,0.18), inset 0 0 0 1px rgba(255,255,255,0.46) !important;
  padding: 0.22rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-copy {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-mark {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 1.34rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #fff4df !important;
  text-shadow: 0 2px 8px rgba(45,24,8,0.22) !important;
  line-height: 1.05 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-sub {
  display: block !important;
  margin-top: 0.22rem !important;
  font-family: var(--font-display) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #ffd79a !important;
  text-shadow: 0 2px 8px rgba(45,24,8,0.18) !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Nav Styles */
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a,
.nav-group-toggle {
  position: relative;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.35rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui-indic);
  white-space: nowrap;
}

.site-nav a::after,
.nav-group-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-group-toggle:hover::after,
.nav-group-toggle:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-group {
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: -0.9rem;
}

.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-group-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.nav-group:hover .nav-group-toggle svg,
.nav-group:focus-within .nav-group-toggle svg,
.nav-group.open .nav-group-toggle svg {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 50%;
  width: min(94vw, 860px);
  min-width: 280px;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.97);
  border: 1px solid rgba(74, 53, 39, 0.08);
  box-shadow: 0 20px 40px rgba(43, 31, 20, 0.16);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
  z-index: 50;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu,
.nav-group.open .submenu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 1rem;
}

.submenu-block {
  display: grid;
  gap: 0.25rem;
}

.submenu-heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.submenu a {
  padding: 0.45rem 0;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.98rem;
}

.submenu a::after {
  display: none;
}

.header-language-tab {
  display: flex;
  align-items: center;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(200, 165, 90, 0.28);
  box-shadow: 0 10px 20px rgba(43, 31, 20, 0.08);
  color: var(--brown);
  font: 600 0.82rem/1 var(--font-ui-indic);
  white-space: nowrap;
}

.language-switcher-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-soft);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-switcher-links {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.language-switcher-links a {
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher-links a:hover,
.language-switcher-links a:focus-visible {
  background: rgba(200, 165, 90, 0.14);
  color: var(--brown);
  outline: none;
  transform: translateY(-1px);
}

.language-switcher-links a.is-active {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff8ea;
  box-shadow: 0 10px 18px rgba(33, 66, 50, 0.16);
}

.menu-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(255, 251, 244, 0.82);
  border: 1px solid rgba(74, 53, 39, 0.1);
  align-items: center;
  justify-content: center;
  color: var(--brown);
  box-shadow: 0 10px 25px rgba(74, 53, 39, 0.08);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.active span::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* Footer Styles */
.footer {
  background: linear-gradient(180deg, rgba(23, 43, 33, 0.98), rgba(16, 29, 22, 0.98));
  color: #f5ebde;
  padding: 1.25rem 0 0.82rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1rem;
}

.footer h3, .footer h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.footer p, .footer a {
  color: rgba(245, 235, 222, 0.78);
  font-size: 0.96rem;
}

.footer-links, .footer-contact {
  display: grid;
  gap: 0.42rem;
}

.socials {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.72rem;
}

.socials a {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  margin-top: 0.95rem;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  color: rgba(245, 235, 222, 0.7);
}

/* Mobile Specific */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: fixed;
    inset: calc(var(--header-height) + 20px) 1rem auto 1rem;
    background: rgba(250, 243, 232, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(74, 53, 39, 0.08);
    box-shadow: 0 20px 40px rgba(43, 31, 20, 0.16);
    border-radius: 24px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-wrap.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.4rem;
  }

  .site-nav a,
  .nav-group {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .site-nav a,
  .nav-group-toggle {
    width: 100%;
    padding: 0.6rem 0;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0.6rem 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .nav-group.open .submenu {
    display: grid;
  }

  .submenu a {
    padding: 0.45rem 0;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher-links {
    justify-content: flex-end;
  }
}
