/* ============================================================
   Nashik Bar Association — Aesthetic-Tech Design System
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Palette: cream → gold → orange → crimson → magenta → deep purple */
  --bg: #F2F0E8;              /* warm cream background */
  --bg-card: #FAF8F2;         /* lighter cream for cards */
  --bg-warm: #F5EDCF;         /* pale gold tint */
  --heading: #2B1035;         /* darkest purple — headings */
  --accent: #C03A2B;          /* crimson-red — primary accent */
  --accent-warm: #E8944A;     /* warm orange — secondary accent */
  --accent-gold: #F2C867;     /* gold — highlights, pills */
  --accent-deep: #7B1A48;     /* deep magenta — alternate accent */
  --accent-light: #FAF0D8;    /* pale gold for light backgrounds */
  --accent-glow: rgba(192,58,43,.18);
  --ink: #3A2040;             /* dark purple-brown — body text */
  --muted: #8A7080;           /* muted warm grey */
  --white: #ffffff;
  --border: rgba(43,16,53,.08);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 50px;
  --shadow: 0 2px 16px rgba(43,16,53,.06);
  --shadow-lg: 0 8px 32px rgba(43,16,53,.10);
  --shadow-accent: 0 4px 20px rgba(192,58,43,.16);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .5s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
  --header-h: 72px;
  --gradient-accent: linear-gradient(135deg, #C03A2B 0%, #E8944A 100%);
  --gradient-hero: linear-gradient(160deg, #2B1035 0%, #4C1255 40%, #7B1A48 100%);
  --gradient-shimmer: linear-gradient(110deg, transparent 25%, rgba(242,200,103,.12) 50%, transparent 75%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #7B1A48; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -.02em; font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.25rem; }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.gold-text { color: var(--accent); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(192,58,43,.3);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-secondary {
  background: var(--heading);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background: #4C1255;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

.btn-glass {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
}
.btn-glass:hover {
  background: rgba(255,255,255,.25);
  color: var(--white);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: rgba(43,16,53,.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(192,58,43,.1);
  transition: all var(--transition);
  overflow: visible;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  text-decoration: none;
}

.logo-group .logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(192,58,43,.45);
  box-shadow: 0 0 16px rgba(192,58,43,.15);
}
.logo-group .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-group .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.logo-group .logo-text span {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav a {
  color: rgba(255,255,255,.7);
  padding: .45rem .7rem;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(192,58,43,.15);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Language toggle */
.lang-toggle {
  background: rgba(192,58,43,.12);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(192,58,43,.3);
  padding: .35rem .7rem;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: .5rem;
  transition: all var(--transition);
  letter-spacing: .5px;
  font-family: inherit;
}
.lang-toggle:hover {
  background: rgba(192,58,43,.25);
  border-color: rgba(192,58,43,.5);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1002;
  position: relative;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: block; }

  /* backdrop-filter on .site-header creates a containing block for
     fixed-position children, so nav-wrapper must escape it. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: rgba(43,16,53,.98);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    z-index: 998;
    -webkit-overflow-scrolling: touch;
  }
  .nav-wrapper.open { transform: translateX(0); }
  .main-nav { flex-direction: column; gap: .25rem; }
  .main-nav a {
    display: block;
    padding: .85rem 1rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    color: rgba(255,255,255,.85);
  }
  .main-nav a:hover,
  .main-nav a.active {
    color: var(--white);
    background: rgba(192,58,43,.15);
  }
  .main-nav a::after { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-hero);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
  margin-top: auto;
  font-size: .875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  margin-bottom: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col a { color: rgba(255,255,255,.55); transition: all var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }

.footer-bci {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Subtle geometric overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(192,58,43,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(192,58,43,.06) 0%, transparent 50%);
  pointer-events: none;
}
/* Dot pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}
.hero h1 .gold-text { color: #F2C867; }

.hero p {
  color: rgba(255,255,255,.7);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  font-weight: 300;
}

/* Home hero */
.hero-home {
  padding: 6rem 0 5rem;
}
.hero-home .hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 3px solid rgba(192,58,43,.4);
  box-shadow: 0 0 40px rgba(192,58,43,.2), 0 0 80px rgba(192,58,43,.08);
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(192,58,43,.2), 0 0 80px rgba(192,58,43,.08); }
  50% { box-shadow: 0 0 50px rgba(192,58,43,.3), 0 0 100px rgba(192,58,43,.12); }
}

.hero-home .tagline {
  font-size: .82rem;
  color: #F2C867;
  margin-bottom: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-home .member-count {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(192,58,43,.12);
  border: 1px solid rgba(192,58,43,.25);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Pillars section */
.pillars-section {
  position: relative;
  margin-top: -3rem;
  z-index: 2;
}
.pillars-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pillars-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
}
.pillars-caption {
  padding: 1.25rem 1.75rem;
  text-align: center;
  font-weight: 600;
  color: var(--heading);
  font-size: 1.05rem;
}
.pillars-caption span {
  display: block;
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 3.5rem 0;
  flex: 1;
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.75rem; }

/* ============================================================
   AMENDMENTS PAGE — THE HERO PAGE
   ============================================================ */

/* Status banner */
.status-banner {
  background: var(--accent-light);
  border: 1px solid rgba(192,58,43,.15);
  border-left: 4px solid var(--accent);
  padding: 1.35rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
  font-size: .9rem;
  line-height: 1.7;
  color: #4C1255;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Summary strip */
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary-stat {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  transition: all var(--transition);
}
.summary-stat:hover {
  background: rgba(192,58,43,.15);
}
.summary-stat .count {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading);
}

/* Controls */
.amendments-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg);
  transition: all var(--transition);
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(192,58,43,.1);
  outline: none;
}
.search-box::before {
  content: '\1F50D';
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: .45;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.filter-chip {
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: .3px;
  color: var(--muted);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.control-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Amendment cards */
.amendment-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition);
  max-width: 100%;
}
.amendment-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,58,43,.15);
}

