/* =========================================================
   Pushparaj Club — site stylesheet
   Palette from the club's rose logo. Fonts: Tiro Bangla + Hind Siliguri
   ========================================================= */
:root {
  --ink: #23124d;        /* deep indigo: headings, footer */
  --text: #2b2440;       /* body text */
  --muted: #5e5873;
  --rose: #c8141e;       /* primary action */
  --rose-dark: #9e0f17;
  --leaf: #2d7a3a;
  --tea: #e9f2e5;        /* tea-garden green tint */
  --petal: #fbf0ef;      /* soft rose tint */
  --line: #ddd6e8;
  --white: #ffffff;
  --wrap: 1180px;
  --serif: "Tiro Bangla", Georgia, "Times New Roman", serif;
  --sans: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tea { background: var(--tea); }
.section-petal { background: var(--petal); }
.lead { font-size: 1.2rem; color: var(--muted); }
.bn { font-family: var(--serif); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--sans);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--rose-dark); }
.btn-white:hover { background: var(--petal); color: var(--rose-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 50px; height: 50px; }
.brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .85rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.site-nav .btn { padding: .7rem 1.3rem; }
.nav-toggle { display: none; font: 600 1rem var(--sans); background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }

/* ---------- Hero (the one bold moment) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-name {
  font-family: var(--serif);
  color: var(--rose);
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .9rem 0 1rem; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 220px 18px 220px 18px;   /* petal shape */
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(35, 18, 77, .45);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.hero-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: #fff; border-radius: 999px; padding: .45rem .5rem .45rem .45rem;
  display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--ink); font-weight: 600;
}
.hero-badge img { width: 42px; height: 42px; }
.hero-badge span { padding-right: .7rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-name { animation: bloom 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-photo { animation: unfold 1.2s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes bloom { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes unfold { from { clip-path: inset(0 0 100% 0 round 220px 18px 220px 18px); } to { clip-path: inset(0 0 0 0 round 220px 18px 220px 18px); } }
}

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.facts-list li { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.facts-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Programs (home) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-sticky { position: sticky; top: 110px; }
.split-sticky img { border-radius: 14px; margin-top: 1.5rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 1px solid var(--line); }
.program-list h3 { margin-bottom: .35rem; }
.program-list p { margin: 0; color: var(--muted); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--ink); }

/* ---------- Timeline (a real sequence) ---------- */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 2.2rem 1.2rem 0 0; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--white); }
.section-tea .timeline li::before { box-shadow: 0 0 0 5px var(--tea); }
.timeline b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.timeline span { display: block; color: var(--muted); font-size: .97rem; line-height: 1.5; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.partners li { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.15rem; background: #fff; font-weight: 500; color: var(--ink); }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: .8rem; margin-top: 2rem; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.photo-strip img:first-child { grid-row: span 2; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-head p { margin: 0; }

/* ---------- Donate band ---------- */
.donate-band { background: var(--rose); color: #fff; }
.donate-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem, 6vw, 4.5rem); }
.donate-band h2 { color: #fff; margin-bottom: .3rem; }
.donate-band p { margin: 0; color: #ffe3e1; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--petal); padding-block: clamp(3rem, 7vw, 5rem); }
.page-head .bn { color: var(--rose); font-size: 1.25rem; margin-bottom: .4rem; display: block; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 .8rem; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col img { border-radius: 14px; width: 100%; }
.reg-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 1rem; }
.reg-table th, .reg-table td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table th { color: var(--muted); font-weight: 500; width: 42%; }
.reg-table td { color: var(--ink); font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem; margin-top: 2rem; }
.team figure { margin: 0; }
.team img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 180px; border: 6px solid var(--petal); }
.team figcaption { margin-top: 1rem; }
.team figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.team figcaption span { color: var(--muted); }
.cert img { border: 1px solid var(--line); border-radius: 10px; }

/* ---------- Our work page ---------- */
.work-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.work-item:first-of-type { border-top: 0; }
.work-item:nth-of-type(even) .work-media { order: 2; }
.work-media img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-item ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.work-item li { margin-bottom: .35rem; }
.tag { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--leaf); margin-bottom: .5rem; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters button { font: 500 1rem var(--sans); border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .93rem; color: var(--muted); padding: .45rem .1rem 0; }
.gallery figure[hidden] { display: none; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.video { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: 12px; overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: none; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 56% 50% / 32px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

.lightbox { position: fixed; inset: 0; background: rgba(20, 10, 45, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 4rem 1rem 3rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 8px; }
.lightbox figcaption { color: #e9e4f5; margin-top: .8rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Donate page ---------- */
.give-steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.give-steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.4rem; }
.give-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 700; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.2rem); }
.panel-rose { background: var(--petal); border-color: #f1d3d1; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 3rem; margin-top: 2rem; }
.ways h3 { font-size: 1.3rem; }
.ways p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .97rem; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--text);
  padding: .85rem 1rem; border: 1px solid #c9c1d9; border-radius: 10px; background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(45,122,58,.35); border-color: var(--leaf); }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.notice { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-weight: 500; }
.notice-ok { background: var(--tea); color: #1d5527; }
.notice-err { background: #fde5e3; color: var(--rose-dark); }
.notice[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; color: var(--muted); font-weight: 500; font-size: .93rem; }
.contact-list a, .contact-list span { font-size: 1.12rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.map { border: 0; width: 100%; height: 320px; border-radius: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2ea; padding-block: 4rem 2rem; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; }
.footer-brand b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: #fff; display: block; line-height: 1.1; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--rose); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: #b6acd0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  .hero-grid, .split, .story, .two-col, .work-item, .contact-grid { grid-template-columns: 1fr; }
  .work-item:nth-of-type(even) .work-media { order: 0; }
  .split-sticky { position: static; }
  .hero-photo { aspect-ratio: 4 / 3.4; border-radius: 160px 14px 160px 14px; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 1.6rem 2.6rem; }
  .timeline li::before { top: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .facts-list li:first-child { border-top: 0; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .photo-strip img:first-child { grid-column: span 2; grid-row: auto; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-photo { border-radius: 110px 12px 110px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
