/* ---------------------------------- */
/* GENERAL FONT HANDLING              */
/* ---------------------------------- */

body {
  overflow-x: hidden;
  font-family: var(--fonts-plugin-base-font-family);
}

p {
  font-family: var(--fonts-plugin-base-font-family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonts-plugin-heading-font-family);
  text-transform: none;
}

/* ---------------------------------- */
/* CTA AND BUTTON STYLING             */
/* ---------------------------------- */

a:hover {
  background: #004273;
}

.cta-button:hover {
  background: #004273;
}

.custom-cta-button {
  background-color: #005b96;
  color: white;
  border-radius: 5px;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.custom-cta-button:hover {
  background-color: #004273;
  cursor: pointer;
}

.small-form-button {
  font-size: 0.9em;
  padding: 8px 18px;
  border-radius: 4px;
}

/* ---------------------------------- */
/* SCROLL ANIMATION                   */
/* ---------------------------------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card.animate-on-scroll,
.approach-section.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.service-card.animate-on-scroll.visible,
.approach-section.animate-on-scroll.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ---------------------------------- */
/* OUR APPROACH STYLING               */
/* ---------------------------------- */

.approach-section {
  background-color: #f3f7fa;
  border-radius: 8px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 40px 40px;
  text-align: center;
}

.approach-heading {
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
}

.approach-text {
  font-size: 1.1em;
  line-height: 1.6em;
  margin: 0 auto;
  color: #111;
}

/* ---------------------------------- */
/* LAYOUT AND HEADER TWEAKS           */
/* ---------------------------------- */

body, .site, .entry-content, .wp-site-blocks, main {
  margin: 0 !important;
  padding: 0 !important;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

header[role="banner"] {
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------- */
/* MOBILE TWEAKS                      */
/* ---------------------------------- */

@media (max-width: 600px) {
  .wp-block-group, 
  form,
  .wp-block-contact-form,
  .wp-block-group__inner-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  section[style*="background-color: #f3f7fa"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-item {
    display: block;
  }

  .footer-separator {
    display: none;
  }

  .approach-section {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .approach-text {
    font-size: 0.9em !important;
    line-height: 1.4em !important;
  }
}
