/* ===========================================================
   Baccangela Customs — design system
   Brand: deep border-post navy + warm clearance-stamp amber
   =========================================================== */

:root {
  color-scheme: light;

  /* Brand constants (same in both themes) */
  --bc-navy: #0d3b66;
  --bc-navy-dark: #082744;
  --bc-navy-light: #14508a;
  --bc-amber: #e8a33d;
  --bc-amber-dark: #c9821f;

  /* Semantic surfaces & text — light theme */
  --bc-page-bg: #edf1f6;
  --bc-surface: #ffffff;
  --bc-surface-gradient: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  --bc-surface-2: #f4f7fa;
  --bc-ink: #1c2530;
  --bc-heading: #0a2540;
  --bc-muted: #5b6b7c;
  --bc-link: #14508a;
  --bc-border: #e2e8f0;
  --bc-border-strong: #cbd5e1;
  --bc-note-bg: #fff8ec;
  --bc-note-ink: #7a5615;

  --bc-radius: 0.6rem;
  --bc-shadow: 0 6px 24px rgba(13, 59, 102, 0.08);
  --bc-shadow-hover: 0 12px 32px rgba(13, 59, 102, 0.16);

  /* legacy alias */
  --bc-bg-soft: var(--bc-surface-2);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bc-page-bg: #081420;
    --bc-surface: #102436;
    --bc-surface-gradient: linear-gradient(180deg, #143049 0%, #0f2235 100%);
    --bc-surface-2: #0c1f30;
    --bc-ink: #dfe8f0;
    --bc-heading: #eef4f9;
    --bc-muted: #9fb2c3;
    --bc-link: #6db3f2;
    --bc-border: #24405a;
    --bc-border-strong: #31506d;
    --bc-note-bg: rgba(232, 163, 61, 0.12);
    --bc-note-ink: #e7cba3;
    --bc-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    --bc-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.6);
  }
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--bc-ink);
  background-color: var(--bc-page-bg);
  background-image:
    radial-gradient(1100px 560px at 100% -8%, rgba(20, 80, 138, 0.06), transparent 60%),
    radial-gradient(820px 480px at -8% 6%, rgba(232, 163, 61, 0.05), transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(1100px 560px at 100% -8%, rgba(20, 80, 138, 0.22), transparent 60%),
      radial-gradient(820px 480px at -8% 6%, rgba(232, 163, 61, 0.06), transparent 55%);
  }
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.font-heading {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--bc-heading);
}

main.container {
  max-width: 1140px;
}

a {
  color: var(--bc-link);
}

.text-muted {
  color: var(--bc-muted) !important;
}

/* ---------- Buttons ---------- */

.btn-primary {
  background-color: var(--bc-amber);
  border-color: var(--bc-amber);
  color: var(--bc-navy-dark);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--bc-amber-dark);
  border-color: var(--bc-amber-dark);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--bc-border-strong);
  color: var(--bc-ink);
  font-weight: 600;
}
.btn-outline-secondary:hover {
  background-color: var(--bc-surface-2);
  border-color: var(--bc-navy-light);
  color: var(--bc-ink);
}
/* On the dark hero the same button needs to read light. */
.hero .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.hero .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: #fff;
}

.btn-outline-navy {
  border: 1px solid var(--bc-navy);
  color: var(--bc-navy);
  font-weight: 600;
}
.btn-outline-navy:hover {
  background-color: var(--bc-navy);
  color: #fff;
}

/* ---------- Navbar ---------- */

