/* Campium Website - Custom Styles */

/* Prevent horizontal overflow on mobile.
   overflow-x must NOT be on body — it can clip the fixed header and hide the
   hamburger menu on initial load. Apply overflow-x-hidden to main only. */
html {
  width: 100%;
  max-width: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Page background - visible gradient top to bottom (overrides Tailwind) */
body.bg-gradient-theme-subtle {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 20%, #DBEAFE 55%, #BFDBFE 100%) !important;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Footer - solid dark background, ADA compliant (4.5:1+ contrast) */
.bg-gradient-footer {
  background: #0f172a !important; /* slate-900 */
}
.bg-gradient-footer a {
  color: #ffffff;
}
.bg-gradient-footer a:hover {
  color: #f1f5f9;
}
.bg-gradient-footer .footer-tagline {
  color: #cbd5e1; /* slate-300, ~8:1 contrast on dark */
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
details:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.feature-card:hover {
  box-shadow: 0 10px 40px -10px rgba(29, 78, 216, 0.15);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  cursor: pointer;
}

.screenshot-panel .rounded-xl {
  min-height: 300px;
}

/* Client logos - Campflow-style mini logos */
.client-logo {
  min-height: 48px;
}

.client-logo img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
}

/* Camp Ramaquois - display in full color (no grayscale) */
.client-logo--color,
.client-logo--color img {
  filter: none !important;
}

.client-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.75rem;
}

.client-logo:hover .client-logo-fallback {
  background: #e5e7eb;
  color: #4b5563;
}

/* Footer logo - invert for dark background */
footer img[alt="Campium"] {
  filter: brightness(0) invert(1);
}

/* Blog - Blue color scheme */
.blog-page {
  --blog-primary: #1D4ED8;
  --blog-primary-light: #3B82F6;
  --blog-text: #0F172A;
  --blog-muted: #475569;
  --blog-border: #e2e8f0;
  --blog-bg: #EFF6FF;
}
.blog-page a:focus-visible,
.blog-page button:focus-visible {
  outline-color: #1D4ED8;
}

/* Blog article prose - clean typography */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.blog-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: -0.02em;
}
.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0F172A;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.blog-prose h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0F172A;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.blog-prose p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.blog-prose p:last-child {
  margin-bottom: 0;
}
.blog-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.blog-prose ul li {
  color: #475569;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.blog-prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.blog-prose ol li {
  color: #475569;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.blog-prose a {
  color: #1D4ED8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.blog-prose a:hover {
  color: #1E40AF;
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.blog-prose th,
.blog-prose td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  text-align: left;
}
.blog-prose th {
  background: #f1f5f9;
  font-weight: 600;
  color: #0F172A;
}
.blog-prose blockquote {
  border-left: 4px solid #1D4ED8;
  padding-left: 1.25rem;
  padding-right: 1rem;
  font-style: italic;
  color: #475569;
  margin: 1.5rem 0;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
}
.blog-prose strong {
  font-weight: 600;
  color: #0F172A;
}
.blog-prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}
