/* ==========================================================================
   Xiva AKM — Design System (Heritage Khiva)
   Tokens → Base → Layout → Components
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #0e7c86;
  --primary-600: #0a626a;
  --primary-700: #074c52;
  --primary-tint: #e3f1f1;
  --accent: #e07a3f;
  --accent-600: #c9632b;

  /* Surfaces & text */
  --surface: #fbfaf7;
  --surface-2: #f3efe8;
  --card: #ffffff;
  --text: #1c2b2d;
  --muted: #5c6b6d;
  --border: #e5e0d8;
  --on-primary: #ffffff;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(28, 43, 45, 0.08), 0 1px 2px rgba(28, 43, 45, 0.06);
  --shadow: 0 6px 20px rgba(28, 43, 45, 0.08);
  --shadow-lg: 0 16px 48px rgba(28, 43, 45, 0.14);
  --ring: 0 0 0 3px rgba(14, 124, 134, 0.35);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;

  /* Layout */
  --container: 1200px;
  --header-h: 68px;
  --transition: 0.2s ease;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-700);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--text);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 2000;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 10px;
  color: var(--on-primary);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

section {
  padding: clamp(48px, 8vw, 80px) 0;
}

/* Anchor targets clear the fixed header on jump */
[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: var(--space-8);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: var(--space-3) auto 0;
}

/* ---------- Header / Nav ---------- */
header {
  background: linear-gradient(100deg, var(--primary-700) 0%, var(--primary) 58%, #129aa6 100%);
  box-shadow: 0 6px 24px rgba(7, 76, 82, 0.28);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  animation: headerDrop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
header.scrolled {
  box-shadow: 0 10px 34px rgba(7, 76, 82, 0.42);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.logo-mark {
  width: 44px;
  height: 40px;
  flex: none;
  transform-origin: bottom center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}
.logo-mark svg {
  display: block;
  animation: logoBob 4.5s ease-in-out infinite;
}
.logo:hover .logo-mark {
  transform: rotate(-7deg) scale(1.07);
}
.logo-mark .page-left {
  fill: #ffffff;
}
.logo-mark .page-right {
  fill: #fff1e8;
}
.logo-mark .page-line {
  fill: none;
  stroke: #bcd9d9;
  stroke-width: 1.1;
  stroke-linecap: round;
}
.logo-mark .book-outline {
  fill: none;
  stroke: var(--primary-700);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.logo-mark .bookmark {
  fill: var(--accent);
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-btn,
.nav-links a.nav-btn {
  background: var(--accent);
  color: var(--on-primary);
  padding: 0.5em 1.15em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(224, 122, 63, 0.45);
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition);
}
.nav-btn:hover,
.nav-links a.nav-btn:hover {
  background: var(--accent-600);
  color: var(--on-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(224, 122, 63, 0.55);
}
.nav-btn::after {
  display: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.26);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition), color var(--transition);
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-700);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--accent {
  background: var(--accent);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
  background: var(--accent-600);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: var(--card);
  color: var(--primary);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-700);
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: clamp(56px, 10vw, 96px) 0;
  text-align: center;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 85% 80%, rgba(224, 122, 63, 0.22), transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: var(--space-5);
  color: #fff;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: var(--space-6);
  opacity: 0.92;
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-primary);
  padding: 0.9em 2.2em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}
.cta-button:hover {
  background: var(--accent-600);
  color: var(--on-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-tint), var(--surface-2));
  padding: clamp(40px, 7vw, 64px) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1,
.page-header .section-title {
  margin-bottom: 0;
  color: var(--text);
}
.page-header .lead {
  margin-top: var(--space-4);
}

/* ---------- Features ---------- */
.features {
  background: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.feature-card {
  background: var(--card);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  font-size: 2rem;
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
.feature-card p {
  color: var(--muted);
}

/* ---------- Card grid (news / elon / books) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.news {
  background: var(--surface-2);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}
.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card-date {
  color: var(--muted);
  font-size: 0.85rem;
}
.card-title {
  font-size: 1.2rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-text {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-1) 0;
}
.tag {
  background: var(--primary-tint);
  color: var(--primary-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.tag:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover {
  gap: 8px;
  color: var(--primary-700);
}

/* ---------- News detail (CKEditor prose) ---------- */
.news-detail {
  max-width: 820px;
  margin: 0 auto;
}
.news-detail h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: var(--space-3);
}
.news-detail .news-date {
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.news-detail .detail-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
}

.prose {
  color: var(--text);
  line-height: 1.8;
}
.prose > * + * {
  margin-top: var(--space-4);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.prose p {
  color: var(--text);
}
.prose a {
  text-decoration: underline;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: var(--space-2);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: var(--space-4) 0;
}
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-4);
  color: var(--muted);
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  text-align: left;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-6);
  font-weight: 600;
  color: var(--primary);
}
.back-btn:hover {
  gap: 10px;
}