.navbar {
  background-color: var(--bc-navy) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand .bi {
  color: var(--bc-amber);
}
.navbar-brand .brand-logo {
  height: 72px;
  width: auto;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.nav-cta {
  background-color: var(--bc-amber);
  color: var(--bc-navy-dark) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 0.4rem;
  font-weight: 600 !important;
  margin-left: 0.25rem;
}
.nav-cta:hover {
  background-color: var(--bc-amber-dark);
  color: #fff !important;
}

.topbar {
  background-color: var(--bc-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.topbar a:hover {
  color: var(--bc-amber);
}
.topbar .bi {
  color: var(--bc-amber);
  margin-right: 0.3rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -1.5rem;
  background: linear-gradient(135deg, var(--bc-navy-dark) 0%, var(--bc-navy) 55%, var(--bc-navy-light) 100%);
  color: #fff;
  border-radius: 0;
  padding: 5rem 0;
  margin-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.photo-caption-wrap {
  position: relative;
  display: block;
}
.photo-caption-wrap .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 0.9rem 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(8, 39, 68, 0.88), rgba(8, 39, 68, 0));
  border-bottom-left-radius: var(--bc-radius);
  border-bottom-right-radius: var(--bc-radius);
}
.photo-caption-wrap .photo-caption .bi {
  color: var(--bc-amber);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 39, 68, 0.66) 0%, rgba(13, 59, 102, 0.48) 45%, rgba(13, 59, 102, 0.22) 100%);
  z-index: -1;
}
/* The Services hero is a still photo (no motion to help legibility), so use a
   lighter wash than the home video hero and lean on the text-shadows. */
.hero-services .hero-overlay {
  background: linear-gradient(115deg, rgba(6, 30, 53, 0.62) 0%, rgba(9, 42, 72, 0.4) 45%, rgba(13, 59, 102, 0.16) 100%);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation-name: hero-slide-fade;
  animation-duration: 36s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide:nth-child(6) { animation-delay: 20s; }
.hero-slide:nth-child(7) { animation-delay: 24s; }
.hero-slide:nth-child(8) { animation-delay: 28s; }
.hero-slide:nth-child(9) { animation-delay: 32s; }
@keyframes hero-slide-fade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  10% { opacity: 1; }
  14% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}
.hero-content {
  position: relative;
}
.hero .eyebrow {
  color: var(--bc-amber);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-size: 0.8rem;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero .eyebrow {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero .btn {
  padding: 0.65rem 1.4rem;
}

.page-header {
  background: linear-gradient(135deg, var(--bc-navy-dark), var(--bc-navy));
  color: #fff;
  border-radius: var(--bc-radius);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 640px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: -4.5rem 0.5rem 3rem;
  position: relative;
  z-index: 2;
}
.trust-strip .trust-item {
  flex: 1 1 200px;
  background: var(--bc-surface-gradient);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.trust-strip .trust-item .bi {
  font-size: 1.4rem;
  color: var(--bc-amber);
  background: rgba(232, 163, 61, 0.12);
  padding: 0.55rem;
  border-radius: 0.5rem;
}
.trust-strip .trust-item h6 {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.trust-strip .trust-item p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--bc-muted);
}

/* ---------- Accreditors strip ---------- */

.accreditors-strip {
  margin: 0 0 3rem;
  text-align: center;
}
.accreditors-label {
  color: var(--bc-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 1.1rem;
}
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: logo-marquee 22s linear infinite;
}
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}
.logo-marquee-item {
  height: 64px;
  width: auto;
  object-fit: contain;
  padding: 0.55rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(13, 59, 102, 0.12);
  opacity: 0.92;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}
.logo-marquee-item:hover {
  opacity: 1;
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.18);
}
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ---------- Sections ---------- */

section.section {
  padding: 1rem 0 3rem;
}
.section-eyebrow {
  color: var(--bc-amber-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.78rem;
}
.section-title {
  margin-bottom: 0.75rem;
}
.section-intro {
  color: var(--bc-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  background: var(--bc-surface-gradient);
  color: var(--bc-ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card.service-card {
  box-shadow: var(--bc-shadow);
}
.card.service-card:hover {
  box-shadow: var(--bc-shadow-hover);
  transform: translateY(-3px);
}
.service-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--bc-radius) var(--bc-radius) 0 0;
}
.card.service-card .card-body {
  position: relative;
}
.card.service-card .service-icon.overlap {
  position: absolute;
  top: -1.6rem;
  left: 1.25rem;
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.3);
  border: 3px solid var(--bc-surface);
}
.accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 163, 61, 0.12);
  color: var(--bc-amber-dark);
  border: 1px solid rgba(232, 163, 61, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--bc-navy), var(--bc-navy-light));
  color: var(--bc-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-more {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bc-navy);
  font-weight: 600;
  font-size: 0.85rem;
}
.service-more:hover {
  color: var(--bc-amber-dark);
}
.service-more .bi-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.service-more[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* ---------- Service categories ---------- */

.service-category {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}
.service-category + .service-category {
  border-top: 1px solid var(--bc-border);
  padding-top: 2.5rem;
}
.service-category-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.service-category-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(232, 163, 61, 0.14);
  color: var(--bc-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* ---------- How it works / steps ---------- */

.step {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.75rem;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--bc-navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}
.step h5 {
  margin-bottom: 0.3rem;
}
.step p {
  color: var(--bc-muted);
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--bc-amber-dark), var(--bc-amber));
  border-radius: var(--bc-radius);
  padding: 2.75rem;
  color: var(--bc-navy-dark);
  margin: 3rem 0;
}
.cta-banner h2 {
  color: var(--bc-navy-dark);
}
.cta-banner .btn-light {
  font-weight: 700;
  color: var(--bc-navy-dark);
}

