* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  overflow-x: hidden;
}

:root {
      --split: 50%; /* Start at 50% width on load */
      --handle-size: 46px;
      --transition-speed: 100000ms; /* 10 seconds */
      --ease: cubic-bezier(0.42, 0, 0.58, 1); /* Custom easing for slow start and end */
    }

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero {
    height: 100vh;
    width: 100%;
}


.panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.panel.bottom h1 {
    font-size: clamp(46px, 4vw, 72px);
      line-height: 1.1;
      font-weight: 500;
      color: white;
      margin-bottom: 18px;
      text-align: center;
}

.panel.bottom .divider {
    width: 52px;
      height: 3px;
      background: white;
      margin: 0 auto 20px;
}

.panel.bottom .links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.panel.bottom .links a{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  color: white;
  transition: color var(--transition-speed) var(--ease);
}

.panel.bottom .socials{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.panel.bottom .socials a{
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 600;
  transition: color var(--transition-speed) var(--ease);
}




.panel.top h1 {
    font-size: clamp(46px, 4vw, 72px);
      line-height: 1.1;
      font-weight: 500;
      color: black;
      margin-bottom: 18px;
      text-align: center;
}

.panel.top .divider {
    width: 52px;
      height: 3px;
      background: black;
      margin: 0 auto 20px;
}

.panel.top .links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.panel.top .links a{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  color: black;
  transition: color var(--transition-speed) var(--ease);
}

.panel.top .socials{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.panel.top .socials a{
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: 600;
  transition: color var(--transition-speed) var(--ease);
}



.left-btn-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  width: 300px;
  height: 42px;
  border-radius: 999px;
  background-color: #f36f20;
  border: 2px solid #f36f20;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    color var(--transition-speed) var(--ease),
    border-color var(--transition-speed) var(--ease),
    background var(--transition-speed) var(--ease);
}




.left-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  width: 300px;
  height: 42px;
  border-radius: 999px;
  background-color: #f36f20;
  border: 2px solid #f36f20;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    color var(--transition-speed) var(--ease),
    border-color var(--transition-speed) var(--ease),
    background var(--transition-speed) var(--ease);
}

.left-btn:hover, .left-btn:active {
  background-color: #f36f20 !important;
  color: black !important;

}

.right-btn-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  width: 300px;
  height: 42px;
  border-radius: 999px;
  background-color: #dea74d;
  border: 2px solid #dea74d;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    color var(--transition-speed) var(--ease),
    border-color var(--transition-speed) var(--ease),
    background var(--transition-speed) var(--ease);
}

.right-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  width: 300px;
  height: 42px;
  border-radius: 999px;
  background-color: #dea74d;
  border: 2px solid #dea74d;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    color var(--transition-speed) var(--ease),
    border-color var(--transition-speed) var(--ease),
    background var(--transition-speed) var(--ease);
}

.right-btn:hover, .right-btn:active {
  background-color: #dea74d;
  color: white;

}

.bottom {
  background: #000;
  color: white;
}

.top {
  background: #fff; /* match your example */
  color: black;
  z-index: 2;
  overflow: hidden;  /* Hide parts of the top panel */
  position: relative;
  clip-path: inset(0 50% 0 0); /* Initially hide 50% of the top panel */
}

.content h1 {
  font-size: 2rem;
  opacity: 0.9;
}

.dragger {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
  z-index: 5;
}

