/* ============================================
   BREAKPOINT MIXINS
   ============================================

   Matches the Tailwind screen config from Josh's
   previous build system. All 12 breakpoints available.

   Usage:
     .component {
       padding: 2rem;

       @mixin sm {
         padding: 1.5rem;
       }

       @mixin xs {
         padding: 1rem;
       }
     }

   Compiles to:
     .component { padding: 2rem; }
     @media (max-width: 991px) { .component { padding: 1.5rem; } }
     @media (max-width: 767px) { .component { padding: 1rem; } }

   ============================================ */

/* --- Max-width (mobile-first overrides) --- */

/* --- Min-width (desktop-first overrides) --- */

/* --- Range (min + max) --- */

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* --- Hero --- */
.section_hero {
  position: relative;
  padding-top: calc(3.25rem + 10.3125rem);
  padding-bottom: 4rem;
  min-height: 31.25rem;
  display: flex;
  align-items: flex-end;
}
.section_hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.35);
    z-index: 1;
  }
@media (max-width: 991px) {
.section_hero {
    padding-top: calc(3.25rem + 7.5rem);
    min-height: 25rem;
  } }
@media (max-width: 767px) {
.section_hero {
    padding-top: calc(3.25rem + 6.25rem);
    text-align: center;
    min-height: 21.875rem;
  } }

.hero_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero_bg picture {
    display: block;
    width: 100%;
    height: 100%;
  }

.hero_bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero_content {
  position: relative;
  z-index: 2;
  background-color: var(--color-dark-navy);
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: 60%;
  margin-left: -2rem;
}

/* Hero button spacing — not inside text-margins, so explicit margin needed */

.hero_content .button-group {
    margin-top: 1.5rem;
  }

@media (max-width: 991px) {

.hero_content {
    max-width: 100%;
    margin-left: 0;
  } }

@media (max-width: 767px) {

.hero_content {
    text-align: center;
    padding: 2rem 1.5rem;
  } }

.hero_heading {
  color: var(--color-white);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.4em;
  line-height: 1.15;
}

@media (max-width: 400px) {

.hero_heading {
    font-size: 1.75rem
} }

.hero_paragraph {
  color: rgba(255,255,255,0.8);
  font-style: italic;
  font-size: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}


/* --- Intro --- */
.section_intro {
  text-align: center;
}

.intro_text {
  max-width: 48rem;
  margin: 0 auto;
}
/* Typography handled by .text-formatting .text-margins-sm .text-colors on parent in HTML */


/* --- Services Grid --- */
/* Padding handled by .pt-lg utility in HTML */

.services_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 991px) {

.services_grid {
    grid-template-columns: repeat(3, 1fr)
} }

@media (max-width: 767px) {

.services_grid {
    grid-template-columns: repeat(2, 1fr)
} }

@media (max-width: 400px) {

.services_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem
} }

.services_item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: default;
}

.services_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

.services_item:hover img {
    transform: scale(1.05);
  }

.services_item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
    z-index: 1;
  }

.services_item-title {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.25rem);
  z-index: 2;
  line-height: 1.2;
}

@media (max-width: 400px) {

.services_item-title {
    font-size: 0.8rem
} }

/* Services grid trailing button — right-aligned, extra spacing */
.section_services .button-group {
  margin-top: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 767px) {
.section_services .button-group {
    justify-content: center
} }


/* --- Facility --- */
/* Background handled by .bg-light utility in HTML */

.facility_grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: row-reverse;
}

@media (max-width: 991px) {

.facility_grid {
    flex-direction: column;
    gap: 2rem
} }

@media (max-width: 767px) {

.facility_grid {
    text-align: center
} }

.facility_image-wrap {
  flex: 1;
  min-width: 0;
}

.facility_image-wrap img {
    width: 100%;
  }

.facility_content {
  flex: 1;
  min-width: 0;
}
/* Typography handled by .text-formatting .text-margins-sm .text-colors on parent in HTML */


/* --- About --- */
.about_grid {
  display: flex;
  align-items: center;
  gap: 3rem;
}
@media (max-width: 991px) {
.about_grid {
    flex-direction: column;
    gap: 2rem
} }
@media (max-width: 767px) {
.about_grid {
    text-align: center
} }

.about_image-wrap {
  flex: 1;
  min-width: 0;
}

.about_image-wrap img {
    width: 100%;
  }

.about_content {
  flex: 1;
  min-width: 0;
}
/* Typography handled by .text-formatting .text-margins-sm .text-colors on parent in HTML */


/* --- Testimonials --- */
.section_testimonials {
  background-color: var(--color-dark-navy);
  position: relative;
  overflow: hidden;
}

.testimonials_inner {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}

.testimonials_heading {
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-h3);
  margin-bottom: 2.5rem;
}

.testimonials_slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials_viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.testimonials_track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial_item {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 1rem;
  box-sizing: border-box;
}

.testimonial_quote {
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-size: var(--text-body-lg);
  line-height: 1.7;
  margin-bottom: 1.25em;
}

@media (max-width: 767px) {

.testimonial_quote {
    font-size: var(--text-body)
} }

.testimonial_name {
  color: var(--color-accent-blue);
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonials_arrow {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonials_arrow:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
  }

@media (max-width: 767px) {

.testimonials_arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

    .testimonials_arrow svg {
      width: 1rem;
      height: 1rem;
    } }

.testimonials_dots {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
}

.testimonials_dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonials_dot:hover {
    border-color: var(--color-white);
  }

.testimonials_dot.is-active {
    background: var(--color-white);
    border-color: var(--color-white);
  }


/* --- Certifications --- */
.certifications_grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
.certifications_grid {
    gap: 2rem
} }

.certifications_item {
  text-align: center;
  max-width: 10rem;
}

.certifications_item img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }

@media (max-width: 767px) {

.certifications_item {
    max-width: 45%;
  } }

.certifications_item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-body);
  color: var(--color-heading);
}

/* CTA section styles now in global.css */
