/* ---------- Global Styles ---------- */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa; /* restore light background */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  height: 100%;
}

main {
  flex: 1;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0e2239;
  padding: 8.5px 5%;
}

/* ---------- Site Logo ---------- */

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo .logo-img {
  height: 15px; /* Default size for desktop */
  width: auto;
  display: block;
  transition: transform 0.6s ease;
}

.site-logo:hover .logo-img {
  transform: rotate(360deg);
}


/* Smaller logo on mobile */
@media (max-width: 600px) {
  .site-logo .logo-img {
    height: 16px !important; /* Force override if needed */
  }
}


/* ✅ Header container layout */
.site-header .container {
  display: flex;
  justify-content: space-between; /* Logo left, menu right */
  align-items: center;
  padding: 12px 20px;
  background-color: #000;
  flex-wrap: nowrap; /* Prevent stacking */
}

header img {
height: 60px;
width: auto;
}
/* Navigation */
.site-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.site-nav .nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav .nav-menu li a:hover {
  color: #ff7f50;
}

/* ✅ Mobile: keep logo left, menu right */

/* Smaller logo on mobile */
@media (max-width: 600px) {
  .site-logo .logo-img {
    height: 16px !important; /* Force override if needed */
  }
}

  }

  .site-logo {
    margin-bottom: 0;
  }

  .site-nav .nav-menu {
    flex-direction: row;
    gap: 12px;
  }
}



/* ---------- Navigation ---------- */
.navbar {
  position: relative;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #ff4500;
}

/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #ff4500;
  border-radius: 5px;
  transition: 0.3s;
}

/* ---------- Hero Section ---------- */
.hero {
  background: url('https://github.com/colbyfuller50-cyber/NG-Surveying-Services-LLC/blob/main/Tripodhomeimage.jpg?raw=true') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-text h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
}

.hero-text .btn {
  background: #f44336;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

/* ---------- Content ---------- */
.content {
  padding: 50px 10%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---------- Contact Form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn {
  background: #0e2239;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  in-height: 100vh; /* <-- Add this */
}

main {
  flex: 1; /* pushes footer to bottom if content is short */
}

footer {
  background-color: #0e2239;
  color: white;
  text-align: center;
  padding: 15px 0;
}


/* ---------- Mobile Navigation (Dropdown Fix) ---------- */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50px; /* Adjust height to avoid overlapping the header */
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(14, 34, 57, 0.97);
    text-align: center;
    gap: 30px;
    z-index: 999;
    transition: all 0.3s ease;
  }

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

  .nav-links li a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .site-logo {
    font-size: 1.2rem;

