/* ===========================================================================
   FEMTA design system
   Brand: deep navy (#14305e) + saffron accent (#f6a821). Institutional, warm.
   =========================================================================== */

:root {
    --navy-900: #0d213f;
    --navy-800: #14305e;
    --navy-700: #1e3a8a;
    --navy-600: #2549a8;
    --navy-50:  #eef2fb;
    --saffron:  #f6a821;
    --saffron-dark: #d98c0a;
    --saffron-50: #fef6e6;
    --ink:      #1f2733;
    --muted:    #5a6678;
    --line:     #e4e8f0;
    --bg:       #f6f8fc;
    --card:     #ffffff;
    --green:    #1f9d57;
    --green-50: #e8f7ee;
    --red:      #d9483b;
    --red-50:   #fdecea;
    --amber-50: #fff7e6;
    --amber-700:#92660a;
    --radius:   12px;
    --radius-sm:8px;
    --shadow:   0 1px 2px rgba(13,33,63,.06), 0 8px 24px rgba(13,33,63,.06);
    --shadow-sm:0 1px 3px rgba(13,33,63,.08);
    --container: 1180px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .08em;
    font-size: 12px; font-weight: 700; color: var(--saffron-dark);
    background: var(--saffron-50); padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font: inherit; font-weight: 600; font-size: 15px;
    padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
    transition: .15s ease; text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-accent { background: var(--saffron); color: var(--navy-900); }
.btn-accent:hover { background: var(--saffron-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); background: var(--navy-50); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.24); color:#fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color:#fff; }

/* ---- Header / nav ---- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy-900); font-size: 20px; letter-spacing: .5px; }
.brand-text small { display:block; font-weight:500; font-size:11px; color:var(--muted); letter-spacing:.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 13px; border-radius: 7px;
}
.nav a:hover { background: var(--navy-50); color: var(--navy-800); }
.nav a.active { color: var(--navy-700); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 8px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content:""; display:block; width: 20px; height: 2px; background: var(--navy-800); position: relative; transition:.2s; }
.nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(246,168,33,.18), transparent 60%),
                linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff; padding: 84px 0; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; font-size: 46px; line-height: 1.1; margin-bottom: 18px; max-width: 14ch; }
.hero p { color: rgba(255,255,255,.86); font-size: 19px; max-width: 56ch; margin-bottom: 28px; }
.hero .cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display:flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-badge { color:#fff; } .hero-badge b { display:block; font-size: 28px; }
.hero-badge span { color: rgba(255,255,255,.7); font-size: 14px; }

/* ---- Hero featured-event slideshow ---- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-grid--solo { grid-template-columns: 1fr; }
.hero-content { min-width: 0; }
.hero-feature { min-width: 0; }
.hero-show {
    position: relative; display: block; width: 100%; max-width: 360px; margin-left: auto;
    aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.hero-show img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
    opacity: 0; transition: opacity 1.3s ease, transform 1.4s ease; will-change: opacity, transform;
    -webkit-user-drag: none;
}
.hero-show img.active { opacity: 1; transform: none !important; z-index: 2; }
.hero-show img.fx-zoom    { transform: scale(1.12); }
.hero-show img.fx-slide-l { transform: translateX(10%) scale(1.05); }
.hero-show img.fx-slide-r { transform: translateX(-10%) scale(1.05); }
.hero-show img.fx-slide-u { transform: translateY(8%) scale(1.05); }
.hero-show img.fx-fade    { transform: scale(1.03); }
.hero-show-tag {
    position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--saffron); color: var(--navy-900);
    font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.hero-feature-card {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    max-width: 360px; margin: 14px 0 0 auto; padding: 12px 15px; color: #fff; text-decoration: none;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; transition: .15s ease;
}
.hero-feature-card:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.hero-feature-kicker { color: var(--saffron); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hero-feature-card h3 { color: #fff; margin: 3px 0 2px; font-size: 18px; }
.hero-feature-where { color: rgba(255,255,255,.72); font-size: 13px; }
.hero-feature-go { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-show, .hero-feature-card { margin-left: 0; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-show img { transition: opacity .01s; }
    .hero-show img.fx-zoom, .hero-show img.fx-slide-l, .hero-show img.fx-slide-r,
    .hero-show img.fx-slide-u, .hero-show img.fx-fade { transform: none; }
}

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); transition: .15s ease;
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d4dbe8; }
.card h3 { font-size: 18px; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 22px;
}

/* ---- Badges & pills ---- */
.badge { display:inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.badge-info { background: var(--navy-50); color: var(--navy-700); }
.badge-accent { background: var(--saffron-50); color: var(--saffron-dark); }
.badge-success { background: var(--green-50); color: var(--green); }
.badge-danger { background: var(--red-50); color: var(--red); }
.badge-warn { background: var(--amber-50); color: var(--amber-700); }
.badge-muted { background: #eef1f6; color: var(--muted); }

/* ---- Alerts / flash ---- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.alert-success { background: var(--green-50); border-color: #b7e3c6; color: #156b3c; }
.alert-error   { background: var(--red-50); border-color: #f3c0ba; color: #a4322a; }
.alert-info    { background: var(--navy-50); border-color: #c9d6f3; color: var(--navy-800); }
.flash-wrap { padding-top: 18px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search],
select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(37,73,168,.12); }
textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 13px; color: var(--red); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: var(--navy-50); color: var(--navy-800); font-weight: 700; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---- Page header band ---- */
.page-head { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color:#fff; padding: 48px 0; }
.page-head h1 { color:#fff; font-size: 34px; margin-bottom: 6px; }
.page-head p { color: rgba(255,255,255,.8); margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---- Footer ---- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.78); margin-top: 60px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.78); display: block; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: var(--saffron); }
.footer .brand-text { color: #fff; }
.footer .brand-text small { color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display:flex; width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08);
    align-items: center; justify-content: center; padding: 0; }
.footer-social a:hover { background: var(--saffron); color: var(--navy-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px;
    display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal { color: rgba(255,255,255,.55); font-size: 12px; max-width: 70ch; }

/* ---- Accessibility ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy-800); color: #fff;
    padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }

/* ---- Misc ---- */
.list-clean { list-style: none; padding: 0; margin: 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .feature-icon { margin: 0 auto 14px; }

/* ---- Dashboard ---- */
.dash-wrap { display: grid; grid-template-columns: 244px 1fr; gap: 28px; padding: 28px 20px 60px; align-items: start; }
.dash-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.dash-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dash-user-name { font-weight: 700; font-size: 15px; color: var(--navy-900); margin-bottom: 3px; }
.dash-nav { display: flex; flex-direction: column; padding: 8px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.dash-nav a:hover { background: var(--navy-50); }
.dash-nav a.active { background: var(--navy-700); color: #fff; }
.dash-nav-ico { width: 20px; text-align: center; }
.dash-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.dash-nav a.active .dash-badge { background: #fff; color: var(--navy-800); }
.dash-nav-admin { margin-top: 6px; border-top: 1px solid var(--line); color: var(--navy-700) !important; }
.dash-main { min-width: 0; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: 26px; margin-bottom: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--navy-800); line-height: 1; }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.notice-item { background:#fff; border:1px solid var(--line); border-left-width:4px; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.notice-item.unread { background: var(--navy-50); }
.dash-section-title { display:flex; justify-content:space-between; align-items:center; margin: 0 0 14px; }

.admin-nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 12px 4px; }
.admin-nav-group:first-child { padding-top: 4px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table td .btn { margin: 0 1px; }
.kv-form .form-group:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
    .dash-wrap { grid-template-columns: 1fr; }
    .dash-side { position: static; }
    .dash-nav { flex-direction: row; flex-wrap: wrap; }
    .dash-nav a { flex: 1 1 auto; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Responsive ---- */
@media (max-width: 920px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav { position: fixed; inset: 70px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; padding: 10px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        margin-left: 0; display: none; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
    .nav-cta { margin: 12px 0 0; }
    .nav-cta .btn { flex: 1; justify-content: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 30px; }
}
