/*
 * Jai Poonam Nagar Co-Operative Housing Society — Redevelopment Portal
 * Redesigned stylesheet with a consistent design system.
 */

/* ===== Design tokens ===== */
:root {
    --brand:        #1d4e6f;
    --brand-dark:   #143a54;
    --brand-light:  #2c6d97;
    --accent:       #f39c12;
    --accent-dark:  #e67e22;

    --ink:          #1f2d3a;
    --muted:        #5b6b7a;
    --line:         #e4eaf0;

    --bg:           #f4f7fa;
    --bg-alt:       #eef3f8;
    --card:         #ffffff;

    --ok:           #27ae60;

    --radius:       16px;
    --radius-sm:    10px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 3px rgba(16, 42, 67, .08);
    --shadow:       0 10px 28px rgba(16, 42, 67, .10);
    --shadow-lg:    0 20px 44px rgba(16, 42, 67, .16);

    --maxw:         1140px;
    --header-h:     72px;
}

/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Segoe UI', sans-serif; line-height: 1.2; color: var(--brand-dark); }

img { max-width: 100%; display: block; }

a { color: var(--brand-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }

.btn-primary { background-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(243, 156, 18, .32); }
.btn-primary:hover { background-color: var(--accent-dark); color: #fff; }

.btn-ghost { background-color: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background-color: #fff; color: var(--brand-dark); }

.btn-outline { background-color: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background-color: var(--brand); color: #fff; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: .95rem;
    border-radius: 12px; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--brand-dark); }
.brand-tag { font-size: .78rem; color: var(--accent-dark); font-weight: 600; letter-spacing: .3px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    color: var(--ink);
    font-weight: 500;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background-color: var(--bg-alt); color: var(--brand-dark); }
.site-nav .nav-cta { background-color: var(--accent); color: #fff; }
.site-nav .nav-cta:hover { background-color: var(--accent-dark); color: #fff; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-toggle span { width: 24px; height: 2.5px; background-color: var(--brand-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; margin: 0 auto; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    color: #fff;
    background: url('images/banner-1-1200x509.jpg') center/cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(20, 58, 84, .92) 0%, rgba(20, 58, 84, .78) 45%, rgba(20, 58, 84, .55) 100%);
}
.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 52px 0;
}
.hero-text { flex: 1 1 55%; }
.hero-badge {
    display: inline-block;
    background-color: rgba(243, 156, 18, .2);
    color: #ffd38a;
    border: 1px solid rgba(243, 156, 18, .5);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: .82rem; font-weight: 600; letter-spacing: .4px;
    margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.hero-sub { color: var(--accent); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); margin-top: 8px; }
.hero-reg { margin-top: 16px; font-size: .92rem; opacity: .85; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { flex: 0 0 34%; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .18); }

/* ===== Stats band ===== */
.stats-band { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { text-align: center; padding: 26px 14px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; color: #fff; line-height: 1.25; }
.stat-label { display: block; font-size: .82rem; opacity: .85; margin-top: 4px; }

/* ===== Section scaffolding ===== */
.section { padding: 48px 0; }
.section-alt { background-color: var(--bg-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head h2::after { content: ''; display: block; width: 64px; height: 4px; background-color: var(--accent); border-radius: 4px; margin: 16px auto 0; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

.subhead { font-size: 1.2rem; color: var(--brand); margin: 8px 0 22px; text-align: center; }
.subhead:not(:first-of-type) { margin-top: 44px; }

/* ===== Overview ===== */
.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.overview-text p { margin-bottom: 18px; color: #384a5a; }
.overview-text p:last-child { margin-bottom: 0; }

.info-card { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ico { font-size: 1.15rem; line-height: 1.4; }
.info-k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.info-v { display: block; color: var(--ink); font-weight: 500; }

/* ===== Timeline ===== */
.timeline { list-style: none; max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background-color: var(--line); }
.tl-item { position: relative; display: flex; gap: 22px; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%; font-weight: 700; font-size: 1rem;
    background-color: #fff; border: 2px solid var(--line); color: var(--muted);
    z-index: 1;
}
.tl-item.done .tl-marker { background-color: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.active .tl-marker { background-color: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.7rem; line-height: 0; box-shadow: 0 0 0 5px rgba(243, 156, 18, .18); }
.tl-body { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; flex: 1; box-shadow: var(--shadow-sm); }
.tl-body h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.tl-body p { color: var(--muted); font-size: .95rem; }
.tl-status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: var(--radius-pill); }
.tl-item.done .tl-status { background-color: rgba(39, 174, 96, .12); color: var(--ok); }
.tl-item.active .tl-status { background-color: rgba(243, 156, 18, .14); color: var(--accent-dark); }
.tl-item.upcoming .tl-status { background-color: var(--bg-alt); color: var(--muted); }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { background-color: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-date { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand-light); background-color: var(--bg-alt); padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.news-card p { color: #384a5a; }

/* ===== People / committee ===== */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.person-card { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-photo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(16, 42, 67, .14); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo--initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.2rem; letter-spacing: 1px; text-transform: uppercase; }
.person-name { font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.person-role { color: var(--accent-dark); font-size: .9rem; font-weight: 600; margin-top: 4px; }

/* Compact committee-member rows (space-saving) */
.members-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.member-mini { display: flex; align-items: center; gap: 12px; background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px 8px 8px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.member-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .5px; }
.mini-info { display: flex; flex-direction: column; line-height: 1.25; }
.mini-name { font-weight: 600; color: var(--ink); font-size: .98rem; }
.mini-role { font-size: .76rem; font-weight: 600; color: var(--accent-dark); }

/* ===== Documents ===== */
.docs-panel { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; padding: 44px 32px; text-align: center; }
.docs-icon { font-size: 2.6rem; margin-bottom: 12px; }
.docs-intro { color: #384a5a; max-width: 560px; margin: 0 auto 26px; }
.docs-access { max-width: 600px; margin: 22px auto 0; font-size: .92rem; color: #6a5a2e; background-color: #fef5e7; border: 1px solid #f5d491; border-radius: var(--radius-sm); padding: 12px 18px; }
.docs-note { margin-top: 14px; font-size: .9rem; color: var(--muted); font-style: italic; }

/* Combined Videos & Photos (media) cards */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.media-card { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.media-card .docs-icon { font-size: 2.2rem; margin-bottom: 6px; }
.media-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.media-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.media-access { max-width: 700px; margin-left: auto; margin-right: auto; margin-top: 24px; }

/* ===== Partners ===== */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 860px; margin: 0 auto; }
.partner-card { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.partner-icon { width: 82px; height: 82px; display: grid; place-items: center; background-color: var(--bg-alt); border-radius: 50%; margin-bottom: 18px; }
.partner-icon svg { fill: var(--brand); }
.partner-card h3 { font-size: 1.3rem; }
.partner-divider { width: 56px; height: 3px; background-color: var(--accent); border-radius: 3px; margin: 14px 0 16px; }
.partner-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 22px; color: var(--ink); }
.partner-card .btn { margin-top: auto; }

/* ===== Footer ===== */
.site-footer { background-color: var(--brand-dark); color: #cdd9e3; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding: 54px 0 40px; }
.footer-brand { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; display: block; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col p { font-size: .92rem; line-height: 1.7; }
.footer-col a { display: block; color: #cdd9e3; padding: 4px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
/* Links inside a paragraph (e.g. the email) should stay inline, not block */
.footer-col p a { display: inline; padding: 0; }
.footer-k { color: #8fa6b7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: .86rem; color: #93a6b5; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .overview-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat { border-bottom: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 8px 16px 16px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .site-nav a { padding: 13px 12px; border-radius: var(--radius-sm); }
    .site-nav .nav-cta { text-align: center; margin-top: 6px; }

    .hero-inner { flex-direction: column-reverse; text-align: center; padding: 36px 0; gap: 24px; }
    .hero-actions { justify-content: center; }
    .hero-photo { flex-basis: auto; width: 100%; max-width: 300px; }

    .section { padding: 38px 0; }
    .section-head { margin-bottom: 26px; }
    .timeline::before { left: 15px; }
    .tl-marker { flex-basis: 32px; width: 32px; height: 32px; font-size: .9rem; }
    .tl-item.active .tl-marker { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: none; }
    .brand-tag { display: none; }
    .brand-name { font-size: .98rem; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .docs-panel { padding: 32px 20px; }
}
