/*
 * This file contains CSS to make a website responsive.
 * It uses a mobile-first approach, with media queries to adapt
 * the layout for larger screens.
 */

/* ========================================= */
/* General Responsive Styles */
/* ========================================= */

/* Ensure all elements use a consistent box model for easier layout management */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Make images fluid so they don't overflow their containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* For your header, make sure the elements stack correctly */
.container {
    padding: 0 15px;
    max-width: 100%;
}

/* Hide the desktop navigation on small screens and create a hamburger menu icon */
.desktop-nav {
  display: none;
}

/* This is the code for the mobile menu button (if you want to implement it) */
.mobile-nav-button {
  display: block;
  font-size: 2em;
  text-align: right;
  cursor: pointer;
  padding: 10px;
}

/* Style the logo for mobile screens */
.logo img {
  width: 80%; /* Adjust to fit the mobile header better */
  max-width: 200px;
}

/* ========================================= */
/* Media Queries for Small Screens (less than 768px) */
/* ========================================= */

@media screen and (max-width: 767px) {
  
  /* Stack header elements vertically */
  header .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* Stack contact info and social icons for mobile */
  header .contact, header .social {
    width: 100%;
    margin-top: -20px;
  }
  /* Stack logo for mobile */
  header .logo {
    width: 15%;
    margin-top: 50px;
  }  
	
  /* Make contact list items display as blocks */
  header .contact ul li {
    display: block;
    margin-bottom: 5px;
  }
  
  /* Hide the desktop main navigation */
  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
	margin-top: 43px;
    display: block; /* Hide by default, will be shown with JS */
  }
  
  nav ul li {
    margin: 0px 0;
  }

  /* Make all content columns stack vertically */
  .col-sm-12, .col-sm-4 {
    width: 100%;
    float: none;
    padding: 0 10px;
  }
  

  
}
