/* Project Nithya — Shared Styles (nav, footer, toast, reset) */

:root {
  --blue:      #62BEF0;
  --blue-mid:  #3AA8E8;
  --navy:      #1479C7;
  --gold:      #F2CE3A;
  --gold-pale: #F7E07A;
  --gold-deep: #D4A800;
  --pink:      #F9C8D5;
  --pink-deep: #E8899E;
  --cream:     #F5F0E8;
  --dark:      #062952;
  --mid:       #0A3D82;
  --deep:      #0D52A8;
  --text:      #0D2B5E;
  --muted:     #2B5C94;
  --faint:     #5080AA;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-weight: 300; background: var(--cream); color: var(--text); overflow-x: clip; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; z-index: 200; height: 70px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  background: rgba(6, 35, 95, 0.36);
  border-radius: 0;
  border: 1px solid transparent;
  border-bottom-color: rgba(98, 190, 240, 0.18);
  box-shadow: none;
  transition:
    top 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.45s ease,
    padding 0.45s ease,
    background 0.35s ease,
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}
nav.nav--float {
  top: 14px;
  width: min(960px, calc(100vw - 40px));
  height: 58px; padding: 0 28px;
  border-radius: 100px;
  background: rgba(6, 42, 112, 0.88);
  backdrop-filter: blur(36px) saturate(1.7) brightness(1.1);
  -webkit-backdrop-filter: blur(36px) saturate(1.7) brightness(1.1);
  border-color: rgba(98, 190, 240, 0.28);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.38),
    0 2px 14px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { filter: drop-shadow(0 0 10px rgba(255,255,255,0.28)); }
.nav-wordmark { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 26px; letter-spacing: 0.08em; color: #F5F0E8; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 11.5px; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.65); text-decoration: none; transition: color 0.25s; }
.nav-links a:hover { color: var(--pink); }
.nav-cta { font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #000; background: var(--gold); padding: 9px 22px; border-radius: 100px; text-decoration: none; transition: opacity 0.25s, transform 0.15s; flex-shrink: 0; }
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-cta--pink { background: var(--pink-deep); color: #fff; }
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: linear-gradient(172deg, var(--dark) 0%, var(--mid) 32%, var(--deep) 60%, #1A7BCC 100%); overflow: hidden; padding-top: 72px; position: relative; }
.ft-cloud { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.fc1 { width: 700px; height: 320px; background: rgba(20,100,195,.35); top: 5%; left: -12%; }
.fc2 { width: 550px; height: 260px; background: rgba(10,55,145,.45); bottom: 15%; right: -10%; }
.ft-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 52px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.ft-brand { display: flex; flex-direction: column; gap: 18px; }
.ft-logo { display: flex; align-items: center; gap: 11px; }
.ft-logo img { filter: drop-shadow(0 0 10px rgba(255,255,255,0.28)); }
.ft-name { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; color: #F5F0E8; }
.ft-desc { font-size: 13.5px; font-weight: 300; color: rgba(245,240,232,.52); line-height: 1.72; max-width: 320px; }
.ft-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; color: rgba(245,240,232,.6); }
.ft-contact p { font-size: 13px; font-weight: 300; color: rgba(245,240,232,.44); margin-bottom: 4px; }
.ft-contact a { color: var(--blue); text-decoration: none; }
.ft-contact a:hover { opacity: .75; }

/* Footer donate form */
.ft-don-head { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 26px; color: #F5F0E8; margin-bottom: 8px; }
.ft-don-sub { font-size: 13px; font-weight: 300; color: rgba(255,235,242,.88); line-height: 1.65; margin-bottom: 24px; }
.ft-fg { margin-bottom: 12px; }
.ft-fg label { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,240,232,.32); margin-bottom: 5px; }
.ft-fi { width: 100%; padding: 11px 13px; background: rgba(245,240,232,.055); border: 1px solid rgba(245,240,232,.09); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; color: #F5F0E8; outline: none; transition: border-color .25s, background .25s; }
.ft-fi::placeholder { color: rgba(245,240,232,.22); }
.ft-fi:focus { border-color: rgba(98,190,240,.4); background: rgba(245,240,232,.08); }
.ft-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-gold { width: 100%; padding: 13px; background: var(--gold); color: #fff; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; margin-top: 6px; transition: opacity .25s, transform .15s; }
.btn-gold:hover { opacity: .88; transform: translateY(-1px); }
.don-note { font-size: 11px; font-weight: 300; color: rgba(245,240,232,.3); text-align: center; margin-top: 10px; }
.ft-bar { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 18px 52px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(245,240,232,.07); }
.ft-bar p { font-size: 11px; font-weight: 300; color: rgba(245,240,232,.28); letter-spacing: .04em; }
.ft-bar a { color: rgba(245,240,232,.4); text-decoration: none; }
.ft-bar a:hover { color: var(--pink); }

/* ── FLOATING CTA BUBBLE ── */
.fab-cta {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 20px;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 300;
}
.fab-btn {
  display: block;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 6px 28px rgba(0,0,0,0.32), 0 2px 8px rgba(0,0,0,0.18);
  transition: opacity 0.2s, transform 0.15s;
}
.fab-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.fab-btn--pink { background: var(--pink-deep); color: #fff; }
.fab-btn--gold { background: var(--gold); color: #000; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px); background: rgba(6,35,95,.92); color: #F5F0E8; padding: 12px 22px; border-radius: 100px; font-size: 13px; font-weight: 300; box-shadow: 0 8px 32px rgba(0,0,0,.3); z-index: 9999; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; }
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--warn { border: 1px solid rgba(242,206,58,.4); }
.toast--error { border: 1px solid rgba(232,137,158,.4); }

/* ── PILL NAV — layout, spacing, vertical alignment ── */
nav.nav--float {
  gap: 20px;                   /* hard gap: logo ↔ links, links ↔ buttons */
}
nav.nav--float .nav-links {
  flex: 1;
  justify-content: center;
  align-items: center;         /* vertically centre all li children */
  gap: 16px;                   /* tighter gap between individual links */
}
nav.nav--float .nav-links li {
  display: flex;
  align-items: center;
}
nav.nav--float .nav-links a {
  font-size: 10px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  line-height: 1;              /* kills extra line-height causing top-alignment */
}

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245,240,232,0.72);
  padding: 12px;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 0;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover { color: var(--cream); }
.nav-burger svg line {
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.is-open .bar1 { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open .bar2 { opacity: 0; }
.nav-burger.is-open .bar3 { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  z-index: 190;
  background: rgba(4,26,78,0.97);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid rgba(98,190,240,0.16);
  padding: 20px 28px 32px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mob-link {
  display: block;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.68);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(245,240,232,0.06);
  transition: color 0.2s, padding-left 0.2s;
}
.mob-link:hover { color: var(--pink); padding-left: 4px; }
.mob-link:last-child { border-bottom: none; }
.mob-link--highlight { color: var(--pink-deep); font-weight: 400; }
.mob-link--subtle { color: rgba(245,240,232,0.38); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
  .nav-burger   { display: none !important; }
}

@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }          /* CTAs move to FAB */
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .fab-cta { display: flex; }                        /* show floating bubble */

  .ft-inner { grid-template-columns: 1fr; gap: 44px; padding: 0 24px 52px; }
  .ft-row2 { grid-template-columns: 1fr; }
  .ft-bar { padding: 18px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
