/* =============================================================
   AICSS Project 1 (IPWI) — Shared Website Shell  ·  ZOOX THEME
   -------------------------------------------------------------
   ONE global navbar + ONE global footer for every user-facing page.
   Re-themed to the Zoox visual language (see ZOOX_DESIGN_ANALYSIS.md
   and DESIGN(2).md): sage canvas, carbon text, hairline borders,
   a single vivid-teal primary CTA, a carbon footer anchor, and no
   drop shadows. Markup is injected by js/site-shell.js (unchanged).

   Requires css/design-tokens.css to be loaded first.
   ============================================================= */

:root {
  --shell-navbar-h: 72px;
  --shell-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hide any legacy navigation the moment CSS parses. */
#aicss-site-nav,
#aicss-site-nav-style,
#aicss-integration-bar {
  display: none !important;
}

body.has-site-shell {
  padding-top: var(--shell-navbar-h) !important;
}

#site-navbar,
#site-navbar *,
#site-mobile-nav,
#site-mobile-nav * {
  box-sizing: border-box;
}

/* ── Navbar — sage canvas, carbon ink, no bottom border ──────── */
#site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  width: 100%;
  min-height: var(--shell-navbar-h);
  margin: 0;
  padding: 12px clamp(14px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--color-sage-canvas);
  color: var(--color-carbon);
  font-family: var(--font-gt-standard-s);
  transition: background 0.38s var(--shell-ease), padding 0.38s var(--shell-ease), box-shadow 0.38s var(--shell-ease), border-color 0.38s var(--shell-ease);
  border-bottom: 1px solid transparent;
}

/* On scroll: frosted white wash + hairline (keeps the gallery calm). */
#site-navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-hairline);
  padding: 9px clamp(16px, 3vw, 32px);
}

#site-navbar a { text-decoration: none; }

/* Brand
   Name-fit adjustment (2026-11-08): the full official name
   "All India Christian Seva Sangam" must never be clipped. The brand
   no longer has a capped max-width (the old clamp() cap is what cut the
   name to "All India Christian Seva Sa…" between 769px and 1139px).
   Instead the brand keeps its natural width (flex: 0 0 auto) and the
   name uses a slightly smaller fluid font size; the centre links are
   the flexible part of the row. */
#site-navbar .nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
#site-navbar .nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  border: 1px solid var(--color-hairline);
  background: var(--color-pure-white);
  color: var(--color-carbon);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: transform 0.38s var(--shell-ease);
}
#site-navbar .nav-brand:hover .nav-logo { transform: scale(1.04); }
#site-navbar .nav-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#site-navbar .nav-brand-name {
  color: var(--color-carbon);
  font-size: clamp(12.5px, 1.08vw, 15.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
#site-navbar .nav-brand-tagline {
  /* width:0 + min-width:100% → the tagline never widens the brand; it
     follows the width of the full name above it. */
  width: 0; min-width: 100%;
  color: var(--color-mist);
  font-size: clamp(8px, 0.6vw, 9.5px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Centre links — small-caps carbon, mint hover pill */
#site-navbar .nav-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
  margin: 0 6px;
}
#site-navbar .nav-links a {
  display: inline-block;
  color: var(--color-carbon);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 11px;
  border-radius: var(--radius-nav-pill);
  white-space: nowrap;
  transition: background 0.3s var(--shell-ease), color 0.3s var(--shell-ease);
}
#site-navbar .nav-links a:hover { background: var(--color-mint-frost); color: var(--color-carbon); }
#site-navbar .nav-links a.active { background: var(--color-mint-frost); color: var(--color-eucalyptus); }

/* Right-side actions */
#site-navbar .nav-right { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }

/* Ghost login */
#site-navbar .nav-login-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-nav-pill);
  background: transparent;
  color: var(--color-carbon);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background 0.3s var(--shell-ease);
}
#site-navbar .nav-login-btn:hover { background: var(--color-mint-frost); }

/* Outline register (eucalyptus edge) */
#site-navbar .nav-register-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border: 1px solid var(--color-eucalyptus);
  border-radius: var(--radius-nav-pill);
  background: transparent;
  color: var(--color-eucalyptus);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background 0.3s var(--shell-ease);
}
#site-navbar .nav-register-btn:hover { background: rgba(91, 130, 121, 0.1); }

/* Primary teal CTA — the single chromatic fill */
#site-navbar .nav-apply-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-nav-pill);
  background: var(--color-vivid-teal);
  color: var(--color-carbon);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: filter 0.3s var(--shell-ease);
}
#site-navbar .nav-apply-btn:hover { filter: brightness(1.04); }

/* Fundraiser CTA — a SEPARATE primary button (not one of the seven nav
   items). Solid carbon pill so it reads as prominent yet stays distinct
   from the single vivid-teal Apply CTA beside it. */
