/* Self-hosted Nunito Sans (Phoenix's default type family), variable font
   covering weights 300-900 in one file — avoids a runtime dependency on
   Google Fonts' CDN. Same file used by the admin panel. */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/nunito-sans/nunito-sans-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand color — overrides Phoenix's default blue (#3874ff) with the site's
   existing accent (same value used by the admin panel) so buttons, links,
   and badges pick it up automatically everywhere theme.min.css references
   --phoenix-primary. --phoenix-primary-bg-subtle/-light-rgb are separate,
   precompiled variables (not derived from --phoenix-primary) that
   .bg-primary-subtle/.border-primary-light key off directly — without
   overriding these too, those pale tint boxes stay Phoenix's original blue
   even after the main color is rebranded. */
:root {
  --phoenix-primary: #0f76c8;
  --phoenix-primary-rgb: 15, 118, 200;
  --phoenix-primary-bg-subtle: color-mix(in srgb, var(--phoenix-primary) 12%, white);
  --phoenix-primary-light-rgb: 123, 180, 225;
}

/* Phoenix's .container grows to 1678px on screens ≥1540px — noticeably
   wider than typical marketing-site content columns. Cap it at the same
   1184px it already uses at the 1200px breakpoint (theme.min.css's own
   next-smaller tier) instead of letting it keep stretching on large
   monitors. Only .container is overridden since that's the only one of
   Phoenix's container-size variants actually used anywhere in this site
   (header, hero, and every section on every page). */
@media (min-width: 1540px) {
  .container {
    max-width: 1184px;
  }
}

/* Preloader + scroll-to-top button — small carry-overs from the previous
   theme; Phoenix doesn't ship equivalents, so kept as minimal custom CSS
   rather than pulling in the old ~2000-line stylesheet for two widgets. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--phoenix-body-bg, #fff);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--phoenix-primary) transparent var(--phoenix-primary) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--phoenix-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top svg {
  color: #fff;
}

.scroll-top:hover {
  opacity: 0.8;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Footer — .footer-default ships with a transparent background and a huge
   (150px+) padding-top, both meant for Phoenix's own layout (a decorative
   wave-divider graphic sitting between a dark CTA section and the footer)
   that this site doesn't use. Reset both: solid black background as
   requested, and a single standardized padding-top matching the rest of
   the footer's own py-6/pt-4 rhythm (set inline in index.php) instead of
   Phoenix's oversized default. */
.footer-default {
  background-color: #000;
  padding-top: 0;
}

/* Homepage hero carousel — full-bleed background image(s) from
   assets/images/hero-carousel/. The dark gradient overlay guarantees
   legible white text on the left regardless of how light/dark any given
   slide's own image is (hero-1.jpg is already dark, but this keeps future
   hero-2.jpg/hero-3.jpg additions safe too). To add another slide: drop the
   new image in that folder, duplicate the .carousel-item block in
   pages/home.php with the new background-image and copy, and add a
   matching <button data-bs-slide-to="N"> below — Bootstrap's own carousel
   JS (already loaded) handles any slide count with no code changes here. */
#hero.hero-carousel {
  /* Phoenix applies padding: 3.5rem 0 to every <section> by default
     (theme.min.css's bare `section` selector). #hero's own background is
     transparent — the actual image lives on .carousel-item inside it — so
     that default padding showed through as a plain gap between the navbar
     and the hero image instead of a true full-bleed banner. */
  padding-top: 0;
  padding-bottom: 0;
}

.hero-carousel .carousel-item {
  position: relative;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bootstrap's own carousel CSS sets display: none on inactive slides and
   display: block on .active/.carousel-item-next/.carousel-item-prev — our
   flex-based vertical centering has to apply only to those same states,
   or (as happened here) every slide stays visible at once instead of
   showing one at a time, stacking all their captions on top of each
   other. */
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
  display: flex;
  align-items: center;
}

.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 40, .8) 0%, rgba(6, 20, 40, .55) 45%, rgba(6, 20, 40, .2) 100%);
}

.hero-carousel .carousel-caption-custom {
  position: relative;
  z-index: 2;
}

