@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bs-primary: #24344a;
  --brand-primary: #24344a;
  --brand-copper: #B48363;
  --brand-copper-light: #F2E3D8;
  --brand-blue-1: #52627B;
  --brand-blue-2: #A3ACBA;
  --brand-blue-3: #223246;
}

/*
 Basis-Styles für Makuna Hatata
 -------------------------------
 Aufbau und Komponenten stammen aus dem Eyestein-Projekt, wurden aber
 für Moderation, Trauungen und Trauerreden angepasst.
 */

body {
  background-color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0.75rem 1.5rem rgba(47, 62, 84, 0.18);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a6a6a6;
  position: relative;
  padding-right: 1.75rem;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #ffffff;
}

.navbar-brand .brand-title {
  white-space: nowrap;
  font-size: 0.95rem;
  color: #a6a6a6;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2.5rem;
  background-color: rgba(180, 131, 99, 0.75);
  border-radius: 999px;
  display: none;
}

/* Ensure injected navbar stays pinned when scrolling */
.navbar,
.navbar.bg-body-tertiary {
  background-color: #24344a !important;
  background-image: none !important;
}

.navbar.sticky-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  box-shadow: 0 0.75rem 1.25rem rgba(15, 23, 42, 0.18);
}

.navbar .nav-link,
.navbar .dropdown-item {
  color: #a6a6a6;
  font-weight: 500;
}

.navbar-toggler {
  border-color: var(--brand-copper);
  color: var(--brand-copper);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(180, 131, 99, 0.35);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(180,131,99,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 0.18rem;
  background: var(--brand-copper);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 999px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--brand-copper);
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-divider {
  display: none !important;
}

.navbar-slogan {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-copper);
  opacity: 0.8;
  white-space: nowrap;
  margin-left: auto;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.navbar-collapse {
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .navbar-slogan {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    letter-spacing: 0.2em;
  }

  .navbar-brand {
    padding-right: 0;
  }
}

@media (max-width: 575.98px) and (orientation: portrait) {
  /* Hide brand text on narrow portrait screens to keep navbar clean */
  .navbar-brand .brand-title {
    display: none;
  }
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(47, 62, 84, 0.12);
  color: var(--bs-primary);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background-color: rgba(47, 62, 84, 0.12);
  color: var(--bs-primary);
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: none;
    margin-top: 0;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
  }

  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .navbar .dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .navbar-brand::after {
    display: block;
  }

  .navbar-divider {
    display: inline-block;
  }
}

.navbar-nav {
  margin-left: 0 !important;
}

@media (min-width: 992px) {
  .navbar-nav {
    margin-left: 0 !important;
  }
}

.hero {
  position: relative;
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(4rem, 7vw, 5.5rem);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, rgba(47,62,84,0.12), rgba(180,131,99,0.16));
}

.hero-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3px);
}

.hero-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.75rem 3.5rem rgba(47, 62, 84, 0.2);
  isolation: isolate;
}

.hero-visual img {
  width: 100%;
  display: block;
  filter: saturate(1.03) contrast(0.97) brightness(1.02);
}

.hero-visual .hero-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(47, 62, 84, 0.32), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(180, 131, 99, 0.28), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  pointer-events: none;
}

.hero-extra {
  margin-top: 1rem;
}

.hero-content.text-center .hero-extra {
  text-align: left;
}

.hero-content .hero-toggle {
  font-weight: 600;
}

