/* Apply box-sizing to all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Header Styles */
header {
  background-color: #2e3b4e; /* Steel Gray */
  color: #fff;
  padding: 10px 20px;
  position: relative; /* Enable absolute positioning for child elements */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spread elements across the header */
  gap: 20px; /* Space between elements */
}

header a {
  color: #fff; /* Text color */
}

/* Logo */
header img {
  width: 300px; /* Reduce logo size */
  height: auto;
  align-self: flex-start; /* Ensure the image aligns to the top */
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Default: Hidden on larger screens */
  font-size: calc(24px * 1.5); /* Increase size by 1.25x */
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 20px; /* Align to the right */
  top: 50%; /* Center vertically */
  transform: translateY(-130%); /* Adjust for perfect centering */
}

/* Tagline */
header p {
  font-size: 24px; /* Decrease tagline font size */
  margin: 0;
  color: #fff;
  text-align: left;
  flex-grow: 1; /* Ensure the tagline stretches if needed */
}

/* Navigation Bar */
nav {
  background-color: #333;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex; /* Show navigation links by default */
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  color: #fff; /* Text color */
  text-decoration: none;
  font-size: 18px;
  margin: 0 10px; /* Space between items */
  padding: 10px 20px; /* Add padding to make it a "block" */
  border-radius: 4px; /* Optional: Rounded corners for a softer look */
  transition: background-color 0.3s ease, color 0.3s ease;
}


.nav-links a:hover {
  background-color: #f0a500; /* Highlight color */
  color: #333; /* Change text color for contrast */
}

/* Section Styles */
section {
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #2e3b4e; /* Steel gray */
  color: #fff;
  text-align: center;
  padding: 10px 0;
  position: relative; /* Ensure it stays in flow when content is long */
  bottom: 0; /* Ensures alignment when content is short */
  width: 100%; /* Stretch footer to full width */
}

h2 {
  color: #333;
}

/* Smooth scrolling for section navigation */
html, body {
  scroll-behavior: smooth;
  height: 100%; /* Ensure the body stretches to the full height of the viewport */
  margin: 0; /* Remove default margins */
  display: flex; /* Enable flexbox layout */
  flex-direction: column; /* Stack elements vertically */
}

main {
  flex: 1; /* Allow the main content area to grow and take up remaining space */
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* Make inputs and textareas take full width */
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px; /* Increase font size for better readability */
}

.contact-form button {
  padding: 10px 20px;
  background-color: #e76a10; /* Construction Orange */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.contact-form button:hover {
  background-color: #d35d00; /* Darker Orange */
}

/* Rates Section */
#rates {
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
#rates table {
  width: auto; /* Allow the table to resize based on its content */
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 20px; /* Add spacing between tables */
}

#about table {
  width: auto; /* Allow the table to resize based on its content */
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 20px; /* Add spacing between tables */
}

#rates thead {
  background-color: #2e3b4e; /* Steel Gray */
  color: #fff;
}

#about thead {
  background-color: #2e3b4e; /* Steel Gray */
  color: #fff;
}

#rates th, #rates td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap; /* Prevent text from wrapping, ensuring cells adjust dynamically */  
}

#about th, #about td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap; /* Prevent text from wrapping, ensuring cells adjust dynamically */  
}

#rates tbody tr:nth-child(even) {
  background-color: #f4f4f4;
}

#about tbody tr:nth-child(even) {
  background-color: #f4f4f4;
}

#rates tbody tr:hover {
  background-color: #eaeaea;
}

#about tbody tr:hover {
  background-color: #eaeaea;
}

#rates h3 {
  color: #2e3b4e; /* Match your header color */
  font-weight: bold;
  margin-top: 30px; /* Add spacing above each category */
}

#about h3 {
  color: #2e3b4e; /* Match your header color */
  font-weight: bold;
  margin-top: 30px; /* Add spacing above each category */
}

#rates p {
  margin-top: 10px;
  /* font-style: italic;
  color: #555; */
}

/* Default tab styling */
.tabs {
  display: flex; /* Flexbox layout for alignment */
  justify-content: flex-start; /* Align tabs to the left */
  flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
  margin-bottom: 20px; /* Add spacing below the tabs */
  gap: 10px; /* Space between tabs */
}

