/*
Theme Name: CooperativeHousingAssociation2025
Theme URI: 
Author: Ottesen
Author URI: 
Description: My new Custom WordPress theme.
Version: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/



/***************************************************************
General
***************************************************************/

/* Is needed for the menu so it don't overlap when click on a jump link. */
/*html { scroll-padding-top: 65px; }*/
html { 
    scroll-padding-top: 65px; 
    height: 100% 
    margin:0;  
    overflow-y: scroll; 
    overflow-x: hidden;
}

/*body {
	background-color: white;
	margin: 0;
	padding: 0;
}*/
body {
    background-color: white;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
}

/* Text style and tittle style */
/* Roboto for default text and Montserrat for tittle*/
p {font-family: 'Roboto', sans-serif;}
h1 {font-family: 'Montserrat', sans-serif; text-align: center; font-size: 70px;}
h2 {font-family: 'Montserrat', sans-serif; text-align: center;}
h3 {font-family: 'Montserrat', sans-serif; text-align: center;}
h4 {font-family: 'Montserrat', sans-serif; text-align: center;}
h5 {font-family: 'Montserrat', sans-serif; text-align: center;}
h6 {font-family: 'Montserrat', sans-serif; text-align: center;}

/* Side scrol control.*/
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0; /* track background */
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 6px;
  border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
}

/***************************************************************
Header
***************************************************************/

.site-header {position:relative; }

/* all the menu stuff in the top menu*/
/*.top-bar {
    position: fixed;
    top: 0;
    height: 65px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}*/
.top-bar {
  /*display: flex;*/
  align-items: center;
  /*justify-content: flex-end; /* Align burger to right */
  position: fixed;
  top: 0;
  height: 65px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0 15px;
  flex-wrap: wrap; /* Allow wrapping on mobile */
}

.main-navigation {
    min-width: 700px;
    max-width: 1000px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/*.nav-menu li a {
    color: black;
    text-decoration: none;
    padding: 5px 10px;
    font-weight: 500;
}
.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}*/

nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  padding: 10px 15px;
  /* Smooth hover effect */
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: white;
  background-color: black;
  border-radius: 4px;
}

/***********/
/***********/
/***********/

/* General styles */
.burger {
  display: none;
  font-size: 36px;
  padding: 10px 15px;
  background-color: black;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1000;
  position: relative;
  order: 1; /* keep burger first */
  margin-left: auto;
}

/* Make burger visible on small screens */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .top-bar {
    flex-wrap: wrap;        /* allow items to stack vertically */
    justify-content: flex-end; /* keep burger button on right */
    height: auto;           /* allow height to grow */
    padding: 0 15px;
  }

  .main-navigation {
    width: 100%;
    order: 2; /* show below burger */
    display: none; /* hidden by default */
  }

  .main-navigation.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    padding: 10px 15px;
    margin: 0;
    background-color: white;
    gap: 5px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Center the link text */
    text-align: center;
  }
  .nav-menu li a:hover {
    background-color: black;
    color: white;
  }
}


/***************************************************************
Banner & Logo
***************************************************************/

.parallax_banner {
    height: 400px; /* adjust to your needs */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    /*margin-bottom: 50px;*/
}
.banner-title{
    /* font-size: 40px; */
  	font-size: min(max(20px, 4vw), 40px);
  	
    /*text-align: center;*/
    height: 100px;
    /*background-color: white;*/
    width: 350px;
    float: left;
    /*margin-left: 10%;
    margin-top: 100px;*/
    /*opacity: 0.35;*/
    color: white;
    font-weight: bold;
    /*font-family: 'Source Sans Pro', sans-serif;*/
    /*font-family: 'Roboto', sans-serif;*/
    font-family: 'Montserrat', sans-serif;
    /*box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);*/
    text-shadow: 2px 2px 2px black;
}
.banner-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* optional dark overlay */
    padding: 20px;
    border-radius: 8px;
}


/***************************************************************
Post & Page
***************************************************************/

.post-postion{
    margin: auto;
    max-width: 700px;
    display: block;
    padding: 10px;
    padding-bottom: 50px;
    padding-top: 50px;

}

.even-post {
    background-color: #e7e7e7;
}

.odd-post {
    background-color: white;
}


/***************************************************************
Footer
***************************************************************/

/*.footer_container {
	bottom: 0;
	height: auto;
	width: 100%;
	background-color: white;
	color: black;
	box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.3);
}*/
.footer_container {
  background-color: white;
  color: black;
  box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.3);
  margin-top: auto; /* Push footer to bottom */
  padding: 15px 0; /* optional padding */
  width: 100%;
}


.footer-postion {
    /*background-color: green;*/
    text-align: center;
    margin: auto;
    max-width: 700px;
    display: block;
    padding: 10px;
    color: gray;
    /*padding-bottom: 50px;*/
    /*padding-top: 50px;*/
}


/***************************************************************
Mail and Input form
***************************************************************/

.custom-contact-form {
    max-width: auto;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: sans-serif;
}

.custom-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.custom-contact-form input[type="submit"] {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

.custom-contact-form input[type="submit"]:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.cf-success, .cf-error {
    max-width: 400px;
    margin: 20px auto;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-family: sans-serif;
}

.cf-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cf-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/***************************************************************
Login page
***************************************************************/

.custom-login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    padding-right: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: sans-serif;
}

.custom-login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-login-form input[type="submit"] {
    background-color: #f0f0f0; /* light gray */
    color: #000;               /* black text */
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.custom-login-form input[type="submit"]:hover {
    background-color: #000;  /* black background */
    color: #fff;             /* white text */
    border-color: #000;
}

/***************************************************************
Responsive for mobile / tablet / etc
***************************************************************/