/* Reset default browser styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* Navbar Styling */
.navbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  /*position: sticky;*/
  top: 0;
  z-index: 100;
}

.navbar a {
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  white-space: nowrap;
  text-decoration: none;
  color: #333;
  background-color: #f8f8f8;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: #e0e0e0;
}
/* Navigation Bar Styling */
/*.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid #ddd;
}*/

.nav-links {
  display: flex;
  flex-wrap: wrap; /* allows wrapping instead of stacking */
  justify-content: center;
  gap: 0.75rem; /* spacing between buttons */
}

.nav-links a {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  background-color: #f8f8f8;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* prevents line breaks in the button */
}

.nav-links a:hover {
  background-color: #e0e0e0;
}


.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Landing Page Company Section */
.company-landing {
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem;
}

/* Default company logo size */
.company-logo {
  width: 220px;
  height: auto;
  margin-bottom: 2rem;
}

/* Increase logo size only on Reemak Industries page */
.reemak-industries .company-logo {
  width: 297px; /* 35% bigger */
  height: auto;
}

.company-brief {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #444;
}

/* Management Section */
.management {
  text-align: left;
  margin-top: 3rem;
}

.management h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.6rem;
  color: #222;
}

/* Manager Bio Box Layout */
.manager-box {
  display: flex;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.manager-info {
  flex: 1;
  text-align: left;
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}

.manager-info h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #222;
}

.manager-photo-wrapper {
  flex-shrink: 0;
}

.manager-photo {
  width: 240px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/* Home Page Cards (optional) */
.companies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.company-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  width: 260px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.company-card img {
  width: 200px; /*was 150 i am makib it 220*/
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.company-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.reemak-engineering .company-logo {
  width: 297px;
  height: auto;
}

.company-landing h1 {
  margin-bottom: 1.5rem;
}

.welcome-heading {
  text-align: center;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2.0rem;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-section {
    flex-direction: column;
    align-items: center;
  }

  .logo-section img {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .management-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .management-profile img {
    max-width: 80%;
    margin-top: 1rem;
  }

  .management-profile .bio {
    max-width: 100%;
    margin: 0 auto;
  }

  .welcome-heading,
  .subtitle {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .company-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
  }
}

.contact-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  font-family: Arial, sans-serif;
}

.contact-container h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.company-contact {
  text-align: center;
  margin-bottom: 2.5rem;
}

.company-contact img.company-logo {
  max-width: 180px;
  margin-bottom: 0.5rem;
}

.company-contact h2 {
  margin-bottom: 0.5rem;
  color: #0056b3;
}

.company-contact .address {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.contact-form-section {
  margin-top: 3rem;
}

.contact-form-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.company-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.company-contact-row img.company-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.company-contact-row .company-details {
  flex: 1;
  min-width: 250px;
}

.company-contact-row .company-details h2 {
  color: #0056b3;
  margin-bottom: 0.5rem;
}

.company-contact-row .company-details p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .company-contact-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .company-contact-row img.company-logo {
    width: 120px;
    margin-bottom: 1rem;
  }

  .company-contact-row .company-details {
    padding: 0 1rem;
  }

  .company-contact-row .company-details p {
    font-size: 0.95rem;
  }
}
/* Force main page content to use full width on mobile */
@media (max-width: 768px) {
  body, html {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Make sure main content wrapper stretches full width */
  main, 
  .management-section, 
  .bio-section, 
  .company-contact-row, 
  .company-contact-row .company-details {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
  }

  /* For any flex container holding the bio + image */
  .bio-section {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  /* Bio text should fill available space */
  .bio-text {
    flex: 1 1 100% !important;
    text-align: left !important;
  }

  /* Picture size and margin */
  .bio-section img {
    max-width: 200px !important;
    margin-left: 1rem !important;
    margin-top: 0 !important;
  }
}

/* Fix content width on mobile */
/*@media (max-width: 768px) {
  .management-section,
  .bio-section,
  .company-contact-row,
  .company-contact-row .company-details {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-section .bio-text {
    text-align: left; /* or center, based on your design */
  }

  .bio-section img {
    margin-top: 1rem;
    max-width: 200px;
    height: auto;
  }
}