.hero-content.text-center .hero-toggle {
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-content h1,
.hero.hero--compact .hero-content h1 {
  color: var(--bs-primary);
}

.hero.hero--compact {
  padding: clamp(4.75rem, 7vw, 6rem) 0 clamp(3.25rem, 6vw, 4.5rem);
  margin-top: clamp(3.25rem, 5vw, 4.25rem);
  background: linear-gradient(135deg, rgba(47,62,84,0.08), rgba(180,131,99,0.12));
}

.hero.hero--compact .hero-content {
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 720px;
}

.hero.hero--compact .hero-content.hero-content--wide {
  max-width: 980px;
}

.hero.hero--compact .hero-content p {
  margin-bottom: 0;
}

.nowrap-lg {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .nowrap-lg {
    white-space: normal;
  }
}

.hero-title {
  font-weight: 600;
}

.hero-title--compact {
  font-size: clamp(1.25rem, 2.75vw, 1.8rem);
  line-height: 1.25;
}

.hero-title--wide {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.2;
}

.hero-lead--compact {
  font-size: clamp(0.95rem, 1.75vw, 1.15rem);
}

.hero .hero-visual {
  max-width: clamp(18rem, 38vw, 26rem);
}

.hero .hero-visual img {
  width: 100%;
  object-position: center 20%;
}

.trait-step {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(36, 52, 74, 0.1);
}

.trait-step:last-child {
  border-bottom: none;
}

.trait-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(36, 52, 74, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
  flex-shrink: 0;
}


@media (min-width: 992px) {
  .hero .hero-visual {
    height: clamp(22rem, 40vw, 31rem);
    max-width: clamp(22rem, 40vw, 32rem);
  }

  .hero .hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
}

.team {
  background: #f9fafb;
  position: relative;
}

.team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 960px;
  height: 2px;
  background: linear-gradient(90deg, rgba(47,62,84,0), rgba(180,131,99,0.45), rgba(47,62,84,0));
}

.team-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow:
    0 1rem 2.5rem rgba(15, 23, 42, 0.12),
    0 1.75rem 4rem rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem;
  gap: 1.25rem;
}

.team-logo {
  width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(47,62,84,0.22), rgba(180,131,99,0.25));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 1.25rem 3rem rgba(47, 62, 84, 0.18);
}

.team-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.team-image {
  width: 25%;
  min-width: 140px;
}

.team-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.team-body {
  padding: 0;
}

.team-body p {
  color: rgba(128, 133, 143, 0.72);
}

.image-panel {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-panel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-panel .image-panel-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.image-panel .image-panel-body p {
  color: rgba(17, 24, 39, 0.7);
  margin-bottom: 0;
}

.image-panel .image-panel-body .badge {
  align-self: flex-start;
  background: rgba(180, 131, 99, 0.15);
  color: var(--brand-copper);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.1);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.gallery-card:focus {
  outline: 0;
  box-shadow: 0 0 0 0.35rem rgba(180, 131, 99, 0.25);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card .gallery-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-card .badge {
  align-self: flex-start;
  background: rgba(180, 131, 99, 0.15);
  color: var(--bs-primary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.recruitment-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(420px, calc(100% - 3rem));
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 1.75rem 3.75rem rgba(15, 23, 42, 0.24);
  border: 2px solid var(--bs-primary);
  padding: 2.25rem;
  z-index: 1080;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.recruitment-popup.hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.recruitment-popup .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recruitment-popup .popup-header h3 {
  margin-bottom: 0;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--bs-primary);
  display: inline-flex;
}

.recruitment-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bs-primary);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.2);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 1070;
}

.recruitment-tab.visible {
  display: flex;
}

.recruitment-tab:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(180, 131, 99, 0.35);
}

.gallery-modal .modal-content {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
}

.gallery-modal img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.arrival-section {
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6fb 100%);
}

.arrival-card {
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
  height: 100%;
}

.arrival-card .card-body {
  padding: clamp(2.5rem, 6vw, 3.5rem);
}

.arrival-card .form-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.arrival-card .form-control,
.arrival-card .form-select {
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  border-color: rgba(15, 23, 42, 0.12);
}

.arrival-card .btn {
  border-radius: 999px;
  padding-inline: 1.75rem;
}

.arrival-details .detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.arrival-details .detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.arrival-details .detail-body {
  flex: 1;
}

.arrival-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.arrival-links .btn {
  border-radius: 0.85rem;
  padding-inline: 1.25rem;
}

.amsler-section {
  background: #ffffff;
}

.amsler-card {
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.08);
  padding: clamp(2.5rem, 6vw, 3.5rem);
}

