/* Lifeline Community Care — site styles (brand-tuned for web) */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ll-navy: #0b3d78;
  --ll-blue: #1d75bd;
  --ll-green: #5aae3c;
  --ll-orange: #f7941d;
  --ll-sky: #e9f4fc;
  --ll-ink: #14253a;
  --ll-surface: #ffffff;
  --ll-font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ll-script: "Caveat", "Segoe Script", cursive;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body:has(.service-jump) {
  scroll-padding-top: 10rem;
}

body {
  color: var(--ll-ink);
  font-family: var(--ll-font);
  font-weight: 500;
  overflow-x: hidden;
  background: var(--ll-surface);
}

h1, h2, h3, h4, .navbar-brand {
  font-weight: 700;
}

.text-navy { color: var(--ll-navy) !important; }
.bg-sky { background-color: var(--ll-sky) !important; }
.bg-navy { background-color: var(--ll-navy) !important; }

.script {
  font-family: var(--ll-script);
  font-weight: 600;
  color: var(--ll-green);
}

/* Buttons */
.btn-ll {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ll-blue);
  --bs-btn-border-color: var(--ll-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ll-navy);
  --bs-btn-hover-border-color: var(--ll-navy);
  --bs-btn-focus-shadow-rgb: 29, 117, 189;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.25rem rgba(29, 117, 189, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-ll:hover { transform: translateY(-2px); }

.btn-outline-ll {
  --bs-btn-color: var(--ll-navy);
  --bs-btn-border-color: var(--ll-navy);
  --bs-btn-hover-bg: var(--ll-navy);
  --bs-btn-hover-border-color: var(--ll-navy);
  --bs-btn-hover-color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

.btn-outline-light-ll {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.85);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--ll-navy);
  font-weight: 700;
  border-radius: 999px;
}

/* Header */
.site-header {
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 61, 120, 0.06);
}

.navbar-brand {
  gap: 0.55rem !important;
  align-items: center !important;
  max-width: calc(100% - 3.5rem);
}

.brand-logo {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  color: var(--ll-navy);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 0.1rem;
}
.brand-name small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ll-green);
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 2.85rem;
    height: 2.85rem;
  }
  .brand-name {
    font-size: 0.95rem !important;
    padding-top: 0;
  }
  .brand-name small {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 992px) {
  .brand-logo {
    width: 4.25rem;
    height: 4.25rem;
  }
  .navbar-brand {
    gap: 0.7rem !important;
  }
}

.navbar-nav .nav-link {
  color: var(--ll-ink);
  font-weight: 600;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ll-blue);
}

/* Full-bleed photo hero */
.hero-photo {
  position: relative;
  min-height: min(92vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: var(--ll-navy);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 61, 120, 0.35) 0%, rgba(11, 61, 120, 0.55) 45%, rgba(11, 61, 120, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 61, 120, 0.55) 0%, transparent 55%);
}
.hero-photo .container {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 4.5rem;
}
.hero-photo .brand-kicker {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero-photo .brand-kicker span {
  color: #9bde7a;
}
.hero-photo h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  max-width: 22ch;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-photo .lead {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Page header (inner pages) */
.page-hero {
  position: relative;
  padding: 5.5rem 0 3.5rem;
  color: #fff;
  background-color: var(--ll-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(11, 61, 120, 0.92), rgba(29, 117, 189, 0.72));
}
.page-hero .container { position: relative; z-index: 1; }

/* Trust strip */
.trust-strip {
  background: var(--ll-navy);
  color: #fff;
  border-radius: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* Services */
.card-service {
  border: 0;
  border-radius: 1.5rem;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card-service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--ll-blue));
}
.service-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.45rem;
  background: var(--accent, var(--ll-blue));
  box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--accent, var(--ll-blue)) 35%, transparent);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .card-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.25rem 2rem rgba(11, 61, 120, 0.12);
  }
  .card-service:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
  }
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.service-link:hover { color: inherit; }

/* Services jump nav */
.service-jump {
  position: sticky;
  top: var(--ll-header-offset, 5.5rem);
  z-index: 1010;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 61, 120, 0.08);
  padding: 0.85rem 0;
}
body.nav-open .service-jump {
  visibility: hidden;
  pointer-events: none;
}
.service-jump-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(11, 61, 120, 0.18);
  background: #fff;
  color: var(--ll-navy);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.service-chip:hover,
.service-chip:focus-visible,
.service-chip.is-active {
  background: var(--ll-navy);
  border-color: var(--ll-navy);
  color: #fff;
}

/* Scope note */
.scope-note {
  background: var(--ll-sky);
  border-radius: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-left: 5px solid var(--ll-blue);
}
.scope-note > .d-flex > i {
  color: var(--ll-blue);
  font-size: 1.35rem;
}

/* Category blocks */
.service-category-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.service-category-head .service-icon {
  flex-shrink: 0;
}