/* ---------- Contact / info cards ---------- */

.info-card {
  background: var(--bc-surface-2);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 1.75rem;
}
.info-card .info-row {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.info-card .info-row:last-child {
  margin-bottom: 0;
}
.info-card .info-row .bi {
  color: var(--bc-amber-dark);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}
.info-card .info-row h6 {
  margin-bottom: 0.1rem;
}
.info-card .info-row p, .info-card .info-row a {
  margin-bottom: 0;
  color: var(--bc-muted);
  text-decoration: none;
}
.info-card .info-row a:hover {
  color: var(--bc-navy);
}

.placeholder-note {
  border-left: 3px solid var(--bc-amber);
  background: var(--bc-note-bg);
  color: var(--bc-note-ink);
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0.4rem 0.4rem 0;
  margin-top: 1rem;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--bc-surface-gradient);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 2rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bc-heading);
}
.form-control:focus, .form-select:focus {
  border-color: var(--bc-navy-light);
  box-shadow: 0 0 0 0.2rem rgba(13, 59, 102, 0.15);
}

/* ---------- Tracking timeline ---------- */

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 2.2rem;
  border-left: 2px solid var(--bc-border);
  margin-left: 0.6rem;
}
.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bc-amber);
  border: 2px solid var(--bc-surface);
  box-shadow: 0 0 0 2px var(--bc-amber);
}
.timeline li:first-child::before {
  background: var(--bc-navy);
  box-shadow: 0 0 0 2px var(--bc-navy);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(13, 59, 102, 0.1);
  color: var(--bc-navy);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: linear-gradient(135deg, var(--bc-navy-dark) 0%, var(--bc-navy) 55%, var(--bc-navy-light) 100%);
  color: rgba(255, 255, 255, 0.75);
}
footer.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
footer.site-footer a:hover {
  color: var(--bc-amber);
}
footer.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
footer.site-footer .footer-brand {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
footer.site-footer .footer-logo {
  height: 64px;
  width: auto;
}
footer.site-footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
footer.site-footer ul li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.powered-by {
  background: var(--bc-navy-dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
}
.powered-by-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
}
footer.site-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 0.5rem;
}
footer.site-footer .social-icons a:hover {
  background: var(--bc-amber);
  color: var(--bc-navy-dark);
}

.bi-whatsapp {
  color: #25d366;
}
.btn-whatsapp .bi-whatsapp {
  color: #fff;
}

/* ---------- Misc ---------- */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state .bi {
  font-size: 2.5rem;
  color: var(--bc-border);
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .hero { padding: 2.75rem 0; }
  .hero h1 { font-size: 2rem; }
  .trust-strip { margin-top: 1.5rem; }
}

/* ---------- Motion & animation ---------- */

/* Scroll-reveal: JS adds .reveal to a set of elements, then .is-visible once
   they scroll into view. Stagger comes from an inline transition-delay. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero copy eases up on load */