.amsler-grid {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  border: 2px solid rgba(15, 23, 42, 0.12);
  background-image:
    repeating-linear-gradient(to right, rgba(15, 23, 42, 0.18) 0, rgba(15, 23, 42, 0.18) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(to bottom, rgba(15, 23, 42, 0.18) 0, rgba(15, 23, 42, 0.18) 1px, transparent 1px, transparent 20px);
  box-shadow: inset 0 1rem 2rem rgba(15, 23, 42, 0.08);
  margin: 0 auto;
}

.amsler-grid::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}

.amsler-instructions li {
  margin-bottom: 0.75rem;
}

.amsler-instructions li:last-child {
  margin-bottom: 0;
}

.amsler-modal-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-radius: 1.5rem;
  background-image:
    repeating-linear-gradient(to right, rgba(15, 23, 42, 0.22) 0, rgba(15, 23, 42, 0.22) 1px, transparent 1px, transparent 25px),
    repeating-linear-gradient(to bottom, rgba(15, 23, 42, 0.22) 0, rgba(15, 23, 42, 0.22) 1px, transparent 1px, transparent 25px);
  box-shadow: inset 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
  max-width: 520px;
  margin: 0 auto;
}

.amsler-modal-grid::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 12px;
  height: 12px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.45);
}

.selftest-card {
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.08);
  padding: clamp(2.25rem, 5vw, 3.25rem);
  height: 100%;
}

.selftest-card h3 {
  font-weight: 600;
}

.selftest-tip {
  background: linear-gradient(135deg, rgba(47, 62, 84, 0.92), rgba(26, 37, 51, 0.95));
  color: #ffffff;
  box-shadow: 0 1.5rem 3rem rgba(47, 62, 84, 0.35);
}

.selftest-tip .badge {
  color: var(--bs-primary) !important;
}

.selftest-tip .btn {
  border-radius: 999px;
  border-width: 2px;
  padding-inline: 1.5rem;
}

.selftest-tip .btn:hover,
.selftest-tip .btn:focus {
  color: var(--bs-primary);
  background: #ffffff;
}

.acuity-chart {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f9fafc;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
  font-family: 'Poppins', Arial, sans-serif;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acuity-chart::-webkit-scrollbar {
  display: none;
}

.acuity-line {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  color: rgba(15, 23, 42, 0.85);
  padding-left: clamp(5rem, 8vw, 6.5rem);
  white-space: nowrap;
}

.acuity-line::before {
  content: attr(data-label);
  position: absolute;
  inset: 50% auto auto 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(15, 23, 42, 0.6);
}

.acuity-line[data-size="1.0"] {
  font-size: 1.9rem;
  font-weight: 600;
}

.acuity-line[data-size="0.7"] {
  font-size: 1.5rem;
  font-weight: 600;
}

.acuity-line[data-size="0.5"] {
  font-size: 1.25rem;
  font-weight: 500;
}

.acuity-line[data-size="0.3"] {
  font-size: 1rem;
  font-weight: 500;
}

.acuity-line[data-size="0.1"] {
  font-size: 0.85rem;
  font-weight: 500;
}

.contrast-bars {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.contrast-bar {
  position: relative;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.contrast-bar::before {
  content: attr(data-label);
  position: absolute;
  inset: 50% auto auto 1rem;
  transform: translateY(-50%);
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
}

.contrast-bar[data-level="1"] {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(241, 245, 249, 0.1) 100%);
}

.contrast-bar[data-level="2"] {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(241, 245, 249, 0.1) 100%);
}

.contrast-bar[data-level="3"] {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(241, 245, 249, 0.1) 100%);
}

.contrast-bar[data-level="4"] {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.28) 60%, rgba(241, 245, 249, 0.1) 100%);
}

.contrast-bar[data-level="5"] {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.18) 60%, rgba(241, 245, 249, 0.1) 100%);
}

.dryeye-form .form-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.dryeye-form .form-select {
  border-radius: 0.85rem;
  border-color: rgba(15, 23, 42, 0.12);
  padding: 0.65rem 1rem;
}

.dryeye-form .btn {
  border-radius: 999px;
  padding-inline: 1.75rem;
}

.dryeye-result {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.contact-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.contact-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 2rem 4rem rgba(5, 10, 24, 0.28);
}

