/* ── Marwari Samaj Discount Portal Global CSS ────────────── */
:root {
    --bg:             #f7f7f5;
    --surface:        #ffffff;
    --surface-2:      #fafaf9;
    --border:         rgba(0,0,0,0.07);
    --border-md:      rgba(0,0,0,0.12);
    --text-1:         #111111;
    --text-2:         #555555;
    --text-3:         #999999;
    --accent:         #f26522;      /* Marwari Samaj Orange */
    --accent-dim:     rgba(242,101,34,0.08);
    --accent-border:  rgba(242,101,34,0.3);
    --blue:           #2563eb;
    --blue-dim:       rgba(37,99,235,0.07);
    --green:          #16a34a;
    --green-dim:      rgba(22,163,74,0.08);
    --amber:          #d97706;
    --amber-dim:      rgba(217,119,6,0.08);
    --red:            #dc2626;
    --red-dim:        rgba(220,38,38,0.08);

    --shadow-sm:      0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lift:    0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.6;
}

/* Subtle dot-grid background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ── Layout Shell ───────────────────────────── */
.shell {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* ── Global Header (Marwari Logo ONLY) ───────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-1);
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-1);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partner-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* ── Hero Section ────────────────────────────── */
.hero {
    margin-bottom: 3rem;
}

.hero .eyebrow {
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-1);
    margin-bottom: 0.85rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--text-2);
    font-weight: 300;
}

.hero p {
    font-size: 0.925rem;
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.7;
}

/* ── Global Footer ───────────────────────────── */
.page-footer {
    border-top: 1px solid var(--border);
    padding-top: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.footer-left {
    font-size: 0.775rem;
    color: var(--text-3);
    line-height: 1.6;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-link {
    font-size: 0.775rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover { color: var(--accent); }

/* ── Validity Chips ──────────────────────────── */
.validity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.validity-active {
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.validity-expiring {
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.validity-expired {
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ── Entrance Animations ─────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header { animation: fadeIn 0.4s ease both; }
.hero        { animation: fadeIn 0.4s 0.06s ease both; }
.page-footer { animation: fadeIn 0.4s 0.24s ease both; }

/* ── Mobile Layout ───────────────────────────── */
@media (max-width: 640px) {
    .shell { padding: 2.5rem 1rem 4rem; }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero { margin-bottom: 2rem; }

    .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}
