/* =========================================================
   CLEAN PREMIUM LIGHT UI (2026)
   Works with Bootstrap 5 markup from your page
   ========================================================= */

/* ===== TOKENS ===== */
:root {
  --bg: #f6f7fb;
  --text: rgba(15, 15, 20, 0.92);
  --muted: rgba(15, 15, 20, 0.62);
  --border: rgba(20, 20, 30, 0.12);

  --card: rgba(255, 255, 255, 0.86);
  --card2: rgba(255, 255, 255, 0.95);

  --accent: #ff6b35;
  --accent2: #ff915e;
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --r: 18px;
  --r2: 24px;

  --shadow: 0 18px 42px rgba(10, 10, 15, 0.12);
  --shadow2: 0 12px 26px rgba(10, 10, 15, 0.1);

  --ring: 0 0 0 4px rgba(255, 107, 53, 0.22);
  --t: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Montserrat",
    Arial;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(
      900px 600px at 12% 8%,
      rgba(255, 107, 53, 0.12),
      transparent 55%
    ),
    radial-gradient(
      700px 520px at 88% 12%,
      rgba(99, 102, 241, 0.11),
      transparent 55%
    ),
    radial-gradient(
      900px 680px at 50% 100%,
      rgba(34, 197, 94, 0.09),
      transparent 60%
    ),
    var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 14px;
}

.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}

.navbar .container-fluid {
  max-width: 100% !important;
  width: 100%;
  padding: 0;
  margin: 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: rotate(10deg) scale(1.1);
}
.nav-link {
  color: var(--muted) !important;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 12px !important;
  transition: var(--t);
}
.nav-link:hover {
  color: var(--text) !important;
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}
.navbar-toggler {
  border: 1px solid var(--border) !important;
  border-radius: 16px;
  padding: 8px 10px;
}

/* dropdown */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dropdown-item {
  font-weight: 800;
  padding: 10px 12px !important;
  color: var(--text) !important;
}
.dropdown-item:hover {
  background: rgba(255, 107, 53, 0.12) !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 76px 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.58)),
    url("../img/glav.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      700px 460px at 18% 22%,
      rgba(255, 107, 53, 0.3),
      transparent 60%
    ),
    radial-gradient(
      540px 420px at 82% 18%,
      rgba(99, 102, 241, 0.24),
      transparent 55%
    );
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 1000;
  letter-spacing: -1px;
  line-height: 1.05;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}
.hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  margin-bottom: 22px;
}
.hero .btn {
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: var(--t);
}
.btn.btn-light {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  backdrop-filter: blur(14px);
}
.btn.btn-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24) !important;
  box-shadow: var(--shadow2);
}

/* ===== STATS (4 cards) ===== */
section.py-4.bg-white.border-bottom {
  background: transparent !important;
  border: none !important;
}
section.py-4.bg-white.border-bottom .container {
  margin-top: -26px;
}
section.py-4.bg-white.border-bottom .row > div > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px 12px !important;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
}
section.py-4.bg-white.border-bottom .h2 {
  font-weight: 1000;
  letter-spacing: -0.8px;
}
section.py-4.bg-white.border-bottom .row > div > div div:last-child {
  color: var(--muted);
  font-weight: 800;
}

/* ===== FILTER CARD ===== */
#search {
  padding-top: 54px !important;
}
form.border.rounded.p-3.bg-white {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r2) !important;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
}
.form-label {
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 8px;
}
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(10, 10, 15, 0.14) !important;
  color: var(--text) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  transition: var(--t);
}
.form-control::placeholder {
  color: rgba(15, 15, 20, 0.42);
}
.form-control:focus,
.form-select:focus {
  box-shadow: var(--ring) !important;
  border-color: rgba(255, 107, 53, 0.45) !important;
}

/* status buttons row */
#search .btn {
  border-radius: 16px;
  font-weight: 900;
  transition: var(--t);
}
.btn-outline-secondary {
  border: 1px solid rgba(10, 10, 15, 0.14) !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}
.btn-outline-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 53, 0.1) !important;
  box-shadow: var(--shadow2);
}

/* primary buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.28);
}

/* ===== CASES GRID ===== */
section.py-4 {
  padding-top: 10px !important;
}
.card.h-100 {
  position: relative;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r2) !important;
  overflow: hidden;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  transition: var(--t);
}
.card.h-100:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card.h-100::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      650px 260px at 18% 0%,
      rgba(255, 107, 53, 0.1),
      transparent 55%
    ),
    radial-gradient(
      560px 240px at 82% 0%,
      rgba(99, 102, 241, 0.1),
      transparent 55%
    );
  opacity: 0.85;
}
.card.h-100 .card-body,
.card.h-100 img {
  position: relative;
  z-index: 1;
}

.case-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f3f4f6;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.card-body {
  padding: 16px 16px 18px !important;
}
.card-body .fw-bold {
  font-size: 1.06rem;
  letter-spacing: -0.2px;
}
.btn-sm {
  border-radius: 14px !important;
  padding: 8px 12px !important;
  font-weight: 900 !important;
}

