/* =========================================
   Variables & Reset
   ========================================= */
:root {
  /* Brand Colors - Updated to MVM Red */
  --primary-color: #a61924; /* MVM Deep Red */
  --primary-hover: #8b141d; /* Darker Red for Hover states */
  --secondary-color: #0f172a; /* Deep Slate / Navy */
  --text-main: #334155;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-dark: #1e293b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --transition: all 0.3s ease;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4 {
  color: var(--secondary-color);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 6rem 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}
.bg-dark h2,
.bg-dark h3 {
  color: var(--white);
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--white);
}
.mt-1 {
  margin-top: 1rem;
}
.border-top {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}

.btn-full {
  width: 100%;
}

/* =========================================
   Placeholders
   ========================================= */
.logo-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  border: 2px dashed var(--secondary-color);
  padding: 0.5rem 1rem;
  display: inline-block;
}
.logo-placeholder.small {
  color: var(--white);
  border-color: var(--white);
  font-size: 1.2rem;
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: -2;
  font-family: monospace;
}

.hero-bg-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Removes any weird spacing below the image */
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7); /* Dark overlay */
  z-index: -1;
}

.card-img-placeholder,
.large-img-placeholder,
.logo-box {
  background-color: var(--border-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 1rem;
}

/* Give the card image container its own specific rules now */
.card-img-placeholder {
  height: 200px;
  padding: 0; /* Removes the text padding so the image touches the edges */
  overflow: hidden; /* Keeps the image from breaking out of the top corners */
  background-color: var(--border-color);
}

/* Style the actual image inside the card */
.card-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Remove the text padding and keep the rounded corners */
.large-img-placeholder {
  height: 100%;
  min-height: 400px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: transparent;
}

/* Force the image to fill the space beautifully */
.large-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Update the box to give the logos a bit more breathing room */
.logo-box {
  height: 100px; /* Bumped up from 80px so the logos aren't microscopic */
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem; /* Ensures the logos never touch the edges of the box */
}
/* Force the logos to fit neatly inside the boxes */
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Shrinks the logo proportionally to fit the box perfectly without cropping */
  display: block;

  /* Optional: If the logos are too colorful and you want a sleek, uniform industrial look, uncomment the line below */
  /* filter: grayscale(100%) opacity(70%); */
}
.icon-placeholder {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed background, border-radius, and text colors to let the SVG shine */
  background: transparent;
}

.mvm-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.logo img {
  max-height: 50px; /* Restricts the height to fit the navbar */
  width: auto; /* Keeps the proportions correct so it doesn't squish */
  display: block;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  padding: 10rem 0;
  color: var(--white);
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* =========================================
   Grid Layouts
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* =========================================
   Cards (Highlights)
   ========================================= */
.section-heading {
  margin-bottom: 3rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 2rem;
}

.link-arrow {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}
.link-arrow:hover {
  gap: 5px;
}

/* =========================================
   Mission / Info Boxes
   ========================================= */
.info-box {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary-color);
}

/* =========================================
   Clients
   ========================================= */
.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* =========================================
   Contact Form
   ========================================= */
.contact-details li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--bg-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--text-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background-color: #0b1120;
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.cert-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 992px) {
  .grid-3,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    padding: 6rem 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .client-logos {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    display: none; /* In a real build, add a hamburger menu here */
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-buttons {
    flex-direction: column;
  }
}
