/* ============================================================
   LendPal Capital — Custom CSS
   Supplements Tailwind CSS utility classes.
   ============================================================ */

/* ---- Base Typography ---- */
body {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* ---- Smooth scrolling ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Focus ring colour (matches accent) ---- */
:focus-visible {
  outline: 2px solid #fa9e20;
  outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */

/* Custom logo sizing inside WP-generated <a> wrapper */
.custom-logo-link img {
  height: 4rem; /* h-16 */
  width: auto;
  object-fit: contain;
}

/* Nav active state applied inline by walker: active <a> gets text-accent font-bold (desktop)
   or bg-primary text-white (mobile). No separate CSS rule needed. */

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.carousel-slide {
  transition: opacity 1000ms ease-in-out;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-answer {
  transition: max-height 300ms ease-in-out, opacity 300ms ease-in-out;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

/* ============================================================
   PROSE (rich text from the_content())
   Simple reset to keep WP content readable without a full
   Tailwind Typography plugin.
   ============================================================ */
.prose p  { margin-bottom: 1.25rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem;  font-weight: 700; color: #1c2e3b; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: #1c2e3b; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a  { color: #fa9e20; text-decoration: underline; }
.prose a:hover { color: #1c2e3b; }
.prose blockquote { border-left: 4px solid #fa9e20; padding-left: 1rem; font-style: italic; color: #6b7280; margin: 1.5rem 0; }
.prose img { border-radius: 0.75rem; max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; text-align: left; }
.prose th { background-color: #1c2e3b; color: #fff; font-weight: 600; }
.prose tr:nth-child(even) { background-color: #f9fafb; }

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #1c2e3b;
  background: #fff;
  transition: all 0.2s;
  margin: 0 2px;
}
.page-numbers:hover {
  background-color: #fa9e20;
  color: #fff;
  border-color: #fa9e20;
}
.page-numbers.current {
  background-color: #1c2e3b;
  color: #fff;
  border-color: #1c2e3b;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  background: #f9fafb;
}
.search-field:focus {
  ring: 2px solid #fa9e20;
  border-color: #fa9e20;
}
.search-submit {
  background-color: #fa9e20;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.search-submit:hover { opacity: 0.9; }

/* ============================================================
   COMMENT FORM
   ============================================================ */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
  font-size: 0.875rem;
  outline: none;
  margin-top: 0.25rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #fa9e20;
  background: #fff;
}
.comment-form .submit {
  background-color: #1c2e3b;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .submit:hover { background-color: #fa9e20; }
.comment-form label { font-weight: 600; font-size: 0.875rem; color: #374151; }
.form-allowed-tags { display: none; }
.comment-reply-title { font-size: 1.25rem; font-weight: 700; color: #1c2e3b; margin-bottom: 1rem; }
.required-field-message { font-size: 0.75rem; color: #9ca3af; margin-bottom: 1rem; }

/* ============================================================
   SPIN ANIMATION (submit button loading)
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* ============================================================
   RESPONSIVE — Mobile-first overrides
   ============================================================ */
@media (max-width: 320px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

@media (min-width: 768px) {
  .custom-logo-link img { height: 4rem; }
}

@media (min-width: 1024px) {
  /* Section padding adjustments for large screens */
  section.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1440px) {
  .container { max-width: 1280px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  header, footer, .fixed, #mobile-menu, .whatsapp-fab { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
