:root {
  --bg-color-main: #fdfbf7;
  --font-color-body: #231e23;
  --accent-color-teal: #2aafc0;
  --accent-color-pink: #e077a9;
  --accent-color-orange: #f1935c;

  --font-heading: "Amaranth", sans-serif;
  --font-body: "ABeeZee", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
  background: #fdfbf7 !important;
  color: var(--font-color-body);
  font-family: var(--font-body);
}

main {
  flex: 1;
  margin: 0 auto;
}

header {
  margin: 0 auto;
  text-align: center;
}

section {
  padding-left: 30px;
  padding-right: 30px;
}

footer {
  position: relative;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-body);
  background: #2aafc0;
}

footer .footer-link {
  color: #fdfbf7;
  text-decoration: none;
  font-weight: 600;
}

footer .gds-link {
  margin-top: 5px;
  font-size: 12px;
}

footer .gds-link a {
  color: var(--font-color-body);
}

footer .footer-logo {
  width: 175px;
  padding: 10px;
}

footer .legal-links,
footer .footer-nav-links {
  display: flex;
  flex-direction: column;
}

footer .footer-header {
  font-size: 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem) !important;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
  background: none !important ;
}

*:focus-visible {
  outline: 2px solid #231e23 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
  border-radius: 5px;
}

.navbar {
  background: rgba(253, 251, 247);
  border-bottom: 1px solid rgba(42, 175, 192, 0.548);
  backdrop-filter: blur(5px);
  font-family: var(--font-body);
  color: #231e23;
}

.navbar-toggler {
  border: none !important;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand-blocks {
  height: 40px;
}

.v-pink {
  color: var(--accent-color-pink);
}

.v-teal {
  color: var(--accent-color-teal);
}

.v-orange {
  color: var(--accent-color-orange);
}

.navbar-collapse {
  text-align: right;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
}

.dropdown-menu {
  margin-left: auto !important;
  margin-right: 0 !important;
  background: #2aafc0 !important;
  backdrop-filter: blur(20px) !important;
  max-width: 200px;
}

.dropdown-menu a:not(.active):hover {
  background: none;
  color: #fdfbf7 !important;
}

.dropdown-menu a:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background: #fdfbf7 !important;
  color: #231e23 !important;
}

.card-a {
  background: rgba(42, 175, 192, 0.55);
}

.card-b {
  background: rgba(224, 119, 170, 0.55);
}

.card-c {
  background: rgba(241, 147, 92, 0.6);
}

.wave {
  display: block;
  width: 100%;
  height: 70px;
}

.index-hero {
  background: #fdfbf7;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.index-hero img {
  width: 70%;
  max-width: 900px;
}

.index-ribbon {
  position: relative;
  background: #2aafc0;
  height: 90px;
}

.index-section-a {
  background: #2aafc0;
  position: relative;
}

.index-section-b {
  background: #fdfbf7;
  position: relative;
}

.index-section h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 1rem;
}

.section-a-link {
  display: inline-block;
  margin-top: 1rem;
  color: #231e23;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.section-a-link:hover {
  transform: translateX(3px);
  color: #fdfbf7;
}

.section-b-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fdfbf7;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.section-b-link:hover {
  transform: translateX(3px);
  color: #231e23;
}

.section-c-link {
  display: inline-block;
  margin-top: 1rem;
  color: #e077a9;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.section-c-link:hover {
  transform: translateX(3px);
  color: #231e23;
}

.index-page h2 {
  margin-bottom: 20px;
}

.index-3cs {
  padding-top: 80px;
  padding-bottom: 100px;
}

.index-who {
  padding-top: 20px;
  padding-bottom: 30px;
}

.index-services {
  padding-top: 80px;
  padding-bottom: 120px;
}

.index-counties {
  padding-top: 20px;
  padding-bottom: 30px;
}

.index-svn {
  padding-top: 30px;
  padding-bottom: 80px;
}

.img-container {
  display: flex;
  flex-direction: column;
}

.index-who .card-img {
  max-width: 400px;
  border-radius: 10px;
}

.img-caption {
  font-size: 14px;
  text-align: center;
}

