/* Shared photo hero for the home, training and sector pages.
   Page templates own the copy; HeroPhoto.html and HeroContact.html own the shared assets.
   All colors follow ThemeCore's root attribute, without page-specific overrides. */
.hero {
  --hero-bg: #f7f8fc;
  --hero-text: #182033;
  --hero-muted: #515d72;
  --hero-accent: #6d28d9;
  --hero-border: #ddd8ec;
  --hero-soft: #eee8fa;
  --hero-card: #ffffff;
  --hero-field: #f9f8fc;
  position: relative;
  padding: 0;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme='dark'] .hero {
  --hero-bg: #0d1020;
  --hero-text: #f5f3ff;
  --hero-muted: #c4c9dc;
  --hero-accent: #c4b5fd;
  --hero-border: #33364e;
  --hero-soft: #24203e;
  --hero-card: #181c30;
  --hero-field: #101426;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    'breadcrumb breadcrumb'
    'content photo'
    'contact contact';
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--hero-border);
  background: var(--hero-card);
}

.hero__content,
.hero__media,
.hero__contact {
  min-width: 0;
}

.hero__content {
  grid-area: content;
  padding: 1.75rem clamp(1.25rem, 4vw, 4rem) 2rem;
}

.hero__media {
  grid-area: photo;
  min-height: 360px;
}
.hero__contact {
  grid-area: contact;
}

.hero__message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 44rem;
}

.hero__breadcrumb {
  grid-area: breadcrumb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--hero-border);
  color: var(--hero-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero__breadcrumb a {
  color: var(--hero-accent);
  text-decoration: none;
}

.hero__breadcrumb a:hover {
  text-decoration: underline;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--hero-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: '';
  flex: 0 0 0.4rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 0 4px var(--hero-soft);
}

.hero__title {
  margin: 0;
  color: var(--hero-text);
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero__title > span {
  display: block;
}
.hero__title > span + span {
  color: var(--hero-accent);
}

.hero__intro {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  color: var(--hero-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero__bullets {
  display: grid;
  gap: 0.4rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__bullets li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--hero-text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hero-accent);
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.hero__button,
.hero__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero__button--primary,
.hero__submit {
  background: #6d28d9;
  color: #ffffff;
  box-shadow: 0 6px 16px rgb(109 40 217 / 16%);
}

.hero__button--primary:hover,
.hero__submit:hover {
  background: #5b21b6;
}

.hero__button--secondary {
  border-color: var(--hero-border);
  background: var(--hero-card);
  color: var(--hero-text);
}

.hero__button--secondary:hover {
  background: var(--hero-soft);
}

.hero :is(a, button, input, select):focus-visible {
  outline: 3px solid var(--hero-accent);
  outline-offset: 3px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--hero-border);
  list-style: none;
  max-width: 44rem;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--hero-text);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero__facts :is(i, .hero__fact-icon) {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--hero-soft);
  color: var(--hero-accent);
}

.hero__fact-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* The desktop photo fills the content row; mobile keeps the natural ratio. */
.hero__photo {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--hero-card);
}

.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* A dark scrim keeps the caption readable on any part of the photo. */
.hero__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 8, 28, 0.72), rgba(10, 8, 28, 0));
  pointer-events: none;
}

/* Frosted label: the role reads as an eyebrow above the names (column-reverse keeps DOM order). */
.hero__caption {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column-reverse;
  gap: 0.3rem;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.25rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(20, 16, 44, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -20px rgba(8, 6, 24, 0.75);
  color: #ffffff;
  line-height: 1.2;
}

.hero__caption span:first-child {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__caption span + span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__caption span + span::before {
  content: '';
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.hero__contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--hero-border);
  background: var(--hero-bg);
  color: var(--hero-text);
}

.hero__contact-heading .hero__contact-title {
  margin: 0;
  color: var(--hero-text);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero__contact-heading p {
  margin: 0.6rem 0 0;
  color: var(--hero-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero__contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero__field {
  min-width: 0;
}
.hero__submit {
  align-self: end;
}

.hero__field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--hero-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
}

.hero__control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--hero-border);
  border-radius: 8px;
  background: var(--hero-field);
  color: var(--hero-text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hero__control::placeholder {
  color: var(--hero-muted);
  opacity: 1;
}
.hero__submit {
  width: 100%;
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: 'breadcrumb' 'content' 'photo' 'contact';
  }
  .hero__media {
    width: 100%;
  }
  .hero__content {
    padding: 1.5rem 2rem 2rem;
  }
  .hero__photo {
    height: auto;
  }
  .hero__image {
    position: static;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .hero__contact-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero__contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__title {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
  }
}

@media (max-width: 640px) {
  .hero__breadcrumb {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
  }
  .hero__content {
    padding: 1.25rem;
  }
  .hero__media {
    min-height: 0;
  }
  .hero__title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
  .hero__intro {
    font-size: 1rem;
  }
  .hero__button {
    width: 100%;
  }
  .hero__facts {
    gap: 1rem;
  }
  .hero__contact-card {
    padding: 1.1rem;
  }
  .hero__contact-form {
    grid-template-columns: 1fr;
  }
  .hero__control {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .hero__facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__button,
  .hero__submit {
    transition: none;
  }
}
