/* ==========================================================================
   ClubIS Support Landing — Wiki.js Style (Light Slate & Vuetify Blue #1976d2)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Color Palette (Wiki.js Blue & Slate) */
  --bg-main: #f8fafc;               /* slate-50 */
  --bg-surface: #ffffff;            /* white */
  --bg-surface-alt: #f1f5f9;        /* slate-100 */
  --bg-header: #212121;             /* Vuetify / Wiki.js Dark Grey (#212121) */

  --text-primary: #0f172a;          /* slate-900 */
  --text-secondary: #475569;        /* slate-600 */
  --text-muted: #64748b;            /* slate-500 */

  --border-color: #e2e8f0;          /* slate-200 */
  --border-dark: #cbd5e1;           /* slate-300 */

  /* Wiki.js Primary Blue Palette */
  --accent-primary: #1976d2;        /* Vuetify/Wiki.js Blue */
  --accent-primary-hover: #1565c0;
  --accent-primary-bg: #e3f2fd;     /* blue-50 */

  --accent-secondary: #0284c7;      /* Sky Blue */
  --accent-secondary-bg: #e0f2fe;

  --shadow-card: 0 2px 8px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 20px -3px rgba(25, 118, 210, 0.14), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-main: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container-max: 1000px;
  --header-height: 64px;
}

/* Base Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

#main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

.container {
  width: min(100% - 1.5rem, var(--container-max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.4rem 0.8rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Typography */

.display-small {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.title-large {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
}

.title-medium {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

.title-small {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
}

.label-large {
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.body-large {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.body-medium {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.body-small {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Top Navigation Bar */

.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.top-app-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.top-app-bar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.top-app-bar__brand img {
  height: 38px;
  width: auto;
}

.top-app-bar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-chip:hover,
.nav-chip:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Wiki.js Blue Hero Banner */

.hero-surface {
  position: relative;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
  color: #ffffff;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-surface__inner {
  padding: 1.5rem 0 1.75rem;
  max-width: 580px;
  margin-inline: auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-surface .display-small {
  color: #ffffff;
}

.hero-text {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Compact Page Sections */

.page-section {
  padding: 1.5rem 0;
}

.page-section--surface {
  background: var(--bg-surface-alt);
  border-block: 1px solid var(--border-color);
  flex: 1;
  display: flex;
  align-items: center;
}

.page-section--surface > .container {
  width: 100%;
}

.section-heading {
  margin-bottom: 1rem;
  text-align: center;
}

/* Compact Service Cards Grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card-grid-2 {
  max-width: 720px;
  margin-inline: auto;
}

.md-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.md-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.md-card__action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.md-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
}

.md-card__icon svg {
  width: 20px;
  height: 20px;
}

.md-card__icon--primary {
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
}

.md-card__icon--secondary {
  background: var(--accent-secondary-bg);
  color: var(--accent-secondary);
}

.md-button--text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
}

.md-button--text::after {
  content: "→";
  transition: transform 0.15s ease;
}

.md-button--text:hover::after {
  transform: translateX(3px);
}

/* Compact Contacts Panel */

.contact-panel--single {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.list-inline .list-item {
  padding: 0.85rem 0.75rem;
  border-left: 1px solid var(--border-color);
  text-align: center;
}

.list-inline .list-item:first-child {
  border-left: none;
}

.list-item__overline {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.list-item__primary {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.list-item__primary:hover {
  text-decoration: underline;
}

/* Footer */

.bottom-bar {
  margin-top: auto;
  padding: 1rem 0;
  background: #212121;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bottom-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bottom-bar__company p {
  margin-top: 0.15rem;
  color: #94a3b8;
}

.bottom-bar__copy {
  color: #64748b;
}

/* Mobile Responsiveness (<680px) */

@media (max-width: 680px) {
  .icon-button {
    display: inline-flex;
  }

  .top-app-bar__row {
    position: relative;
  }

  .top-app-bar__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .top-app-bar__nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-chip {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
  }

  .hero-surface__inner {
    padding: 1.25rem 0 1.5rem;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .md-card {
    padding: 1rem 1.15rem;
  }

  .list-inline {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-inline .list-item:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .list-inline .list-item:nth-child(4) {
    border-top: 1px solid var(--border-color);
  }

  .page-section {
    padding: 1.15rem 0;
  }
}

@media (max-width: 420px) {
  .list-inline {
    grid-template-columns: 1fr;
  }

  .list-inline .list-item {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .list-inline .list-item:first-child {
    border-top: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
