/* ============== TABLE OF CONTENTS ============== */

/* VARIABLES
*/
/* LOGIN PAGE COMPONENTS
*/

/* =============================================== */

/* ===================================
--- Variables
===================================== */

:root {
  /* --GoldColour: #bdb27d; */
  --GoldColour: #bb9c76;
  --GoldColourDark: #967d5e;
}

@font-face {
  font-family: "Fira Sans Medium";
  src: url("../fonts/Fira_Sans/FiraSans-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans Bold";
  src: url("../fonts/Fira_Sans/FiraSans-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans BoldItalic";
  src: url("../fonts/Fira_Sans/FiraSans-BoldItalic.ttf") format("truetype");
}

.fira-s {
  font-family: "Fira Sans Medium";
}

.fira-i {
  font-family: "Fira Sans BoldItalic";
}

.roboto-l {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-b {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
  font-family: "Roboto", sans-serif !important;
}

.gold-color {
  color: var(--GoldColour) !important;
}

/* ===================================
--- Login page components
===================================== */

/* html {
  height: 100%;
} */

body {
  background-color: #030a12 !important;
}

.h__s-1 {
  background-color: #00202f !important;
  background-image: url("../img/s-bg.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.overlay {
  height: 100%;
  width: 100%;
  /* position: fixed; */
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

.login {
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 100vh; */
}

.login__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 20px;
  /* position: absolute; */
  z-index: 9999;
  /* max-width: 360px; */
  /* max-width: 418px; */
  max-width: 464px;
}

/* @media (min-width: 768px) {
  .login__container {
    max-width: 360px;
  }
} */

.login__header {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-family: "Fira Sans Medium";
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.login__form-input,
.login__form-button,
.login__form-input[type="password"],
.login__form-input[type="email"] {
  padding: 0.75rem 1.5rem;
  background-color: rgb(90 90 90 / 53%);
  border: 2px solid rgb(230, 230, 230);
  color: #fff;
  text-align: center;
}

.login__form-input:focus,
.login__form-input[type="email"]:focus,
.login__form-input[type="password"]:focus {
  color: #fff;
  background-color: rgb(90 90 90 / 53%);
}

::placeholder {
  text-align: center;
  color: #fff !important;
}

.login__form-input {
  width: 256px !important;
  margin: auto;
}

.login__img {
  padding-left: 2rem;
  padding-right: 2rem;
}

.login__form-button {
  background-color: var(--GoldColour);
  border: 1px solid var(--GoldColour);
  /* font-weight: 700; */
  color: #fff;
  width: 50%;
  margin: auto;
  font-size: 1rem;
  border-radius: 6px;
  font-family: "Fira Sans Medium";
  transition: all 0.2s;
}

.login__form-button:hover {
  background-color: var(--GoldColourDark);
  border: 1px solid var(--GoldColourDark);
}

.go-to-top {
  position: fixed;
  top: 3%;
  left: 3%;
  font-size: 22px;
}

.arrow {
  border: solid var(--GoldColour);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 6px;
  transition: all 0.2s;
}

.arrow:hover {
  border-color: var(--GoldColourDark);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

/* ===================================
--- Contact Us
===================================== */

.contact-us {
  margin-top: 80px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: #0d141c;
}

.contact-us__header {
  color: var(--GoldColour);
  /* font-family: "Mona Sans SemiBold"; */
  font-family: "Fira Sans Bold";

  font-size: 1.8755rem;
  text-transform: uppercase;
  letter-spacing: 1px;

  line-height: 1.3;
}

.contact-us__input {
  border: 0 !important;
  border-radius: 0 !important;
  width: 90% !important;
}

.contact-us__submit-btn-container {
  display: flex;
  justify-content: end;
}

.contact-us__submit-btn {
  width: 100%;
  border: 0;
  background-color: var(--OrangeColour);
  border: 1px solid var(--OrangeColour) !important;
  font-weight: 500;
  padding: 0.3rem;
  transition: 0.2s;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-us__submit-btn {
    width: fit-content;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.contact-us__submit-btn:hover {
  background-color: var(--GoldColourDark);
}

.contact-us__textarea {
  border-bottom: 1px solid black !important;
  border-radius: 0 !important;
  height: 225px;
}

/* ===================================
--- Footer
===================================== */

/* .footer {
  background-color: var(--GreyColour);
} */

.footer__inner {
  /* display: flex;
  flex-direction: column;
  gap: 2.5rem; */
  border-top: 1px solid var(--GoldColour);
}

.footer__link-container {
  width: 100%;
}

@media only screen and (min-width: 1200px) and (max-width: 1400px) {
  .footer__link-container {
    width: 80%;
  }
}

@media (min-width: 1400px) {
  .footer__link-container {
    width: 60%;
  }
}

.footer__link {
  text-decoration: none;
  color: #fff;
}

.footer__text {
  color: #fff;
  font-size: 14px;
}

.footer__link {
  color: #fff;
  text-decoration: none;
}

.footer__link:hover {
  color: #e6e6e6;
}

.f-smp {
  font-size: 12px;
}

@media (min-width: 992px) {
  .f-smp {
    text-align: end;
  }
}

input[type="text"],
input[type="email"],
textarea {
  background-color: #353a3e !important;
  border: 1px solid #353a3e !important;
}

.p-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-column-gap: 48px;
  grid-row-gap: 48px;
}

/* @media (min-width: 576px) {
  .p-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 32px;
    grid-row-gap: 80px;
  }
} */

/* @media (min-width: 768px) {
  .p-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 32px;
    grid-row-gap: 32px;
  }
} */

/* @media (min-width: 768px) {
  .p-grid-3 {
    grid-template-columns: repeat(3, 1fr);

    grid-column-gap: 24px;
    grid-row-gap: 0px;
  }
} */

@media (min-width: 992px) {
  .p-grid-3 {
    grid-template-columns: repeat(3, 1fr);

    grid-column-gap: 24px;
    grid-row-gap: 0px;
  }
}

@media (min-width: 992px) {
  .p-grid-3 {
    margin-top: 1.5rem;
    grid-template-columns: repeat(8, 1fr);
    grid-column-gap: 16px;
  }
}

@media (min-width: 1201px) {
  .p-grid-3 {
    grid-column-gap: 32px;
  }
}

.c__box-1 {
  background-color: #0d141c;
  border: 1px solid var(--GoldColour);
  /* max-width: 456px; */
  max-width: 432px;
  margin: auto;
}

@media (min-width: 992px) {
  .c__box-1 {
    grid-area: 1 / 1 / 2 / 3;
    max-width: unset;
    margin: unset;
  }
}

.c__box-2 {
  background-color: #fff;
  /* max-width: 456px; */
  max-width: 432px;
  margin: auto;
}

@media (min-width: 992px) {
  .c__box-2 {
    grid-area: 1 / 3 / 2 / 6;
    background-color: #030a12 !important;
    max-width: unset;
    margin: unset;
  }
}

.c__box-3 {
  background-color: #000;
  /* max-width: 456px; */
  max-width: 432px;
  margin: auto;
}

@media (min-width: 992px) {
  .c__box-3 {
    grid-area: 1 / 6 / 2 / 9;
    max-width: unset;
    margin: unset;
  }
}

/* new code */

/* Smooth scroll for anchor jumps */
html {
  scroll-behavior: smooth;
}

/* Ensure hero positions children correctly */
.h__s-1 {
  position: relative; /* make children absolute to hero */
  background-color: #00202f !important;
  background-image: url("../img/s-bg.jpg");
  /* height: 100%;  -> This can collapse if parent has no explicit height */
  min-height: 85vh; /* matches your design intent */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Overlay should fill the hero */
.overlay {
  position: relative; /* keep within hero, not viewport */
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

/* Center hero content vertically */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh; /* aligns with hero height */
}

/* Fade at bottom - suggests more content below */
.fade-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
  background: linear-gradient(
    to bottom,
    rgba(3, 10, 18, 0),
    rgba(3, 10, 18, 1)
  );
  pointer-events: none;
  z-index: 2;
}

/* Scroll indicator - subtle bouncing chevron */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom)); /* safe on iOS notch */
  width: 28px;
  height: 28px;
  transform: translateX(-50%) rotate(-45deg);
  border-left: 3px solid var(--GoldColour, #d4af37);
  border-bottom: 3px solid var(--GoldColour, #d4af37);
  opacity: 0.85;
  z-index: 3;
  animation: peek-bounce 1.4s ease-in-out infinite;
  transition: opacity 0.2s ease;
}
.scroll-indicator:hover {
  opacity: 1;
}

/* Bouncing motion */
@keyframes peek-bounce {
  0% {
    transform: translateX(-50%) translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateX(-50%) translateY(12px) rotate(-45deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(-45deg);
  }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Ensure the grid section snaps nicely into view when reached via anchor */
#below {
  scroll-margin-top: 24px;
} /* avoids being flush with top on jump */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 9999; /* ↑↑ makes it always on top */
  pointer-events: auto;
}

.scroll-indicator .arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 3px solid var(--GoldColour, #d4af37);
  border-bottom: 3px solid var(--GoldColour, #d4af37);
  transform: rotate(-45deg);
}

/* new code */

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-box {
  position: relative;
  overflow: hidden;
}

.hover-link {
  display: block;
  position: relative;
}

.hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.75)
  );
  /* opacity: 0; */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.hover-box:hover .hover-overlay {
  opacity: 1;
}

/* Text */
/* .hover-overlay p {
  color: var(--GoldColour, #d4af37);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: "Fira Sans Medium";
} */

.hover-overlay h5 {
  font-size: 1.2rem;
  /* font-family: "Fira Sans Medium"; */
}

/* Arrow */
/* .hover-arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.hover-box:hover .hover-arrow {
  transform: translateX(8px) rotate(-45deg);
} */

.hover-arrow {
  transition: transform 0.2s ease;
  font-size: 2rem;
  color: #fff;
}

.hover-box:hover .hover-arrow {
  transform: translateX(8px);
}

.hover-box:hover .hover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.95)
  );
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links > a {
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

/* .footer__links > a:hover {
  color: whitesmoke;
} */

.form-floating {
  --bs-body-bg: #353a3e;
  --bs-form-control-bg: #353a3e;
  --bs-form-control-focus-bg: #111;
  --bs-form-control-color: #fff;
  --bs-border-color: #444;
}

.form-floating .form-control,
.form-floating textarea.form-control {
  background-color: var(--bs-form-control-bg) !important;
  color: var(--bs-form-control-color) !important;
  border-color: var(--bs-border-color) !important;
  caret-color: #fff;
  color-scheme: dark;
}

.form-floating > label {
  color: #bbb !important;
}

/* .form-floating > label {
  padding: 1rem 0.75rem !important;
  color: #bbb !important;
  height: auto !important;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label,
.form-floating textarea.form-control:focus ~ label,
.form-floating textarea.form-control:not(:placeholder-shown) ~ label {
  color: #fff !important;
  transform: scale(0.85) translateY(0rem) translateX(0.15rem);
  padding: 0 0.35rem !important;
}

.form-floating textarea.form-control {
  height: auto;
  min-height: 100px;
}

.form-floating .form-control:-webkit-autofill,
.form-floating .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 1000px #353a3e inset !important;
} */