#site-navbar .nav-fundraiser-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-nav-pill);
  background: var(--color-carbon);
  color: #fff;
  font-family: var(--font-gt-standard-s);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: filter 0.3s var(--shell-ease), background 0.3s var(--shell-ease);
}
#site-navbar .nav-fundraiser-btn::before {
  content: "\2661"; /* heart outline */
  font-size: 13px; line-height: 1;
}
#site-navbar .nav-fundraiser-btn:hover { background: var(--color-graphite); }

/* Progressive hiding: below 1140px the Login ghost drops first so the two
   prominent CTAs (Fundraiser + Apply) keep breathing room before the
   hamburger takes over at 768px. */
@media (max-width: 1140px) {
  #site-navbar .nav-fundraiser-btn { padding: 8px 12px; font-size: 12px; }
  #site-navbar .nav-login-btn { display: none; }
}

/* Hamburger — carbon lines on a white rounded square */
#site-navbar .nav-hamburger {
  display: none;
  width: 42px; height: 42px; padding: 11px;
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  background: var(--color-pure-white);
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  flex: 0 0 42px;
}
#site-navbar .nav-hamburger span {
  display: block; width: 100%; height: 2px; border-radius: 99px;
  background: var(--color-carbon);
  transition: transform 0.3s var(--shell-ease), opacity 0.3s;
}
#site-navbar .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-navbar .nav-hamburger.open span:nth-child(2) { opacity: 0; }
#site-navbar .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ──────────────────────────────────────────── */
#site-mobile-nav {
  display: none;
  position: fixed;
  top: var(--shell-navbar-h); left: 0; right: 0; bottom: 0;
  z-index: 1090;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--color-hairline);
  background: var(--color-sage-canvas);
  font-family: var(--font-gt-standard-s);
}
#site-mobile-nav.open { display: flex; }
#site-mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--color-carbon);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
}
#site-mobile-nav a:hover { background: var(--color-mint-frost); }
#site-mobile-nav a.active { color: var(--color-eucalyptus); background: var(--color-mint-frost); }
#site-mobile-nav .mnav-sep {
  margin: 12px 2px 2px; padding-top: 14px;
  border-top: 1px solid var(--color-hairline);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-mist); font-weight: 600;
}
#site-mobile-nav .mnav-apply {
  margin-top: 8px; text-align: center;
  background: var(--color-vivid-teal);
  color: var(--color-carbon);
  font-weight: 600;
  border-radius: var(--radius-nav-pill);
}
/* Fundraiser CTA inside the drawer — carbon pill, matches the desktop one */
#site-mobile-nav .mnav-fundraiser {
  display: block; width: 100%;
  margin-top: 6px; padding: 13px 14px;
  border: 0; border-radius: var(--radius-nav-pill);
  background: var(--color-carbon); color: #fff;
  font-family: var(--font-gt-standard-s);
  font-size: 15px; font-weight: 600; text-align: center;
  cursor: pointer;
}
#site-mobile-nav .mnav-fundraiser:hover { background: var(--color-graphite); }

/* ── Responsive navbar (progressive hiding) ─────────────────── */
@media (max-width: 1240px) {
  #site-navbar .nav-links a { padding: 6px 8px; }
  #site-navbar .nav-brand-tagline { display: none; }
}
@media (max-width: 1120px) {
  #site-navbar .nav-links a { padding: 6px 7px; font-size: 11.5px; }
}
@media (max-width: 1000px) {
  #site-navbar .nav-links a { padding: 5px 6px; font-size: 11px; }
}
/* Narrow-desktop / tablet band (769px–960px): there is not enough row
   width for the full name on one line beside the five links and two
   CTAs, so the name wraps onto two balanced lines
   ("All India Christian / Seva Sangam") instead of being clipped. The
   navbar height is unchanged (72px fits two lines). */
@media (min-width: 769px) and (max-width: 960px) {
  #site-navbar .nav-brand-name { white-space: normal; max-width: 9.6em; line-height: 1.18; }
}
/* Just above the hamburger breakpoint, tighten only the outer spacing
   (not the link text size) so the wrapped name keeps clear air. */
@media (min-width: 769px) and (max-width: 860px) {
  #site-navbar .nav-links { margin: 0 2px; }
  #site-navbar .nav-links a { padding: 5px 5px; }
  #site-navbar .nav-right { gap: 6px; }
  #site-navbar .nav-fundraiser-btn { padding: 8px 10px; }
  #site-navbar .nav-apply-btn { padding: 9px 13px; }
}
@media (max-width: 768px) {
  #site-navbar .nav-links,
  #site-navbar .nav-apply-btn,
  #site-navbar .nav-fundraiser-btn,
  #site-navbar .nav-login-btn { display: none !important; }
  #site-navbar .nav-hamburger { display: flex; }
  #site-navbar .nav-brand { max-width: calc(100vw - 70px); flex: 1 1 auto; }
  #site-navbar .nav-brand-name { font-size: clamp(12px, 3.4vw, 15px); overflow: hidden; text-overflow: clip; }
  #site-navbar .nav-brand-tagline { display: block; font-size: clamp(8px, 2vw, 10px); }
}