/* ---------- Staff (hodimlar) ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}
.staff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-5);
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.staff-photo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}
.staff-info h3 {
  font-size: 1.15rem;
}
.staff-info .role {
  color: var(--accent-600);
  font-weight: 600;
  margin: 2px 0 var(--space-3);
}
.staff-info p {
  color: var(--muted);
  font-size: 0.95rem;
}
.staff-info a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Events table (tadbirlar) ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card);
}
.events-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.events-table th,
.events-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.events-table thead th {
  background: var(--primary-tint);
  color: var(--primary-700);
  font-weight: 600;
  white-space: nowrap;
}
.events-table tbody tr:hover {
  background: var(--surface-2);
}
.events-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.page-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-weight: 600;
}
.page-link:hover {
  border-color: var(--primary);
  color: var(--primary-700);
}
.page-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.page-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

/* ---------- Panels / lists (aboutUs) ---------- */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: var(--on-primary);
  padding: clamp(48px, 8vw, 80px) 0;
}
.about-hero h1 {
  color: #fff;
  text-align: center;
  margin-bottom: var(--space-6);
}
.about-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}
.about-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.highlight {
  color: var(--accent);
  font-weight: 700;
}

.panel {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}
.panel h2 {
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}
.panel ul,
.panel ol {
  padding-left: 1.3em;
}
.panel li + li {
  margin-top: var(--space-2);
}
.list-clean {
  list-style: none;
  padding-left: 0;
}
.list-clean li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.list-clean li:last-child {
  border-bottom: 0;
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto var(--space-8);
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition),
    color var(--transition);
}
.social-link svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}
.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--primary-700);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}

/* ---------- Empty / alert states ---------- */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: var(--space-10) var(--space-4);
  grid-column: 1 / -1;
}
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.alert--info {
  background: var(--primary-tint);
  color: var(--primary-700);
  border-color: transparent;
}

/* ---------- Footer ---------- */
footer {
  background: var(--text);
  color: #d8e0e0;
  padding: var(--space-10) 0 var(--space-6);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.footer-section h3 {
  color: #fff;
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
}
.footer-section p {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.footer-section a {
  color: #d8e0e0;
}
.footer-section a:hover {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9aa7a7;
  font-size: 0.9rem;
}

/* ---------- Scroll animations (progressive enhancement) ---------- */
.js .scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js .scroll-animate.animate {
  opacity: 1;
  transform: none;
}

/* ---------- Entrance & interaction animations ---------- */
@keyframes headerDrop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes logoBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes navFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drawerOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  animation: fadeUp 0.85s ease-out both;
}
.hero p {
  animation: fadeUp 0.85s ease-out 0.15s both;
}
.hero .cta-button {
  animation: fadeUp 0.85s ease-out 0.3s both;
}

.nav-links li {
  animation: navFade 0.5s ease-out both;
}
.nav-links li:nth-child(1) {
  animation-delay: 0.18s;
}
.nav-links li:nth-child(2) {
  animation-delay: 0.24s;
}
.nav-links li:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-links li:nth-child(4) {
  animation-delay: 0.36s;
}
.nav-links li:nth-child(5) {
  animation-delay: 0.42s;
}
.nav-links li:nth-child(6) {
  animation-delay: 0.48s;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: linear-gradient(160deg, var(--primary-700), var(--primary));
    padding: var(--space-6) clamp(16px, 4vw, 24px) var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 30px rgba(7, 76, 82, 0.35);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    animation: drawerOpen 0.28s ease-out;
  }
  .nav-links.open a {
    width: 100%;
  }
  .staff-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .logo-text {
    font-size: 1rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .scroll-animate {
    opacity: 1;
    transform: none;
  }
}
