/* MIH Adventure — Make It Happen */

:root {
  --color-river: #1a6b8a;
  --color-river-dark: #0f4a62;
  --color-forest: #2d5a3d;
  --color-accent: #ffa94b;
  --color-accent-hover: #e8922e;
  --color-text: #2c3e50;
  --color-text-muted: #5a6c7d;
  --color-bg: #f7f9fb;
  --color-white: #ffffff;
  --shadow-soft: 0 4px 24px rgba(26, 107, 138, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --font-main: "Montserrat", "Segoe UI", sans-serif;
  --nav-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */

.full-width-image {
  position: relative;
  min-height: 72vh;
  background: url("../img/fon.jpg") center center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 74, 98, 0.72) 0%,
    rgba(45, 90, 61, 0.55) 50%,
    rgba(26, 107, 138, 0.65) 100%
  );
}

.middle {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 900px;
}

.title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
}

/* ── Navbar ── */

#navbarcontainer {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

#navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  min-height: var(--nav-height);
  border-bottom: 3px solid var(--color-accent);
}

#navbar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-river-dark) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

#navbar .nav-link:hover {
  color: var(--color-accent) !important;
  background: rgba(255, 169, 75, 0.1);
}

#navbar .nav-item.active .nav-link {
  color: var(--color-accent) !important;
  background: rgba(255, 169, 75, 0.15);
}

#navbar .navbar-nav.ml-auto li {
  list-style: none;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

#navbar .navbar-nav.ml-auto li:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

#navbar .navbar-toggler {
  border-color: var(--color-river);
}

#navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%231a6b8a' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Content ── */

.container {
  max-width: 960px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

#summary {
  margin-bottom: 1rem;
}

.adventure-summary {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--color-river-dark);
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 0;
  background: linear-gradient(135deg, rgba(26, 107, 138, 0.08), rgba(255, 169, 75, 0.08));
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  line-height: 1.6;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-river-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.container > .row + .row h1:first-child,
.container > .row h1 {
  margin-top: 2.5rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

/* ── Images ── */

.img-center {
  text-align: center;
  margin: 2rem 0;
}

.content-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.profile-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.profile-chapter {
  padding-right: 1.5rem;
}

.profile-chapter--accent::before {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  min-height: 80px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--color-accent), var(--color-river));
  border-radius: 2px;
}

@media (min-width: 768px) {
  .profile-chapter--accent {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }
}

/* ── Call-to-action text ── */

.text-center.subtitle {
  color: var(--color-river-dark) !important;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: none;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 169, 75, 0.15), rgba(26, 107, 138, 0.1));
  border-radius: var(--radius);
}

/* ── Profile page ── */

body.profile-page .container {
  margin-top: 0 !important;
}

body.profile-page h1 {
  margin-top: 0;
}

body.profile-page .row.align-items-center {
  margin-top: 2rem;
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .full-width-image {
    min-height: 55vh;
    background-attachment: scroll;
  }

  .middle {
    padding: 1.5rem 1rem;
  }

  .adventure-summary {
    padding: 1.2rem 1rem;
  }

  .container {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .profile-chapter {
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .profile-image {
    aspect-ratio: 16 / 10;
  }

  #navbar .nav-link {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .container > .row {
    margin-bottom: 0.5rem;
  }
}

/* ── Wayback polyfill fallback ── */

body:not(.loaded) .full-width-image {
  opacity: 1;
}
