/* ---------- GENERAL ---------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  background-color: #d8f0e6;
  padding-top: 65px; /* accommodates navbar */
}
img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.graphic img {
    min-height: 150px;
    width: 100%;
    object-fit: cover;
}
 
img.loaded {
  opacity: 1;
}
.graphic img,
.hero-img,
.about-img,
.final-img {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.graphic img.loaded,
.hero-img.loaded,
.about-img.loaded,
.final-img.loaded {
  opacity: 1;
  transform: translateY(0);
}
h1, h2, h3, .navbar-brand, .nav-link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #1a1a1a;
}

p, li, blockquote {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
}

a {
  text-decoration: none;
}

.btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: #185279;
  border-bottom: 4px solid #f9c74f;
  padding: 0.5rem 1rem 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .navbar-brand,
.navbar-toggler {
  align-self: center;
   display: flex;
  align-items: center;
}

.navbar .nav-logo {
  height: 55px;
  width: auto;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nav-logo.loaded {
  opacity: 1;
  transform: translateY(0);
}
.navbar-nav .nav-link {
  margin-left: 1rem;
  color: #fff !important;
  font-weight: 500;
  padding-bottom: 0.50rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #f9c74f !important;
}

.navbar-collapse {
  background-color: #185279 !important;
  padding: 0.5rem 0;
}

.navbar-toggler {
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  background-color: #185279;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: #f9c74f;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.5rem, 3vw, 1.3rem);
  margin-bottom: 1.5rem;
  color: #e0f0e9;
}

.hero-logo {
  max-width: 150px;
  height: auto;
  border-radius: 50%;
}

.btn-hero {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background-color: #f9c74f !important;
  color: #0d2535;
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.2rem, 3vw, 2rem);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background-color: #f9844a !important;
  color: #fff !important;
  transform: scale(1.05);
}

/* ---------- ABOUT ---------- */
.about {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 4rem 2rem;
  text-align: center;
  background-color:#198754;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.about p {
  max-width: 700px;
  margin: 0 auto 1.25rem auto;
  color: #fff;
}