.service-overview-card {
  border-radius: 8px;
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-overview-card .section-b-link {
  margin-top: auto;
  padding-top: 1rem;
}

.service-overview-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.counties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
}

.county-map {
  width: 100%;
  max-width: 400px;
}

.county-badge {
  background: rgb(241, 147, 92);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.svn-badge {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 1rem;
}

.google-form {
  text-align: center;
  background: #fdfbf7;
  border-radius: 10px;
}

.google-form-iframe {
  width: 100%;
  max-width: 600px;
  height: 675px;
  border: none;
}

.about-us,
.team,
.services,
.contact-us {
  text-align: justify;
  margin-top: 50px;
  margin-bottom: 100px;
}

.about-us h2,
.about-us h3 {
  text-align: center;
}

.about-mission {
  position: relative;
  margin-top: 50px;
}

.about-header,
.team-header {
  background: #2aafc0;
  padding: 7% 5% 5% 5%;
}

.team-grid {
  margin-top: 75px;
  position: relative;
}

.grid-container {
  margin: 0 auto;
  max-width: 1100px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo-frame {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 8px;
  background: var(--bg-color-main);
  border-radius: 16px;
  border: 6px solid var(--block-color, var(--accent-color-teal));
  box-shadow: 2px 4px 10px #231e2383;
  transition: box-shadow 0.2s ease;
}

.team-card:hover .team-photo-frame {
  box-shadow: 4px 8px 20px #231e2383;
}

.team-photo,
.placeholder-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.team-name {
  margin-top: 12px;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--block-color, var(--accent-color-teal));
}

.team-title {
  font-size: 0.85rem;
  color: #231e23;
  opacity: 0.85;
  margin: 0;
  font-family: var(--font-body);
}

.team-therapy-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--accent-color-teal);
  color: var(--accent-color-teal);
  background: var(--bg-color-main);
}

.placeholder-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  font-family: var(--font-heading);
}

.teal-placeholder {
  background-color: var(--accent-color-teal);
}
.pink-placeholder {
  background-color: var(--accent-color-pink);
}
.orange-placeholder {
  background-color: var(--accent-color-orange);
}

.modal-header,
.modal-body {
  background: #fdfbf7 !important;
}

.modal-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--accent-color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  font-family: var(--font-heading);
  margin: 0 auto;
}

.modal-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.modal-title-text {
  color: var(--accent-color-teal);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.modal-bio {
  font-family: var(--font-body);
  line-height: 1.7;
}

.services-header {
  background: #2aafc0;
  padding: 7% 5% 5% 5%;
}

.therapy-services {
  position: relative;
}

.therapy-header {
  margin-top: 60px;
}

.support-services {
  margin-top: 30px;
}

.services-grid {
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  max-width: 1100px;
}

.therapy-services h2,
.support-services h2,
.the-3cs h2 {
  font-size: 28px;
  text-align: center;
}

.support-link {
  text-decoration: none;
  color: #2aafc0;
  font-weight: 600;
}

.support-link:hover {
  color: #e077a9;
  transition: 0.2s ease-in-out;
}

.qxCTlb {
  color: #fdfbf7 !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  box-shadow: 2px 4px 8px #231e235e;
  transition: transform 0.2s ease-in-out;
}

.qxCTlb:hover {
  transform: translateY(-3px);
}

.service-block {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-color-main);
  border: 6px solid var(--block-color, var(--accent-color-teal));
  border-radius: 16px;
  box-shadow: 2px 4px 10px #231e2383;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-block:hover,
.service-block:focus-visible {
  transform: translateY(-4px);
  box-shadow: 4px 8px 20px #231e2383;
}

.service-block h3 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-service-title {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 0.75rem;
}

.modal-service-intro {
  margin-bottom: 1.25rem;
}

.modal-service-subsection {
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 30, 35, 0.1);
}

.modal-service-subsection:first-of-type {
  border-top: none;
  padding-top: 0;
}

.modal-service-subsection h3 {
  font-size: 20px;
  margin-bottom: 0.4rem;
}

