/* KH Nursing website additions on top of the Nova template (main.css) */

/*--------------------------------------------------------------
# Team / Departments: same photo size whatever the source image size
--------------------------------------------------------------*/
.team .team-member {
  width: 100%;
}

.team .team-member .member-img img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
}

/*--------------------------------------------------------------
# Landing page (index.php): hero with the login card
--------------------------------------------------------------*/
/* Nav over the hero: the photo rotates and is often light, so the header carries its own
   ink fade instead of relying on the photo. Gone once the solid header shows on scroll. */
.index-page .header::before {
  content: "";
  position: absolute;
  inset: 0; /* header height only, so it stays above the login card */
  background: linear-gradient(180deg, rgba(36, 8, 92, 0.78) 0%, rgba(36, 8, 92, 0.55) 55%, rgba(36, 8, 92, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s;
}

.index-page.scrolled .header::before {
  opacity: 0;
}

@media (min-width: 1200px) {
  /* Only over the photo: the solid left panel (.hero:after, 44%) already carries the logo */
  .index-page .header::before {
    left: 44%;
    bottom: -16px;
  }

  .index-page .navmenu a,
  .index-page .navmenu a:focus {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(20, 4, 52, 0.35);
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
  }

  .index-page .navmenu li:hover > a,
  .index-page .navmenu a:focus-visible {
    text-decoration-line: underline;
  }
}

.index-page .mobile-nav-toggle {
  color: #ffffff;
}

/* As tall as its content instead of the full screen, so the next section peeks in below */
.landing-hero {
  min-height: 0;
  padding: 140px 0 90px;
}

/* Buttons + "more below" cue share one column, so the cue sits centered under the buttons */
.landing-hero .hero-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.landing-hero .hero-more {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  color: color-mix(in srgb, var(--contrast-color), transparent 10%);
  font-size: 14px;
  font-weight: 500;
}

.landing-hero .hero-more i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid color-mix(in srgb, var(--contrast-color), transparent 25%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--contrast-color), transparent 86%);
  font-size: 18px;
  line-height: 1;
  -webkit-text-stroke: 1px currentColor; /* heavier chevron */
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.landing-hero .hero-more:hover,
.landing-hero .hero-more:focus-visible {
  color: var(--contrast-color);
}

.landing-hero .hero-more:hover i,
.landing-hero .hero-more:focus-visible i {
  color: var(--accent-color);
  background: var(--contrast-color);
  border-color: var(--contrast-color);
}

/* "Connect with Us Today!" photo is portrait: keep the nurse's head in the crop */
.why-us .img-bg img {
  object-position: center top;
}

.landing-hero .btn-request-info-outline {
  color: var(--contrast-color);
  border: 2px solid var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 26px;
  border-radius: 50px;
  transition: 0.5s;
}

.landing-hero .btn-request-info-outline:hover {
  color: var(--accent-color);
  background: var(--contrast-color);
}

.landing-hero .login-card {
  --default-color: #212529;
  --heading-color: #4a07b8;
  color: var(--default-color);
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 100px;
}

.landing-hero .login-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.landing-hero .login-card .login-sub {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 20px;
}

.landing-hero .login-card .btn-login {
  width: 100%;
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  border-radius: 50px;
  padding: 12px;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.4s;
}

.landing-hero .login-card .btn-login:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.landing-hero .login-card .login-links {
  font-size: 14px;
}

.landing-hero .login-card .login-links a {
  font-weight: 500;
}

.landing-hero .login-card .login-notice {
  font-size: 11px;
  line-height: 1.5;
  color: #6c757d;
  border-top: 1px solid #e9ecef;
  padding-top: 14px;
  margin: 18px 0 0;
}

.landing-hero .login-card .login-notice a {
  color: #6c757d;
  font-weight: 600;
}

@media (max-width: 991px) {
  .landing-hero .login-card {
    padding: 24px 20px 18px;
  }
}

/*--------------------------------------------------------------
# Request More Information form (include/requestInfoForm.php)
--------------------------------------------------------------*/
#request-info {
  scroll-margin-top: 100px;
}

.request-info-form .form-label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.request-info-form .form-control,
.request-info-form .form-select {
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.request-info-form .form-control:focus,
.request-info-form .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.request-info-form .btn-request-info {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 12px 36px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  transition: 0.4s;
}

.request-info-form .btn-request-info:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.request-info-form .btn-request-info:disabled {
  opacity: 0.7;
}

.request-info-form .ri-notification {
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: 500;
  color: #ffffff;
}

.request-info-form .ri-success {
  background: #059652;
}

.request-info-form .ri-error {
  background: #df1529;
}

.request-info-form .ri-recaptcha-note {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Topic just picked by a department button: show what changed */
.request-info-form .form-select {
  transition: border-color 0.4s, box-shadow 0.4s;
}

.request-info-form .form-select.ri-picked {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 80%);
}

/* About page department buttons, in place of the email addresses */
.contact .ri-topic-link {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 3px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  border: 1.5px solid color-mix(in srgb, var(--accent-color), transparent 50%);
  border-radius: 50px;
  transition: 0.3s;
}

.contact .ri-topic-link:hover,
.contact .ri-topic-link:focus-visible {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Honeypot field, kept off screen instead of display:none so bots still see it */
.request-info-form .ri-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The form shows the reCAPTCHA attribution text, so the floating badge can go */
.grecaptcha-badge {
  visibility: hidden;
}

/*--------------------------------------------------------------
# Landing page nav Login: hidden while the login card is on screen
# (login.js sets .login-card-out on body once the card scrolls away)
--------------------------------------------------------------*/
.nav-login-scroll {
  display: none;
}

.login-card-out .nav-login-scroll {
  display: list-item;
  animation: nav-login-in 0.3s ease-out;
}

@keyframes nav-login-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card-out .nav-login-scroll {
    animation: none;
  }
}

/* Keep Careers flush right while Login is hidden (Nova trims the last item's padding) */
@media (min-width: 1200px) {
  body:not(.login-card-out) .navmenu li:has(+ .nav-login-scroll) a {
    padding-right: 0;
  }
}
