/* =====================================================
   Igreja Comunidade de FÃ© â€” Design System v2
   ===================================================== */

/* --- VariÃ¡veis ---------------------------------------- */
:root {
    --brand:        #5B3FDE;
    --brand-dark:   #3A25A8;
    --brand-light:  #EDE9FF;
    --gold:         #D4AF37;
    --gold-dark:    #A88A20;
    --success:      #22C55E;
    --danger:       #EF4444;
    --warning:      #F59E0B;
    --info:         #3B82F6;
    --text:         #1A1A2E;
    --text-muted:   #6B7280;
    --bg:           #FAFAF8;
    --bg-alt:       #F3F0F7;
    --border:       #E5E7EB;
    --white:        #FFFFFF;
    --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
    --shadow-md:    0 4px 24px rgba(91,63,222,.14);
    --shadow-lg:    0 12px 48px rgba(91,63,222,.2);
    --radius-sm:    6px;
    --radius:       14px;
    --radius-lg:    22px;
    --transition:   .22s ease;
    --font:         'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --nav-h:        100px;
}

/* --- Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

/* --- Tipografia --------------------------------------- */
h1,h2,h3,h4,h5 { line-height: 1.22; font-weight: 700; }
h1 { font-size: clamp(2rem,5vw,3.2rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.5rem,3.5vw,2.2rem); font-family: var(--font-display); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-muted); }