.icon-background {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--block-color, var(--accent-color-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.youth-goals .col-6:nth-child(6n + 1) {
  --block-color: var(--accent-color-teal);
}
.youth-goals .col-6:nth-child(3n + 2) {
  --block-color: var(--accent-color-pink);
}
.youth-goals .col-6:nth-child(3n + 3) {
  --block-color: var(--accent-color-orange);
}

.youth-goals i {
  font-size: 40px;
  line-height: 50px;
  color: #fdfbf7;
}

.goal-header {
  font-size: 18px;
  text-align: center;
  margin-top: 10px;
}

.goal-description {
  font-size: 14px;
  text-align: center;
}

.cta-primary {
  margin: 0 auto;
  margin-top: 40px;
  padding: 20px;
  max-width: 600px;
  background: rgba(42, 175, 192, 0.502);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.cta-secondary-intro {
  font-weight: 600;
}

.cta-secondary {
  max-width: 400px;
  margin: 0 auto;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.cta-secondary p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.forms {
  display: flex;
  flex-direction: row;
}

.contact-form,
.referral-form {
  margin: 20px;
}

@media (min-width: 1200px) {
  .service-block {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 991px) {
  .about-3cs .card {
    max-width: 75%;
    justify-self: center;
  }

  .card-img {
    max-width: 300px !important;
  }
}

@media (min-width: 920px) {
  .service-block {
    width: 250px;
    height: 250px;
  }
}

@media (min-width: 768px) {
  .team-grid .col:nth-child(9n + 1),
  .team-grid .col:nth-child(9n + 6),
  .team-grid .col:nth-child(9n + 8) {
    --block-color: var(--accent-color-teal);
  }

  .team-grid .col:nth-child(9n + 2),
  .team-grid .col:nth-child(9n + 4),
  .team-grid .col:nth-child(9n + 9) {
    --block-color: var(--accent-color-pink);
  }

  .team-grid .col:nth-child(9n + 3),
  .team-grid .col:nth-child(9n + 5),
  .team-grid .col:nth-child(9n + 7) {
    --block-color: var(--accent-color-orange);
  }

  .services-grid .col:nth-child(9n + 1),
  .services-grid .col:nth-child(9n + 6),
  .services-grid .col:nth-child(9n + 8) {
    --block-color: var(--accent-color-teal);
  }

  .services-grid .col:nth-child(9n + 2),
  .services-grid .col:nth-child(9n + 4),
  .services-grid .col:nth-child(9n + 9) {
    --block-color: var(--accent-color-pink);
  }

  .services-grid .col:nth-child(9n + 3),
  .services-grid .col:nth-child(9n + 5),
  .services-grid .col:nth-child(9n + 7) {
    --block-color: var(--accent-color-orange);
  }

  .team-photo-frame {
    width: 250px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .col-md-4.services-col {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  footer .footer-logo {
    width: 125px;
    padding: 0;
  }

  .index-section,
  .row.g-5 {
    --bs-gutter-y: 1rem;
  }

  .index-3cs .card {
    min-width: 75%;
    max-width: 75%;
    justify-self: center;
  }

  .about-3cs .card {
    min-width: 75%;
  }

  .service-card {
    padding: 16px;
  }

  .cta-primary {
    padding: 15px;
  }

  .cta-secondary {
    padding: 12px;
  }

  .service-overview-card h3 {
    text-align: center;
  }

  .team-grid .col:nth-child(3n + 1) {
    --block-color: var(--accent-color-teal);
  }
  .team-grid .col:nth-child(3n + 2) {
    --block-color: var(--accent-color-pink);
  }
  .team-grid .col:nth-child(3n + 3) {
    --block-color: var(--accent-color-orange);
  }

  .services-grid .col:nth-child(3n + 1) {
    --block-color: var(--accent-color-teal);
  }
  .services-grid .col:nth-child(3n + 2) {
    --block-color: var(--accent-color-pink);
  }
  .services-grid .col:nth-child(3n + 3) {
    --block-color: var(--accent-color-orange);
  }

  .forms {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  footer .footer-logo {
    width: 100px;
    padding: 0;
  }

  .about-3cs .card {
    min-width: 100%;
  }

  .team-photo-frame {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .service-block {
    width: 150px;
    height: 150px;
  }
}
