/* ============================================================
   NAMMA BCI — SHARED STYLES
   Bangalore City Institute · Est. 1902
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,200;0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Italiana&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F6F1E9;
  --parchment:   #EEE8DA;
  --gold:        #C9A84C;
  --gold-light:  #E8CC7A;
  --gold-dark:   #9E6F28;
  --ink:         #18120D;
  --charcoal:    #28201A;
  --warm:        #4A3C30;
  --muted:       #8A7A68;
  --border:      rgba(201,168,76,0.18);
  --accent:      #D4A853;
}

html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* Remove default cursor on desktop, restore on touch */
@media (hover: hover) and (pointer: fine) {
  body, a, button, [role="button"], input, textarea, select,
  .gallery-item, .event-card, .membership-item { cursor: none !important; }
}

/* ── CUSTOM CURSOR ─────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s, opacity .3s;
  mix-blend-mode: multiply;
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s, opacity .3s;
  will-change: transform;
}
#cursor-dot.hovered  { width: 16px; height: 16px; background: var(--gold-dark); }
#cursor-ring.hovered { width: 56px; height: 56px; border-color: var(--gold-dark); }
#cursor-dot.clicked  { width: 6px; height: 6px; background: var(--gold-light); transform: translate(-50%,-50%) scale(0.7); }
#cursor-ring.clicked { width: 70px; height: 70px; border-color: var(--gold-light); opacity: .5; }

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ── PAGE LOADER ────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 99990;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
}
#page-loader .ld-brand {
  font-family: 'Italiana', serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: var(--gold);
  letter-spacing: 0.12em;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}
#page-loader .ld-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(201,168,76,.45);
  opacity: 0;
}
#page-loader .ld-bar-wrap {
  width: 180px; height: 1px;
  background: rgba(201,168,76,.15);
  position: relative; margin-top: .5rem;
}
#page-loader .ld-bar {
  position: absolute; left:0; top:0;
  height: 100%; width: 0%;
  background: var(--gold);
}

/* ── NAVBAR ─────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 1.6rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s ease, background .4s ease, box-shadow .4s ease;
}
#navbar.scrolled {
  background: rgba(246,241,233,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem 5rem;
  box-shadow: 0 2px 40px rgba(24,18,13,.07);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Italiana', serif;
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .07em;
  line-height: 1;
  display: flex; align-items: center; gap: .1em;
}
.nav-logo .gold { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-links a {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm); text-decoration: none;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .35s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: .6rem 1.6rem;
  transition: background .35s, color .35s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .3rem;
  z-index: 9100; position: relative;
}
.hamburger span {
  display: block; width: 26px; height: 1.5px;
  background: var(--ink); transition: all .35s ease;
}

/* Mobile Nav */
#mobile-nav {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9050;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
#mobile-nav.open { opacity: 1; pointer-events: all; }
#mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 300; letter-spacing: .05em;
  color: rgba(246,241,233,.7); text-decoration: none;
  transition: color .3s, transform .3s;
  display: block; transform: translateY(20px); opacity: 0;
}
#mobile-nav.open a { opacity: 1; transform: translateY(0); }
#mobile-nav a:hover { color: var(--gold); }
#mobile-nav .mn-email {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem; letter-spacing: .2em;
  color: rgba(201,168,76,.5); margin-top: 2rem; font-weight: 300;
}

/* ── SECTION COMMONS ─────────────────────────────── */
.container { max-width: 1380px; margin: 0 auto; padding: 0 5rem; }
.section-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 1.4rem;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 300; line-height: .95; letter-spacing: -.02em;
  color: var(--ink);
}
.section-title .it  { font-style: italic; }
.section-title .gld { color: var(--gold-dark); }
.section-title .out {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.gold-rule {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 1.8rem 0; display: block; border: none;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1rem 2.5rem; text-decoration: none;
  position: relative; overflow: hidden;
  transition: color .35s ease;
  border: none; font-family: 'DM Sans', sans-serif;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77,0,.175,1);
}
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark::before { background: var(--gold); }
.btn-dark:hover { color: var(--ink); }
.btn-dark:hover::before { transform: translateX(0); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--cream); }
.btn-outline:hover::before { transform: translateX(0); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold::before { background: var(--ink); }
.btn-gold:hover { color: var(--cream); }
.btn-gold:hover::before { transform: translateX(0); }

/* ── PAGE HERO BANNER (inner pages) ─────────────── */
.page-hero {
  min-height: 55vh;
  background: var(--ink);
  display: flex; align-items: flex-end;
  padding-bottom: 5rem;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .3; filter: saturate(.6);
}
.page-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 20%, transparent 80%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.page-hero-label::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300; line-height: .92;
  color: var(--cream); letter-spacing: -.02em;
}
.page-hero-title .it { font-style: italic; color: var(--gold-light); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 6rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.footer-brand-name {
  font-family: 'Italiana', serif;
  font-size: 2.2rem; color: var(--cream); letter-spacing: .08em;
}
.footer-brand-name .gold { color: var(--gold); }
.footer-brand-desc {
  font-size: .88rem; font-weight: 300; line-height: 1.8;
  color: rgba(246,241,233,.38); margin-top: .9rem; max-width: 270px;
}
.footer-col-head {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col-links a {
  font-size: .88rem; font-weight: 300;
  color: rgba(246,241,233,.45); text-decoration: none;
  transition: color .3s;
}
.footer-col-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-size: .72rem; color: rgba(246,241,233,.2); letter-spacing: .05em;
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: rgba(246,241,233,.35); text-decoration: none;
  transition: all .3s;
}
.footer-socials a:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,.08);
}

/* ── TICKER ─────────────────────────────────────── */
.ticker-band {
  background: var(--ink); padding: 1rem 0;
  overflow: hidden; position: relative;
}
.ticker-track {
  display: flex; gap: 3.5rem; white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0;
}
.ticker-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--gold);
}
.ticker-lbl {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(246,241,233,.4);
}
.ticker-sep { color: var(--gold); opacity: .35; font-size: 1rem; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── REVEAL ANIMATIONS ──────────────────────────── */
.rvy { opacity: 0; transform: translateY(48px); }
.rvs { opacity: 0; transform: scale(.93); }
.rvx { opacity: 0; transform: translateX(-40px); }
.rvxr { opacity: 0; transform: translateX(40px); }

/* ── UTILITIES ──────────────────────────────────── */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── RESPONSIVE GLOBALS ─────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 2.5rem; }
  #navbar { padding: 1.5rem 2.5rem; }
  #navbar.scrolled { padding: 1rem 2.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.4rem; }
  #navbar { padding: 1.2rem 1.4rem; }
  #navbar.scrolled { padding: .9rem 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1.2rem; text-align: center; }
}

/* ── WORDPRESS ADMIN BAR OFFSET ─────────────────── */
.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #navbar { top: 46px; }
}
