.bg-grey {
  background-color: rgba(120, 120, 120, 0.1);
}

.bg-circle {
  background: radial-gradient(rgba(51, 153, 204, 0.1) 0%, rgba(51, 153, 204, 0.1) 70%, transparent 70.15%),
    radial-gradient(rgba(51, 153, 204, 0.1) 0%, rgba(51, 153, 204, 0.1) 55%, transparent 55.15%);
  background-size: 800px 800px, 800px 800px;
  background-repeat: no-repeat, no-repeat;
  background-position: -200px -450px, -200px -450px;
}

.bg-circle-red {
  background: radial-gradient(rgba(204, 51, 64, 0.1) 0%, rgba(204, 51, 64, 0.1) 70%, transparent 70.15%),
    radial-gradient(rgba(204, 51, 64, 0.1) 0%, rgba(204, 51, 64, 0.1) 55%, transparent 55.15%);
  background-size: 800px 800px, 800px 800px;
  background-repeat: no-repeat, no-repeat;
  background-position: -200px -450px, -200px -450px;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-regular.woff2') format('woff2'),
    url('../fonts/merriweather-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-bold.woff2') format('woff2'),
    url('../fonts/merriweather-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.merriweather {
  font-family: 'Merriweather', serif;
}

.lead {
  font-size: 2rem;
}

/* ---- Masthead ---- */

.masthead-beta2 {
  position: relative;
  background-color: #faf7f2;
  background-image: url('../img/header-boxes.webp');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.masthead-beta2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 247, 242, 0.92) 0%,
    rgba(250, 247, 242, 0.7) 45%,
    rgba(250, 247, 242, 0.15) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.masthead-beta2 > * {
  position: relative;
  z-index: 1;
}

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

.hero-layout {
  padding: 3rem 0 4rem;
}

.hero-row {
  row-gap: 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Entrance animation ---- */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  opacity: 0;
  animation: heroFadeUp 0.65s ease-out forwards;
}

.hero-content > :nth-child(1) { animation-delay: 0.06s; }
.hero-content > :nth-child(2) { animation-delay: 0.16s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero-content > :nth-child(4) { animation-delay: 0.44s; }
.hero-content > :nth-child(5) { animation-delay: 0.58s; }

.hero-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.1s forwards;
}

/* ---- Eyebrow ---- */

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}

/* ---- Heading ---- */

.hero-heading {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  color: #1a1a1a;
  margin: 0;
}

.hero-heading-sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-top: 0.55rem;
  line-height: 1.45;
}

/* ---- Body text ---- */

.hero-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1a1a1a;
  max-width: 420px;
  margin: 0;
}

/* ---- Organic blob ---- */

.hero-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    ellipse at 42% 46%,
    rgba(163, 181, 160, 0.38),
    rgba(163, 181, 160, 0.1) 72%,
    transparent 100%
  );
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  z-index: 0;
  animation: blobMorph 18s ease-in-out infinite;
}

@keyframes blobMorph {
  0%, 100% {
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 45% 55% 58% 42% / 52% 62% 38% 48%;
    transform: rotate(4deg) scale(1.05);
  }
  66% {
    border-radius: 55% 45% 40% 60% / 48% 38% 62% 52%;
    transform: rotate(-3deg) scale(0.96);
  }
}

/* ---- Kitten ---- */

.hero-kitten {
  position: relative;
  z-index: 1;
  width: 200px;
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.hero-kitten:hover {
  transform: rotate(0deg) scale(1.05);
}

/* ---- Job ad card ---- */

.hero-job {
  background: #fff;
  border-left: 4px solid #C17F59;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  max-width: 420px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.hero-job-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C17F59;
  margin: 0 0 0.3rem;
}

.hero-job-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.hero-job-desc {
  font-size: 1rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.55;
}

.hero-job-desc a {
  color: #C17F59;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.hero-job-desc a:hover {
  border-bottom-color: #C17F59;
}

/* ---- CTA buttons ---- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.hero-btn-primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.hero-btn-primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn-outline {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.hero-btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---- Accessibility: reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-visual {
    animation: none;
    opacity: 1;
  }
  .hero-blob {
    animation: none;
  }
  .hero-btn,
  .hero-kitten {
    transition: none;
  }
}

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

@media (min-width: 992px) {
  .hero-heading {
    font-size: 3.5rem;
  }
  .hero-heading-sub {
    font-size: 1.35rem;
  }
  .hero-kitten {
    width: 270px;
  }
  .hero-blob {
    width: 370px;
    height: 370px;
  }
}

@media (max-width: 991px) {
  .hero-visual {
    margin-bottom: 0.25rem;
  }
  .hero-kitten {
    width: 150px;
  }
  .hero-blob {
    width: 210px;
    height: 210px;
  }
  .hero-layout {
    padding-top: 0.75rem;
  }
}

img.logo {
  max-height: 400px;
  max-width: 200px;
  height: auto;
  width: auto;
}

.navbar-toggler {
  border: none !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

.navbar-toggler:focus-visible {
  outline: 2px solid #212529;
  outline-offset: 2px;
}

.praxis-collage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.praxis-collage-item {
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  display: block;
  overflow: hidden;
}

.praxis-collage-item img {
  display: block;
  height: 280px;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .praxis-collage-item img {
    height: 380px;
  }
}

.praxis-collage-item:hover img {
  transform: scale(1.02);
}

.praxis-image-modal .modal-dialog {
  max-width: 1100px;
}

.praxis-image-modal .modal-content {
  background-color: transparent;
  border: 0;
}

.service-text {
  hyphens: auto;
  text-align: justify;
}

.map-frame {
  border: 0;
}

@media (min-width: 768px) {
  .praxis-collage {
    align-items: start;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}
