/* NovaMatch Custom Styles */

/* Brand Colors based on logo */
:root {
  --novamatch-primary: #2563eb;
  --novamatch-secondary: #1e40af;
  --novamatch-accent: #3b82f6;
  --novamatch-dark: #1e293b;
  --novamatch-light: #f1f5f9;
}

/* Header and Navigation Fixes */
.ud-header {
  background: rgb(21 119 197);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* On landing page, make header transparent initially */
.landing-page .ud-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

/* Header button spacing and styling */
.navbar-btn {
  display: flex !important;
  gap: 15px !important;
  align-items: center;
}

/* Sign In button */
.navbar-btn .ud-login-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  margin-right: 0 !important;
  background: white !important;
  color: var(--novamatch-primary) !important;
  border: 2px solid var(--novamatch-primary) !important;
}

.navbar-btn .ud-login-btn:hover {
  background: var(--novamatch-primary) !important;
  color: white !important;
  border-color: var(--novamatch-primary) !important;
}

/* Sign Up button */
.navbar-btn .ud-white-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  margin-left: 15px !important;
  background: rgb(21, 119, 197) !important;
  color: white !important;
  border: 2px solid rgb(21, 119, 197) !important;
}

.navbar-btn .ud-white-btn:hover {
  background: rgb(17, 95, 158) !important;
  color: white !important;
  border-color: rgb(17, 95, 158) !important;
}

/* Adjust button colors for better contrast on white/blurred background */
.landing-page .ud-header .ud-login-btn {
  background: white !important;
  color: var(--novamatch-primary) !important;
  border: 2px solid var(--novamatch-primary) !important;
}

.landing-page .ud-header .ud-login-btn:hover {
  background: var(--novamatch-primary) !important;
  color: white !important;
  border-color: var(--novamatch-primary) !important;
}

.landing-page .ud-header .ud-white-btn {
  background: rgb(21, 119, 197) !important;
  color: white !important;
  border: 2px solid rgb(21, 119, 197) !important;
}

.landing-page .ud-header .ud-white-btn:hover {
  background: rgb(17, 95, 158) !important;
  color: white !important;
  border-color: rgb(17, 95, 158) !important;
}

.landing-page .ud-header .ud-white-btn {
  background: var(--novamatch-primary) !important;
  color: white !important;
  border: 2px solid var(--novamatch-primary) !important;
}

.landing-page .ud-header .ud-white-btn:hover {
  background: var(--novamatch-secondary) !important;
  color: white !important;
  border-color: var(--novamatch-secondary) !important;
}

.sticky {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure logo is always visible in both states */
.navbar-brand img {
  max-width: 160px;
  height: auto;
}

/* Fix navbar text color for visibility */
.navbar-nav .nav-item a {
  color: white !important;
}

.sticky .navbar-nav .nav-item a {
  color: #1e293b !important;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
  color: #68c061 !important;
}

.sticky .navbar-nav .nav-item a:hover,
.sticky .navbar-nav .nav-item a.active {
  color: #68c061 !important;
}

/* Fix toggler icon visibility */
.navbar-toggler .toggler-icon {
  background-color: white !important;
}

.sticky .navbar-toggler .toggler-icon {
  background-color: #1e293b !important;
}

/* Hero section line height fixes */
.ud-hero-title {
  line-height: 1.2 !important;
  margin-bottom: 25px !important;
  white-space: nowrap !important;
  font-size: 48px !important;
  font-weight: 700 !important;
}

.ud-hero-desc {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Responsive typography */
@media (max-width: 768px) {
  .ud-hero-title {
    white-space: normal !important;
    font-size: 32px !important;
  }
  
  .ud-hero-desc {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
}

/* Section spacing adjustments */
.ud-features,
#how-it-works,
#faq,
#testimonials {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Section title spacing */
.ud-section-title {
  margin-bottom: 40px !important;
}

.ud-section-title span {
  display: block !important;
  margin-bottom: 10px !important;
}

.ud-section-title h2 {
  line-height: 1.3 !important;
  margin-top: 10px !important;
  margin-bottom: 15px !important;
  display: block !important;
  white-space: nowrap !important;
}

.ud-section-title p {
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  display: block !important;
  margin-top: 15px !important;
  white-space: nowrap !important;
}

/* Responsive - allow wrapping on smaller screens */
@media (max-width: 992px) {
  .ud-section-title h2,
  .ud-section-title p {
    white-space: normal !important;
  }
}

/* Update button colors */
.ud-main-btn {
  background: linear-gradient(135deg, var(--novamatch-primary) 0%, var(--novamatch-secondary) 100%);
  border-color: var(--novamatch-primary);
}

.ud-main-btn:hover {
  background: linear-gradient(135deg, var(--novamatch-secondary) 0%, var(--novamatch-primary) 100%);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.ud-white-btn {
  background: #fff;
  color: var(--novamatch-primary);
  border: 2px solid var(--novamatch-primary);
}

.ud-white-btn:hover {
  background: var(--novamatch-primary);
  color: #fff;
}

/* Hero section enhancements */
.ud-hero {
  background: #1577c5;
}

/* Section Background Alternation for Visual Separation */
.ud-features {
  background: #ffffff;
  position: relative;
}

#how-it-works {
  background: #f8fafc;
  position: relative;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05) inset;
}

.ud-faq {
  background: #ffffff;
  position: relative;
}

.ud-testimonials {
  background: #f8fafc;
  position: relative;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05) inset;
}

.ud-team {
  background: #ffffff;
  position: relative;
}

.ud-contact {
  background: #1577c5 !important;
  position: relative;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.ud-contact .ud-section-title span,
.ud-contact .ud-section-title h2,
.ud-contact .ud-section-title p {
  color: #ffffff !important;
}

.ud-contact .ud-single-info {
  margin-bottom: 0px;
  text-align: center;
}

.ud-contact .ud-info-icon {
  margin: 0 auto 15px auto;
}

.ud-contact .ud-info-icon i {
  color: #ffffff !important;
  font-size: 40px !important;
}

.ud-contact .ud-info-meta h5,
.ud-contact .ud-info-meta p {
  color: #ffffff !important;
}

.ud-cta {
  background: #1577c5 !important;
  position: relative;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.ud-cta .ud-cta-title h2,
.ud-cta .ud-cta-title p {
  color: #ffffff !important;
}

/* How NovaMatch Works section improvements */
#how-it-works .ud-single-pricing {
  margin: 15px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 30px 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

#how-it-works .ud-single-pricing:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

#how-it-works .ud-single-pricing .ud-pricing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Why NovaMatch section improvements */
#faq .ud-single-feature {
  padding: 25px 20px !important;
  margin-bottom: 20px !important;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

#faq .ud-single-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.12);
}

#faq .ud-feature-icon {
  margin: 0 auto 15px auto !important;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#faq .ud-feature-content {
  width: 100%;
}

#faq .ud-feature-title {
  margin-bottom: 10px !important;
  font-size: 18px !important;
}