@media (max-width: 576px) {
  .contact-inner {
    border-radius: 0;
    padding: clamp(3rem, 9vw, 4rem) clamp(1.25rem, 6vw, 2.5rem);
    box-shadow: 0 1.25rem 2.5rem rgba(5, 10, 24, 0.22);
  }
}

.contact-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) blur(0.4px);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 50%, rgba(12, 18, 32, 0.45), rgba(12, 18, 32, 0.1) 55%, transparent 78%),
    linear-gradient(135deg, rgba(248, 253, 255, 0.32), rgba(215, 227, 244, 0.12)),
    radial-gradient(circle at 25% 25%, rgba(47, 62, 84, 0.22), transparent 65%),
    radial-gradient(circle at 75% 75%, rgba(162, 175, 191, 0.22), transparent 70%);
  z-index: 1;
  border-radius: inherit;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: rgba(15, 22, 38, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  box-shadow: 0 1.5rem 3rem rgba(5, 10, 24, 0.28);
  backdrop-filter: blur(10px);
  max-width: 420px;
  color: #f8fbff;
}

.contact-card h2 {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card p {
  font-size: 1.125rem;
}

.legal-text {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-text h2,
.legal-text h3,
.legal-text h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-text p {
  margin-bottom: 1rem;
}

.legal-text ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-text ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
  .hero-content {
    padding: 2rem 1.5rem;
  }

  .navbar-brand {
    gap: 0.75rem;
  }

  .navbar-brand .brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(36, 52, 74, 0.6);
}

.navbar-brand .brand-title {
    font-size: 0.85rem;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .team-logo {
    margin: 1rem 0;
  }

  .image-panel img {
    height: 200px;
  }

  .gallery-card img {
    height: 200px;
  }
  
  .gallery-modal img {
    height: 260px;
  }

  .recruitment-popup {
    right: 1.5rem;
    width: min(420px, calc(100% - 3rem));
    padding: 2rem;
  }

  .recruitment-tab {
    top: auto;
    bottom: 2rem;
    transform: none;
  }

  .contact-inner {
    padding: 4rem clamp(1rem, 6vw, 2.5rem);
    border-radius: 1.5rem;
  }

  .contact-card {
    padding: 2rem 2.25rem;
  }
}

@media (max-width: 575.98px) {
  .contact-inner {
    padding: 3rem 1rem;
  }

  .contact-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-card p {
    font-size: 1rem;
  }

  .navbar-brand {
    gap: 0.6rem;
  }

  .navbar-brand .brand-title {
    font-size: 0.78rem;
  }

  .image-panel img {
    height: 180px;
  }

  .gallery-card img {
    height: 180px;
  }

  .gallery-modal img {
    height: 220px;
  }

  .recruitment-popup {
    left: 1rem;
    right: 1rem;
    width: auto;
    padding: 1.75rem;
  }

  .recruitment-tab {
    bottom: 1.5rem;
  }
}

.section-title {
  border-left: 6px solid var(--brand-copper);
  padding-left: 0.6rem;
  margin: 2rem 0 1rem;
}

.section-title.section-title--compact {
  margin-top: 0;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-copper);
  margin-bottom: 0.6rem;
}

.story-portrait {
  padding: 1.5rem;
  border-radius: 1.6rem;
  background: linear-gradient(150deg, rgba(36, 52, 74, 0.08), rgba(180, 131, 99, 0.18));
  box-shadow: 0 1.4rem 2.4rem rgba(15, 23, 42, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-portrait img {
  width: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.15);
}

.story-portrait-img {
  flex: 1 1 auto;
  height: 100%;
  object-fit: cover;
}

.story-caption {
  margin-top: 1.25rem;
  text-align: center;
}

.story-split--surprise {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 2rem;
  background: linear-gradient(140deg, rgba(36, 52, 74, 0.08), rgba(180, 131, 99, 0.14));
  overflow: hidden;
}

.story-split--surprise::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(180, 131, 99, 0.35), rgba(180, 131, 99, 0));
  pointer-events: none;
}