.amendment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition: background var(--transition);
}
.amendment-header:hover { background: rgba(192,58,43,.03); }

.article-number {
  font-weight: 700;
  font-size: .75rem;
  color: var(--white);
  background: var(--gradient-accent);
  padding: .35rem .7rem;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
  box-shadow: var(--shadow-accent);
}

.article-title {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
}

/* Status badges — floating pills */
.status-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.status-badge.accepted  { background: #E8F5E9; color: #2E7D32; }
.status-badge.modified  { background: #FAF0D8; color: #E8944A; }
.status-badge.new       { background: var(--accent-light); color: var(--accent); }
.status-badge.deleted   { background: #ECEFF1; color: #455A64; }
.status-badge.unchanged { background: #F5F5F5; color: #757575; }
.status-badge.rejected  { background: #FFEBEE; color: #C62828; }

.expand-icon {
  font-size: 1rem;
  transition: transform var(--transition);
  color: var(--muted);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
}
.amendment-card.open .expand-icon {
  transform: rotate(180deg);
  background: var(--accent-light);
  color: var(--accent);
}

/* Card body */
.amendment-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.amendment-card.open .amendment-body { display: block; padding-top: 1.25rem; }

.amendment-section {
  margin-bottom: 1.35rem;
}
.amendment-section h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.amendment-section .section-text {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-line;
}

.section-existing h4 { color: var(--muted); }
.section-proposed h4 { color: #E8944A; }
.section-reason h4 { color: var(--accent); }

.section-nba {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}
.section-nba h4 { color: var(--accent); font-size: .85rem; border-bottom-color: rgba(192,58,43,.15); }
.section-nba .section-text { font-weight: 500; }


.feedback-line {
  margin-top: 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
.feedback-line a { color: var(--accent); font-weight: 600; }

@media (min-width: 1024px) {
  .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.quick-link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,58,43,.2);
  color: var(--ink);
}
.quick-link-card .icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: inline-block;
  background: var(--accent-light);
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 16px;
  transition: all var(--transition);
  position: relative;
}
/* Shimmer effect on icon hover */
.quick-link-card:hover .icon {
  background: rgba(192,58,43,.15);
  animation: shimmer 1.5s ease-in-out;
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.quick-link-card h3 { font-size: .95rem; margin-bottom: .3rem; }
.quick-link-card p { font-size: .8rem; color: var(--muted); margin: 0; }

.notice-strip {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  overflow: hidden;
}
.notice-strip h3 { margin-bottom: 1rem; }
.notice-item {
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.notice-item:last-child { border-bottom: none; }
.notice-date {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  background: var(--accent-light);
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ============================================================
   COMMITTEE PAGE
   ============================================================ */
.committee-role {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.committee-role:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,58,43,.15);
}
.committee-role .role-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: .4rem;
}
.committee-role .role-qual {
  font-size: .78rem;
  color: var(--muted);
}
.committee-role .role-count {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  margin-top: .6rem;
  letter-spacing: .3px;
}
.committee-role .role-note {
  font-size: .76rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .5rem;
}

/* ============================================================
   MEMBERSHIP PAGE
   ============================================================ */
.membership-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.membership-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.membership-card.featured {
  border-color: rgba(192,58,43,.3);
  box-shadow: var(--shadow-accent);
}
.membership-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem 2.5rem;
  transform: rotate(45deg);
}
.membership-card .price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1rem 0 .25rem;
}
.membership-card .price-note {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.membership-card ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.membership-card li {
  padding: .45rem 0 .45rem 1.5rem;
  position: relative;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.membership-card li:last-child { border-bottom: none; }
.membership-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   CONSTITUTION PAGE
   ============================================================ */
.pdf-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .35rem;
  color: var(--heading);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  margin-bottom: 1.1rem;
  background: var(--bg);
  transition: all var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(192,58,43,.1);
  outline: none;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info-card h4 { margin-bottom: .5rem; }

.map-embed {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: var(--radius);
}

/* ============================================================
   NOTICES / EVENTS
   ============================================================ */
.notice-list, .event-list {
  list-style: none;
  padding: 0;
}
.notice-list li, .event-list li {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.notice-list li:hover, .event-list li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}
.event-date-badge {
  background: var(--gradient-accent);
  color: var(--white);
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 65px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

/* ============================================================
   WELFARE PAGE
   ============================================================ */
.welfare-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  transition: all var(--transition);
}
.welfare-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,58,43,.15);
}
.welfare-card h3 { margin-bottom: .75rem; }
.welfare-card .proposed-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-light);
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-content {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p, .policy-content li { font-size: .9rem; }

/* ============================================================
   STEPS / HOW-TO
   ============================================================ */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--gradient-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-aims {
  list-style: none;
  padding: 0;
  counter-reset: aim;
}
.about-aims li {
  counter-increment: aim;
  padding: .75rem 0 .75rem 2.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  transition: all var(--transition);
}
.about-aims li:hover { padding-left: 3rem; background: var(--accent-light); }
.about-aims li::before {
  content: counter(aim) ')';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-3 .fade-in:nth-child(2) { transition-delay: .1s; }
.grid-3 .fade-in:nth-child(3) { transition-delay: .2s; }
.grid-2 .fade-in:nth-child(2) { transition-delay: .1s; }

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --radius: 18px;
    --header-h: 64px;
  }

  .container { padding: 0 1rem; }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; }
  .hero-home { padding: 4rem 0 3.5rem; }
  .hero-home .hero-logo { width: 90px; height: 90px; margin-bottom: 1.5rem; }
  .hero-home .tagline { font-size: .75rem; letter-spacing: 2px; }
  .hero-home .member-count { font-size: .8rem; padding: .4rem 1rem; }
  .hero p { font-size: 1rem; }

  .hero-cta { flex-direction: column; align-items: center; gap: .75rem; }
  .hero-cta .btn { width: 100%; max-width: 360px; justify-content: center; font-size: .9rem !important; padding: .85rem 1.5rem !important; }

  /* Pillars */
  .pillars-section { margin-top: -2rem; }
  .pillars-img { height: 200px; }
  .pillars-caption { padding: 1rem; font-size: .95rem; }

  /* Cards */
  .card { padding: 1.5rem; }
  .welfare-card { padding: 1.5rem; }
  .membership-card { padding: 1.75rem 1.25rem; }
  .committee-role { padding: 1.5rem; }
  .policy-content { padding: 1.5rem; }

  /* Page content */
  .page-content { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Amendments controls */
  .amendments-controls { flex-direction: column; align-items: stretch; padding: 1rem; overflow: visible; }
  .search-box { min-width: 100%; width: 100%; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .filter-chip { flex-shrink: 0; }
  .control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
  .control-actions .btn { justify-content: center; font-size: .78rem; padding: .45rem .75rem; text-align: center; white-space: nowrap; }

  /* Amendment cards */
  .amendment-header { padding: .85rem 1rem; gap: .5rem; }
  .article-number { min-width: auto; font-size: .7rem; padding: .25rem .55rem; flex-shrink: 0; }
  .article-title { font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .status-badge { font-size: .6rem; padding: .2rem .5rem; flex-shrink: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .expand-icon { flex-shrink: 0; }
  .amendment-body { padding: 0 1rem 1.25rem; }
  .amendment-card.open .amendment-body { padding-top: 1rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  .section-nba { padding: 1rem 1.15rem; }

  /* Summary strip */
  .summary-strip { padding: 1rem; gap: .5rem; }
  .summary-stat { font-size: .72rem; padding: .3rem .65rem; }
  .summary-stat .count { font-size: .95rem; }

  /* Notice / Event items */
  .notice-list li, .event-list li { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.1rem; }
  .notice-item { flex-direction: column; align-items: flex-start; gap: .35rem; }

  /* Footer */
  .site-footer { padding: 2.5rem 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Logo */
  .logo-group .logo-icon { width: 38px; height: 38px; }
  .logo-group .logo-text { font-size: .9rem; letter-spacing: 1px; }
  .logo-group .logo-text span { font-size: .58rem; }
  .logo-group { gap: .6rem; }

  /* Steps */
  .steps li { padding-left: 3.25rem; }
  .steps li::before { width: 2.25rem; height: 2.25rem; font-size: .95rem; }

  /* Membership featured ribbon */
  .membership-card .price { font-size: 1.85rem; }

  /* Status banner */
  .status-banner { padding: 1rem 1.25rem; font-size: .85rem; border-radius: 0 var(--radius) var(--radius) 0; }

  /* PDF embed */
  .pdf-embed { height: 60vh; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --radius: 14px;
    --header-h: 58px;
  }

  body { font-size: 15px; }

  .container { padding: 0 .75rem; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-home { padding: 3rem 0 2.5rem; }
  .hero-home .hero-logo { width: 75px; height: 75px; margin-bottom: 1.25rem; border-width: 2px; }
  .hero-home .tagline { font-size: .68rem; letter-spacing: 1.5px; margin-bottom: .5rem; }
  .hero-home .member-count { font-size: .75rem; padding: .35rem .85rem; margin-bottom: 1rem; }
  .hero p { font-size: .9rem; margin-bottom: 1rem; }
  .hero-cta .btn { max-width: 100%; }

  /* Pillars */
  .pillars-section { margin-top: -1.5rem; }
  .pillars-img { height: 160px; }
  .pillars-caption { padding: .85rem; font-size: .88rem; }

  /* Cards */
  .card { padding: 1.15rem; }
  .welfare-card { padding: 1.15rem; }
  .membership-card { padding: 1.25rem 1rem; }
  .committee-role { padding: 1.25rem; }
  .policy-content { padding: 1.15rem; }
  .contact-info-card { padding: 1.1rem; }

  /* Page content */
  .page-content { padding: 1.75rem 0; }
  .section-title { margin-bottom: 1.5rem; }

  /* Quick links */
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .quick-link-card { padding: 1.25rem .85rem; }
  .quick-link-card .icon { width: 44px; height: 44px; line-height: 44px; font-size: 1.5rem; border-radius: 12px; }
  .quick-link-card h3 { font-size: .85rem; }
  .quick-link-card p { font-size: .72rem; }

  /* Amendments */
  .amendment-header { padding: .65rem .75rem; gap: .4rem; }
  .article-number { font-size: .6rem; padding: .2rem .4rem; border-radius: 6px; min-width: 42px; }
  .article-title { font-size: .82rem; }
  .status-badge { font-size: .55rem; padding: .15rem .35rem; max-width: 100px; }
  .expand-icon { width: 22px; height: 22px; font-size: .75rem; }
  .amendment-body { padding: 0 .75rem 1rem; }
  .amendment-section .section-text { font-size: .82rem; }
  .section-nba { padding: .75rem .85rem; border-radius: 0 var(--radius) var(--radius) 0; }
  .feedback-line { font-size: .7rem; }

  /* Controls */
  .amendments-controls { padding: .65rem; gap: .5rem; border-radius: var(--radius); }
  .search-box input { padding: .55rem .75rem .55rem 2rem; font-size: .8rem; }
  .search-box::before { left: .6rem; font-size: .85rem; }
  .filter-chips { gap: .3rem; }
  .filter-chip { font-size: .68rem; padding: .25rem .55rem; }
  .control-actions { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .control-actions .btn { font-size: .7rem; padding: .35rem .5rem; }

  /* Summary strip */
  .summary-strip { padding: .65rem; gap: .35rem; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .summary-stat { flex-shrink: 0; font-size: .65rem; padding: .2rem .45rem; }
  .summary-stat .count { font-size: .8rem; }

  /* Notice strip */
  .notice-strip { padding: 1.15rem; }
  .notice-date { font-size: .7rem; padding: .2rem .5rem; }

  /* Footer */
  .site-footer { padding: 2rem 0 0; }
  .footer-grid { gap: 1.25rem; margin-bottom: 1.5rem; }
  .footer-bci { font-size: .7rem; padding: 1.25rem 0; }
  .footer-bottom { font-size: .7rem; padding: 1rem 0; }

  /* Logo — hide subtitle on very small screens */
  .logo-group .logo-icon { width: 34px; height: 34px; }
  .logo-group .logo-text { font-size: .78rem; letter-spacing: .8px; }
  .logo-group .logo-text span { display: none; }
  .logo-group { gap: .5rem; }

  /* Steps */
  .steps li { padding-left: 2.75rem; margin-bottom: 1.25rem; }
  .steps li::before { width: 2rem; height: 2rem; font-size: .85rem; }

  /* Buttons */
  .btn { font-size: .88rem; padding: .75rem 1.35rem; }
  .btn-sm { font-size: .78rem; padding: .4rem .85rem; }

  /* Membership */
  .membership-card .price { font-size: 1.6rem; }
  .membership-card li { font-size: .82rem; padding: .35rem 0 .35rem 1.35rem; }
  .membership-card.featured::after { font-size: .58rem; top: 16px; right: -34px; }

  /* About aims */
  .about-aims li { padding: .6rem 0 .6rem 2.25rem; font-size: .85rem; }
  .about-aims li::before { font-size: .9rem; }

  /* PDF embed */
  .pdf-embed { height: 50vh; }

  /* Map */
  .map-embed { height: 220px; }

  /* Status banner */
  .status-banner { padding: .85rem 1rem; font-size: .82rem; }
}

/* ============================================================
   RESPONSIVE — LARGE TABLET / SMALL LAPTOP (max 1024px)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-home { padding: 5rem 0 4rem; }
  .hero-home .hero-logo { width: 100px; height: 100px; }
  .card { padding: 2rem; }
  .welfare-card { padding: 2rem; }
  .membership-card { padding: 2rem 1.5rem; }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOP (min 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  :root { --max-width: 1320px; }
  .hero-home { padding: 7rem 0 6rem; }
  .hero-home .hero-logo { width: 130px; height: 130px; }
  .pillars-img { height: 400px; }
}

/* ============================================================
   TOUCH DEVICE OPTIMISATIONS
   ============================================================ */
@media (hover: none) {
  .card:hover,
  .quick-link-card:hover,
  .committee-role:hover,
  .membership-card:hover,
  .welfare-card:hover,
  .amendment-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  .notice-list li:hover, .event-list li:hover {
    transform: none;
  }
  .about-aims li:hover { padding-left: 2.75rem; background: transparent; }
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .amendments-controls,
  .control-actions,
  .feedback-line,
  .btn,
  .nav-wrapper,
  .pillars-section { display: none !important; }

  body { background: white; font-size: 11pt; }

  .card, .amendment-card, .membership-card, .committee-role, .welfare-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }
  .amendment-card { break-inside: avoid; }
  .amendment-body { display: block !important; }
  .expand-icon { display: none; }

  .status-banner { border: 1px solid #ccc; background: #f5f5f5; }
  .hero { background: #eee !important; color: black !important; padding: 1rem 0; }
  .hero::before, .hero::after { display: none; }
  .hero h1 { color: black !important; text-shadow: none; }
}
