/* ===========================================
   ISSA-CT Theme — Custom CSS
   Trust & Authority Dark — v1.0.0
   =========================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Base resets --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0F172A;
  color: #F8FAFC;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Links --- */
a {
  color: #0EA5E9;
  text-decoration: none;
  transition: color 150ms ease-out;
}
a:hover {
  color: #FFFFFF;
}
a:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Navigation --- */
.wp-block-navigation a {
  color: #F8FAFC !important;
  font-weight: 500;
  transition: color 150ms ease-out;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.wp-block-navigation a:hover {
  color: #0EA5E9 !important;
}
.wp-block-navigation a[aria-current="page"] {
  color: #0EA5E9 !important;
}

/* Mobile nav toggle */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: #F8FAFC !important;
}
.wp-block-navigation__responsive-container {
  background-color: #0F172A !important;
}

/* --- Buttons --- */
.wp-block-button__link,
.wp-element-button {
  transition: background-color 150ms ease-out, transform 100ms ease-out, box-shadow 150ms ease-out;
  cursor: pointer;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.4);
}
.wp-block-button__link:active,
.wp-element-button:active {
  transform: translateY(0);
}
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}

/* --- Feature cards --- */
.feature-card {
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --- Footer links --- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links li a {
  color: #E2E8F0;
  font-size: 0.875rem;
  transition: color 150ms ease-out, padding-left 150ms ease-out;
}
.footer-links li a:hover {
  color: #0EA5E9;
  padding-left: 4px;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Page hero banner --- */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F2744 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(3,105,161,0.12) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(14,165,233,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Cover block overlay fix --- */
.wp-block-cover {
  position: relative;
}
.wp-block-cover__background {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F2744 100%) !important;
}

/* --- Separator --- */
.wp-block-separator {
  border-color: #1E293B !important;
  opacity: 1;
}

/* --- Post content typography --- */
.entry-content p,
.wp-block-post-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
}
.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  color: #CBD5E1;
  line-height: 1.75;
  padding-left: 1.5rem;
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
  }
  .wp-block-column {
    flex-basis: 100% !important;
  }
}
