/* ─── Bhiva Jan Sahara Foundation – Global Styles ────────────────────────────
   Logo colors: Navy #1a237e | Sky Blue #29b6d8 | Green #6cc24a
   ─────────────────────────────────────────────────────────────────────────── */

:root {
    --primary:      #1a237e;   /* deep navy from logo portrait */
    --primary-2:    #283593;   /* slightly lighter navy */
    --primary-3:    #3949ab;   /* medium blue */
    --accent:       #29b6d8;   /* sky blue arc in logo */
    --accent-2:     #00acc1;   /* deeper teal */
    --green:        #6cc24a;   /* green arc in logo */
    --green-dark:   #4caf50;
    --white:        #ffffff;
    --dark:         #0d1442;
    --text:         #1a1f3a;
    --text-soft:    #5c627a;
    --text-muted:   #9ca3b4;
    --bg-light:     #f4f7ff;
    --bg-soft:      #eef2ff;
    --border:       #d8def0;
    --shadow-sm:    0 4px 20px rgba(26,35,126,0.08);
    --shadow-md:    0 12px 40px rgba(26,35,126,0.13);
    --shadow-lg:    0 24px 60px rgba(26,35,126,0.18);
    --radius-sm:    10px;
    --radius-md:    18px;
    --radius-lg:    28px;
    --radius-full:  999px;
    --container:    1200px;
    --transition:   0.28s ease;
    --font-body:    'Inter', 'Noto Sans Devanagari', sans-serif;
    --font-heading: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all var(--transition); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Skip link ── */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 9999;
    background: var(--primary); color: var(--white); padding: 10px 18px;
    border-radius: var(--radius-full); font-size: .88rem; }
.skip-link:focus { left: 12px; }

/* ── Container ── */
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-full);
    font-size: .95rem; font-weight: 600; transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--white); box-shadow: 0 4px 18px rgba(26,35,126,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,35,126,.38); }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white); box-shadow: 0 4px 18px rgba(41,182,216,.28);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(41,182,216,.38); }
.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white); box-shadow: 0 4px 18px rgba(108,194,74,.28);
}
.btn-green:hover { transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Section tags ── */
.section-tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, rgba(41,182,216,.12), rgba(108,194,74,.12));
    color: var(--accent-2); border: 1px solid rgba(41,182,216,.3);
    padding: 5px 16px; border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
    color: var(--primary); line-height: 1.25; margin-bottom: 14px;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; max-width: 640px; }
.section-head.center p { margin: 0 auto; }

/* ── Cards ── */
.card {
    background: var(--white); border-radius: var(--radius-md);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ── Form elements ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; color: var(--text);
    background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,182,216,.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c627a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* ── Alert / Flash ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 18px; }
.alert-success { background: rgba(108,194,74,.12); color: #2e7d32; border: 1px solid rgba(108,194,74,.35); }
.alert-error   { background: rgba(239,68,68,.1);  color: #c62828; border: 1px solid rgba(239,68,68,.25); }
.alert-info    { background: rgba(41,182,216,.1);  color: var(--accent-2); border: 1px solid rgba(41,182,216,.25); }

/* ── Page hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--accent-2) 100%);
    padding: 64px 0 52px; text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 10px; position: relative; }
.page-hero p  { font-size: 1.05rem; opacity: .85; position: relative; }
.breadcrumb   { display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: .85rem; opacity: .75; margin-top: 14px; position: relative; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ── WhatsApp float ── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 9998;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 6px 24px rgba(37,211,102,.4);
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Utilities ── */
.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-green    { color: var(--green); }
.text-soft     { color: var(--text-soft); }
.text-center   { text-align: center; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 16px; }
.mt-1          { margin-top: 8px; }
.mt-2          { margin-top: 16px; }
.mt-3          { margin-top: 24px; }
.mb-2          { margin-bottom: 16px; }
.mb-3          { margin-bottom: 24px; }
.fw-bold       { font-weight: 700; }

/* ── Responsive grid helper ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
