/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #4b9b34;
  --dark-grey: #333333;
  --light-bg: #f8f8f8;
  --text-grey: #555555;
  --black: #111111;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-grey);
  display: flex;
  justify-content: center;
}

.page-container {
  width: 100%;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.green-text {
  color: var(--green);
}

/* Banner Logo Section */
.banner-logo {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.banner-logo .logo-img {
  height: clamp(35px, 6vw, 85px);
  width: auto;
  margin-bottom: 5px;
}

.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(12px, 2vw, 24px);
  line-height: 1;
  color: var(--dark-grey);
  text-transform: uppercase;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.tagline .line {
  height: 1.5px;
  width: clamp(15px, 2vw, 30px);
  background-color: var(--green);
}

.tag-text {
  font-size: clamp(9px, 0.9vw, 12px);
  font-weight: 600;
  color: var(--text-grey);
  letter-spacing: 0.5px;
}

/* Banner Section */
.banner-section {
  position: relative;
  width: 100%;
}

.banner-container {
  position: relative;
  width: 100%;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.black-line {
  height: 3px;
  width: 60px;
  background-color: var(--black);
}

.subtitle-wrap h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(12px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--black);
  letter-spacing: 1px;
}

.main-title {
  font-family: "Oswald", sans-serif;
  font-size: 8vw;
  font-weight: 700;
  line-height: 1.05;
  color: var(--dark-grey);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.desc-divider {
  border: none;
  height: 2px;
  width: 65%;
  background-color: var(--black);
  margin: 15px auto;
}

.banner-desc {
  max-width: 60%;
  font-size: 1.5vw;
  font-weight: 500;
  color: var(--text-grey);
  line-height: 1.4;
}

/* Section Titles (Shared) */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 30px;
}

.green-line {
  height: 2px;
  width: 30%;
  background-color: var(--green);
}

.section-title h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--green);
}

/* Services Section */
.services-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.services-grid {
  display: grid;
  gap: 20px 10px;
  text-align: center;
}

.services-row-1 {
  grid-template-columns: repeat(7, 1fr);
}

.services-row-2 {
  grid-template-columns: repeat(6, 1fr);
}

.services-row-divider {
  border: none;
  height: 1.5px;
  width: 100%;
  background-color: #eeeeee;
  margin: 30px 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1.5px solid #eeeeee;
}

.service-card:last-child {
  border-right: none;
}

.service-card .icon {
  font-size: 32px;
  color: var(--green);
  margin-bottom: 5px;
}

.service-card p {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-grey);
}

/* Leadership Section */
.leadership-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0;
  margin-top: 70px;
}

.leadership-box {
  border: 1.5px solid #eaeaea;
  border-radius: 8px;
  position: relative;
  padding: 35px 50px;
  background-color: #fafafa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.section-title-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 0 20px;
}

.section-title-overlay h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--green);
  margin: 0;
}

.leadership-content {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.leader-profile {
  display: flex;
  gap: 20px;
  flex: 1;
}

.leader-divider {
  width: 1.5px;
  background-color: #eaeaea;
  margin: 0 70px;
}

.leader-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leader-avatar i {
  color: white;
  font-size: 35px;
}

.leader-info h4 {
  font-size: 20px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 2px;
}

.leader-info .title {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  display: block;
  margin-bottom: 10px;
}

.leader-info p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-grey);
}

/* Commitment Section */
.commitment-section {
  background-color: #1a1a1a;
  padding: 25px 40px;
  margin-bottom: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.commitment-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shield-icon i,
.handshake-icon i {
  font-size: 90px;
  color: var(--green);
}

.commitment-text {
  text-align: center;
  color: white;
}

.commitment-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 35px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.commitment-text .keywords {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.commitment-text .motto {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 4px;
  color: #dddddd;
}

/* Footer Section */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.email-icon {
  width: 45px;
  height: 45px;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.email-icon i {
  color: white;
  font-size: 24px;
}

.email-text {
  display: flex;
  flex-direction: column;
}

.email-text .label {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-grey);
  margin-bottom: 2px;
}

.email-text .email {
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.f-logo-img {
  height: 50px;
}

.f-logo-text {
  display: flex;
  flex-direction: column;
}

.f-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-grey);
}

.f-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-grey);
}

/* Sub-Footer Section */
.sub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 40px;
}

.copyright {
  font-size: 13px;
  opacity: 50%;
  color: var(--text-grey);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #f0f0f0;
  color: var(--dark-grey);
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--green);
  color: white;
}

