/* Reset default spacing and layout */
body {
  font-family: 'Avenir', Roboto, Arial, Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;
  margin: 0;
  padding-top: 1rem; /* adds space below navbar */
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    padding: 1.25rem 1.25rem;
    margin: 0rem auto 2rem auto;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  
  .nav-left .nav-logo {
    width: 200px;
    height: auto;
  }
  
  .nav-right a {
    margin-left: 1.5rem;
    margin-right: 2.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
  }
  
  .nav-right a:hover {
    color: #F5B807 ;
  }
  
  /* Responsive: Stack or reduce spacing */
  @media (max-width: 600px) {
    .nav-right a {
      margin-left: 1rem;
      font-size: 0.9rem;
    }
  
    .nav-left .nav-logo {
      width: 32px;
    }
  }

/* Banner Image */
.banner-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
  display: block;
  overflow: hidden;
  position: relative;
  margin-bottom: 0rem;
}

/* Text Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: left;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content2 {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info p {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #000;
  margin: 3rem auto 3rem auto;
  width: 50%;
}

.section-divider-bottom {
  border: none;
  height: 1px;
  background-color: #000;
  margin: 3rem auto 3rem auto;
  width: 50%;
}


/* Framework Cards */
.cardtitle {
  font-size: 2rem;
  margin: .5rem auto .5rem auto;
  text-align: center;
  color: #000;
}

/*.fullwidth-card-section {
  width: 1400px;
  background-color: #3764E5;
  padding: 4rem 2rem;
  margin: 0 auto;
}*/

.card-row-wrap {
  width:100%;
  display: flex;
  /*flex-wrap: wrap; /* Allows wrapping */
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 4rem auto;
}

.card {
  position: relative;
  flex: 1 1 calc(25% - 2rem); /* 4 cards per row on wide screens */
  min-width: 250px;
  max-width: 300px;
  height: 325px;
  background-color: #ffffff;
  /*border: 1px solid #e0e0e0;*/
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 2rem;
  margin-top: 2rem;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: all 0.5s ease;
  height: 100%;
  width: 100%;
  position: relative;
}

.card-icon {
  max-width: 120px;
  max-height: 120px;
  height: auto;
  width: auto;
  margin: 1.5rem auto 3rem auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-title {
  font-size: 1.15rem;
  color: #3764E5;
  margin: 0rem;
  transition: transform 0.4s ease;
}

.card-subtitle {
  font-size: 1.15rem;
  color: #000;
  margin: 0rem;
  transition: transform 0.4s ease;
}

.card-tagline {
  font-style: italic;
  font-size: 1rem;
  color: #666;
  margin-bottom: 0rem;
  transition: transform 0.4s ease;
}

.card-title
.card-tagline {
  transition: transform 0.4s ease;
}

.card-description {
  opacity: 0;
  /*max-height: 0;*/
  transform: translateY(1.5rem);
  transition: transform 0.4s ease, opacity 0.4s ease;
  /*overflow: hidden;*/
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  will-change: transform,opacity;
}

/*.card:hover .description {
  opacity: 1;
  max-height: 200px; /* Adjust based on expected text size 
  transform: translateY(0);
  margin-top: 1rem;
}*/

/* === Hover States === */
.card:hover .card-icon {
  opacity: 0;
  transform: scale(0.9);
}

.card:hover .card-title,
.card:hover .card-subtitle,
.card:hover .card-tagline {
  transform: translateY(-12rem);
}

.card:hover .card-description {
  opacity: 1;
  max-height: 300px;
  transform: translateY(-12rem);
  max-height: 300px;
}

/* Responsive: 2 cards per row on tablets */
@media (max-width: 900px) {
  .card {
    flex: 1 1 calc(50% - 2rem);
  }
}

/* Responsive: 1 card per row on phones */
@media (max-width: 600px) {
  .card {
    flex: 1 1 100%;
  }
}

/* Services */

.servicestitle {
  font-size: 2rem;
  margin: 2rem auto 1.5rem auto;
  text-align: center;
  color: #000;
}

.services h2{
  color: #3764E5
}

/* Contact Info */
h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #000;
}

h1 strong {
  color: #000;
  font-weight: 850;
}

.contact{
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: left;
}

.contact p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.contact a {
  color: #3764E5;
  text-decoration: none;
}

.contact a:hover {
  color: #F5B807;
  text-decoration: underline;
}

/* Mobile-friendly tweaks */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-right a {
    margin: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-logo {
    width: 180px;
  }

  .info p {
    font-size: 1.2rem;
  }

  .banner-img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card {
    flex: 1 1 100%;
    width: 90%;
    max-width: 100%;
    height: auto;
  }

  .card-content {
    padding: 1.5rem;
  }
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}