/* 
   Lendevi - Mortgage Template
   Main Stylesheet
*/

/* ===== Base Styles ===== */
:root {
  --primary-color: #ff9021;
  --secondary-color: #ff6b35;
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --text-color: #555555;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --white: #ffffff;
  --background-color: #f5f8ff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--dark-color);
}

p {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-banner {
  padding-bottom: 0px;
}

section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  max-width: 700px;
  margin: 15px auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #e55a2b;
  color: var(--white);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: #f0f0f0;
}

.btn-dark {
  background-color: var(--dark-color);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #000000;
  color: var(--white);
}

/* ===== Header Styles ===== */
header {
  position: relative;
  z-index: 100;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
  font-size: 14px;
}

.contact-info i {
  margin-right: 5px;
}

.contact-info a {
  color: var(--white);
}

.social-links a {
  color: var(--white);
  margin-right: 15px;
  font-size: 14px;
}

.links a {
  color: black;
  margin-right: 15px;
  font-size: 14px;
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Responsive Styling */
@media (max-width: 768px) {
  .contact-info {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}

/* Main Navigation */
.main-nav {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
}

.menu-items ul {
  display: flex;
}

.menu-items ul li {
  position: relative;
  margin: 0 15px;
}

.menu-items ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 0;
  display: block;
}

.menu-items ul li a:hover,
.menu-items ul li a.active {
  color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  width: 220px;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  padding: 10px 20px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-color);
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--background-color);
  padding: 100px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 50px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--primary-color);
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px;
}

.hero-image {
  flex: 1;
}

/* ===== Lenders Section ===== */
.lenders {
  background-color: var(--white);
  padding: 100px 0px;
}

.lenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.lender-item {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 8px;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lender-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .lender-item {
    height: 80px;
  }
  .lender-item img {
    max-height: 50px;
  }
}

/* ===== Services Section ===== */
.services {
  background-color: var(--background-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
  }
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .icon {
  width: 100%;
  height: 200px;
  /* background-color: rgba(0, 86, 179, 0.1); */
  /* border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card .icon i {
  font-size: 30px;
  color: var(--primary-color);
}

.service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
}

.read-more i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* ===== About Section ===== */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.features-list {
  margin: 25px 0;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.features-list li i {
  color: var(--success-color);
  margin-right: 10px;
}

.about-description li::before {
  content: "\f00c "; /* The static text */
  font-family: "Font Awesome 5 Free"; /* Specify the Font Awesome font family */
  font-weight: bold; /* Make the text bold */
  margin-right: 10px; /* Add space between the list item and the new text */
}

/* ===== Testimonials Section ===== */
.testimonials {
  background-color: var(--background-color);
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  min-width: 350px;
  flex: 1;
}

.testimonial-card .quote {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
}

.client {
  display: flex;
  align-items: center;
}

.client-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.client-info h4 {
  margin-bottom: 5px;
}

.client-info span {
  color: var(--text-color);
  font-size: 14px;
}
/* ===== Contact Section ===== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.info-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.info p {
  margin-bottom: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  /* border: 1px solid #e8eef5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06); */
  border-bottom: none;
  background: #ffffff;
}

.map-section {
  margin-bottom: 20px;
}

.contact-info-box h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  text-align: center;
}

.contact-info-box > p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 58ch;
  text-align: center;
}

.info-item .info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 144, 33, 0.236);
  width: fit-content;
}

.info-item h3 {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--primary-color);
}

.info-item:last-child {
  border-bottom: 0;
}

.info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item .icon i {
  font-size: 18px;
}

.info-item .info p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.social-links .links {
  display: flex;
  gap: 12px;
}

.social-links .links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e8eef5;
  background: #f8fafc;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links .links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.contact-form-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}
.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.contact-form label {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.required-star {
  color: red;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dce3ef;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  color: #111827;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa5b1;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* soft focus ring */
  background: #ffffff;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.button-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== faq Section  ===== */

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(1, 0, 0, 1);
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--white);
  transition: all 0.4s cubic-bezier(1, 0, 0, 1);
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
  flex: 1;
  padding-right: 15px;
}

.toggle-icon {
  font-size: 16px;
  color: var(--primary-color);
  transition: transform 0.4s cubic-bezier(1, 0, 0, 1);
  min-width: 20px;
  text-align: center;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(1, 0, 0, 1);
  background-color: var(--white);
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px 25px;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 15px 20px;
  }

  .faq-question-title {
    font-size: 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
}

/* ===== CTA Section ===== */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 18px;
}

/* ===== Footer ===== */
footer {
  background-color: var(--dark-color);
  color: #b0b0b0;
  padding: 70px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-column p {
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #b0b0b0;
  transition: all 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
}

.footer-link {
  color: #b0b0b0;
}

.copyright {
  margin-bottom: 0px;
  width: fit-content;
}

.footer-link:hover {
  color: var(--white);
}

.footer-links a {
  color: #b0b0b0;
  margin-left: 20px;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .menu-items,
  .cta-button {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links a {
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .testimonial-card {
    min-width: 100%;
  }
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, var(--primary-color) 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }
  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }
  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }
  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}

.loading {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 1000;
}

/* Initially hide the side navbar */
.side-navbar {
  display: none;
  background-color: #ffffff; /* Semi-transparent black background */
  position: absolute;
  height: auto;
  right: 0;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease; /* Smooth transition when showing/hiding */
}

/* Show the side navbar when the screen is smaller than 756px */
@media (max-width: 756px) {
  .mobile-menu-toggle {
    display: block; /* Ensure the hamburger icon is visible on small screens */
  }

  .side-navbar.show {
    display: block; /* Show the side navbar when 'show' class is added */
  }

  .close-btn {
    padding: 12px;
    font-size: 24px;
    color: black;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
  }

  /* The list inside the side navbar */
  .side-nav-content ul {
    list-style: none;
    padding: 0;
  }

  .side-nav-content ul li {
    margin: 2px 20px;
  }

  .side-nav-content ul li a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    display: block;
  }

  .side-nav-content ul li a:hover {
    color: var(--primary-color);
  }
}

.service-thumbnail {
  width: 450px;
  float: left;
  margin-right: 20px;
}

.service-thumbnail img {
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.service-description {
  min-height: 140px;
  margin-bottom: 20px;
}

#gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: 20px;
}

.gallery-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 576px) {
  .service-thumbnail {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .service-description {
    margin-bottom: 0px;
  }
}

/* Submit Button Loading States */
.submit-btn {
  position: relative;
  transition: all 0.3s ease;
  min-width: 150px;
}

.submit-btn:disabled {
  cursor: not-allowed;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading animation for the spinner */
.fa-spinner {
  font-size: 14px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.whatsapp {
  background-color: transparent;
  position: fixed;
  right: 30px;
  bottom: 50px;
  height: 60px;
  width: 60px;
  overflow: hidden;
  background: #59d92b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;

  i {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
    color: #fff;
    font-size: 35px;

    &:hover {
      transform: rotate(360deg);
    }
  }
}

@media screen and (max-width: 1024px) {
  .whatsapp {
    position: fixed;
    right: 15px;
    bottom: 50px;
  }
}

iframe {
  width: 100%;
}
