/* Homepage styles; loaded after the existing Bootstrap 3 theme. */

/* Approved responsive hero. */
.home-hero {
  background: #f7f4fa;
  padding: 40px 24px;
}
.home-hero .home-hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
}
.home-hero .home-hero__content {
  flex: 1 1 0;
  min-width: 0;
}
.home-hero .home-hero__eyebrow {
  margin: 0 0 16px;
  color: #674395;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.3px;
}
.home-hero h1 {
  margin: 0 0 20px;
  color: #674395;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.home-hero .home-hero__description {
  margin: 0 0 24px;
  max-width: 480px;
  color: #45404b;
  font-size: 18px;
  line-height: 1.6;
}
.home-hero .home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 6px;
  background: #674395;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.home-hero .home-hero__cta:hover,
.home-hero .home-hero__cta:focus {
  background: #513475;
  color: #fff;
  text-decoration: none;
}
.home-hero .home-hero__cta:focus {
  outline: 3px solid #674395;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #f7f4fa, 0 0 0 6px #674395;
}
.home-hero .home-hero__image {
  display: block;
  flex: 0 0 46%;
  width: 46%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
}
@media (max-width: 1199px) {
  .home-hero .home-hero__inner { gap: 32px; max-width: 940px; }
  .home-hero h1 { font-size: 40px; }
}
@media (max-width: 991px) {
  .home-hero { padding: 32px 24px; }
  .home-hero .home-hero__inner { gap: 24px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .home-hero__description { font-size: 17px; }
}
@media (max-width: 767px) {
  .home-hero { padding: 28px 20px; }
  .home-hero .home-hero__inner { flex-direction: column; align-items: stretch; gap: 28px; max-width: 560px; }
  .home-hero .home-hero__eyebrow { font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; }
  .home-hero h1 { font-size: 34px; margin-bottom: 16px; }
  .home-hero .home-hero__description { margin-bottom: 20px; }
  .home-hero .home-hero__image { flex: none; width: 100%; aspect-ratio: 1.45; border-radius: 14px; }
}
@media (max-width: 479px) {
  .home-hero { padding: 24px 20px; }
  .home-hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .home-hero .home-hero__cta { width: 100%; padding: 14px 12px; }
}

/* Wider desktop: distinguish the hero photo from the staff photo below
   without adding height or changing the approved tablet/mobile layout. */
@media (min-width: 1200px) {
  .home-hero .home-hero__image {
    flex-basis: 52%;
    width: 52%;
    aspect-ratio: 1.52;
    border-radius: 24px 24px 48px 24px;
  }
}

/* Testimonials, including controls and reduced-motion support.
   fadeIn keyframes are supplied by the existing css/animate.css. */
.testimonial-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}
.testimonial-slide {
    display: none;
    font-size: 1.75rem;
    line-height: 1.7;
    color: #333;
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}
.testimonial-text {
    font-style: italic;
    font-weight: 400;
    margin-bottom: 15px;
}
.testimonial-author {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
    text-align: right;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.testimonial-controls button {
    min-width: 90px;
}

/* Home-page utilities retained locally so the Bootstrap 3 theme is not
   mixed with a second, incompatible Bootstrap version. */
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.bg-white { background-color: #fff; }
.bg-light { background-color: #f8f9fa; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.img-fluid { display: block; max-width: 100%; height: auto; }
.rounded { border-radius: 6px; }
.shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.gy-4 > [class*="col-"] { margin-bottom: 1.5rem; }
#content .row.align-items-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
#content .row.align-items-center > .text-center.mb-5 { width: 100%; }
#primary-menu-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}
#content > button.button-full {
    width: 100%;
    border: 0;
}
#gotoTop { border: 0; }

@media (max-width: 767.98px) {
    /* Preserve the homepage-only phone behavior; shared pages may show actions. */
   @media (max-width: 767.98px) {
  #header .middle-links {
    display: none;
  }
}
    .testimonial-slide {
        font-size: 1.25rem;
        padding: 24px 20px;
    }
    .testimonial-author { font-size: 1.15rem; }
}

@media (max-width: 991.98px) {
    #content .row.align-items-center > .col-md-6 {
        flex: 0 0 100%;
        width: 100%;
    }
    #content .row.align-items-center > .col-md-6.text-center {
        margin-top: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-slide.active { animation: none; }
}

/* Compact directions link replaces the homepage's embedded map. */
#section-contact .home-contact-directions {
  margin-top: 12px;
  text-align: center;
}
#section-contact .home-contact-directions a {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 4px;
  color: #674395;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
#section-contact .home-contact-directions a:hover,
#section-contact .home-contact-directions a:focus {
  color: #513475;
}
#section-contact .home-contact-directions a:focus {
  outline: 2px solid #674395;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #674395;
}


/* Expertise cards: contain the nested row and replace unequal-height floats. */
#content .home-expertise__grid {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
#content .home-expertise__grid > .col-md-6 {
  float: none;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  max-width: 33.333333%;
}
@media (max-width: 991px) {
  #content .home-expertise__grid > .col-md-6 {
    flex-basis: 50%;
    width: 50%;
    max-width: 50%;
  }
}
@media (max-width: 767px) {
  #content .home-expertise__grid > .col-md-6 {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Testimonial accents use the supplied artwork without altering its pixels. */
.testimonials {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #f5effa 0%,
    #faf7fc 52%,
    #f0e9f7 100%
  );
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(185, 164, 216, .10), transparent 75%),
    radial-gradient(ellipse 80% 55% at 0% 100%, rgba(185, 164, 216, .08), transparent 75%);
}
.testimonials .testimonial-container::before {
  content: "";
  position: absolute;
 top: -78px;
right: -98px;
width: 200px;
height: 220px;
  z-index: 2;
  background: url("../images/home/oultine heart.png") center / contain no-repeat;
  filter: sepia(1) saturate(2) hue-rotate(210deg) brightness(2.2);
  mix-blend-mode: multiply;
  opacity: .2;
  pointer-events: none;
}
.testimonials .testimonial-slide {
  position: relative;
  z-index: 1;
}
.testimonials > .container > h3,
.testimonials .testimonial-controls {
  position: relative;
}
/* Mobile testimonial heart accent */
@media (max-width: 767px) {
  .testimonials .testimonial-container::before {
    top: -25px;
    right: -65px;
    width: 115px;
    height: 128px;
    opacity: .20;
  }
}