.drag-handle {
      position: absolute;
      left: var(--split);
      top: 50%;
      transform: translate(-50%, -50%);
      width: var(--handle-size);
      height: var(--handle-size);
      border-radius: 50%;
      background: linear-gradient(to right, #000000 50%, #ffffff 50%);
      color: #000;
      border: none;
      box-shadow: 0 10px 24px rgba(0,0,0,0.12);
      z-index: 11;
      cursor: ew-resize;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      transition:
        left var(--transition-speed) var(--ease),
        transform 0.1s ease;
      touch-action: none;
      user-select: none;
    }

    .chevron-icons {
        display: flex;
        justify-content: space-between;
        width: 100%;
      }

      .chevron-icons i {
        font-size: 24px;
      }

      .chevron-icons .one {
        color: white;
      }

      .chevron-icons .two {
        color: black;
      }

    .drag-handle:active {
      transform: translate(-50%, -50%) scale(0.97);
    }

    .drag-handle span {
      font-size: 24px;
      letter-spacing: -2px;
      transform: translateY(-1px);
      pointer-events: none;
    }




.mortgage-section {
display: flex;
flex-direction: row;
background-color: black;
}

.mortgage-container {
display: flex;
width: 100%;
align-items: center;
}

.mortgage-left {
flex: 1;
background-color: black; /* White background for the image column */
padding: 40px;
}

.mortgage-left img {
width: 100%; /* Adjust this as needed for image size */
height: auto;
}

.mortgage-right {
flex: 2;
padding: 20px; /* Background color for the text column */
}

.mortgage-right h1 {
font-size: 2rem;
margin-bottom: 20px;
color: white;
}

.mortgage-right p {
font-size: 1.1rem;
margin-bottom: 15px;
color: white;
}

.mortgage-right ul {
list-style-type: disc;
}

.mortgage-right ul li {
margin-top: 10px;
color: white;
font-size: 1rem;
}



footer {
background-color: #fff;
padding: 50px;
text-align: center;
font-family: "Montserrat", sans-serif;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.footer-logo {
font-size: 2rem;
font-weight: bold;
letter-spacing: 1px;
margin-bottom: 10px;
}

.footer-info p {
font-size: 1rem;
margin: 5px 0;
color: #555;
}

.footer-links {
margin-top: 10px;
margin-bottom: 20px;
}

.footer-links a {
margin: 0 15px;
text-decoration: none;
color: #000000;
font-size: 1rem;
}

.footer-links a:hover {
text-decoration: none;
}

.footer-logo-img img {
width: 30px;
height: 30px;
margin-top: 10px;
}

.widd img{
width: 200px !important;
}

.mobile-hero{
display: none;
}


@keyframes floatBird {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

  .floating-logo {
    animation: floatBird 1.3s ease-in-out infinite !important;
    display: block; /* Ensure the image is treated as a block element */
    margin: 0 auto; /* Center the image horizontally */
  }

@media screen and (max-width: 768px) {
    .footer-container {
      flex-direction: column;
    }

    .mortgage-container {
    display: flex;
    flex-direction: column !important;
    }

    .mortgage-right{
    padding: 30px 20px;
    }

    .mortgage-left{
    background-color: white;
    }

    .footer-links a {
      margin: 10px 0;
    }
    .footer-links a {
    display: block;
    }

    .widd img{
    width: 200px !important;
    }

    .mobile-hero{
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .mobile-upper{
      background-color: #ffffff;
      width: 100%;
      padding: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .usa-divider {
        width: 52px;
        height: 3px;
        background: black;
        margin: 0 auto 20px;
    }

    .canada-divider {
        width: 52px;
        height: 3px;
        background: white;
        margin: 0 auto 20px;
    }

    .mobile-lower{
      background-color: #000000;
      width: 100%;
      padding: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .usa-socials {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 34px;
    }

    .usa-social {
      text-decoration: none;
      color: white;
      font-size: 20px;
      font-weight: 600;
      transition: color var(--transition-speed) var(--ease);
    }

    .usa-links {
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
      margin-bottom: 34px;
    }

    .usa-link {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      font-size: clamp(18px, 1.5vw, 22px);
      font-weight: 500;
      color: white;
      transition: color var(--transition-speed) var(--ease);
    }

    .canada-links {
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
      margin-bottom: 34px;
    }

    .canada-link {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      font-size: clamp(18px, 1.5vw, 22px);
      font-weight: 500;
      color: white;
      transition: color var(--transition-speed) var(--ease);
    }

    .canada-socials {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 34px;
    }

    .canada-social {
      text-decoration: none;
      color: white;
      font-size: 20px;
      font-weight: 600;
      transition: color var(--transition-speed) var(--ease);
    }

    .mobile-upper-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 34px;
      width: 300px;
      height: 42px;
      border-radius: 999px;
      background-color: #f36f20;
      color: black;
      text-decoration: none;
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      transition:
        color var(--transition-speed) var(--ease),
        border-color var(--transition-speed) var(--ease),
        background var(--transition-speed) var(--ease);
    }

    .mobile-lower-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 34px;
      width: 300px;
      height: 42px;
      border-radius: 999px;
      background-color: #DEA74D;
      color: white;
      text-decoration: none;
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      transition:
        color var(--transition-speed) var(--ease),
        border-color var(--transition-speed) var(--ease),
        background var(--transition-speed) var(--ease);
    }

    .hero {
        display: none;
    }
}

p a {
  text-decoration: none;
  color: #f36f20;
}


