/*
 * SolusiDigital — Theme CSS
 * All component styles that complement Tailwind utility classes.
 */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* ── Orange Badge ───────────────────────────────────────── */
.orange-badge {
  background-color: #f97316;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Stat divider ───────────────────────────────────────── */
.stat-divider {
  border-right: 1px solid #e5e7eb;
}

/* ── Portfolio card overlay ─────────────────────────────── */
.portfolio-overlay {
  opacity: 0;
  background: rgba(249, 115, 22, 0.85);
  transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-card:focus-within .portfolio-overlay {
  opacity: 1;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-answer {
  display: none;
}
.faq-answer.open {
  display: block;
}

/* ── Nav shadow ─────────────────────────────────────────── */
.nav-shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ── Service card ───────────────────────────────────────── */
.service-card {
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* ── Testimonial card ───────────────────────────────────── */
.testimonial-card {
  border: 1px solid #f3f4f6;
}

/* ── Process step number ────────────────────────────────── */
.step-number {
  width: 44px;
  height: 44px;
  background: #fff7ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f97316;
  font-size: 18px;
}

/* ── Section backgrounds ────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 60%, #2d1a0e 100%);
}
.cta-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
}
.orange-cta-bg {
  background: #f97316;
}
.footer-bg {
  background: #0d0d1a;
}

/* ── Fade-in animation (portfolio filter) ───────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ── Prose / post content overrides ────────────────────── */
.post-content h2 { font-size: 1.5rem; font-weight: 800; color: #111827; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 1.75rem 0 0.5rem; }
.post-content p  { margin-bottom: 1.25rem; line-height: 1.75; color: #4b5563; }
.post-content a  { color: #f97316; text-decoration: underline; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.25rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; color: #4b5563; font-size: 0.875rem; }
.post-content blockquote {
  border-left: 4px solid #f97316;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
}
.post-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}
.post-content pre {
  background: #1a1a2e;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  margin: 1.5rem 0;
}
.post-content code {
  background: #f3f4f6;
  color: #ea580c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.post-content th, .post-content td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 0.875rem;
  text-align: left;
}
.post-content th {
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

/* ── WordPress Search Form (Classic) ────────────────────── */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form .search-field {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #374151;
  outline: none;
  transition: border-color 0.2s;
}
.search-form .search-field:focus {
  border-color: #f97316;
}
.search-form .search-submit {
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form .search-submit:hover {
  background: #ea580c;
}

/* ── WordPress Block Search Widget ─────────────────────── */
.wp-block-search__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}
.wp-block-search__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s;
}
.wp-block-search__input:focus {
  border-color: #f97316;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.wp-block-search__button {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.wp-block-search__button:hover {
  background: #ea580c;
}

/* ── Sidebar Widget Styling ────────────────────────────── */
.widget {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.widget .widget-title,
.widget .wp-block-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f9fafb;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: block;
}
.widget ul li a:hover {
  color: #f97316;
}

/* Latest Comments */
.wp-block-latest-comments {
  padding-left: 0;
}
.wp-block-latest-comments__comment {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f9fafb;
  font-size: 0.8rem;
  color: #6b7280;
  list-style: none;
}
.wp-block-latest-comments__comment:last-child {
  border-bottom: none;
}
.wp-block-latest-comments__comment a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.wp-block-latest-comments__comment a:hover {
  color: #f97316;
}

/* ── WordPress Pagination ───────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  text-decoration: none;
}
.page-numbers:hover,
.page-numbers.current {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
}

/* ── Custom logo sizing ─────────────────────────────────── */
.custom-logo {
  max-height: 48px;
  width: auto;
}

/* ── Focus visible for accessibility ────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
  border-radius: 4px;
}

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


