/*------------------------------------------------------
                    F L A I R
  Extra motion and polish on top of the existing look.
  Same colours, fonts and layout; delete the <link> in
  base.html to turn it all off.
-------------------------------------------------------*/

:root {
  --sfm-teal: #006782;
  --sfm-teal-light: #0ca4cc;
  --sfm-teal-soft: #6bb7be;
  --sfm-gradient: linear-gradient(90deg, #006782 0%, #0ca4cc 60%, #6bb7be 100%);
}

/*---------------- Header ----------------*/
#header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.sticky-header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 103, 130, 0.12);
}

/* Colour change instead of the bold jump on hover */
.custom_nav-container .navbar-nav .nav-item .nav-link {
  transition: color 0.25s ease;
}

.navbar-nav li.nav-item a.nav-link:hover {
  font-weight: inherit;
}

.custom_nav-container .navbar-nav .nav-item .nav-link.sfm-current {
  color: var(--sfm-teal);
}

#base_fishmap_logo {
  transition: transform 0.3s ease, height 0.3s ease, width 0.3s ease;
}

.navbar-brand:hover #base_fishmap_logo {
  transform: scale(1.05);
}

#base_user_logo {
  transition: color 0.2s ease, transform 0.2s ease;
}

#base_user_logo:hover {
  color: var(--sfm-teal);
  transform: scale(1.15);
}

.language_button {
  transition: color 0.2s ease, transform 0.2s ease;
}

.language_button:hover {
  font-weight: inherit;
  transform: translateY(-1px);
}

/*---------------- Buttons ----------------*/
.custom_button_1 {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 103, 130, 0.25);
  transition: all 0.35s ease;
}

/* Light sweep across the button on hover */
.custom_button_1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.custom_button_1:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 103, 130, 0.3);
}

.custom_button_1:hover::before {
  animation: sfm-sweep 0.7s ease;
}

.custom_button_1:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 103, 130, 0.25);
}

@keyframes sfm-sweep {
  to { left: 125%; }
}

/*---------------- Index: hero slider ----------------*/
@keyframes sfm-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes sfm-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Hidden slides are display:none, so this replays each time a slide appears */
.slider_section .carousel-item .detail-box h1 {
  animation: sfm-fade-up 0.7s ease both;
}

.slider_section .carousel-item .detail-box p {
  animation: sfm-fade-up 0.7s ease 0.15s both;
}

.slider_section .img-box img {
  animation: sfm-float 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 25px rgba(0, 103, 130, 0.18));
}

.slider_section .carousel-indicators li {
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider_section .carousel-indicators li:hover {
  transform: scale(1.2);
}

/*---------------- Index: testimonials ----------------*/
.client_section .box {
  border-radius: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.client_section .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 103, 130, 0.18);
}

.client_section .box .img-box {
  border-color: transparent;
  background: var(--sfm-gradient) border-box;
}

.client_section .box .img-box img {
  transition: transform 0.5s ease;
}

.client_section .box:hover .img-box img {
  transform: scale(1.06);
}

.client_section .box .name i {
  color: var(--sfm-teal-light);
}

.client_section .carousel-control-prev,
.client_section .carousel-control-next {
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client_section .carousel-control-prev:hover,
.client_section .carousel-control-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 103, 130, 0.3);
}

/*---------------- Footer ----------------*/
.info_section {
  position: relative;
}

.info_section .info_form .social_box a {
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info_section .info_form .social_box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/*---------------- Global modal ----------------*/
#global_modal.gm-open {
  animation: sfm-fade-in 0.25s ease;
}

#global_modal.gm-open #global_modal_box {
  animation: sfm-pop-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes sfm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sfm-pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/*---------------- Scroll reveal ----------------*/
/* Only applied once JS has added .sfm-js, so content never stays hidden */
.sfm-js .sfm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sfm-js .sfm-reveal.sfm-visible {
  opacity: 1;
  transform: none;
}

/*---------------- Reduced motion ----------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sfm-js .sfm-reveal {
    opacity: 1;
    transform: none;
  }
}