@keyframes bc-hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-content > * {
  animation: bc-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > *:nth-child(3) { animation-delay: 0.23s; }
.hero-content > *:nth-child(4) { animation-delay: 0.32s; }

/* Micro-interactions */
.btn {
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(232, 163, 61, 0.35); }

.card.service-card { overflow: hidden; }
.card.service-card .service-photo { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.card.service-card:hover .service-photo { transform: scale(1.05); }
.service-icon { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.card.service-card:hover .service-icon { transform: translateY(-2px) rotate(-4deg); }

.trust-strip .trust-item { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.trust-strip .trust-item:hover { transform: translateY(-3px); box-shadow: var(--bc-shadow-hover); }

.logo-marquee-item { transition: opacity 0.2s, filter 0.2s, transform 0.2s; }
.logo-marquee-item:hover { transform: scale(1.06); }

.navbar-nav .nav-link { position: relative; transition: color 0.15s ease; }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--bc-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.nav-cta::after { display: none; }

.chat-toggle { animation: bc-chat-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes bc-chat-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .hero-content > *,
  .chat-toggle {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .card.service-card:hover .service-photo,
  .card.service-card:hover .service-icon,
  .trust-strip .trust-item:hover { transform: none; }
}

/* Honeypot field — visually and programmatically hidden from real users;
   only bots that fill every field will populate it. */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Sticky navigation ---------- */

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar.sticky-top.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* ---------- Page-header photo band (pages that have no hero) ---------- */

.page-header.has-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-header.has-photo .page-header-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Keep the photo clearly visible — just enough tint on the left, where the
   text sits, for the white type to stay legible. */
.page-header.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(6, 30, 53, 0.78) 0%, rgba(9, 42, 72, 0.5) 42%, rgba(13, 59, 102, 0.16) 100%);
}
.page-header.has-photo h1,
.page-header.has-photo p,
.page-header.has-photo .eyebrow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ---------- Dark appearance component tweaks ---------- */

@media (prefers-color-scheme: dark) {
  .btn-outline-navy {
    border-color: var(--bc-border-strong);
    color: var(--bc-ink);
  }
  .btn-outline-navy:hover {
    background-color: var(--bc-navy-light);
    border-color: var(--bc-navy-light);
    color: #fff;
  }

  .section-eyebrow,
  .accreditors-label,
  .accreditation-badge,
  .service-category-icon,
  .info-card .info-row .bi {
    color: var(--bc-amber);
  }

  .service-more { color: #9cc4e8; }
  .service-more:hover { color: var(--bc-amber); }

  .status-badge {
    background: rgba(109, 179, 242, 0.16);
    color: #cfe4fb;
  }

  .form-control,
  .form-select {
    background-color: var(--bc-surface-2);
    border-color: var(--bc-border);
    color: var(--bc-ink);
  }
  .form-control::placeholder { color: #7f93a5; }
  .form-control:focus,
  .form-select:focus {
    background-color: var(--bc-surface-2);
    border-color: var(--bc-navy-light);
    color: var(--bc-ink);
    box-shadow: 0 0 0 0.2rem rgba(109, 179, 242, 0.2);
  }
  .form-check-input {
    background-color: var(--bc-surface-2);
    border-color: var(--bc-border-strong);
  }

  .table {
    --bs-table-color: var(--bc-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bc-border);
    color: var(--bc-ink);
  }
  .table > :not(caption) > * > * { background-color: transparent; }

  .alert-danger {
    background-color: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.4);
    color: #f2b8bd;
  }
  .alert-success {
    background-color: rgba(25, 135, 84, 0.16);
    border-color: rgba(25, 135, 84, 0.4);
    color: #a7e0c4;
  }
}

/* ---------- Live chat widget ---------- */

.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.chat-toggle {
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bc-amber);
  color: var(--bc-navy-dark);
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.chat-toggle:hover { background: var(--bc-amber-dark); color: #fff; transform: translateY(-2px); }
.chat-panel {
  width: min(360px, calc(100vw - 2.5rem));
  background: var(--bc-surface);
  color: var(--bc-ink);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  background: linear-gradient(135deg, var(--bc-navy-dark), var(--bc-navy));
  color: #fff;
  padding: 0.9rem 1rem;
}
.chat-panel-head h6 { color: #fff; margin: 0; font-size: 0.95rem; }
.chat-panel-head p { margin: 0.15rem 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }
.chat-body {
  padding: 1rem;
  max-height: 45vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.chat-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  max-width: 85%;
  line-height: 1.4;
}
.chat-msg.them {
  background: var(--bc-surface-2);
  border: 1px solid var(--bc-border);
  align-self: flex-start;
  border-bottom-left-radius: 0.2rem;
}
.chat-msg.me {
  background: var(--bc-navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
}
.chat-note { font-size: 0.78rem; color: var(--bc-muted); align-self: center; text-align: center; }
.chat-form {
  border-top: 1px solid var(--bc-border);
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.chat-form.identify { grid-template-columns: 1fr 1fr; }
.chat-form .chat-send { grid-column: 1 / -1; }
.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--bc-border);
  border-radius: 0.4rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  background: var(--bc-surface);
  color: var(--bc-ink);
}
.chat-form textarea { resize: vertical; min-height: 2.4rem; }
