/* ==========================================================================
   JAIPUR WHOLESALE GARMENT ASSOCIATION — style.css
   Color tokens are all defined below in :root.
   To re-theme the whole site, change ONLY the values in :root.
   ========================================================================== */

:root {
  /* ---- Brand colors (change these to re-theme the entire site) ---- */
  --ink-indigo: #1b2a4a;      /* primary dark — nav, headings, menswear tag */
  --rani-pink: #a6274c;       /* primary accent — CTAs, links, womenswear tag */
  --marigold: #c9922b;        /* secondary accent — dividers, kidswear tag */
  --ivory: #f7f3ec;           /* page background */
  --card-white: #fffdf9;      /* card background */
  --charcoal: #2a2521;        /* body text */
  --muted: #6b6459;           /* secondary text */
  --border-soft: #e7ddcc;     /* hairline borders */

  /* ---- Derived / utility ---- */
  --ink-indigo-dark: #101a30;
  --rani-pink-dark: #7e1d3a;
  --shadow-soft: 0 10px 30px rgba(27, 42, 74, 0.08);
  --radius-md: 14px;
  --radius-lg: 22px;

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "Inter", sans-serif;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--ink-indigo);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rani-pink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--marigold);
  display: inline-block;
}

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.jwga-navbar {
  background: var(--ivory);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 999;
}

.jwga-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-indigo);
  line-height: 1;
}
.jwga-logo span { color: var(--rani-pink); }
.jwga-logo small {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.jwga-nav-link {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--charcoal);
  margin: 0 14px;
  position: relative;
  padding-bottom: 4px;
}
.jwga-nav-link:hover { color: var(--rani-pink); }
.jwga-nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--marigold);
  transition: width 0.25s ease;
}
.jwga-nav-link:hover::after { width: 100%; }

.btn-jwga-primary {
  background: var(--rani-pink);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: 40px;
  border: 1px solid var(--rani-pink);
  transition: all 0.25s ease;
  display: inline-block;
}
.btn-jwga-primary:hover {
  background: var(--rani-pink-dark);
  border-color: var(--rani-pink-dark);
  color: #fff;
}

.btn-jwga-outline {
  background: transparent;
  color: var(--ink-indigo);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: 40px;
  border: 1.5px solid var(--ink-indigo);
  transition: all 0.25s ease;
  display: inline-block;
}
.btn-jwga-outline:hover {
  background: var(--ink-indigo);
  color: #fff;
}

/* ==========================================================================
   HERO — with woven "swatch bolt" signature pattern
   ========================================================================== */
.jwga-hero {
  position: relative;
  background: var(--ivory);
  padding: 90px 0 0;
  overflow: hidden;
}

.jwga-hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 18px 0 20px;
}

.jwga-hero-copy h1 em {
  font-style: normal;
  color: var(--rani-pink);
}

.jwga-hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Signature element: fabric bolt / swatch stack */
.swatch-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.swatch-bolt {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: #fff;
  font-family: var(--font-label);
  box-shadow: var(--shadow-soft);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  margin-bottom: -34px;
}
.swatch-bolt:nth-child(1) { background: var(--marigold); --tilt: -3deg; z-index: 3; }
.swatch-bolt:nth-child(2) { background: var(--ink-indigo); --tilt: 2deg; z-index: 2; margin-left: 36px; }
.swatch-bolt:nth-child(3) { background: var(--rani-pink); --tilt: -1.5deg; z-index: 1; margin-left: 14px; margin-bottom: 0; }

.swatch-bolt .tag-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}
.swatch-bolt .tag-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 4px;
}

/* Thread divider between hero and next section, evokes stitched seam */
.thread-divider {
  height: 26px;
  margin-top: 70px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--marigold) 0 18px,
    transparent 18px 26px
  ),
  repeating-linear-gradient(
    90deg,
    var(--rani-pink) 0 18px,
    transparent 18px 26px
  ),
  repeating-linear-gradient(
    90deg,
    var(--ink-indigo) 0 18px,
    transparent 18px 26px
  );
  background-size: 100% 3px;
  background-position: 0 0, 9px 10px, 4px 20px;
  background-repeat: no-repeat;
  opacity: 0.9;
}

/* ==========================================================================
   SEGMENTS (Kidswear / Menswear / Womenswear)
   ========================================================================== */
.segment-card {
  background: var(--card-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 5px solid var(--accent, var(--marigold));
}
.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.segment-card .segment-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent, var(--marigold));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.segment-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.segment-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