#faq .ud-feature-desc {
  margin-bottom: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Features section - center icons and content */
#features .ud-single-feature {
  text-align: center;
  padding: 20px;
}

#features .ud-feature-icon {
  margin: 0 auto 20px auto !important;
}

#features .ud-feature-content {
  text-align: center;
}

#features .ud-feature-title {
  text-align: center;
}

#features .ud-feature-desc {
  text-align: center;
}

/* Who Can Use section improvements */
.ud-team {
  padding-top: 40px !important;
}

.ud-team .ud-team-info h6 {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-top: 10px !important;
}

#how-it-works .ud-pricing-header h3 {
  color: var(--novamatch-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

#how-it-works .ud-feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--novamatch-primary) 0%, var(--novamatch-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

#how-it-works .ud-feature-icon i {
  font-size: 36px;
  color: #fff;
}

#how-it-works .ud-pricing-body h4 {
  color: var(--novamatch-dark);
  font-size: 20px;
  font-weight: 600;
}

#how-it-works .ud-pricing-body p {
  color: #64748b;
  line-height: 1.6;
}

/* Secure & Reliable section */
#testimonials .ud-feature-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

#testimonials .ud-feature-icon i {
  font-size: 48px;
  color: #fff;
}

#testimonials .ud-single-testimonial {
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

#testimonials .ud-single-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

#testimonials .ud-testimonial-content h4 {
  color: var(--novamatch-dark);
  font-size: 22px;
  font-weight: 600;
}

#testimonials .ud-testimonial-content p {
  color: #64748b;
  line-height: 1.8;
}

/* Who Is It For section fixes */
#who-for .ud-single-team {
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

#who-for .ud-single-team:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

#who-for .ud-team-image-wrapper {
  margin-bottom: 0;
}

#who-for .ud-team-info {
  padding: 25px 20px;
  text-align: center;
}

#who-for .ud-team-info h5 {
  color: var(--novamatch-dark);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

#who-for .ud-team-info p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Features section enhancements */
.ud-single-feature {
  padding: 30px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.ud-single-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.12);
}

.ud-feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--novamatch-primary) 0%, var(--novamatch-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ud-feature-icon i {
  font-size: 32px;
  color: #fff;
}

.ud-feature-title {
  color: var(--novamatch-dark);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ud-feature-desc {
  color: #64748b;
  line-height: 1.7;
}

/* Contact section */
#contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 80px 0;
}

.ud-contact-title h2 {
  color: var(--novamatch-dark);
  margin-bottom: 15px;
}

.ud-contact-title p {
  color: #64748b;
  font-size: 18px;
  margin-bottom: 30px;
}

/* Footer customizations */
.ud-footer-bottom p {
  margin: 0;
  text-align: center;
}

.ud-footer-bottom-left,
.ud-footer-bottom-right {
  text-align: center;
  padding: 15px 0;
}

@media (min-width: 768px) {
  .ud-footer-bottom-left {
    text-align: left;
  }
  .ud-footer-bottom-right {
    text-align: right;
  }
}

.ud-footer-bottom a {
  color: var(--novamatch-primary);
  font-weight: 600;
}

.ud-footer-bottom a:hover {
  color: var(--novamatch-accent);
}

/* Remove old styles that might conflict */
#who-for .ud-team-image-wrapper .shape {
  display: none;
}

/* Section title enhancements */
.ud-section-title span {
  color: var(--novamatch-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ud-section-title h2 {
  color: var(--novamatch-dark);
  margin-top: 15px;
  margin-bottom: 20px;
}

.ud-section-title p {
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}
