/* ═══════════════════════════════════════════════════════════════════════════════
   CyberSoluce Theme – polished nav, typography, cards (aligned with other ERMITS sites)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Project theme colors for nav active state (used by nav-fixes.css) */
:root {
  --command-blue: #005B96;
  --action-cyan: #33A1DE;
}

/* Body: full-height layout and smooth theme transition */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Glass nav – refined bar and border */
.glass-nav {
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dark .glass-nav {
  border-bottom-color: rgba(51, 65, 85, 0.6);
}

/* Nav link – base and hover (not active) */
.nav-link {
  transition: all 0.2s ease;
  position: relative;
  border-radius: 0.5rem;
}
.glass-nav a.nav-link:hover:not(.bg-command-blue-600):not(.bg-primary),
.glass-nav button.nav-link:hover:not(.bg-command-blue-600):not(.bg-primary) {
  background-color: rgba(0, 91, 150, 0.08);
  color: rgb(0, 91, 150);
}
.dark .glass-nav a.nav-link:hover:not(.bg-command-blue-600):not(.bg-primary),
.dark .glass-nav button.nav-link:hover:not(.bg-command-blue-600):not(.bg-primary) {
  background-color: rgba(51, 161, 222, 0.12);
  color: rgb(51, 161, 222);
}

/* Active nav item */
.glass-nav a.nav-link.bg-command-blue-600,
.glass-nav a.nav-link.bg-primary,
.glass-nav a[data-page].bg-primary {
  font-weight: 500;
  opacity: 1;
}
.glass-nav a.nav-link.bg-command-blue-600:hover,
.glass-nav a.nav-link.bg-primary:hover {
  filter: brightness(0.95);
}

/* Brand typography – consistent with polished sites */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-attribution {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted-foreground, #64748b);
}

/* Section cards – subtle border and hover lift */
.bg-card.border.border-border.rounded-xl,
.bg-card.border-border.rounded-xl {
  border-radius: 0.75rem;
  border-color: rgba(229, 231, 235, 0.6);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bg-card.border.border-border.rounded-xl:hover,
.bg-card.border-border.rounded-xl:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 91, 150, 0.2);
  transform: translateY(-1px);
}
.dark .bg-card.border.border-border.rounded-xl,
.dark .bg-card.border-border.rounded-xl {
  border-color: rgba(51, 65, 85, 0.6);
}
.dark .bg-card.border.border-border.rounded-xl:hover,
.dark .bg-card.border-border.rounded-xl:hover {
  border-color: rgba(51, 161, 222, 0.25);
}

/* Primary-style buttons – consistent hover */
a.bg-command-blue-600:hover,
button.bg-command-blue-600:hover {
  filter: brightness(0.95);
  transition: filter 0.2s ease;
}

/* Muted icon buttons (theme, account) */
.glass-nav button.bg-muted:hover,
.glass-nav a.bg-muted:hover {
  opacity: 0.9;
  transform: scale(1.02);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS – consistent typography, spacing, and styling
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Section container: uniform horizontal and vertical rhythm */
main .max-w-7xl.mx-auto,
main .max-w-3xl.mx-auto {
  padding-left: var(--page-padding-x, 1rem);
  padding-right: var(--page-padding-x, 1rem);
}
@media (min-width: 640px) {
  main .max-w-7xl.mx-auto,
  main .max-w-3xl.mx-auto {
    padding-left: var(--page-padding-x-sm, 1.25rem);
    padding-right: var(--page-padding-x-sm, 1.25rem);
  }
}
@media (min-width: 1024px) {
  main .max-w-7xl.mx-auto,
  main .max-w-3xl.mx-auto {
    padding-left: var(--page-padding-x-lg, 1.75rem);
    padding-right: var(--page-padding-x-lg, 1.75rem);
  }
}

/* Hero and section headings: one font (Outfit) */
main #hero h1,
main section h2 {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Section intro paragraphs: readable body size */
main section .section-intro {
  font-size: 1rem;
  line-height: 1.625;
}
@media (min-width: 640px) {
  main section .section-intro {
    font-size: 1.125rem;
  }
}

/* Card titles (h3) inside sections: consistent size */
main section .bg-card h3,
main section .rounded-xl h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 640px) {
  main section .bg-card h3,
  main section .rounded-xl h3 {
    font-size: 1.25rem;
  }
}

/* Card body text */
main section .bg-card p.text-muted-foreground,
main section .rounded-xl p.text-muted-foreground {
  font-size: 0.875rem;
  line-height: 1.5;
}
