/* Navbar Styling */
:root {
  --teal: #004c5c;
  --page-pad: 6vh 5vw;
}

/* General navbar styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 10px 40px;
    border-bottom: 1px solid #ccc;
    font-family: Arial, sans-serif;
    height: 70px; /* fixed navbar height */
    overflow: hidden; /* hides parts of image that overflow vertically */
}

nav img {
    height: 60px; /* natural size within nav height */
    transform: scale(1.3); /* visually bigger without increasing nav height */
    transform-origin: center;
}

/* Container for the links */
nav .nav-links {
    display: flex;
    gap: 25px; /* space between links */
}

/* Links styling */
nav a {
    position: relative; /* needed for hover underline */
    text-decoration: none;
    color: #005BAC;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
    padding: 5px 0; /* space for hover lines */
}

/* Hover color */
nav a:hover {
    color: #003f7f;
}

/* Horizontal bars (top and bottom) on hover */
nav a::before,
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #005BAC;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a::before {
    top: 0;
}

nav a::after {
    bottom: 0;
}

nav a:hover::before,
nav a:hover::after {
    transform: scaleX(1);
}

/* index.html */

.intro-image {
  position: relative;
  width: 100%;
  height: 70vh;
  background: url("../images/broomfield.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.intro-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.intro-image-content {
  position: relative; /* keep text above overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 5%; /* left-align with some spacing */
}

.intro-image-content-inner {
  margin-top: 20%;
  margin-bottom: 20%;
}

.intro-image h1 {
  font-size: 3rem;
  margin: 0 0 10px 0;
}

.intro-image p {
  font-size: 1.25rem;
  max-width: 600px; /* for line length */
  margin: 0;
}

.standalone-image {
  margin-top: 15vh;
  height: 30vh;
  margin-left: 20%;
  margin-right: 20%;
  background: url("../images/assembly_line.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.standalone-paragraph {
  margin-left: 15%;
  margin-right: 15%;
  text-align: center;
}

.standalone-paragraph h2 {
  color: #003f7f;
}

.efficiency-items {
  display: flex;
  flex-direction: column; 
  gap: 1rem; 
  align-items: center; 
  margin: 0 auto;    
}

.efficiency-item {
  display: flex;
  align-items: center;    /* center icon and text vertically */
  gap: 1rem;             /* space between icon and text */
}

.efficiency-item-icon img {
  width: 3.75rem;  /* control icon size (responsive units better for mobile) */
  height: auto;
}

.efficiency-item-text h2 {
  color: #003f7f;
}

.facility {
  margin-top: 20vh;
  padding: var(--page-pad);
  background: #fff;
}

/* Two-column layout */
.facility-wrap{
  display: grid;
  grid-template-columns: 1.05fr 1fr;   /* text a bit wider than image */
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* Left panel (teal) */
.facility-text{
  background: var(--teal);
  color: #fff;
  padding: clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facility-text h1{
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.1;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.02em;
}
.facility-text p{
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  margin: 0;
  max-width: 70ch;
}

/* Right image */
.facility-media{
  margin: 0;
}
.facility-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/11; /* ensures consistent sizing */
}

.gray-section {
  background-color: #f7f9faa6;
}

/* section container */
.madeusa{
  margin-top: 20vh;
  padding: 4vh 3vw;
}

/* two-column layout */
.madeusa-wrap{
  display: grid;
  grid-template-columns: min(52vw, 720px) 1fr; /* big image left */
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto; /* center on page */
}

/* left image */
.madeusa-media img{
  width: 100%;
  height: auto;
  display: block;
  /* wide banner feel like in the screenshot */
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

/* right text */
.madeusa-text h2{
  color: var(--teal);
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 .5rem 0;
}
.madeusa-text p{
  color: #344454;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* Make sure the media has at least a nice aspect on very short pages */
@supports (aspect-ratio: 16 / 10){
  .facility-media img{ aspect-ratio: 16 / 11; }
}

/* Responsive: stack on small screens and reset the lift */
@media (max-width: 900px){
  .facility-wrap{
    grid-template-columns: 1fr;
  }
  .facility-media{
    transform: none;
    margin-top: 2vh;
  }
  .facility-text{
    padding: 8vw;
  }
}

/* parts.html */

/* Page title */
.page-title {
  display: flex;
  flex-direction: column; /* stack children on top of each other */
  justify-content: center; 
  align-items: center; 
  text-align: center;
  background-color: #F7F9FA;
}

.page-title p {
  color: #4a4a4a; 
  font-size: 1.1rem;
}

/* Parts card */
.parts-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* text left, image right */
  align-items: center;
  gap: 32px;
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  padding: 28px;
  margin: 40px 0;
  position: relative;
}

/* blue accent bar */
.parts-card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 6px;
  background: #005BAC;
  border-radius: 6px;
}

/* left side text */
.copy { padding-left: 10px; }
.badge {
  display: inline-block;
  background: rgba(0,91,172,.08);
  color: #005BAC;
  border: 1px solid rgba(0,91,172,.25);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}
.parts-card h2 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
  color: #1f2937;
}
.description {
  margin: 0;
  color: #344454;
  line-height: 1.55;
}

/* right side image */
.media {
  display: flex;
  justify-content: center;
}
.media img {
  max-height: 400px;
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* responsive */
@media (max-width: 900px) {
  .parts-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .parts-card::before { left: 14px; width: 4px; }
  .copy { text-align: center; padding-left: 0; }
  .media img { max-height: 200px; max-width: 380px; }
}

/* Contact button */
.button-container {
  text-align: center;        /* centers inline-block elements */
  margin: 40px 0;            /* spacing above/below */
}

.btn-contact {
  display: inline-block;
  background-color: #005BAC; /* matches navbar blue */
  color: #FFFFFF;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background-color: #004080; /* darker blue hover */
  transform: translateY(-2px);
}

/* Mobile-friendly: make it wider on small screens */
@media (max-width: 600px) {
  .btn-contact {
    display: block;
    width: 80%;        /* takes 80% of screen width */
    margin: 0 auto;    /* center block horizontally */
  }
}

/* Footer */
footer {
  display: flex;
  flex-direction: column; /* stack children on top of each other */
  justify-content: center; 
  align-items: center; 
  text-align: center;
  background-color: #F7F9FA;
}

/* Operations */

.operations {
  margin-top: 20vh;
  padding: var(--page-pad);
  background: #fff;
}

/* Two-column layout */
.operations-wrap{
  display: grid;
  grid-template-columns: 1.05fr 1fr;   /* text a bit wider than image */
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* Left panel (teal) */
.operations-text{
  padding: clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.operations-text h1{
  color: var(--teal);
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.1;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.02em;
}
.operations-text p{
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  margin: 0;
  max-width: 70ch;
}

.operations-media{
  margin: 0;
}
.operations-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/11; /* ensures consistent sizing */
}

/* About */

.two-part-card {
  margin-top: 20vh;
  padding: var(--page-pad);
  background: #fff;
}

/* Two-column layout */
.two-part-card-wrap-image-on-right {
  display: grid;
  grid-template-columns: 1.05fr 1fr;   /* text a bit wider than image */
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.two-part-card-wrap-image-on-left {
  display: grid;
  grid-template-columns: 1fr 1.05fr;   /* text a bit wider than image */
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* Left panel (teal) */
.two-part-card-text{
  padding: clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-part-card-text h1{
  color: var(--teal);
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.1;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.02em;
}
.two-part-card-text p{
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  margin: 0;
  max-width: 70ch;
}

.two-part-card-media{
  margin: 0;
}
.two-part-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/11; /* ensures consistent sizing */
}

/* Contact form */

.contact-form-holder {
  font-family: Arial, sans-serif;
  background-color: #f7f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.contact-form {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  width: 400px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #444;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background-color: #005bac;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #004080;
}

.submission {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}