/* --- Layout ------------------------------------------- */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { color: var(--text); margin-top: .4rem; }
.section-tag { color: var(--brand); font-weight: 600; text-transform: uppercase;
               letter-spacing: .12em; font-size: .8rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-2 { margin-top: .75rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.fw-bold { font-weight: 700; }

/* --- BotÃµes ------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.5rem;
       border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
       border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
       text-decoration: none; font-family: var(--font); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary   { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(91,63,222,.35); }
.btn-outline   { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-danger    { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-warning   { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-text      { background: none; border: none; color: var(--brand); padding: 0; font-weight: 600; }
.btn-text:hover{ text-decoration: underline; }
.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm  { padding: .32rem .75rem; font-size: .8rem; }
.btn-full{ width: 100%; justify-content: center; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229,231,235,.6);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: all .3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,.97);
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}

/* Brand / Logo */
.brand {
    display: flex; align-items: center; gap: .7rem;
    font-weight: 800; font-size: 1.15rem; color: var(--brand);
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; opacity: .88; }
.brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(91,63,222,.35);
}

/* Links */
.nav-links {
    display: flex; align-items: center; gap: .25rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-links a {
    color: var(--text); font-weight: 500; font-size: .92rem;
    padding: .45rem .85rem; border-radius: var(--radius-sm);
    transition: all var(--transition); position: relative;
    text-decoration: none; display: block;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-light); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }

/* BotÃ£o "Entrar" dentro do nav */
.btn-nav-login {
    background: var(--brand) !important;
    color: var(--white) !important;
    padding: .45rem 1.1rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(91,63,222,.3);
    transition: all var(--transition) !important;
}
.btn-nav-login:hover {
    background: var(--brand-dark) !important;
    box-shadow: 0 6px 18px rgba(91,63,222,.45) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: .4rem; border-radius: var(--radius-sm); flex-shrink: 0;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all .3s ease; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative; min-height: 88vh;
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a0a6b 55%, #6B3FDE 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,255,255,.06) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute; width: 600px; height: 600px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.08);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 0 120px rgba(255,255,255,.03), 0 0 0 240px rgba(255,255,255,.02);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.22); }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--white); max-width: 720px; padding: 2rem 1.5rem; }
.hero-tag { font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
            color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: 1.25rem;
              text-shadow: 0 4px 24px rgba(0,0,0,.35); font-family: var(--font-display); line-height: 1.08; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); margin-bottom: 2.25rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
                    color: rgba(255,255,255,.5); font-size: 1.3rem; animation: bounce 2s infinite; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* Eventos */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.event-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    display: flex; gap: 1.25rem; padding: 1.5rem;
    border-left: 4px solid var(--brand); transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-date-badge { text-align: center; min-width: 52px; }
.event-day   { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.event-month { display: block; font-size: .68rem; font-weight: 700; color: var(--text-muted);
               text-transform: uppercase; letter-spacing: .1em; margin-top: .1rem; }
.event-info h3 { font-size: 1rem; margin-bottom: .35rem; color: var(--text); }
.event-time,.event-location { font-size: .82rem; color: var(--text-muted); display: flex;
                               align-items: center; gap: .35rem; margin-bottom: .2rem; }
.event-desc { font-size: .84rem; margin-top: .5rem; color: var(--text-muted); }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 2rem; }
.pillar-card  {
    text-align: center; padding: 2.25rem 1.5rem; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 3px solid transparent; background-clip: padding-box;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pillar-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-light);
               display: flex; align-items: center; justify-content: center;
               margin: 0 auto 1.1rem; font-size: 1.7rem; color: var(--brand); }
.pillar-card h3 { color: var(--text); margin-bottom: .5rem; }

/* NotÃ­cias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.news-card  {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-img img { width: 100%; height: 185px; object-fit: cover; }
.news-body { padding: 1.35rem; }
.news-date  { font-size: .78rem; color: var(--text-muted); margin-bottom: .4rem; display: flex; align-items: center; gap: .35rem; }
.news-body h3 { color: var(--text); margin-bottom: .5rem; font-size: 1rem; line-height: 1.4; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white); text-align: center; padding: 5.5rem 2rem; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,.07) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; position: relative; }
.cta-section p  { color: rgba(255,255,255,.82); margin-bottom: 2.25rem; font-size: 1.08rem; position: relative; }
.cta-section .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--text); position: relative; }
.cta-section .btn-gold:hover { background: var(--gold-dark); box-shadow: 0 6px 20px rgba(212,175,55,.45); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.65);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; }
.footer h3 i { color: var(--gold); }
.footer h4 { color: var(--white); font-size: .8rem; font-weight: 700; text-transform: uppercase;
             letter-spacing: .1em; margin-bottom: 1rem; }
.footer p  { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .5rem; }
.footer ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--white); text-decoration: none; }

/* Social icons */
.social-links { display: flex; gap: .75rem; margin-top: .5rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; transition: all var(--transition);
    text-decoration: none;
}
.social-links a:hover { background: var(--brand); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
    padding: 1.5rem 0; text-align: center; font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* =====================================================
   AUTH
   ===================================================== */
.auth-section { min-height: 100vh; display: flex; align-items: center; justify-content: center;
                background: linear-gradient(135deg, var(--brand-dark) 0%, #1a0a6b 100%); padding: 2rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.75rem;
             width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo i { font-size: 2.75rem; color: var(--brand); display: block; margin-bottom: .5rem; }
.auth-logo h1 { font-size: 1.5rem; color: var(--text); }
.auth-card h2 { text-align: center; font-size: 1.15rem; margin-bottom: 1.75rem; color: var(--text); }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--text-muted); }
.auth-footer a { color: var(--brand); }

/* =====================================================
   FORMULÃRIOS
   ===================================================== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .87rem; color: var(--text); margin-bottom: .38rem; }
.form-control { width: 100%; padding: .62rem .95rem; border: 1.5px solid var(--border);
                border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font);
                transition: all var(--transition); background: var(--white); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
textarea.form-control { resize: vertical; }
.input-eye { position: relative; }
.input-eye .form-control { padding-right: 2.8rem; }
.eye-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
              background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .95rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1 1 auto; }
.form-row .col-2 { flex: 0 0 calc(2/12*100% - .5rem); }
.form-row .col-4 { flex: 0 0 calc(4/12*100% - .5rem); }
.form-row .col-6 { flex: 0 0 calc(6/12*100% - .5rem); }
.form-row .col-8 { flex: 0 0 calc(8/12*100% - .5rem); }

/* =====================================================
   ALERTAS
   ===================================================== */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
         font-size: .9rem; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #166534; border-left: 4px solid var(--success); }
.alert-danger   { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-info     { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--info); }
.alert-warning  { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }

/* =====================================================
   PAINEL ADMIN
   ===================================================== */
.admin-body { background: #F0EEF8; }

/* Sidebar */
.sidebar { position: fixed; top: 0; left: 0; width: 252px; height: 100vh;
           background: linear-gradient(180deg, var(--text) 0%, #2D1B69 100%);
           overflow-y: auto; z-index: 200; display: flex; flex-direction: column;
           transition: transform var(--transition); }
.sidebar-brand { display: flex; align-items: center; gap: .85rem; padding: 1.5rem 1.25rem;
                 color: var(--white); font-size: 1.05rem; font-weight: 800;
                 border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand i { font-size: 1.5rem; color: var(--gold); }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .72rem 1.4rem;
                 color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500;
                 transition: all var(--transition); margin: 2px 0; border-radius: 0; text-decoration: none; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.sidebar-nav a.active { background: rgba(91,63,222,.4); color: var(--white); border-right: 3px solid var(--gold); }
.sidebar-nav a i { width: 18px; text-align: center; font-size: .9rem; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,.1); margin: .75rem 0; }

/* Topbar */
.admin-main { margin-left: 252px; min-height: 100vh; }
.topbar { background: var(--white); border-bottom: 1px solid var(--border);
          padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between;
          position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.sidebar-toggle { background: none; border: none; font-size: 1.25rem; color: var(--text-muted); cursor: pointer; display: none; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; font-size: .88rem; color: var(--text-muted); }
.topbar-right i { margin-right: .3rem; }

/* Flash */
.flash { display: flex; align-items: center; justify-content: space-between;
         padding: .85rem 2rem; font-size: .9rem; font-weight: 500; }
.flash-success { background: #ecfdf5; color: #166534; border-bottom: 2px solid var(--success); }
.flash-danger   { background: #fef2f2; color: #991b1b; border-bottom: 2px solid var(--danger); }
.flash button   { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .6; }

/* ConteÃºdo Admin */
.admin-content { padding: 2rem; }
.page-header { display: flex; align-items: center; justify-content: space-between;
               margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.5rem; color: var(--text); }
.page-header p  { color: var(--text-muted); font-size: .9rem; }
.d-flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem;
             display: flex; align-items: center; gap: 1.25rem; box-shadow: var(--shadow-sm);
             border-left: 4px solid; transition: box-shadow var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-blue  { border-color: var(--info); }
.stat-green { border-color: var(--success); }
.stat-gold  { border-color: var(--gold); }
.stat-red   { border-color: var(--danger); }
.stat-icon  { font-size: 1.8rem; width: 50px; text-align: center; opacity: .85; }
.stat-blue .stat-icon  { color: var(--info); }
.stat-green .stat-icon { color: var(--success); }
.stat-gold .stat-icon  { color: var(--gold-dark); }
.stat-red .stat-icon   { color: var(--danger); }
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase;
              letter-spacing: .06em; margin-bottom: .2rem; }
.stat-body h2 { font-size: 1.8rem; color: var(--text); }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
               display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.card-body { padding: 1.5rem; }
.card-body.p-0 { padding: 0; }
.card-body.p-1 { padding: .5rem 0; }
.card-body.p-2 { padding: 1rem; }
/* Table layout improvements */
.table th, .table td { text-align: left; }
.table th { white-space: nowrap; }
.table .text-center, .table td.text-center { text-align: center; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Page content centering utility */
.content-centered { max-width: 960px; margin: 0 auto; }
.card-danger .card-header { background: #fef2f2; border-color: var(--danger); }
.ml-2 { margin-left: .5rem; }

/* Dashboard */
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.mini-list { list-style: none; }
.mini-list li { display: flex; gap: .75rem; align-items: center; padding: .5rem 0;
                border-bottom: 1px solid var(--border); font-size: .88rem; }
.mini-date { font-weight: 700; color: var(--brand); min-width: 42px; }

/* Tabelas */
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
            color: var(--text-muted); padding: .75rem 1rem; background: var(--bg); border-bottom: 2px solid var(--border); }
.table td { padding: .85rem 1rem; font-size: .9rem; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--brand-light); }
.actions { display: flex; gap: .6rem; align-items: center; }
.inline-form { display: inline; }

/* Badges */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .74rem; font-weight: 700; }
.badge-success, .badge-green   { background: #d1fae5; color: #065f46; }
.badge-danger,  .badge-red     { background: #fee2e2; color: #991b1b; }
.badge-secondary               { background: #e5e7eb; color: #374151; }
.badge-info,    .badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-warning, .badge-gold    { background: #fef3c7; color: #92400e; }

/* Search bar */
.search-bar { display: flex; gap: .5rem; }
.search-bar .form-control { flex: 1; }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 960px) {
    .footer-grid    { grid-template-columns: 1fr 1fr; }
    .sidebar        { transform: translateX(-100%); }
    .sidebar.open   { transform: translateX(0); }
    .admin-main     { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .dash-row       { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .nav-links { 
        display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem; gap: .25rem;
        box-shadow: 0 12px 32px rgba(0,0,0,.1);
        animation: slideDown .22s ease;
    }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .65rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { flex-direction: column; }
    .form-row .col-2,.form-row .col-4,.form-row .col-6,.form-row .col-8 { flex: none; width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.4rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
}

