/* Author: James O. Gaygay | Professor */

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  color: #62c046;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo img {
  height: 45px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: #62c046;
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  color: #7d8085;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #62c046;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger animation */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Nav */
@media screen and (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background: #7d8085;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    transform: translateY(-120%);
    transition: 0.4s ease-in-out;
  }

  nav ul.active {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }
}

/* About Section */
#about {
  padding: 4rem 10%;
  background: #fff;
  color: #333;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Mission and Vision cards container */
#about .card {
  margin: 0 auto 1rem;     /* reduce bottom margin */
  padding: 1.5rem;         /* smaller padding */
  width: 90%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Remove excessive spacing between cards */
#about {
  margin-bottom: 0;
  padding-bottom: 1rem;
}

/* On mobile screens */
@media screen and (max-width: 668px) {
  #about {
    padding: 1.5rem 4%;
  }

  #about .card {
    margin-bottom: 1rem;   /* small clean gap between cards */
    padding: 1rem;
  }
}


.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  color: #62c046;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.about-mission-vision {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-mission-vision .mission,
.about-mission-vision .vision {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 1rem;
  border-left: 4px solid #7d8085;
  border-radius: 5px;
}

.about-mission-vision h3 {
  color: #62c046;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 80%;
    margin: 0 auto;
  }

  .about-mission-vision {
    flex-direction: column;
    gap: 1rem;
  }

  .about-mission-vision .mission,
  .about-mission-vision .vision {
    border-left: 4px solid #7d8085;
    text-align: left;
  }
}


/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  height: 90vh;
  background: url('../src/Assets/images/businessmen.jpg') center center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for text readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #62c046;
}

.hero-content p {
  font-size: 1.2rem;
}

.hero-content .btn {
  padding: 0.8rem 1.5rem;
  background-color: #62c046;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  /* font-weight: 500; */
  text-align: center;
  transition: 0.3s;
  width: 20em;
}

.hero-content .btn:hover {
  background-color: #7e8389;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 600px) {
  #hero {
    height: 70vh;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
}


/* Sections */
section {
    padding: 4rem 5%;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #62c046;
}

/* Services */

#services {
  padding: 4rem 10%;
  background: #f9f9f9;
  color: #333;
}

#services h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #62c046;
}

#services p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

/* Grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Each category box */
.service-category {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-category h3 {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.3rem;
  text-transform:capitalize;
  text-align: center;
  background-color: #7e8389;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}

/* Accordion base */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  color: #62c046;
}

.accordion-header:hover {
  color: #7d8085;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: #444;
}

.accordion-content p {
  margin: 0.8rem 0;
}

/* Arrow rotation */
.accordion-header .arrow {
  transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}

/* Responsive */
@media screen and (max-width: 768px) {
  #services {
    padding: 3rem 5%;
  }
}


/* why choose us */
#why-choose-us {
  padding: 4rem 10%;
  background: #f0f4f8;
  color: #333;
}

#why-choose-us h2 {
  text-align: center;
  font-size: 2rem;
  color: #62c046;
  margin-bottom: 1rem;
}

#why-choose-us p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
}

/* Grid layout for cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid #62c046;
}

.why-card h3 {
  color: #62c046;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.why-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media screen and (max-width: 668px) {
  #why-choose-us {
    padding: 2rem 4%;
  }

    .card {
    width: 90%;       /* shrink cards to fit the screen */
    padding: 1.5rem;  /* reduce padding */
    margin: 1rem auto; /* center the cards */
  }

  .card h3 {
    font-size: 1.1rem; /* reduce heading font size */
  }

  .card p {
    font-size: 0.9rem; /* reduce paragraph font size */
  }
}




/* Contact Section */
#contact {
  padding: 4rem 10%;
  background: #f9f9f9;
  color: #333;
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  color: #62c046;
  margin-bottom: 0.8rem;
}

#contact p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
}

/* Two-column container */
.contact-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Form styling */
#contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #004080;
  box-shadow: 0 0 8px rgba(0, 64, 128, 0.2);
  outline: none;
}

#contact-form button {
  padding: 0.8rem 1.5rem;
  background: #62c046;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

#contact-form button:hover {
  background: #7d8085;
  transform: translateY(-2px);
}

/* Map styling */
.contact-map {
  flex: 1 1 400px;
  min-height: 400px; /* ensures initial height */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Info */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.contact-info p {
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }

  #contact-form,
  .contact-map {
    flex: 1 1 100%;
    min-height: 300px;
  }
}

/* Footer */
#footer {
  background-color: #000;
  color: #ccc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 10%;
}

#footer h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#footer p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 0;
}

/* Social icons */
#footer {
  background-color: #000;
  color: #ccc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 10%;
}

#footer h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

#footer p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 0;
}

#footer .social {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

#footer .link {
  color: #ccc;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s ease;
  font-size: 1.2rem;
}

#footer .link:hover {
  color: #62c046;
  background: #7d8085;
  transform: translateY(-3px);
}

.footer-logo {
  display: block;
  margin-left: 0.5rem auto 1rem; /* center it below h3 and add spacing */
  max-width: 100px; /* adjust size */
  height: auto; 
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .footer-logo {
    max-width: 120px; /* slightly larger on smaller screens if needed */
    margin: 0.5rem auto 1rem; /* stays centered */
  }
}


#footer .col2,
#footer .col3 {
  background-color: #121212;
  border-radius: 10px;
  padding: 1.5rem;
}

#footer .col2 p,
#footer .col3 p {
  cursor: pointer;
  transition: color 0.3s ease;
}

#footer .col2 p:hover,
#footer .col3 p:hover {
  color: #7d8085;
}

/* Responsive */
@media (max-width: 768px) {
  #footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 5%;
  }
  #footer .social {
    justify-content: center;
  }
  #footer .col2,
  #footer .col3 {
    background: #111;
    margin-top: 1rem;
  }
}
