/* How It Works

	1.	Base Font Size:
	•	font-size: 62.5% makes 1rem = 10px, ensuring easier calculations.
	2.	Consistent Scale:
	•	Heading sizes (e.g., h1, h2) follow a typographic scale, such as 1.2, 1.3, or 1.4 ratios.
	3.	Responsive Design:
	•	Media queries adjust heading sizes for smaller screens, maintaining readability without overpowering the layout. */

body, html {
  margin: 0; /* Removes default margin for both body and html elements */
  padding: 5px; /* Removes default padding for both body and html elements */
  font-size: 62.5%;
  
  line-height: 1.6; /* Optimal line height for readability */
  font-family: 'Arial', sans-serif; /* Use a clean, professional font */
  
  background-color: #ffffff; /* Sets the background color to the specified theme color */
  color: #333; /* Sets the default text color to dark grey for readability */
  overflow-x: hidden; /* Prevents horizontal scrolling, maintaining responsive design */
    display: flex;/*Set the entire body to use flex */
  flex-direction: column;/*Set the normal direction to be a col */
  /* min-height: 100vh; Ensures the container covers the full viewport height */
}
/* Base Typography */


/* Headings Typography */
h1 {
  font-size: 3.6rem; /* 36px */
  line-height: 1.2; /* Adjust line height for compact headings */
  font-weight: bold;
  margin-bottom: 1rem; /* Spacing below */
}

h2 {
  font-size: 3rem; /* 30px */
  line-height: 1.3;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 2.4rem; /* 24px */
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 2rem; /* 20px */
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1.8rem; /* 18px */
  line-height: 1.5;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

h6 {
  font-size: 1.6rem; /* 16px */
  line-height: 1.5;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

p {
  font-size: 1.6rem; /* 16px */
  line-height: 1.6; /* Ensures readability with proper spacing */
  margin-bottom: 1.2rem; /* Add spacing between paragraphs */
  color: #333; /* Neutral, dark gray for readability */
}
@media (max-width: 768px) {
  h1 {
    font-size: 3rem; /* Scale down for smaller screens */
  }
  h2 {
    font-size: 2.6rem;
  }
  h3 {
    font-size: 2.2rem;
  }
  h4 {
    font-size: 1.8rem;
  }
  h5 {
    font-size: 1.6rem;
  }
  h6 {
    font-size: 1.4rem;
  }
    p {
    font-size: 1.4rem; /* 14px on mobile devices */
    line-height: 1.5; /* Slightly tighter spacing */
  }
}

/* General footer styling */
/* Footer container */
footer {
  background-color: #333; /* Dark background for modern look */
  color: #fff; /* White text color for contrast */
  padding: 30px 20px; /* Padding around the footer for spacing */
  font-family: Arial, sans-serif; /* Font for the entire footer */
  box-sizing: border-box;
  margin: auto;
}

/* Left phone fax and address */


/* Main footer container */
.footer-container {
  display: flex; /* Use flexbox for layout */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: space-between; /* Evenly space out columns */
  gap: 20px; /* Add spacing between columns */
  max-width: 1200px; /* Constrain width for large screens */
  margin: 0 auto; /* Center the footer content horizontally */
  padding: 20px; /* Add padding inside the footer container */
}

/* Individual footer columns */
.footer-column {
  flex: 1; /* Distribute space evenly between columns */
  min-width: 200px; /* Minimum width for each column */
  max-width: 33%; /* Prevent columns from stretching too wide */
  text-align: left; /* Align content to the left */
}

/* Column headers */
.footer-column h1 {
  border-bottom: 2px solid #fff; /* Add a bottom border */
  margin-bottom: 1.5rem; /* Space below the header */
  font-size: 1.8rem; /* Font size for headers */
  font-weight: bold; /* Bold font for emphasis */
  text-align: center; /* Center align header text */
}

/* Links */
.footer-link {
  display: block; /* Display links as block elements */
  font-size: 1.2rem; /* Font size for links */
  color: #fff; /* White text color for links */
  text-decoration: none; /* Remove underline from links */
  margin: 5px 0; /* Vertical spacing between links */
  transition: color 0.3s ease; /* Smooth transition effect for hover */
}

.footer-link:hover {

  color: #FDD051; /* Change link color on hover */
}
/* The email icon */
.fa-envelope:hover{
  cursor: pointer;
}
/* Column-specific styles */
#left-footer-col {
  /* Specific styling for the left column */
  text-align: center;
}

.footer-center {
  text-align: center; /* Center-align the content of the middle column */
}


.footer-column h2{
  font-size:1.8rem;
   color: #fff; /* White text color for links */
}

.footer-column p{
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
   color: #fff; /* White text color for links */
}
/* footer-address-link */
#footer-address-link{
  /* direction: none; */
cursor: pointer;
color: #fff;
}
/* the phone link */
.footer-phone{
  padding: .5rem 0 0 0;
   text-decoration: none;
   color:#ffffff;
   font-size: 1.8rem;
   margin-bottom: 1rem;
   transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and transform */
}

