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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #eff8fd;
}

/* Header */
header {
  font-family: 'Poppins', sans-serif;
  background: #2d336b;
  color: white;
  padding: 15px 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo in Corner sizing (CURRENTLY REMOVED) 
.logo img {
  height: 10px;
  margin-right: 10px;
} */

/* Sals Home Solutions text size */
nav h1 {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: #eef6fb;;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  
}

/* Navigation Links */
.navbar{
  position: relative;
  z-index: 1000; /* layers it  */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #eef6fb;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #5b56e2;
   z-index: 999;
}

/* Main Page */

/* the main page cover image */
.hero {
  background-image: url('../images/hero-image-1.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 80px 20px;
  text-shadow: 0 2px 8px rgba(17, 43, 80, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff6b35;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #ff9f68;
}

/* Sections */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* about section*/
.about{
  background-color: rgb(255, 255, 255);     /* white background */
  padding: 30px;              /* space inside the box */
  border-radius: 12px;        /* rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* soft shadow */
  max-width: 800px;
  margin: 60px auto;          /* centers the box */
}


/* services stuff */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; /* increase the gap between cards*/
  padding: 3rem 5%;
}

.service-card {
  background: white;
  color: #1f3c88; 
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
  margin: .5rem; /* adds space around each card */
}

/* adds the lil images to the card but i will come back to fix thes cuz rn it looks ugly 
.service-card img {
  width: 10%;
  border-radius: 12px;
  margin-bottom: 1rem;
}*/

.service-card .service-icon {
width: 28px;
height: 28px;
}

.service-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1f3c88; 
}

.service-card p {
  color: #0e0e0e;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* service page grid */
.services-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 40px 20px;
}

.services-page .service-box {
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);

  height: 250px;              /* All cards same height */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; 
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}


.services-page .services-img {
  width: 60px;          /* controls size */
  height: 60px;
  object-fit: contain;  /* keeps image proportions */
  margin-bottom: 10px;
  
}

.services-page .service-box:hover {
  transform: translateY(-5px);
  transition: 0.2s ease-in-out;
}

/* Service area map stuff */
.service-map {
  text-align: center;
  padding: 3rem 5%;
}
/* service text color change here */
.service-map h2 {
  margin-bottom: 1rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
  /* --- animation behavior --- */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */
form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

form label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #1e3d59;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background: #ff6b35;
}

/* Footer */
/* ===== FOOTER BASE ===== */
.footer {
  background-color: #2d336b;
  padding: 3rem 5%;
  border-top: 1px solid #dce3f9;
  font-family: 'Poppins', sans-serif;
  color: #1a2d5f;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* ===== FOOTER LOGO ===== */
.footer-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

}
/* ===== SECTION TITLES ===== */
.footer-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  color: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-toggle .chevron {
  transition: transform 0.3s ease;
}

/* ===== MENU LIST ===== */
.footer-menu {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.footer-menu li {
  margin-bottom: 0.6rem;
}

.footer-menu li a {
  text-decoration: none;
  color: #f9f9f9;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: #5673be;
}

/* ===== SOCIAL ICONS ===== */
.footer-socials {
  margin-top: 1rem;
}

.footer-socials i {
  font-size: 1.3rem;
  margin-right: 0.8rem;
  color: #4267d6;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-socials i:hover {
  color: #1a2d5f;
}

/* ===== BOTTOM COPYRIGHT ===== */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #dce3f9;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #6e7ca8;
}

/* ===== DESKTOP BEHAVIOR (always open) ===== */
@media (min-width: 768px) {
  .footer-toggle .chevron {
    display: none;
  }
  .footer-menu {
    max-height: 1000px !important;
  }
}


/* responsive requirement  */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* show hamburger on mobile */
  }

  .nav-links {
    position: absolute;
    display: none; /* hide menu initially */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0px;
    background: #25294d;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex; /* show menu when active */
  }

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