/* ===== MODAL (case details) ===== */
.modal-dialog.modal-lg {
  max-width: 920px !important;
}
.modal-content {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r2) !important;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 18px !important;
  background: transparent !important;
}
.modal-title {
  font-weight: 1000 !important;
  letter-spacing: -0.3px;
}

/* modal layout */
.case-modal {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 992px) {
  .case-modal {
    grid-template-columns: 1fr;
  }
}

/* hero image block */
.case-hero {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  box-shadow: var(--shadow2);
}
.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.case-hero .no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  color: rgba(15, 15, 20, 0.55);
}

/* thumbs */
.case-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.case-thumb {
  width: 88px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f3f4f6;
  padding: 0;
  cursor: pointer;
  transition: var(--t);
}
.case-thumb:hover {
  transform: translateY(-2px);
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* info card inside modal */
.case-info {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow2);
  padding: 14px;
}
.case-info .case-line {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.86);
}
.case-info .k {
  min-width: 140px;
  font-weight: 900;
  color: var(--muted);
}
.case-info .v {
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}
@media (max-width: 576px) {
  .case-info .case-line {
    flex-direction: column;
  }
  .case-info .k {
    min-width: auto;
  }
}

.case-desc {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  margin-bottom: 12px;
}
.case-desc .k {
  display: block;
  margin-bottom: 6px;
  font-weight: 1000;
  color: var(--muted);
}
.case-call {
  border-radius: 18px !important;
  padding: 12px 14px !important;
  font-weight: 1000 !important;
}

/* ===== FOOTER ===== */
.footer {
  background: transparent !important;
  border-top: 1px solid var(--border);
  padding: 46px 0 24px;
}
.footer h3,
.footer h5 {
  color: var(--text);
  font-weight: 1000;
  letter-spacing: -0.4px;
}
.footer p {
  color: var(--muted);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--muted) !important;
  text-decoration: none;
  font-weight: 800;
}
.footer-links a:hover {
  color: var(--text) !important;
  text-decoration: underline;
}
.social-link {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 53, 0.12);
  box-shadow: var(--shadow2);
}

/* ===== A11Y PANEL UI (looks premium too) ===== */
.a11y-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}
.a11y-fab button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e55a2b) !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  font-size: 24px;
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35);
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-fab button:active {
  transform: scale(0.92);
}

.a11y-panel {
  position: fixed;
  right: 90px;
  bottom: 20px;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 107, 53, 0.85);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  z-index: 9998;
  display: none;
}
.a11y-panel.open {
  display: block;
}
.a11y-panel h3 {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 1000;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.85);
  padding-bottom: 12px;
}
.a11y-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.a11y-row button,
.a11y-row select {
  border: 1px solid rgba(10, 10, 15, 0.14);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: var(--t);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.a11y-row button:active,
.a11y-row select:active {
  transform: scale(0.97);
}
.a11y-row button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ===== A11Y BEHAVIOR CLASSES (same behavior as before) ===== */
body.a11y-on {
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.8 !important;
  letter-spacing: 0.3px !important;
  word-spacing: 0.1em !important;
}
body.a11y-font-100 {
  font-size: 16px !important;
}
body.a11y-font-150 {
  font-size: 20px !important;
}
body.a11y-font-200 {
  font-size: 24px !important;
}
body.a11y-spacing * {
  line-height: 2.2 !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.15em !important;
}
body.a11y-noimg img {
  display: none !important;
}
body.a11y-noimg .hero {
  background-image: none !important;
}
body.a11y-noimg .hero::after {
  display: none !important;
}

/* a11y themes */
body.a11y-theme-bw {
  background: #fff !important;
  color: #000 !important;
}
body.a11y-theme-wb {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-theme-blue {
  background: #0a3144 !important;
  color: #e6f3ff !important;
}
body.a11y-theme-brown {
  background: #3b2b22 !important;
  color: #ffecd9 !important;
}
body.a11y-theme-gray {
  background: #f0f0f0 !important;
  color: #222 !important;
}

/* surfaces readable in a11y */
body.a11y-on .navbar,
body.a11y-on .card,
body.a11y-on form,
body.a11y-on .modal-content,
body.a11y-on .a11y-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  color: rgba(15, 15, 20, 0.92) !important;
}
body.a11y-theme-wb .navbar,
body.a11y-theme-wb .card,
body.a11y-theme-wb form,
body.a11y-theme-wb .modal-content,
body.a11y-theme-wb .a11y-panel {
  background: rgba(0, 0, 0, 0.92) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
body.a11y-on :focus-visible {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero {
    min-height: 62vh;
    padding: 56px 0;
  }
}
@media (max-width: 576px) {
  section.py-4.bg-white.border-bottom .container {
    margin-top: -18px;
  }
  .case-card-img {
    height: 210px;
  }
  .case-hero {
    height: 260px;
  }
}