.about-img {
  margin-top: 2rem;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CONTENT BLOCKS ---------- */
.content-block {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.content-block .text h2 {
  font-size: 2rem;

}
.content-block .text {
  flex: 1 1 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-block .graphic {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.content-block .graphic img {
   border-radius: 0 !important;
  object-fit: cover; /* keep images filling the container nicely */
  width: 100%;
  height: auto;
}

.content-block:nth-of-type(odd) .text {
  background-color: #185279;
  color: #f1f8f4;
}

.content-block:nth-of-type(even) .text {
  background-color: #198754;
  color: #eaf4ff;
}

.content-block:not(.final-message):has(+ .final-message) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 5rem;
  }

.content-block .text h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
}

#strong { color: yellowgreen; }

.final-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 1.5rem;
  background-color: #198754;
  gap: 2rem;
}

/* Text section */
.final-message .text {
  flex: 2 1 66.666%;
  color: #fff;
  text-align: left;
  padding: 1rem;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

/* Image section */
.final-message .graphic {
  flex: 1 1 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.final-message .graphic img.final-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ---------- CONTACT ---------- */
.contact {
  max-width: 800px;
  margin: 5rem auto;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #185279, #0f5132);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.contact h2 {
  padding-bottom: 3rem;
  font-size: 2.5rem;
}
.contact form input,
.contact form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
}

.contact form button {
  background-color: #f9c74f;
  color: #0d2535;
  padding: 0.8rem 2rem;
  margin: 2rem 0 0 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact form button:hover {
  background-color: #f9844a;
  color: #fff;
}

.page-header {
  background-color:#198754; /* pale green */
  padding: 5rem 1rem 2rem;    /* top and bottom padding */
  text-align: center;
  color: #fff;            /* darker green for contrast */
}

.page-header h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.page-header p {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
}

.testimonials {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f9f5; 
  padding: 4rem 1rem;
  box-sizing: border-box;
}

.testimonial-card {
  width: 100%;
  max-width: 850px;
  min-height: 70vh;
  margin: 0 auto;
  background-color: #0f5132;
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 1rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card.bg-blue { background-color: #0f3556; }
.testimonial-card.bg-green { background-color: #0f5132; }

.testimonial-logo {
  width: 100px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto 2rem auto;
}

.testimonial-card blockquote {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  color: #fff;
}

.testimonial-card .card-bottom h5,
.testimonial-card .card-bottom p {
  margin: 0.25rem;
  font-weight: 700;
  color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 2rem 2rem;
  background-color: #828282;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.carousel-control-prev-icon.bg-dark,
.carousel-control-next-icon.bg-dark {
  width: 5%;
  border-radius: 50%;
}

/* ---------- FOOTER ---------- */
footer {
  background-color:#185279;
  color: #000;
  text-align: center;
  padding: 2rem 1rem;
}

/* Footer logo */
.footer-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 50%;
}

/* Icons container */
.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* keep all icons on one row */
  gap: 1rem;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.footer-icons {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap !important; /* absolutely no wrapping */
  gap: 0.75rem;
  overflow-x: auto; /* allows gentle horizontal scroll if needed */
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
  margin-bottom: 1.5rem;
  scrollbar-width: none; /* hide scrollbar for Firefox */
}

.footer-icons::-webkit-scrollbar {
  display: none; /* hide scrollbar for WebKit browsers */
}

.footer-icons .icon {
  flex: 0 0 auto; /* prevent icon shrinking */
  width: 48px;
  height: 48px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-icons .icon:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Platform-specific colours */
.footer-icons .linkedin { background-color: #0077b5; }
.footer-icons .email { background-color: #d44638; }
.footer-icons .phone { background-color: #25d366; }
.footer-icons .facebook { background-color: #3b5998; }

/* Text styling */
footer p {
  margin: 0.5rem 0;
  color: #000;
  font-size: 0.95rem;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Developer credit */
.developer-credit {
  background-color: #f9f9f9;
  font-size: 0.9rem;
}
/* ---------- RESPONSIVE ---------- */
@media (min-width: 992px) {
  .content-block:last-of-type {
    margin-bottom: 3rem; /* or padding-bottom: 3rem; */
  }
}
@media (max-width: 992px) {
   .navbar {
    height: auto;                /* allow height to adjust */
    min-height: 80px;            /* ensure enough space for logo + hamburger + gold bar */
    padding-top: 0.75rem;        /* top padding */
    padding-bottom: 0.75rem;      /* extra bottom padding for gold border */
    display: flex;
    align-items: center;          /* vertically center logo & toggler */
  }

  .navbar-brand,
  .navbar-toggler {
    align-self: center;           /* keep them vertically aligned together */
  }

  .navbar-nav {
    margin-top: 0.5rem;           /* slight spacing for links in collapsed menu */
  }

  .navbar .navbar-collapse {
    padding-bottom: 1rem;         /* space below links when menu is open */
  }
   .content-block {
    flex-direction: column !important;
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* keeps dividing line */
  }

  /* Ensure text comes first, image second */
  .content-block .text {
    order: 1;
  }

  .content-block .graphic {
    order: 2;
    margin-top: 1rem; /* small spacing below text */
    
  }
   .content-block .graphic img {
    max-width: 100%;
    height: auto;
  }
  .content-block .text,
  .content-block .graphic {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .content-block:not(:last-of-type) {
    padding-bottom: 2rem; /* space below text/image before line */
    margin-bottom: 2rem;  /* optional extra spacing after line if needed */
  }
  .content-block .graphic img {
  width: 100%;          /* fill the container horizontally */
  height: auto;         /* keep natural aspect ratio */
  object-fit: contain;   /* ensure the whole image fits inside */
  object-position: center; /* center the image */
  border-radius: 0;     /* remove rounded corners if desired */
}

  /* Remove border for the last content block before final-message */
  .content-block:last-of-type {
    border-bottom: none;
  }
  .hero-logo { max-width: 120px; }
  .navbar .nav-logo { height: 50px; }

   .final-message {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .final-message .text,
  .final-message .graphic {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .final-message .text {
    font-size: 1.1rem;
  }
   .page-header h1 {
    font-size: 2rem;
  }

  .testimonial-card blockquote {
    font-size: 0.95rem;
    padding-left: 1rem;
  }

  .testimonial-logo {
    max-width: 60px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 0.75rem 1rem 1.25rem; /* more breathing space for gold line */
  }

  #navbar .container {
    align-items: center;
  }

  .navbar-brand {
    flex: 1;
    justify-content: flex-start;
  }

  .navbar-toggler {
    flex: 0;
    justify-content: flex-end;
  }

  .nav-logo {
    height: 50px;
  }
}
@media (max-width: 600px) {
  .footer-icons {
    gap: 0.5rem;
  }
  .footer-icons .icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
  .footer-logo {
    max-width: 100px;
  }
}
@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .btn-hero { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .testimonial-card { padding: 1.5rem; }
   .content-block .text,
  .content-block .graphic {
    padding: 1.5rem;
  }
}
@media (max-width: 400px) {
  .footer-icons {
    gap: 0.5rem;
  }

  .footer-icons .icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}