/* ===================================================================
   Elevana site chrome (header + footer) for PBS pages
   Self-contained — no Tailwind dependency
   =================================================================== */

/* Reset for inserted chrome */
header[role="banner"] *, footer[role="contentinfo"] * { box-sizing: border-box; }

/* HEADER --------------------------------------------------------- */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 0, 224, 0.10);
  height: 85px;
  display: flex;
  align-items: center;
}
header[role="banner"] > div {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header[role="banner"] a[aria-label="Elevana — home"] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
header[role="banner"] a[aria-label="Elevana — home"] img {
  height: 65px;
  width: auto;
  transition: all 0.3s ease;
}
@media (min-width: 640px) {
  header[role="banner"] a[aria-label="Elevana — home"] img { height: 85px; }
}
header[role="banner"] nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  header[role="banner"] nav { display: flex; }
}
header[role="banner"] nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  font-family: "Inter", "Spectral", -apple-system, sans-serif;
}
header[role="banner"] nav a:hover {
  color: #4a00e0;
  background: rgba(74, 0, 224, 0.05);
}
header[role="banner"] a[href*="contact"] {
  background: #4a00e0;
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
header[role="banner"] a[href*="contact"]:hover { background: #3a00b0; }
header[role="banner"] button[aria-label*="menu" i] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: #1f2937;
  cursor: pointer;
  border-radius: 6px;
}
@media (min-width: 1024px) {
  header[role="banner"] button[aria-label*="menu" i] { display: none; }
}
header[role="banner"] button[aria-label*="menu" i]:hover { background: rgba(74, 0, 224, 0.05); }

/* FOOTER --------------------------------------------------------- */
/* Structure (from Tailwind class names):
   footer
     > div (max-w-1280)
         > div.flex-flex-col-lg:flex-row [pb-10 border-b]   ← brand + links wrapper
             > div.lg:w-1/3                                  ← brand column (logo, blurb, social)
             > div.flex-1.grid.grid-cols-2.md:grid-cols-4    ← link columns (4 columns)
                 > div × 4 (PRO Programmes, Specialized, Tools, Company)
         > div.pt-6.flex                                     ← bottom row (copyright + legal)
*/
footer[role="contentinfo"] {
  background: #0d1117;
  color: #c9c3b4;
  border-top: 3px solid #d4ba83;
  margin-top: 64px;
  font-family: "Inter", "Spectral", -apple-system, sans-serif;
}
footer[role="contentinfo"] > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}
@media (min-width: 640px) {
  footer[role="contentinfo"] > div { padding: 64px 48px; }
}

/* Brand + links wrapper (first div under wrapper) */
footer[role="contentinfo"] > div > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (min-width: 1024px) {
  footer[role="contentinfo"] > div > div:first-child {
    flex-direction: row;
    gap: 48px;
  }
}

/* Brand column */
footer[role="contentinfo"] [class*="lg:w-1/3"],
footer[role="contentinfo"] > div > div:first-child > div:first-child {
  flex: 0 0 auto;
}
@media (min-width: 1024px) {
  footer[role="contentinfo"] [class*="lg:w-1/3"],
  footer[role="contentinfo"] > div > div:first-child > div:first-child {
    width: 33%;
  }
}
footer[role="contentinfo"] img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}
footer[role="contentinfo"] [class*="uppercase"] {
  margin: 16px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d4ba83;
  font-weight: 600;
}
footer[role="contentinfo"] [class*="leading-relaxed"] {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(201, 195, 180, 0.9);
  line-height: 1.6;
  max-width: 28rem;
}
/* Social icons row */
footer[role="contentinfo"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer[role="contentinfo"] [class*="mt-6"][class*="flex"] {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
}
footer[role="contentinfo"] [class*="mt-6"][class*="flex"] li {
  margin: 0;
}
footer[role="contentinfo"] [class*="mt-6"][class*="flex"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #c9c3b4;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
footer[role="contentinfo"] [class*="mt-6"][class*="flex"] a:hover {
  background: #d4ba83;
  color: #0d1117;
}
footer[role="contentinfo"] [class*="mt-6"][class*="flex"] svg { width: 16px; height: 16px; }

/* Link columns container — targets the .flex-1.grid container */
footer[role="contentinfo"] [class*="grid-cols"] {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  footer[role="contentinfo"] [class*="grid-cols"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Each column heading and links */
footer[role="contentinfo"] [class*="grid-cols"] > div {
  min-width: 0;
}
footer[role="contentinfo"] [class*="grid-cols"] h3,
footer[role="contentinfo"] [class*="grid-cols"] [class*="font-semibold"]:not([class*="uppercase"]) {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
footer[role="contentinfo"] [class*="grid-cols"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer[role="contentinfo"] [class*="grid-cols"] ul li {
  margin: 8px 0;
  font-size: 13px;
}
footer[role="contentinfo"] [class*="grid-cols"] ul li a {
  color: rgba(201, 195, 180, 0.85);
  text-decoration: none;
  transition: color 0.15s;
}
footer[role="contentinfo"] [class*="grid-cols"] ul li a:hover {
  color: #d4ba83;
}

/* Bottom row (copyright + legal links) */
footer[role="contentinfo"] > div > div:last-child:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
}
@media (min-width: 768px) {
  footer[role="contentinfo"] > div > div:last-child:not(:first-child) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
footer[role="contentinfo"] > div > div:last-child:not(:first-child) p {
  color: rgba(201, 195, 180, 0.7);
  margin: 0;
}
footer[role="contentinfo"] > div > div:last-child:not(:first-child) ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
footer[role="contentinfo"] > div > div:last-child:not(:first-child) ul li {
  margin: 0;
}
footer[role="contentinfo"] > div > div:last-child:not(:first-child) ul a {
  color: rgba(201, 195, 180, 0.8);
  text-decoration: none;
  font-size: 12px;
}
footer[role="contentinfo"] > div > div:last-child:not(:first-child) ul a:hover {
  color: #d4ba83;
}

/* INTEGRATION with PBS palette ------------------------------------ */
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
body > main, body > .shell, body > .book-shell { flex: 1 1 auto; }
body > footer[role="contentinfo"] { margin-top: auto; }
.shell, .book-shell {
  font-family: "Spectral", Georgia, serif;
  line-height: 1.6;
  color: var(--ink, #3b2c14);
}
[lang="te"] { font-family: "Noto Serif Telugu", serif; }
/* Hide our internal topnav since we now have the site header */
body > .topnav, body main > .topnav, .shell > .topnav { display: none; }
/* Skip-link should clear sticky header */
.skip:focus { top: 95px; }
/* Floating digital toolbox - slide below the sticky header */
.digital-toolbox { top: 110px !important; }

/* Fix: footer link columns are <nav>, not <div> */
footer[role="contentinfo"] [class*="grid-cols"] > nav {
  min-width: 0;
}
footer[role="contentinfo"] nav h3 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  font-family: "Inter", "Spectral", -apple-system, sans-serif;
}
footer[role="contentinfo"] nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer[role="contentinfo"] nav ul li {
  margin: 8px 0;
  font-size: 13px;
}
footer[role="contentinfo"] nav ul li a {
  color: rgba(201, 195, 180, 0.85);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.15s;
}
footer[role="contentinfo"] nav ul li a:hover {
  color: #d4ba83;
}
