/* Bralison EPZ Website Styles */

/* Color palette from Bralison logo */
:root {
  --purple-dark: #5a1243;
  --green-medium: #486b24;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-dark: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
}

a {
  color: var(--white);
  text-decoration: none;
}

header {
  background-color: var(--purple-dark);
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  padding: 7px 12px;
  display: inline-block;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--green-medium);
  color: var(--white);
}

/* Bralison logo in header with black border */
.logo {
  height: 80px;
  vertical-align: middle;
  padding: 2px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Header layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Section with standalone image and text below */
.hero {
  padding: 0;
  margin: 0;
}

.hero-image-container {
  text-align: center;
  margin: 30px 0 20px 0;
}

.hero-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(22, 4, 17, 0.06);
}

.hero-text-container {
  text-align: center;
  padding: 20px;
  color: var(--gray-dark);
}

.hero-text-container h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--purple-dark);
}

.hero-text-container p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray-dark);
}

/* General Sections */
section {
  margin: 50px 0;
}

h2 {
  color: var(--purple-dark);
  margin-bottom: 10px;
  border-bottom: 3px solid var(--green-medium);
  padding-bottom: 8px;
  width: fit-content;
}
h3 {
  color: var(--purple-dark);
  margin-bottom: 5px;
  padding-bottom: 8px;
  width: fit-content;
}
h4{
  color: var(--purple-dark);
  margin-bottom: 10px;
  border-bottom: 3px solid var(--green-medium);
  width: fit-content;
}
p, li {
  font-size: 1rem;
  line-height: 1.5;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--gray-dark);
}

/* Footer */
footer {
  background-color: var(--purple-dark);
  color: var(--white);
  padding: 20px 0 10px 0;
  font-size: 0.9rem;
  text-align: left;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-left {
  flex: 1 1 300px;
  min-width: 280px;
}

.footer-left h3 {
  margin-bottom: 12px;
  font-weight: 700;
}

/* Single location icon for entire address block */
.address-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.address-with-icon img.footer-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px; /* Align icon vertically with first line */
}

.address-with-icon address {
  font-style: normal;
  line-height: 1.5;
  color: var(--white);
}

/* Inline icon-text for phone, email, website */
.icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(100%) contrast(100%);
}

/* Footer links */
footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Right side social icons */
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  margin-top: 10px;
}

.footer-right a img {
  width: 32px;
  height: 32px;
  filter: brightness(100%) contrast(100%);
  transition: filter 0.3s ease;
}

.footer-right a:hover img {
  filter: brightness(75%) contrast(120%);
  cursor: pointer;
}

/* Footer copyright */
.footer-copy {
  text-align: center;
  margin-top: 15px;
  color: #ddd;
  width: 100%;
  font-size: 0.85rem;
}

/* Make all footer/social icons white by default */
.footer-right a img,
.icon-text img.footer-icon,
.address-with-icon img.footer-icon {
  filter: brightness(0) invert(1); /* white color for black/dark icons */
  transition: filter 0.3s ease;
  cursor: pointer;
}

/* On hover: turn icons black */
.footer-right a:hover img,
.icon-text:hover img.footer-icon,
.address-with-icon:hover img.footer-icon {
  filter: none; /* original color, black */
}

/* Make all footer text turn black on hover */
footer, 
footer * {
  transition: color 0.3s ease;
}

/* Links in footer turn black on hover */
footer a:hover {
  color: black !important;
  cursor: pointer;
  text-decoration: underline;
}

/* Make normal text inside footer containers turn black on hover of the container */
.footer-left:hover,
.footer-right:hover {
  color: black;
}

/* Prevent <h3> inside footer-left from turning black on container hover */
.footer-left:hover h3 {
  color: var(--white) !important;
  cursor: default;
}

/* For the clickable address block wrapped in link (.footer-map-link) */
.footer-map-link {
  color: inherit; /* inherit current color */
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block; /* so the address inside works well */
}

/* On hover over address link, turn text black */
.footer-map-link:hover {
  color: black;
  text-decoration: underline;
  cursor: pointer;
}

/* Ensure all text inside .footer-map-link changes color on hover */
.footer-map-link address,
.footer-map-link address * {
  color: inherit !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero-text-container {
    padding: 15px 10px;
  }
  .hero-text-container h1 {
    font-size: 1.6rem;
  }
  .hero-text-container p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-left, .footer-right {
    margin: 0 auto;
  }
  .footer-right {
    justify-content: center;
  }
}
.certifications-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start; /* or center */
}

.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px; /* fixed or flexible width */
  text-align: center;
  margin-bottom: 20px;
}

.certification-img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(90, 18, 67, 0.15);
  margin-bottom: 8px;
}
    /* Styling for mission and vision with image centered */
    .mission-vision-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 40px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .mission-vision-image {
      flex: 0 1 400px;
      min-width: 300px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .mission-vision-image img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(90, 18, 67, 0.15);
      margin: 0 auto;
    }

    .mission-vision-text {
      flex: 1 1 400px;
      min-width: 280px;
    }

    .mission-vision-text section {
      margin-bottom: 20px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .mission-vision-container {
        flex-direction: column;
      }

      .mission-vision-image,
      .mission-vision-text {
        width: 100%;
        min-width: auto;
      }

      .mission-vision-image {
        margin-top: 70px;
      }
    }
    
    /* Additional style for the contact page */
    form {
      background: #f9f9f9;
      padding: 20px;
      border-radius: 6px;
      max-width: 600px;
      margin-top: 20px;
      box-shadow: 0 2px 6px rgba(90, 18, 67, 0.1);
    }
    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      color: var(--purple-dark);
    }
    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      padding: 10px;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      border-radius: 4px;
      resize: vertical;
      font-size: 1rem;
      font-family: inherit;
    }
    textarea {
      min-height: 120px;
    }
    button[type="submit"] {
      background-color: var(--green-medium);
      border: none;
      color: var(--white);
      padding: 12px 25px;
      font-size: 1rem;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    button[type="submit"]:hover {
      background-color: #3f521a;
    }
      /* Additional styling for the products cards */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 40px;
      margin-bottom: 40px;
    }
    .product-card {
      background: #ffffff;
      border: 1px solid #ddd;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(90, 18, 67, 0.1);
      transition: transform 0.3s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }
    .product-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 6px 15px rgba(90, 18, 67, 0.2);
    }
    .product-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .product-content {
      padding: 15px 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }
    .product-content h3 {
      color: var(--purple-dark);
      margin-bottom: 10px;
      font-weight: 700;
      font-size: 1.15rem;
    }
    .product-content p {
      font-size: 0.95rem;
      color: #444;
      line-height: 1.4;
      flex-grow: 1;
      margin: 0;
    }

    /* Category headings style */
    .category-title {
      color: var(--purple-dark);
      font-size: 1.8rem;
      margin-top: 60px;
      margin-bottom: 20px;
      border-bottom: 3px solid var(--green-medium);
      padding-bottom: 6px;
      width: fit-content;
    }