/* ============================================
   FONTS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&family=Raleway:wght@300;400;500&display=swap');

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  background-color: #f7f5f0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================
   COLOURS & LINKS
   ============================================ */

a {
  color: #0d4a52;
}

a:hover {
  color: #1a7070;
}

/* ============================================
   HEADER
   ============================================ */

.header-section:not(:has(h1)):not(:has(h2)) {
  display: none !important;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background-color: #0a2828 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

.navbar-brand {
  display: none;
}

.navbar .nav-link {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e0f0d0 !important;
}

.navbar .nav-link:hover {
  color: #1a7070 !important;
}

/* Split navbar layout */
.navbar-split-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
  padding-right: 80px;
}

.nav-right {
  justify-content: flex-start;
  padding-left: 80px;
}

/* Avatar spacer */
.avatar-spacer {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small scroll avatar */
.navbar-scroll-avatar-link {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-scroll-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none !important;
  object-fit: cover;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

nav.top-nav-short .navbar-scroll-avatar {
  opacity: 1;
  visibility: visible;
}

/* Large avatar */
.avatar-container {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

nav.top-nav-short .avatar-container {
  opacity: 0;
  visibility: hidden;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #0a2828 !important;
  color: #e0f0d0 !important;
  padding-top: 40px !important;
  margin-top: 0 !important;
}

.beautiful-jekyll-footer .container-md,
.beautiful-jekyll-footer .row,
.beautiful-jekyll-footer .col-xl-8 {
  background-color: transparent !important;
}

.footer-links .fa-circle {
  color: #1a7070 !important;
}

.footer-links a {
  color: #e0f0d0 !important;
}

.footer-links a:hover .fa-circle {
  color: #e0f0d0 !important;
}

/* ============================================
   DESKTOP - SPLIT NAV BREAKPOINT
   ============================================ */

@media (max-width: 1200px) {
  .navbar-split-layout {
    flex-direction: column;
    gap: 0;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    padding: 0;
    margin: 0;
    gap: 0;
    justify-content: center;
  }

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

  .avatar-spacer {
    display: none;
  }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Keep large avatar visible on mobile */
  .avatar-container {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Keep avatar visible when scrolled on mobile */
  nav.top-nav-short .avatar-container {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide small scroll avatar on mobile */
  .navbar-scroll-avatar {
    display: none !important;
  }

  /* Fade avatar when menu is open */
  .navbar .avatar-container {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* Move hero text higher */
  .hero-content {
    top: 45% !important;
  }

  /* Shrink hero text */
  .hero-content p:first-child {
    font-size: 1.1em !important;
  }
}
