/* =========================
  BRAND COLORS + UTILITIES
========================= */
:root {
  --claritiq-blue: #1D4ED8;
  --claritiq-blue-600: #3451D0;
  --claritiq-dark: #334155;
  --claritiq-light: #F8FAFC;
  --claritiq-ink: #0F172A;
}

.bg-claritiq-blue { background-color: var(--claritiq-blue) !important; }
.bg-claritiq-light { background-color: var(--claritiq-light) !important; }
.text-claritiq-blue { color: var(--claritiq-blue) !important; }
.text-claritiq-dark { color: var(--claritiq-dark) !important; }
.border-claritiq-blue { border-color: var(--claritiq-blue) !important; }

.hover\:text-claritiq-blue:hover { color: var(--claritiq-blue) !important; }

/* =========================
  BUTTON STYLING
========================= */
.btn-claritiq {
  background: var(--claritiq-blue);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s ease, transform .12s ease, box-shadow .12s ease;
}
.btn-claritiq:hover {
  background: var(--claritiq-blue-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(29,78,216,0.22);
}

/* =========================
  GLOBAL
========================= */
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--claritiq-dark);
}

/* =========================
  REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: .6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================
  NAVBAR
========================= */
.navbar-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--claritiq-ink);
}
.navbar-title span { color: var(--claritiq-blue); }

/* =========================
  MODAL
========================= */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
  padding: 20px;
}
.modal-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
}

/* =========================
  POPUPS
========================= */
/* =========================
   POPUP FIXED STYLING
========================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-box {
  background: #ffffff;
  width: 90%;
  max-width: 430px;
  padding: 25px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Popup Title — missing earlier */
.popup-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--claritiq-blue);
  margin-bottom: 12px;
}

/* Close button */
.close-popup {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #475569;
  transition: 0.15s ease;
}
.close-popup:hover {
  color: var(--claritiq-blue);
  transform: scale(1.15);
}

/* Inputs */
.popup-box input,
.popup-box select,
.popup-box textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  color: #0F172A;
  outline: none;
  transition: 0.2s ease;
}

.popup-box input:focus,
.popup-box select:focus,
.popup-box textarea:focus {
  border-color: var(--claritiq-blue);
  box-shadow: 0 0 0 2px rgba(29,78,216,0.15);
}

/* Submit Button */
.popup-submit {
  width: 100%;
  padding: 12px;
  background: var(--claritiq-blue);
  color: #fff;
  font-weight: 600;
  margin-top: 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
}

.popup-submit:hover {
  background: var(--claritiq-blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29,78,216,0.24);
}


/* =========================
  ICONS
========================= */
.icon-box {
  background: rgba(29,78,216,0.06);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.icon { width:22px; height:22px; stroke: var(--claritiq-blue); }

/* =========================================================
  ⭐ PROBLEMS SECTION — FIXED 300px WIDTH (Working 100%)
========================================================= */
.carousel-wrap {
  margin-top: 1rem;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: stretch !important;   /* ★ SAME HEIGHT FOR ALL CARDS */
  gap: 20px;
  overflow-x: auto;
}

.carousel-item {
  flex: 0 0 300px !important;  /* EXACT 300px width */
  display: flex;
}



.carousel-track::-webkit-scrollbar { display: none; }

/* ---- DESKTOP EXACT WIDTH = 300px ---- */
@media (min-width: 1100px) {
  .carousel-item {
    flex: 0 0 300px !important; /* EXACT WIDTH */
  }
}

@media (max-width: 1099px) {
  .carousel-item {
    flex: 0 0 260px !important;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 85% !important;
  }
}


/* =========================
  PROBLEM CARD
========================= */
.problem-card {
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;

  flex: 1;                     /* ★ ALL CARDS SAME HEIGHT */
  height: auto !important;     /* ★ NO FIXED HEIGHT */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}



.problem-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
}
.problem-label {
  font-size: 0.85rem;
  color: var(--claritiq-blue);
  margin-top: 2px;
}
.problem-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.3rem;
}

/* =========================
        FOOTER
========================= */
footer {
  background: #0F172A;
  color: #dce3f1;
  padding: 70px 24px;
}

/* Footer layout */
.footer-container {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  align-items: flex-start;
}

/* Logo */
.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.footer-logo span {
  color: var(--claritiq-blue);
}

/* Description */
.footer-desc {
  font-size: 14px;
  line-height: 22px;
  color: #b8c3d4;
  max-width: 340px;
  margin-top: 10px;
}

/* Section Title */
.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
}

/* Links */
.footer-links a {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  color: #b8c3d4;
  text-decoration: none;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--claritiq-blue);
  transform: translateX(3px);
}

/* Email Input */
.footer-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

.footer-input::placeholder {
  color: #94a3b8;
}

.footer-input:focus {
  border-color: var(--claritiq-blue);
  box-shadow: 0 0 0 2px rgba(29,78,216,0.30);
}

/* Subscribe Button */
.footer-btn {
  width: 100%;
  padding: 12px;
  background: var(--claritiq-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 10px;
}

.footer-btn:hover {
  background: var(--claritiq-blue-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29,78,216,0.28);
}

/* Bottom Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  color: #94a3b8;
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
      RESPONSIVENESS
========================= */
@media (max-width: 768px) {
  footer {
    padding: 50px 20px;
  }
  .footer-container {
    gap: 35px;
  }
  .footer-logo {
    font-size: 24px;
  }
  .footer-title {
    font-size: 16px;
  }
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}



/* =========================
  RESPONSIVE TWEAKS
========================= */
@media (max-width: 768px) {
  .navbar-title { font-size: 22px; }
}



.nav-active {
  color: var(--claritiq-blue) !important;
  font-weight: 600;
}