/* Demo banner (dashboards) sticks just below the fixed navbar. */
body.has-site-shell #aicss-demo-banner {
  top: var(--shell-navbar-h) !important;
}

/* ── Footer — carbon anchor (Zoox's darkest surface) ─────────── */
#site-footer {
  background: var(--color-carbon);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px clamp(16px, 3vw, 40px) 30px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-gt-standard-s);
  margin-top: 0;
}
#site-footer * { box-sizing: border-box; }
#site-footer a { text-decoration: none; }

#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  max-width: var(--page-max-width);
  margin: 0 auto 48px;
  width: 100%;
}
#site-footer .footer-brand { display: flex; flex-direction: column; gap: 16px; }
#site-footer .footer-logo {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  border: 1px solid var(--color-hairline-dark);
  background: var(--color-pure-white);
  color: var(--color-carbon);
  font-weight: 700; font-size: 12px;
}
#site-footer .footer-brand-name { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.25; }
#site-footer .footer-brand-tag { font-size: 12px; color: var(--color-vivid-teal); letter-spacing: 0.02em; }
#site-footer .footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); max-width: 320px; }
#site-footer .footer-heading {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-fog); margin-bottom: 18px;
}
#site-footer .footer-links { display: flex; flex-direction: column; }
#site-footer .footer-links a {
  font-size: 14px; color: rgba(255, 255, 255, 0.62);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s var(--shell-ease);
}
#site-footer .footer-links a:last-child { border-bottom: 0; }
#site-footer .footer-links a:hover { color: #fff; }
#site-footer .footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62); margin-bottom: 14px; line-height: 1.55;
}
#site-footer .footer-contact-item span:first-child { flex-shrink: 0; font-size: 15px; }
#site-footer .footer-contact-item a { color: rgba(255, 255, 255, 0.72); transition: color 0.3s var(--shell-ease); overflow-wrap: anywhere; }
#site-footer .footer-contact-item a:hover { color: var(--color-vivid-teal); }

#site-footer .footer-bottom {
  max-width: var(--page-max-width); margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
#site-footer .footer-bottom-copy { font-size: 12px; color: rgba(255, 255, 255, 0.4); line-height: 1.5; }
#site-footer .footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
#site-footer .footer-bottom-links a { font-size: 12px; color: rgba(255, 255, 255, 0.45); transition: color 0.3s var(--shell-ease); }
#site-footer .footer-bottom-links a:hover { color: var(--color-vivid-teal); }

@media (max-width: 1024px) {
  #site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  #site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  #site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #site-footer .footer-brand { grid-column: auto; }
  #site-footer .footer-bottom { flex-direction: column; text-align: center; }
  #site-footer .footer-desc { max-width: none; }
}

/* ── Fundraiser "coming soon" notice dialog ──────────────────── */
.fundraiser-notice-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(13, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--font-gt-standard-s);
}
.fundraiser-notice-overlay.open { display: flex; }
.fundraiser-notice-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--color-pure-white);
  color: var(--color-carbon);
  border: 1px solid var(--color-hairline);
  border-radius: 24px;
  padding: 36px 32px 30px;
  box-shadow: 0 30px 80px rgba(13, 18, 18, 0.28);
}
.fundraiser-notice-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  background: var(--color-mint-frost);
  color: var(--color-carbon);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.fundraiser-notice-close:hover { background: var(--color-sage-canvas); }
.fundraiser-notice-badge {
  display: inline-block;
  padding: 5px 12px; margin-bottom: 14px;
  border-radius: var(--radius-badges);
  background: var(--color-mint-frost);
  color: var(--color-eucalyptus);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.fundraiser-notice-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-gt-standard-l);
  font-size: clamp(21px, 3.4vw, 26px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--color-carbon);
}
.fundraiser-notice-card p {
  margin: 0 0 12px;
  font-size: 14px; line-height: 1.6; color: var(--color-slate);
}
.fundraiser-notice-card p strong { color: var(--color-carbon); }
.fundraiser-notice-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px;
}
.fundraiser-notice-btn {
  display: inline-flex; align-items: center;
  padding: 11px 20px;
  border-radius: var(--radius-buttons);
  background: var(--color-vivid-teal);
  color: var(--color-carbon);
  font-size: 13.5px; font-weight: 600;
}
.fundraiser-notice-btn:hover { filter: brightness(1.04); }
.fundraiser-notice-link {
  font-size: 13.5px; font-weight: 600;
  color: var(--color-eucalyptus);
  border-bottom: 1px solid transparent;
}
.fundraiser-notice-link:hover { border-bottom-color: var(--color-eucalyptus); }

@media (max-width: 480px) {
  .fundraiser-notice-card { padding: 30px 22px 26px; border-radius: 20px; }
}