.story-portrait.story-portrait--surprise {
  position: relative;
  height: 100%;
  padding: 0;
  border-radius: 1.8rem;
  overflow: hidden;
  background: #1f2a3a;
  box-shadow: 0 1.6rem 2.6rem rgba(15, 23, 42, 0.18);
}

.story-portrait--surprise .story-portrait-img {
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.story-portrait-tag {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
}

.story-portrait-name {
  display: block;
  font-weight: 700;
  color: var(--brand-primary);
}

.story-portrait-role {
  display: block;
  font-size: 0.9rem;
  color: #5f6c7a;
}

.story-panel {
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border-radius: 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(36, 52, 74, 0.08);
  box-shadow: 0 1.6rem 2.6rem rgba(15, 23, 42, 0.12);
}

.story-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-copper);
  margin-bottom: 0.65rem;
}

.story-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.story-highlight {
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  background: rgba(36, 52, 74, 0.08);
  font-weight: 600;
}

.story-signoff {
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.photo-belt {
  padding: 1.5rem 0;
  overflow: hidden;
}

.photo-belt-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 1rem;
  align-items: center;
}

.photo-belt-item {
  height: clamp(140px, 22vw, 200px);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(36, 52, 74, 0.15), rgba(180, 131, 99, 0.2));
  border: 1px dashed rgba(36, 52, 74, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.photo-belt-item img,
.photo-belt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.photo-belt-img--top {
  object-position: center 15%;
}

.story-textblock {
  position: relative;
}

.story-card {
  padding: clamp(2rem, 4vw, 2.8rem);
  border-radius: 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(36, 52, 74, 0.08);
  box-shadow: 0 1.6rem 2.6rem rgba(15, 23, 42, 0.12);
}

@media (max-width: 767.98px) {
  .photo-belt-track {
    grid-auto-columns: minmax(120px, 1fr);
  }
}

@media (max-width: 991.98px) {
  .story-split--surprise {
    padding: 1.5rem;
  }

  .story-portrait-tag {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

.story-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(36, 52, 74, 0.05);
  color: var(--brand-primary);
}

.value-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.value-item {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(36, 52, 74, 0.1);
  background: #ffffff;
  box-shadow: 0 0.6rem 1.2rem rgba(15, 23, 42, 0.06);
}

.timeline {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(36, 52, 74, 0.04);
}

.timeline-header {
  margin-bottom: 1.5rem;
}

.timeline-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.timeline-item {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(36, 52, 74, 0.08);
  box-shadow: 0 1rem 1.8rem rgba(15, 23, 42, 0.08);
}

.cooperation-card {
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(36, 52, 74, 0.08);
  box-shadow: 0 1.1rem 2rem rgba(15, 23, 42, 0.08);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(36, 52, 74, 0.08);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.link-cards {
  margin-top: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(36, 52, 74, 0.08), rgba(180, 131, 99, 0.12));
  border: 1px solid rgba(36, 52, 74, 0.1);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover,
.link-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 1rem 1.8rem rgba(15, 23, 42, 0.12);
  color: inherit;
}

.link-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.link-card-text {
  font-size: 0.95rem;
  color: #5f6c7a;
}

@media (max-width: 991.98px) {
  .timeline {
    padding: 2rem 1.5rem;
  }

  .cooperation-card {
    padding: 2rem 1.5rem;
  }
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  font-weight: 600;
}

.btn-outline-primary {
  color: var(--brand-copper);
  border-color: var(--brand-copper);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand-copper);
  border-color: var(--brand-copper);
  color: #ffffff;
}

.badge.bg-primary-subtle {
  background-color: rgba(180, 131, 99, 0.12) !important;
  color: var(--brand-copper) !important;
  border: 1px solid rgba(180, 131, 99, 0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  background: #f9fafb;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 3rem;
}
.accent-underline {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.25em;
  background: rgba(180, 131, 99, 0.38);
  border-radius: 999px;
  transform: translateY(0.2em);
  pointer-events: none;
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 4.5rem) 0 2rem;
}

.page-hero .lead {
  color: var(--text-muted);
}
