/* ==========================================================================
   overrides.css -- Bootstrap theme overrides & Montserrat font-face
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. @font-face declarations — Montserrat (Regular 400 .. ExtraBold 800)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. :root CSS variable overrides
   -------------------------------------------------------------------------- */

:root {
  --bs-font-sans-serif: 'Montserrat', sans-serif;
  --bs-primary: #F71570;
  --bs-primary-rgb: 247, 21, 112;
  --bs-body-font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   3. Body font-family
   -------------------------------------------------------------------------- */

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. .btn-primary — Figma: #F71570, uppercase, border-radius 7px, pad 12px 32px
   -------------------------------------------------------------------------- */

.btn-primary {
  background-color: #F71570;
  border-color: #F71570;
  border-radius: 7px;
  padding: 12px 32px;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   5. .btn-primary:hover — darker pink
   -------------------------------------------------------------------------- */

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #d91163;
  border-color: #d91163;
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. .btn-outline-light — white border, white text, same border-radius
   -------------------------------------------------------------------------- */

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 7px;
  padding: 12px 32px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: transparent;
}

/* --------------------------------------------------------------------------
   7. .btn-outline-light:hover — white bg, dark text
   -------------------------------------------------------------------------- */

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: #fff;
  border-color: #fff;
  color: #002F4E;
}

/* --------------------------------------------------------------------------
   8. .btn-dark-blue — #003D64, same border-radius pattern
   -------------------------------------------------------------------------- */

.btn-dark-blue {
  background-color: #003D64;
  border-color: #003D64;
  border-radius: 7px;
  padding: 12px 32px;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-dark-blue:hover,
.btn-dark-blue:focus,
.btn-dark-blue:active {
  background-color: #002F4E;
  border-color: #002F4E;
  color: #fff;
}

.btn-cta {
  background-color: #64002C;
  border: none;
  border-radius: 7px;
  padding: 12px 32px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-cta:hover {
  background-color: #4a0020;
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. Navbar overrides — Figma: nav links ~18px, Regular, uppercase,
      color #002F4E, letter-spacing ~0.5px
   -------------------------------------------------------------------------- */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 1rem;
}

.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
  box-shadow: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.hamburger-icon {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #002F4E;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.navbar-nav .nav-link {
  color: #002F4E;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 8px 16px !important;
}

/* --------------------------------------------------------------------------
   10. .nav-link:hover and .nav-link.active — #F71570
   -------------------------------------------------------------------------- */

.navbar-nav .nav-link:hover {
  color: #F71570;
}

.navbar-nav .nav-link.active {
  color: #F71570;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10b. Dropdown menu overrides
   -------------------------------------------------------------------------- */

.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  overflow: hidden;
}

.dropdown-item {
  color: #002F4E;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(247, 21, 112, 0.08);
  color: #F71570;
}

.dropdown-item.active,
.dropdown-item:active {
  background: #F71570;
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. Floating label overrides — focus border-color #F71570, pink box-shadow
   -------------------------------------------------------------------------- */

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #F71570;
  box-shadow: 0 0 0 0.2rem rgba(247, 21, 112, 0.15);
}

.form-floating > label {
  color: #6c757d;
}

.form-control:focus,
.form-select:focus {
  border-color: #F71570;
  box-shadow: 0 0 0 0.2rem rgba(247, 21, 112, 0.15);
}

/* --------------------------------------------------------------------------
   12. Pagination — .page-item.active .page-link pink bg, .page-link hover pink
   -------------------------------------------------------------------------- */

.page-item.active .page-link {
  background-color: #F71570;
  border-color: #F71570;
  color: #fff;
}

.page-link {
  color: #002F4E;
}

.page-link:hover {
  color: #F71570;
}

.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(247, 21, 112, 0.15);
}