/* Caution Bars */
.caution-bar {
  width: 100%;
  height: 26px;
  background: repeating-linear-gradient(
    -45deg,
    #fa8d08,
    #fa8d08 15px,
    #111111 15px,
    #111111 30px
  );
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner-logo {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
  }
  .brand-name br {
    display: none;
  }
  .logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 4px;
  }
  .tagline {
    justify-content: flex-start;
    margin-top: 2px;
  }
  .tagline .line {
    display: none;
  }
  .tag-text {
    font-size: 10px;
  }
  .main-title {
    font-size: 38px;
    margin-bottom: 10px;
  }
  .banner-overlay {
    width: 85%;
    padding-top: 0;
  }
  .black-line {
    width: 30px;
    height: 2px;
  }
  .desc-divider {
    margin: 3px auto 10px auto;
  }
  .banner-desc {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    font-size: 10px;
  }

  .section-title h3 {
    font-size: 22px;
  }
  .green-line {
    width: 60px;
  }

  .services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .section-title {
    grid-column: 1 / span 3;
    margin-bottom: 30px;
  }
  .services-row-1,
  .services-row-2 {
    display: contents;
  }
  .services-row-divider {
    display: none;
  }
  .service-card {
    border-right: 1.5px solid #eeeeee !important;
    border-bottom: 1.5px solid #eeeeee !important;
    padding: 25px 10px !important;
  }
  /* Precise selectors for tablet 3rd column right border hiding */
  .services-row-1 .service-card:nth-child(3),
  .services-row-1 .service-card:nth-child(6),
  .services-row-2 .service-card:nth-child(2),
  .services-row-2 .service-card:nth-child(5) {
    border-right: none !important;
  }
  /* Centers the last item at the bottom */
  .services-row-2 .service-card:last-child {
    grid-column: 1 / span 3;
    justify-self: center;
    border-right: none !important;
    border-bottom: none !important;
  }

  .leadership-section {
    margin: 50px auto 30px;
  }
  .leadership-box {
    padding: 30px 40px;
  }
  .section-title-overlay h3 {
    font-size: 20px;
  }
  .leadership-content {
    flex-direction: column;
    gap: 30px;
  }
  .leader-divider {
    width: 100%;
    height: 1.5px;
    margin: 0;
  }

  .commitment-section {
    padding: 20px 25px;
  }
  .shield-icon i,
  .handshake-icon i {
    font-size: 45px;
  }
  .commitment-text h3 {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .commitment-text .keywords {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .commitment-text .motto {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .footer {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }
  .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .email-text {
    align-items: center;
  }
  .email-text .label {
    font-size: 14px;
  }
  .email-text .email {
    font-size: 12px;
  }
  .footer-logo {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .f-logo-text {
    align-items: center;
  }
  .f-name {
    font-size: 14px;
  }
  .f-tag {
    font-size: 11px;
  }
  .sub-footer {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
    margin: 20px auto 30px;
  }
  .copyright {
    font-size: 11px;
    text-align: center;
  }
  .social-links {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .banner-logo {
    padding-top: 15px;
  }
  .logo-text-wrapper {
    padding-top: 6px;
  }
  .tag-text {
    font-size: 8px;
  }
  .main-title {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .banner-overlay {
    width: 90%;
    padding-top: 0;
  }
  .black-line {
    width: 15px;
    height: 1px;
  }
  .desc-divider {
    margin: 1px auto 6px auto;
  }
  .banner-desc {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    font-size: 8px;
    line-height: 1.25;
  }

  .section-title h3 {
    font-size: 18px;
  }
  .green-line {
    width: 40px;
  }

  .services-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    grid-column: 1 / span 2;
  }
  .services-row-2 .service-card {
    border-right: 1.5px solid #eeeeee !important; /* Reset tablet 3n border */
  }
  /* Precise selectors for mobile 2nd column right border hiding */
  .services-row-1 .service-card:nth-child(2),
  .services-row-1 .service-card:nth-child(4),
  .services-row-1 .service-card:nth-child(6),
  .services-row-2 .service-card:nth-child(1),
  .services-row-2 .service-card:nth-child(3),
  .services-row-2 .service-card:nth-child(5) {
    border-right: none !important;
  }
  /* Centers the last item at the bottom */
  .services-row-2 .service-card:last-child {
    grid-column: 1 / span 2;
    justify-self: center;
    border-right: none !important;
    border-bottom: none !important;
  }

  .services-section,
  .leadership-section,
  .commitment-section,
  .footer,
  .sub-footer {
    width: 92%;
  }

  .leadership-section {
    margin: 40px auto 25px;
  }
  .leadership-box {
    padding: 25px 15px;
  }
  .section-title-overlay {
    padding: 0 10px;
  }
  .section-title-overlay h3 {
    font-size: 16px;
  }
  .leader-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .leader-avatar {
    width: 70px;
    height: 70px;
  }
  .leader-avatar i {
    font-size: 30px;
  }
  .leader-info h4 {
    font-size: 18px;
  }
  .leader-info .title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .leader-info p {
    font-size: 12px;
  }

  /* Mobile commitment section */
  .commitment-section {
    padding: 25px 15px;
  }
  .commitment-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .shield-icon i,
  .handshake-icon i {
    font-size: 45px;
  }
  .commitment-text h3 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  .commitment-text .keywords {
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .commitment-text .motto {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }
}

/* Preloader Layout Styles (Static sizing and centering) */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  height: 80px;
  width: auto;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(75, 155, 52, 0.1);
  border-top-color: #4b9b34;
  border-radius: 50%;
}

/* Mobile-Only Banner Responsive Styles */
.mobile-only-banner {
  display: none;
}

@media (max-width: 480px) {
  .desktop-only-banner {
    display: none;
  }

  .mobile-only-banner {
    display: block;
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
    background-color: var(--light-bg);
  }

  .mobile-only-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRStO8lUiywTuFSv59Gdcj1q9HYG2i-HbTqvt4yiCGJo5B7v0dgPiax_-tX&s=10");
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Low opacity as requested */
    z-index: 1;
  }

  .mobile-banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Group everything in the center */
    align-items: center;
    gap: 20px; /* Snug gap */
    padding: 20px 16px;
    z-index: 2;
  }

  .mobile-banner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
    margin-top: 10px;
    transition:
      opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-logo-img {
    height: 65px;
    width: auto;
    margin-bottom: 8px;
  }

  .mobile-brand-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--dark-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }

  .mobile-tagline {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-grey);
    margin-top: 5px;
    letter-spacing: 1px;
    position: relative;
    padding: 0 10px;
    text-transform: uppercase;
  }

  .mobile-banner-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition:
      opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .mobile-subtitle-wrap h3 {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-grey);
    letter-spacing: 1px;
  }

  .mobile-subtitle-wrap .line {
    height: 1px;
    width: 20px;
    background-color: var(--green);
  }

  .mobile-main-title {
    font-family: "Oswald", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
  }

  .mobile-banner-desc {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-grey);
  }
}