.service-accordion .accordion-item {
  border: 1px solid #dbe7f3;
  border-radius: 1rem !important;
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: #fff;
}
.service-accordion .accordion-button {
  font-family: var(--ll-font);
  font-weight: 700;
  color: var(--ll-navy);
  background: #fff;
  box-shadow: none;
  padding: 1rem 1.15rem;
}
.service-accordion .accordion-button:not(.collapsed) {
  background: var(--ll-sky);
  color: var(--ll-navy);
  box-shadow: none;
}
.service-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 117, 189, 0.2);
}
.service-accordion .accordion-button::after {
  background-size: 1rem;
}
.service-accordion .accordion-body {
  padding: 1rem 1.15rem 1.25rem;
}

.service-list {
  columns: 1;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  break-inside: avoid;
  color: var(--ll-ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ll-green);
}
@media (min-width: 768px) {
  .service-list {
    columns: 2;
  }
}


/* Values */
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  background: #fff;
  color: var(--ll-navy);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.value-pill:hover { transform: translateY(-3px) scale(1.03); }
.value-pill i { color: var(--ll-green); font-size: 1.15rem; }

/* Photo band */
.photo-band {
  position: relative;
  min-height: 22rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11, 61, 120, 0.88), rgba(11, 61, 120, 0.45));
}
.photo-band .container { position: relative; z-index: 1; }

/* Contact */
.form-control,
.form-select {
  border-radius: 1rem;
  border: 2px solid #dbe7f3;
  padding: 0.8rem 1rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ll-green);
  box-shadow: 0 0 0 0.25rem rgba(90, 174, 60, 0.2);
}
.contact-card {
  border-radius: 2rem;
  border: 0;
  box-shadow: 0 1rem 2.5rem rgba(11, 61, 120, 0.1);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ll-ink);
  font-weight: 700;
  flex-wrap: wrap;
  min-width: 0;
}
.contact-link:hover { color: var(--ll-blue); }
.contact-link span.ic {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-map-wrap {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(11, 61, 120, 0.1);
  background: #e8eef5;
}

.contact-map {
  display: block;
  min-height: 450px;
  border: 0;
}

/* Contact inquiry form */
.contact-form {
  position: relative;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inquiry-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inquiry-type-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(11, 61, 120, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ll-navy);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inquiry-type-option:has(input:checked) {
  background: var(--ll-sky);
  border-color: var(--ll-blue);
  color: var(--ll-navy);
}

.inquiry-type-option input {
  accent-color: var(--ll-blue);
  margin: 0;
}

.contact-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-captcha-row .form-control {
  flex: 1 1 10rem;
  min-width: 0;
}

.contact-captcha-img-wrap {
  flex: 0 0 auto;
  width: 120px;
  height: 48px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  background: var(--ll-sky);
}

.contact-captcha-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-response {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-weight: 600;
}

.contact-response.is-success {
  background: rgba(90, 174, 60, 0.12);
  color: #2f6b1c;
  border: 1px solid rgba(90, 174, 60, 0.35);
}

.contact-response.is-error {
  background: rgba(220, 53, 69, 0.1);
  color: #a11f2c;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* About logo showcase */
.logo-showcase {
  width: min(100%, 18rem);
  height: auto;
  filter: drop-shadow(0 1rem 2rem rgba(11, 61, 120, 0.15));
}

/* Footer */
.footer-band {
  background: var(--ll-navy);
  color: #dbe8f5;
}
.footer-band a {
  color: #fff;
  text-decoration: none;
}
.footer-band a:hover { text-decoration: underline; }
.wsbc {
  display: inline-flex;
  border-radius: 0.4rem;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.wsbc span { padding: 0.45rem 0.6rem; }
.wsbc .w { background: #111; color: #fff; }
.wsbc .s { background: var(--ll-orange); color: #111; }

/* Mobile call bar */
.call-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1030;
  display: none;
}
.call-bar a {
  box-shadow: 0 0.75rem 1.5rem rgba(11, 61, 120, 0.35);
}
@media (max-width: 767.98px) {
  .call-bar { display: block; }
  body { padding-bottom: 5rem; }
  /* Mobile already has the fixed Call Lifeline bar */
  .hero-photo .hero-ctas { display: none !important; }
}

/* FAQ (AEO) */
.faq-accordion .accordion-item {
  border: 1px solid #dbe7f3;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}
.faq-accordion .accordion-item:last-child {
  margin-bottom: 0;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--ll-navy);
  background: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--ll-navy);
  background: var(--ll-sky);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 117, 189, 0.25);
}
.faq-accordion .accordion-body {
  color: var(--ll-ink);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Heart burst on form success */
.burst {
  position: fixed;
  pointer-events: none;
  font-size: 1.25rem;
  z-index: 2000;
  animation: rise 1.4s ease-out forwards;
}
@keyframes rise {
  to {
    transform: translate(var(--dx), -18rem) rotate(var(--r));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
