
/* Base for homepage */
:root { color-scheme: light; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
}

/* Login button positioned over hero background */
.login-button-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .login-button-wrapper {
    top: 2rem;
    right: 2rem;
  }
}

/* Hero section */
#home-landing {
  padding: 2rem 1rem;
  position: relative;
  background-image: url("../img/home-world-transp-bbb17b040578c5293a5677cadc4a4d0b.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Center content on mobile */
@media (max-width: 767px) {
  #home-landing .row {
    text-align: center;
  }
  #home-landing img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (min-width: 768px) {
  #home-landing {
    padding: 4rem 0 3rem;
  }
}

#home-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Overlay with primary color to fade the background and improve text readability */
  background: linear-gradient(180deg, rgba(61,165,235,0.70) 0%, rgba(61,165,235,0.55) 100%);
}

/* Ensure content stays above the overlay */
#home-landing > .container {
  position: relative;
  z-index: 1;
}
#home-landing h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

/* Responsive typography */
@media (min-width: 576px) {
  #home-landing h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  #home-landing h1 {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  #home-landing h1 {
    font-size: 3.5rem;
  }
}

#home-landing img {
  max-width: 200px;
  height: auto;
  width: 100%;
}

@media (min-width: 576px) {
  #home-landing img {
    max-width: 240px;
  }
}

@media (min-width: 768px) {
  #home-landing img {
    max-width: 280px;
  }
}

/* CTA button - darkblue to stand out on blue overlay */
#home-landing .btn.btn-primary {
  --bs-btn-bg: var(--darkblue);
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--darkblue);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--darkblue);
  --bs-btn-hover-border-color: #fff;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
}

@media (min-width: 576px) {
  #home-landing .btn.btn-primary {
    width: auto;
    max-width: none;
  }
}

/* Utilities overrides if needed */
.text-muted { color: var(--text-muted) !important; }


/* Home polish: hero background coverage and Connexion button styles */

/* Ensure hero section shows the background image like production */
@media (min-width: 992px) {
  #home-landing {
    background-size: cover;
    background-position: 65% center; /* similar focal point as production */
  }
  #home-landing::before {
    /* Stronger fade on large screens for better text contrast */
    background: linear-gradient(90deg, rgba(61,165,235,0.75) 0%, rgba(61,165,235,0.50) 60%);
  }
}

/* Style the top-right Connexion link as a pill button (production look) */
.navigation-clean .nav-link.login,
.nav-link.login {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  padding: .5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 9999px; /* pill */
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.navigation-clean .nav-link.login:hover,
.navigation-clean .nav-link.login:focus,
.nav-link.login:hover,
.nav-link.login:focus {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--darkblue);
  border-color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.navigation-clean .nav-link.login:focus-visible,
.nav-link.login:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bs-primary) 60%, white);
  outline-offset: 2px;
}

/* Footer */
#home-footer {
  background-color: var(--darkblue);
  min-height: 80px;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
#home-footer p {
  margin: 0;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  #home-footer {
    min-height: 100px;
  }
  #home-footer p {
    font-size: 0.9rem;
  }
}