.tab-button {
  background-color: #2e3b4e; /* Default color */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px; /* Add padding for a button-like appearance */
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping in buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button.active {
  background-color: #f0a500; /* Gold for active tab */
  color: #333; /* Dark text for contrast */
}

.tab-button:focus, .tab-button:hover {
  outline: none; /* Prevent focus styles from interfering */
}

.tab-button:hover {
  background-color: #f0a500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Collapsible Button Styles */
.collapsible-header {
  background-color: #3a5c93; /* Slightly lighter than tabs */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.collapsible-header:hover {
  background-color: #666;
}

.collapsible-header.active {
  background-color: #888;
}

/* Collapsible Content */
.collapsible-content {
  display: none;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-top: 10px; /* Add more spacing between the header and content */
  margin-bottom: 15px; /* Add more spacing between the header and content */
  text-align: left; /* Align content to the left */
}

.collapsible-content.active {
  display: block;
}

/* Tables inside collapsible sections */
.collapsible-content table {
  width: auto; /* Allow tables to adjust width based on content */
  border-collapse: collapse;
  margin-top: 10px; /* Add spacing above the table */
  margin-bottom: 20px; /* Add spacing below the table */
}

/* Wrapper for responsive tables */
.table-wrapper {
  overflow-x: auto; /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for touch devices */
  display: block; /* Ensure proper block-level display */
}

.service-item {
  margin-bottom: 20px; /* Add spacing between services */
  padding: 10px 0;
  border-bottom: 1px solid #ddd; /* Optional: Visual separation */
}

.service-item h3 {
  color: #2e3b4e; /* Match header colors */
  font-size: 1.5em;
  margin-bottom: 10px;
}

.service-item ul {
  padding-left: 20px; /* Ensure proper list indentation */
  margin: 10px 0;
}

.service-item ul li {
  margin-bottom: 5px; /* Space between list items */
}

/* Contact Box Styling */
.contact-box {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ddd; /* Soft border */
  border-radius: 8px; /* Rounded corners */
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  max-width: 500px; /* Limit box width */
  margin-left: auto; /* Center the box */
  margin-right: auto;
  text-align: left; /* Align text to the left */
}

.contact-box h3 {
  color: #2e3b4e; /* Header color */
  margin-bottom: 10px; /* Reduce bottom margin */
  margin-top: 0; /* Remove any top margin */
  font-size: 1.5em; /* Slightly smaller text size */
  text-align: center; /* Center the title */
}

.contact-details p {
  margin: 10px 0; /* Add spacing between contact details */
  font-size: 1em; /* Standard text size */
  color: #333; /* Dark gray text */
}

.contact-details a {
  text-decoration: none; /* Remove underline from links */
  color: #e76a10; /* Highlight links with an orange tone */
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #d35d00; /* Darker orange on hover */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center elements horizontally */
    gap: 10px; /* Add spacing between elements */
    padding: 10px; /* Add padding for better spacing */
  }

  header img {
    width: 250px; /* Adjust logo size for small screens */
    height: auto; /* Maintain aspect ratio */
    align-self: flex-start; /* Align logo to the top-left */
  }

  header a {
    align-self: flex-start; /* Align the logo to the left */
    margin: 0; /* Remove extra margins */
  }

  header p {
    font-size: 14px; /* Smaller text size for the tagline */
    text-align: center; /* Center-align the tagline */
    margin: 0; /* Remove extra margins */
    width: 100%; /* Stretch tagline across the header */
  }

  .hamburger {
    display: block; /* Ensure visibility on small screens */
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 10px;
    background-color: #333;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 8px;
  }

  .tab-button {
    padding: 10px 15px;
    flex: 1 0 auto;
  }

  .collapsible-content {
    overflow-x: auto; /* Ensure horizontal scrolling on small screens */
    margin-top: 10px; /* Add more spacing between the header and content */
    margin-bottom: 15px; /* Add more spacing between the header and content */
  }

  .collapsible-content .table-wrapper {
    overflow-x: auto; /* Ensure tables scroll horizontally on small screens */
  }

  .collapsible-content table {
    width: 100%; /* Tables stretch to fit the container */
  }

  .tabs {
    justify-content: center; /* Center tabs on small screens */
  }

  table {
    width: 100%; /* Allow table to stretch within the container */
  }

  th, td {
  white-space: nowrap; /* Prevent text wrapping */
  }

  .collapsible-header {
    margin-bottom: 5px; /* Add a small margin to separate the header */
  }
}