/* Deliberately NOT Bootstrap's .fs-6 utility (1rem) — Phoenix's compiled
   theme redefines the whole .fs-1..fs-9 scale to its own much larger
   values (.fs-6 = 1.5625rem/25px there), so using it here rendered the
   subtitle at 25px and, on mobile, blew the slide's content height well
   past its min-height — the exact "slide heights differ" bug reported.
   A dedicated class sidesteps the collision entirely. */
.hero-slide-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 560px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, .5);
  opacity: 1;
}

.hero-carousel .carousel-indicators .active {
  background-color: #fff;
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    /* Tall enough to comfortably fit the longest real slide content
       (heading + subtitle + two buttons) with room to spare, so every
       slide sits at this same floor height instead of each one being as
       tall as its own text — that per-slide height difference (Bootstrap's
       carousel only lays out the active item) was the reported bug. */
    min-height: 480px;
    padding: 40px 0 32px;
  }

  .hero-carousel .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-carousel .carousel-caption-custom h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-slide-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-carousel .carousel-caption-custom .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }
}

/* Bolder, more prominent section headings — requested for the Core Values,
   Services, and Training Programs headings to give the site a more premium,
   professional feel. Paired with the .fw-black utility (font-weight: 900)
   already used on the hero heading; this just adds the size bump on top,
   scaling down gracefully on small screens same as Bootstrap's own
   .display-* utilities do. Deliberately not a blanket h2 override — only
   applied via this class to the specific headings that asked for it, so
   other section headings (About Us, Why Choose Us, Who We Serve) keep
   their existing weight. */
.section-heading-lg {
  font-size: calc(1.5rem + 1.5vw);
}

@media (min-width: 1200px) {
  .section-heading-lg {
    font-size: 2.5rem;
  }
}

/* Header/nav — restyled to match a reference site's layout (slim contact
   utility bar above a white nav, uppercase links, the active page shown as
   a solid filled tab, and a thin accent bar under the whole header) using
   only colors/content already in this codebase: --phoenix-primary for the
   accent (not a new brand color), and the existing Terms/Privacy routes +
   get_contact_info() phone/email for the utility bar (no invented copy). */
.site-topbar {
  background-color: var(--phoenix-emphasis-bg, #f5f7fa);
  border-bottom: 1px solid var(--phoenix-border-color, #e6e9ef);
  padding: 6px 0;
  font-size: 0.8rem;
}

.site-topbar-links a {
  color: var(--phoenix-body-color, #5e6e82);
  text-decoration: none;
}

.site-topbar-links a:hover {
  color: var(--phoenix-primary);
}

.site-topbar-sep {
  margin: 0 0.5em;
  color: var(--phoenix-border-color, #c7cedb);
}

.site-topbar-contact {
  display: flex;
  gap: 1.25rem;
  color: var(--phoenix-body-color, #5e6e82);
}

.site-topbar-contact svg {
  color: var(--phoenix-primary);
  vertical-align: -0.1em;
}

.site-main-nav .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.6rem 1rem;
  color: var(--phoenix-emphasis-color, #1e2937);
  transition: background-color 0.2s, color 0.2s;
}

.site-main-nav .nav-link:hover {
  color: var(--phoenix-primary);
}

.site-main-nav .nav-link.active {
  background-color: var(--phoenix-primary) !important;
  color: #fff !important;
}

@media (min-width: 992px) {
  .site-main-nav .nav-link {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }
}

.site-nav-accent {
  height: 4px;
  background-color: var(--phoenix-primary);
}

/* Contact form status messages — assets/libs/php-email-form/validate.js only
   toggles a `.d-block` class on these three elements (it never sets their
   base display), so without this rule they're visible by default and never
   hide — `.loading` showed permanently and `.sent-message` stacked on top
   of it once a submission completed. Dropped along with the old ~2000-line
   theme stylesheet during the Phoenix re-theme; restoring just these rules
   (adapted from the original .drafts/template/assets/css/main.css) rather
   than reintroducing that whole file. */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
}

.php-email-form .error-message {
  background: #df1529;
  color: #fff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  background: var(--phoenix-body-bg, #fff);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--phoenix-primary);
  border-top-color: var(--phoenix-body-bg, #fff);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