/*  for the teams page */
.footer-phone:hover{
    color: #FDD051; /* Change icon color on hover */
  transform: scale(1.2);
}
.footer-link {
  display: block; /* Display links as block elements to take full width */
  font-size: 1.8rem;
  color: #fff; /* White text color for links */
  text-decoration: none; /* Remove underline from links */
  margin: 5px 0; /* Vertical spacing between links */
  transition: color 0.3s ease; /* Smooth transition effect for color change on hover */
}
#right-footer-col {
  text-align: right; /* Align the right column content to the right */
}



/*  footer contact */
/* Styling for the copyright and attribution section */
.footer-bottom {
  margin-top: 20px; /* Space above the copyright section */
  text-align: center;
}


.footer-bottom p {
  font-size: 1.8rem; /* Smaller font size for copyright text */
  color: #aaa; /* Light gray color for secondary text */
  margin: 0; /* Remove default margin */
}
.footer-bottom a {
  font-size: 14px;
  color: #aaa;
 
  text-decoration: none;
}

/* Set the main footer ontop */
.main-page-footer{
  position: relative;

  z-index: 500;
}

  footer {
  width: 100%; /* Ensures the footer itself spans the full width */
  /* margin: 0; */
  padding: 20px 10rem;
}
/* ---------------- LARG screens (min-width)-----------------*/



/* ----------- smaller screens -------------
  Responsive design: Adjusts layout for smaller screens (e.g., mobile).
  Stacks button and text vertically to improve readability.
*/
/* Responsive Design */


@media (max-width: 768px) {
footer{
  padding: 0 7rem  !important;
}
  
    .footer-container {
     align-items: center; /* Center align items in the container */
  justify-content: center; /* Evenly space out the columns */
    flex-direction: column-reverse; /* Display columns side-by-side on larger screens */
  }

  .resource-row {
    flex-direction: column; /* Stacks items vertically */
    /* Aligns items to the start of the column */
  }
  .resource-row.reverse {
    flex-direction: column; /* Stacks items vertically even when reversed */
  }
  .resource-button {
    margin-bottom: 10px; /* Adds margin below buttons on small screens */
  }

  .footer-column {
    text-align: center; /* Center align content for smaller screens */
    max-width: 100%; /* Allow columns to take full width */
  }
#left-footer-children p{
  display: flex;
     align-items: center !important; /* Center align items in the container */
  justify-content: center !important; /* Evenly space out the columns */
}
  .footer-column h1 {
    text-align: center; /* Center align headers */
  }
  /*  Remove margins to center text */
  /* .footer-column h1 {
    width: 100%;
    margin: 0 0 1.5rem 0;
  } */

  /* copyright */
  .footer-bottom {
 width: 90vw;
 text-align: left;
}
}
/* ------------------------- end of footer styling ------------ */




/*  ----------------------- Contact form --------------------- */
/* Popup Container Styling */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark background with transparency */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease; /* Smooth transition for appearance */
    z-index: 1000; /* Ensures the popup is on top */
}
/* header is hidden on larger screen. it will be displayed on smaller ones */
.popup-header{
  height: 8rem;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
 /* hide on larg screens. this will replace the image on smaller screens */
 display: none;
}


/*  Contact h1  */
.contact-h1{
  font-size: 3.4rem;
  margin: 0 0 3rem;
 
}
.popup-logo{
  margin: 2rem 0 0 2rem;
   width: 20rem;
}
/* Show Popup */
.popup-container.show {
    display: flex; /* Flexbox for centering content */
    opacity: 1; /* Full visibility */
}

/* Popup Content Styling */
.popup-content {
    background: white;
    width:85%;
    max-width: 900px;
    /* the button is inline-block this will center */
    /* text-align: center; */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    transform: scale(0.8); /* Initial scale down for animation */
    transition: transform 0.3s ease; /* Smooth scale up on show */
    opacity: 0;
}

.popup-container.show .popup-content {
    transform: scale(1); /* Scale up to normal size */
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    color: #FDD051;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #f3b50a; /* Color change on hover */
}


/* Image Container Styling */
.image-container {
    flex: 1.4; /* Takes up 1/3 of the popup */
   
    overflow: hidden; /* Ensures the image doesn't overflow */
}

.image-container img {
    width: 100%;
    height: 100%;

    object-fit: cover; /* Ensures the image covers the container without distortion */
    /*  position the image */
   
    object-position: 70%;
    /* transform: scale(.89); */
}

/* Form Container Styling */
.form-container {
    flex: 1.8; /* Takes up 2/3 of the popup */
    padding: 4rem; /* Adds space around the form */
     min-width: 300px; /* Minimum width for responsiveness */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the form vertically */
    align-items: center;
}

/* Form Input Styling */
form input,
form textarea {
    width: 100%; /* Full width of the container */
    padding: 10px; /* Padding for input */
    margin-bottom: 15px; /* Space between inputs */
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size for readability */
    resize: vertical; /* Allows resizing vertically for textarea */
}