.segment-card.kids { --accent: var(--marigold); }
.segment-card.mens { --accent: var(--ink-indigo); }
.segment-card.womens { --accent: var(--rani-pink); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-media-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(27, 42, 74, 0.92);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-label);
}
.about-media-badge .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--marigold); }
.about-media-badge .lbl { font-size: 0.78rem; color: #d8dcea; text-transform: uppercase; letter-spacing: 0.08em; }

.about-text p { color: var(--muted); font-size: 1.02rem; }

/* ==========================================================================
   VISION / MISSION
   ========================================================================== */
.vm-panel {
  background: var(--ink-indigo);
  border-radius: var(--radius-lg);
  padding: 46px 42px;
  color: #f2eee4;
  height: 100%;
}
.vm-panel h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.vm-panel p { color: #cfd3e0; font-size: 1.02rem; }
.vm-panel.alt { background: var(--rani-pink); }
.vm-panel.alt p { color: #f4dbe1; }

.mission-list { list-style: none; padding: 0; margin: 0; }
.mission-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mission-list li:last-child { border-bottom: none; }
.mission-list .m-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201, 146, 43, 0.14);
  color: var(--marigold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.mission-list .m-text { color: var(--charcoal); }

/* ==========================================================================
   WHY JAIPUR
   ========================================================================== */
.why-jaipur {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 54px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 767.98px) { .why-jaipur { padding: 30px; } }

.stat-chip {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  height: 100%;
}
.stat-chip .stat-title {
  font-family: var(--font-display);
  color: var(--rani-pink);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.stat-chip .stat-sub {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--ink-indigo);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--marigold);
  opacity: 0.18;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -80px; left: 10%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--rani-pink);
  opacity: 0.22;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfd3e0; margin-bottom: 0; }
@media (max-width: 767.98px) { .cta-band { padding: 34px; text-align: center; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.jwga-footer {
  background: var(--ink-indigo-dark);
  color: #c9cede;
  padding: 60px 0 24px;
}
.jwga-footer h5 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.jwga-footer a { color: #c9cede; }
.jwga-footer a:hover { color: var(--marigold); }
.jwga-footer .foot-links { list-style: none; padding: 0; margin: 0; }
.jwga-footer .foot-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8a90a8;
  text-align: center;
}
.social-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #fff;
  transition: background 0.2s ease;
}
.social-dot:hover { background: var(--rani-pink); }

/* ==========================================================================
   WORKING COMMITTEE
   ========================================================================== */

/* ---- Post badges ---- */
.post-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  color: #fff;
  background: var(--muted);
}
.post-badge.post-president            { background: var(--rani-pink); }
.post-badge.post-general-secretary    { background: var(--marigold); }
.post-badge.post-vice-president       { background: var(--ink-indigo); }
.post-badge.post-ec-member            { background: #8a8577; }

/* ---- Leadership carousel ---- */
.committee-carousel {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px 70px;
  border: 1px solid var(--border-soft);
}
@media (max-width: 767.98px) { .committee-carousel { padding: 34px 48px; } }

.leader-slide {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 220px;
}
@media (max-width: 575.98px) {
  .leader-slide { flex-direction: column; text-align: center; gap: 18px; }
}

.leader-photo {
  flex: 0 0 auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ivory);
  box-shadow: var(--shadow-soft);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.leader-info h3 { font-size: 1.5rem; margin-bottom: 2px; }
.leader-contact {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--ink-indigo);
  border: 1px solid var(--border-soft);
  padding: 7px 14px;
  border-radius: 30px;
  transition: all 0.2s ease;
}
.leader-contact:hover { background: var(--ink-indigo); color: #fff; border-color: var(--ink-indigo); }

.jwga-carousel-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink-indigo);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 1;
}
.carousel-control-prev, .carousel-control-next { width: 60px; }
.carousel-control-prev { left: -6px; }
.carousel-control-next { right: -6px; }
@media (max-width: 767.98px) {
  .carousel-control-prev { left: -2px; }
  .carousel-control-next { right: -2px; }
  .jwga-carousel-arrow { width: 34px; height: 34px; font-size: 0.95rem; }
}

.jwga-indicators { position: static; margin-top: 26px; }
.jwga-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-soft);
  opacity: 1;
  border: none;
  margin: 0 4px;
}
.jwga-indicators .active { background: var(--rani-pink); }

/* ---- Committee grid cards ---- */
.committee-card {
  background: var(--card-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.committee-card:hover, .committee-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.committee-card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.committee-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.committee-card:hover .committee-card-photo img { transform: scale(1.06); }
.committee-card-photo .post-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.62rem;
  padding: 5px 10px;
}

.committee-card-body { padding: 16px 16px 18px; }
.committee-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink-indigo);
  margin-bottom: 3px;
  line-height: 1.25;
}
.committee-card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
  min-height: 1.2em;
}
.committee-card-body .view-details {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rani-pink);
}

/* ---- Detail modal ---- */
.committee-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  position: relative;
}
.committee-modal-close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.modal-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ivory);
  box-shadow: var(--shadow-soft);
}
#modalName { font-size: 1.5rem; }
.modal-contact-row { max-width: 320px; margin: 0 auto; }
.modal-contact-row a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }