/*Global styles for the application */

/*Color palette */
:root {
  --color-primary:    #d4ce84;
  --color-secondary:  #194724;
  --color-tertiary:   #798f57;
  --color-quaternary: #6f907d;
  --color-background: #ebefed;
  --color-accent:     #3d6741;  
  --color-highlight:  #aab170;
  --color-muted:      #b8c8bf;
  --color-light:      #fceb98;
}

.btnavbar {
  background-color: var(--color-background)!important;
  padding-top: 0.5rem !important;
  padding-bottom: 0 !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.1rem !important;
  border-bottom: 2px solid var(--color-secondary);
}
.btnavbar .nav-link {
  color: var(--color-accent) !important;
}
.nav-link:hover {
  color: var(--color-secondary) !important;
}

.navbar-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.btnavbar .navbar-brand h1 {
  font-family: 'The Girl Next Door', cursive !important;
  font-size: 1.5rem !important;
  color: var(--color-tertiary) !important;
  padding-left: 11rem !important;
}
.nav {
  margin-bottom: 0;
}

.nav-link {
  position: relative !important;
  text-decoration: none !important;
  overflow: hidden !important;
  transition: transform 0.3s ease !important;
}

.nav-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background-color: currentColor !important;
  transition: width 0.3s ease !important;
}



.nav-link:hover::after {
  width: 100% !important;
}

.certificates img{
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-left: 20px;
  border-radius: 10px;
}
.certificates a {
  display: inline-block;
}
.images {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.2rem !important;
  color: var(--color-secondary) !important;
  margin-bottom: 1rem !important;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title2 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.8rem !important;
  color: var(--color-secondary) !important;
  margin-bottom: 0.5rem !important;
}


.working-imgs {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: auto;
  margin-bottom: 0.1rem;
}
.working-imgs img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  border-radius: 80px;
  margin-top: 20px;
}

.hero {
  display: flex;
  align-items: center;        /* vertical alignment */
  justify-content: center;    /* center on screen */
  gap: 1rem;                  /* space between image + text */
  padding: 3rem 1rem;
  background-color: var(--color-background);
  font-family: 'Source Sans 3', sans-serif;
}

/* Image */
.hero-image img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border: 3px solid var(--color-light);
  animation: slideInLeft 3s ease-out forwards;
}

/* Text box */
.hero-text {
  max-width: 300px;
  color: var(--color-secondary);
  font-size: 0.9rem;
  background-color: lightyellow;
  padding: 20px;
  border: 1px solid var(--color-light);
  text-align: center;
  animation: slideInRight 2s ease-out forwards;
}

/* Hero animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}




.learn {
  display: inline-block;
  background-color: var(--color-accent);
  color: white !important;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.learn:hover {
  background-color: var(--color-secondary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(61, 103, 65, 0.3);
  color: white !important;
}

.learn:active {
  transform: scale(0.98);
}

#services h2 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.5rem !important;
  color: var(--color-secondary);
  margin-top: 1rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expertise-images {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: auto;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.expertise-images img {
  width: 210px;
  height: 150px;
  border-radius: 50px;
  object-fit: cover;
} 
.expertise-item {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers image + text horizontally */
  text-align: center;    /* ensures text itself is centered */
  text-decoration: none !important;
  color: var(--color-accent) !important;
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-5px);
}

.expertise-item p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.4;
}
.expertise-images img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;  
}
#testimonials {
  background-color: var(--color-background);
  padding: 2rem;
}
#testimonials h2 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.5rem !important;
  color: var(--color-secondary);
  margin-top: 1rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Carousel size + centering */
#carouselExampleInterval {
  max-width: 800px;
  margin: 0 auto;
}

/* Slide container */
.testimonial-slide {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Images */
.testimonial-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}

/* Text */
.testimonial-slide p {
  font-family: 'Merriweather', serif;
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-secondary);
  text-align: center;
}
.testimonial-slide p img {
  width: 100px;
  height: auto; 
  margin: 0 auto;
}

.testimonial-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: -1; /* behind text */
  opacity: 0.3; /* subtle background */
}


/* Controls visibility tweak */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* makes arrows visible on light images */
}


/* Contact Form Styling */
#contact {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h2 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.5rem !important;
  color: var(--color-secondary);
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  width: 100%;
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-light);
}

#contact label {
  display: flex;
  flex-direction: column;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  gap: 0.5rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-secondary);
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: white;
  box-shadow: 0 0 8px rgba(61, 103, 65, 0.2);
}

#contact textarea {
  resize: vertical;
  min-height: 120px;
}

#contact button {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#contact button:hover {
  background-color: var(--color-secondary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(61, 103, 65, 0.3);
}

#contact button:active {
  transform: scale(0.98);
}

#map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#map h3 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.2rem !important;
  color: var(--color-secondary) !important;
  margin: 0 !important;
  font-weight: 600;
}


/* About Section Styling */
.about {
  background-color: var(--color-background);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
}

.about-wrapper {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
}

.about-image {
  flex-shrink: 0;
  width: 280px;
  height: auto;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text > p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  color: var(--color-secondary);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 2rem;
}

.footer {
  margin-top: 3rem;
  border-top: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
}

.footer-section {
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-accent);
}
.footer-section2 {
  text-align: center;
  font-family: 'The Girl Next Door', cursive;
  font-size: 1.5rem;
  color: var(--color-tertiary);
}

.footer-link {
  color: var(--color-accent) !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease !important;
}




.about-quals {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-light);
  width: 100%;
}

/* Text side */
.quals-text {
  flex: 1;
}

.quals-text h3 {
  font-family: 'Source Sans 3', sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--color-secondary);
  font-weight: 600;
}

.quals-text ul {
  padding-left: 1.5rem;
  line-height: 1.8;
  list-style-type: none;
}

.quals-text li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.quals-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Images side */
.quals-images {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--color-muted);
}

.quals-images img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.quals-images img:hover {
  transform: scale(1.05);
}

/* =========================
   CONTACT SECTION
========================= */

#contact {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h2 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.5rem !important;
  color: var(--color-secondary);
  margin-top: 2.6rem;
  text-align: center;
}

/* Header (logo + title area) */
.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-logo {
  width: 150px;
  height: auto;
}

/* Description */
.contact-description {
  text-align: center;
  margin: 1rem 0 1.5rem;
  width: 100%;
}

.contact-description h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

/* Layout wrapper */
.contact-wrapper {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

/* Form */
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  width: 100%;
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-light);
}

#contact label {
  display: flex;
  flex-direction: column;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  gap: 0.5rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: white;
  box-shadow: 0 0 8px rgba(61, 103, 65, 0.2);
}

#contact textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */
#contact button {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(61, 103, 65, 0.3);
}

/* Map */
#map {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#map h3 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.2rem !important;
  color: var(--color-secondary);
  margin: 0;
  font-weight: 600;
}

/* =========================
   TABLET / MEDIUM SCREENS
========================= */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .navbar-logo img {
    height: 80px; /* smaller logo for mobile */
  }
  .navbar-brand {
    font-size: 0.2rem !important;
    padding-left: 0rem !important;
    display: none; /* hide brand on mobile */
  }
  .working-imgs img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    border-radius: 80px;
    margin-top: 20px;
  }
    .expertise-images {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
    }

  .expertise-images img {
    width: 200px;
    height: 150px;
    border-radius: 30px;
    object-fit: cover;
  }
  .expertise-item p {
    font-size: 1rem;
  }
     .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .contact-description h3 {
    font-size: 0.9rem;
  }
  #contact label {
    font-size: 0.9rem;
  }
  .contact-logo {
    width: 120px;
  }
  #contact form {
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }
  #contact form {
    padding: 1.2rem;   /* ↓ less inner space */
    gap: 0.75rem;      /* ↓ reduce spacing between fields */
  }

  #contact input,
  #contact textarea {
    padding: 0.5rem;   /* ↓ smaller fields */
    font-size: 0.9rem;
  }

  #contact textarea {
    min-height: 80px;  /* ↓ shorter textarea */
  }

  #contact button {
    padding: 0.6rem 1.2rem;  /* ↓ smaller button */
    font-size: 1rem;
  }

  #contact label {
    gap: 0.25rem;  /* ↓ tighter label spacing */
  }

  #map {
    width: 90vw;
  }

  #map iframe {
    height: 400px;
  }

  #map h3 {
    text-align: center;
  }


}

/*mobile media query at bottom of file */
@media screen and (max-width: 768px) {
  .navbar-logo img {
    height: 50px; /* smaller logo for mobile */
  }
  .navbar-brand {
    padding-left: 0rem !important;
    display: none !important; /* hide brand on mobile */
  }

  .certificates img{
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-left: 20px;
  border-radius: 10px;
}
.hero-title {
  font-size: 1.25rem !important; /* smaller title on mobile */
}
.hero-title2 {
  font-size: 1.1rem !important; /* smaller title on mobile */
}

.hero-image {
    padding-left: 0;
    justify-content: center;
  }

  .hero-text {
    font-size: 0.8rem;
  }

  .hero-image img {
    width: 140px;
    height: auto;
    
  }
  .learn {
    padding: 8px 8px; /* smaller button on mobile */
    font-size: 0.8rem;
  }

  .working-imgs img{
    width: 100px;
    height: 100px;
    border-radius: 40px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  #services h2 {
    font-size: 1.25rem !important;
  }
  .expertise-images {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
    }

  .expertise-images img {
    width: 140px;
    height: 100px;
    border-radius: 30px;
    object-fit: cover;
  }
  .expertise-item p {
    font-size: 0.9rem;
  }
  .testimonial-slide p {
    font-size: 0.81rem;
  }

  #map iframe {
    width: 400px;
    height: 300px;
    padding-left: 3rem;
  }
  #map h3 {
    padding-left: 3rem;
  }
  
  /* About section adjustments */
 
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .about-text {
    max-width: 100%;
    text-align: center;
  }

  .about-quals {
    flex-direction: column;
    gap: 1.5rem;
  }

  .quals-images {
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .quals-images img {
    width: 100px;
  }

  .about {
    padding: 2rem 1rem;
    flex-direction: column;
  }

  .about-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .about-image {
    width: 150px;
    padding-left: 0;
  }

  .about-image img {
    max-width: 100%;
    width: 200px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-text > p {
    font-size: 0.95rem;
    text-align: center;
  }

  .about-quals {
    flex-direction: column;
    gap: 1.5rem;
  }

  .quals-images {
    flex-direction: row;
    justify-content: center;
  }

  .quals-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
  }

  .quals-text h3 {
    font-size: 1.1rem;
  }

  .quals-text ul {
    padding-left: 1rem;
  }

  .quals-text li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
   .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .contact-description h3 {
    font-size: 0.9rem;
  }
  #contact label {
    font-size: 0.9rem;
  }
  .contact-logo {
    width: 120px;
  }
  #contact form {
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }
  #contact form {
    padding: 1.2rem;   /* ↓ less inner space */
    gap: 0.75rem;      /* ↓ reduce spacing between fields */
  }

  #contact input,
  #contact textarea {
    padding: 0.5rem;   /* ↓ smaller fields */
    font-size: 0.9rem;
  }

  #contact textarea {
    min-height: 80px;  /* ↓ shorter textarea */
  }

  #contact button {
    padding: 0.6rem 1.2rem;  /* ↓ smaller button */
    font-size: 1rem;
  }

  #contact label {
    gap: 0.25rem;  /* ↓ tighter label spacing */
  }

  #map {
    padding-right: 3rem;
    width: 90vw;
  }

  #map iframe {
    width: 100%;
    height: 280px;
  }

  #map h3 {
    text-align: center;
  }

  .footer-section2 {
    font-size: 1.2rem;
  }
}