/**
Theme Name: CMFinancing1
Author: Jesse Kim
**/

/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;200;300;400;700800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*


Header CSS 

*/

/* TOP MENU */



/*

Main Menu 

*/

.nav {
  background-color: #ffffff;
  width: 100%;
  position: relative;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.main-menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0; /* height of the mobile main menu is given by adding top bottom padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo Styles */
.logo {
  max-width: 300px;
  height: auto;
  margin: 0;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/*
.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
*/

.logo img {
  position: relative;
  left: 0;
  transform: none;
  max-width: 300px;
  margin: 0;
}

/*

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
  margin: 2px 0;
  transition: 0.4s;
}
  */

.hamburger {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black; /*color the hamburger menu expander icon*/
  margin: 2px 0;
  transition: 0.4s;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px; /* Reduced from 20px */
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-family: Arial, sans-serif;
  display: block;
  padding: 10px; /* Reduced from 10px 15px */
}

.submenu {
  display: none;
  background: #fff;
  list-style: none;
  z-index: 1001;
}

.submenu li a {
  padding: 10px 15px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #e4e4e4;
  color: black;
}

@media (min-width: 1000px) {
  /* Desktop view - hide hamburger */

 
  .hamburger {
    display: none;
  }

  .logo {
    position: relative;
    left: 0;
    transform: none;
    max-width: 200px;
    margin: 0;
  }

 

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
  }

  .nav-links li:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown-toggle {
    cursor: default;
  }

  .nav-links > li > a {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .submenu li:first-child a {
    border-radius: 4px 4px 0 0;
  }

  .submenu li:last-child a {
    border-radius: 0 0 4px 4px;
  }
}

/* Mobile styles */
@media (max-width: 1000px) {
  .main-menu-container {
    padding: 40px 0; /* height of the mobile main menu is given by adding top bottom padding */
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    position: relative;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .submenu {
    position: static;
    background: #fff;
    width: 100%;
  }

  .submenu li a {
    padding-left: 30px;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .dropdown-toggle {
    cursor: pointer;
  }

  .nav-links > li > a {
    border-bottom: 1px solid #b3b3b3;
  }

  .nav-links > li:last-child > a {
    border-bottom: none;
  }
}









/*

header video CSS

*/

.video-header {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Transparent black overlay */
  z-index: 1;
}

.video-header video {
  position: absolute;
  top: 50%; /* shrink height of video*/
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-50%); /* Ensures video stays centered when cropped */
}

.header-content {
  position: relative;
  z-index: 2; /* Places content above the overlay */
  text-align: left;
  padding: 2rem;
  color: white;

  /* Centers content vertically and horizontally */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px; /* Prevents content from stretching too wide */
}

.header-content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.header-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

/*

Global Css 

*/

/* Custom Font Face for Veneer */
@font-face {
  font-family: "Veneer";
  src: url("/fonts/veneer.woff2") format("woff2"),
    url("/fonts/veneer.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Color Variables */
  --primary-green: #31b44b;
  --primary-blue: #003463;

  /* Font Family Variables */
  --primary-font: "Poppins", "Roboto", Helvetica, Arial, sans-serif;
  --secondary-font: "Veneer", "Poppins", "Roboto", Helvetica, Arial, sans-serif;
}

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

/* Base Styles */
body {
  font-family: var(--primary-font);
  line-height: 1.6;
  color: #333;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-font);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  font-family: var(--primary-font);
  margin-bottom: 1rem;
}

ul {
  font-family: var(--primary-font);
}

li {
  font-family: var(--primary-font);
}
/* Links */
a {
  font-family: var(--primary-font);
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-green);
}

/* Alternative Content with Secondary Font */
.alt-content {
  font-family: var(--secondary-font);
}

/* Utility Classes */
.text-primary-green {
  color: var(--primary-green);
}

.text-primary-blue {
  color: var(--primary-blue);
}

.bg-primary-green {
  background-color: var(--primary-green);
}

.bg-primary-blue {
  background-color: var(--primary-blue);
}

/*global buttons*/

.apply-button {
  background-color: #ff580b; /* Button color */
  color: white; /* Text color */
  border: none;
  border-radius: 15px; /* Rounded corners */
  padding: 15px 30px; /* Padding for the button */
  font-weight: 700;
  font-size: 16px; /* Font size */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.apply-button:hover {
  background-color: #003463; /* Hover color */
}





/*

Footer Css

*/



/* Footer Styles */
footer {
  background-color: #566259;
  color: #fff;
  padding: 60px 0 0;
}

.footer-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
}

.company-description {
  color: #ecf0f1;
  line-height: 1.6;
  font-size: 14px;
}

.contact-info {
  font-size: 14px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  color: #007bff;
}

.footer-column h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #007bff;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-menu a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #007bff;
}

/* Hours List */
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #007bff;
}

/* Newsletter Form */
.newsletter-signup {
  margin-top: 20px;
}

.newsletter-signup h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  flex-grow: 1;
}

.newsletter-form button {
  padding: 8px 15px;
  background: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #0056b3;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }

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

  .footer-bottom-links {
      flex-direction: column;
      gap: 10px;
  }

  .newsletter-form {
      flex-direction: column;
  }

  .footer-logo img {
      max-width: 150px;
  }
}

@media (max-width: 480px) {
  .footer-container {
      padding: 0 15px;
  }
  
  .social-links {
      justify-content: center;
  }
  
  .hours-list li {
      flex-direction: column;
      text-align: center;
      gap: 5px;
  }
}