/* --- 1. Global Reset & Typography --- */
body {
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
  background-color: #fff;
  min-height: 100vh;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 45px 20px 25px 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-logo {
  height: 64px;
  width: auto;
}

.company-name {
  font-size: 1.6rem;
  color: #777;
  margin-left: 15px;
  font-weight: 500;
}

.tagline {
  font-style: italic;
  color: #999;
  font-size: 0.9rem;
  letter-spacing: 0.5px;

  white-space: nowrap;
}

.site-header {
  width: 100%;
  background-color: #fafafa;
}

/* The full-width bar with top/bottom lines */
.navbar {
  border-top: 1px solid #ccc;
  border-bottom: 1p solid #ccc;
  background-color: #fff;
  width: 100%
}

/* list of links */
.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* vertical seperator lines between buttons */
.navbar-links li:first-child {
  border-left: 1px solid #ccc;
}

/* styling the actual clickable text */
.navbar-links a {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: #666;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* The Solid Red Box for the current page or hover */
.navbar-links a.active, 
.navbar-links a:hover {
  background-color: #a33333; /* That specific engineering red */
  color: #ffffff !important;
}

/* 2. The Hover Action (A lighter or different tint) */
.navbar-links a:hover:not(.active) {
  background-color: #c44d4d; /* A slightly brighter, lighter red */
  color: #ffffff;
  transition: background-color 0.2s ease; /* Makes the color change feel smooth */
}

/* When the link is hovered, move ONLY the span */
.navbar-links a:hover:not(.active) .nav-text {
  transform: translateY(-2px); /* Shifts text 4px right */
}

.nav-inner-container {
  max-width: 1000px; /* Must match the header-top-row width */
  margin: 0 auto;
  padding: 0 20px;   /* Must match the header-top-row padding */
}

.nav-text {
  display: inline-block;
  transition: transform 0.2s ease;
}


/* This ensures the body text starts at the same pixel as the logo */
.main-container {
  flex: 1;
  max-width: 1000px; /* MATCH THIS TO YOUR HEADER WIDTH */
  margin: 0 auto;
  padding: 40px 20px; /* The 20px side padding must match the header */
  width: 100%;
}

/* Two-column layout matching the screenshot */
.content-layout {
  display: flex;
  gap: 60px; /* Space between the text and the sidebar */
  align-items: flex-start;
}

.main-text {
  flex: 2.5; /* Gives the main content more room */
}

.sidebar-list {
  flex: 1; /* Takes up 1/3 of the width */
  border-left: 1px solid #ddd; /* Optional: subtle separator */
  padding-left: 30px;
  min-width: 200px;
}

.sidebar-list h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #a33333; /* Using your engineering red for headers */
  font-weight: bold;
  margin-bottom: 15px;
}

.sidebar-list ul {
  list-style-type: square;
  padding-left: 15px;
  color: #666;
}

.sidebar-list li {
  font-size: 1rem;
  color: #555;
  position: relative;
}


/* The horizontal line separating the content from the footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 30px 0;
  margin-top: 60px; /* Adds space between the sidebar and the footer */
  background-color: #fafafa;
}

.footer-content {
  text-align: right; /* Matches the screenshot's right-justified text */
}

.footer-content p {
  margin: 0;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.5px;
  text-transform: none;
}

.about-content h1 {
  font-size: 1.8rem;
  color: #a33333; /* Using the red for the main page title */
  margin-bottom: 20px;
}


/* Styling for the About Section */
.about-content h2 {
  font-size: 1.4rem;
  color: #666; /* The gray headers from the screenshot */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.about-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* The dictionary definition styling */
.definition {
  margin-bottom: 30px;
}

.definition p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

/* Core Values List */
.values-list {
  list-style-type: disc;
  padding-left: 20px;
}

.values-list li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}

.values-list strong {
  color: #444; /* Makes the value name slightly darker */
}


/* Services Specific Styles */
.services-content h1 {
  font-size: 1.8rem;
  color: #a33333; /* Using the red for the main page title */
  margin-bottom: 20px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.service-item {
  margin-bottom: 30px;
}

.service-item h3 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: bold;
}

.service-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}


/* Contact Page Specifics */
.contact-content h1 {
  font-size: 1.8rem;
  color: #a33333; /* The darker gray header */
  margin-bottom: 25px;
  font-weight: bold;
}

.contact-details {
  line-height: 1.8;
}

.company-title {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
}

.contact-item {
  font-size: 1rem;
  color: #444;
}

.email-link {
  color: #a33333; /* Your engineering red */
  text-decoration: none;
  font-weight: 500;
}

.email-link:hover {
  text-decoration: underline;
}

