/***

This file contains shared styles for components across pages:
- Navbar
- Footer
- Big carousel
- Small carouel
- Buttons
- Uilities (cards, bullet lists, etc.)

***/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}
:root {
  --primary-colour: #3d71b6;
  --secondary-colour: #2c2c2c;
  --text-colour-light: #ffffff;
  --bg-colour: #fbfbfa;

  --font-size-h1: 2.25rem;
  --font-size-h2: 1.875rem;
  --body1-font-size: 1.125rem;
  --body2-font-size: 1rem;
  --caption-font-size: 0.875rem;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
}

#scrollToTopBtn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: rgb(0, 0, 0);
}

#scrollToTopBtn.show {
  display: block;
  opacity: 1;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 400;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 500;
}

body {
  background-color: var(--bg-colour);
  color: var(--secondary-colour);
}

/* Navbar */
.navbar {
  position: fixed;
  align-items: center;
  width: 100%;
  height: 128px;
  top: 0;
  right: 0;
  z-index: 10000;
  background: transparent;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(2px);
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
}
.navbar.scrolled,
.navbar:hover {
  background: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled .main-menu ul li a,
.navbar:hover .main-menu ul li a {
  color: var(--secondary-colour);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.navbar .header-icons {
  flex: 1;
}
.navbar .main-menu {
  align-items: center;
  justify-content: center;
}
.navbar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar .main-menu ul {
  display: flex;
  list-style: none;
}
.navbar .main-menu ul li a {
  color: var(--text-colour-light);
  margin: 0 24px;
  transition: all 0.5s ease;
}
.navbar .main-menu ul li:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
.navbar .main-menu ul li a:hover {
  font-weight: 600;
}
.navbar .main-menu ul li a.active {
  font-weight: 600;
  text-decoration: underline;
}
.navbar .quote-button {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.navbar .quote-button .btn {
  margin-left: auto;
}
.header-icons .icon {
  margin: 0 10px;
}

/* Hamburger Button */
.hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
}
.hamburger-button .hamburger-line {
  width: 30px;
  height: 3px;
  background: var(--text-colour-light);
  margin: 6px 0;
  transition: 0.4s;
}
.open .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}
.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.open .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -8px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 128px;
  right: 0;
  height: calc(100vh - 64px);
  width: 50%;
  background: rgba(255, 255, 255);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu ul {
  margin: 32px;
  width: 100%;
}
.mobile-menu ul li {
  list-style: none;
  width: 100%;
}
.mobile-menu ul li a {
  font-size: 20px;
  transition: 0.3s;
  color: var(--secondary-colour);
  display: block;
  width: 100%;
  padding: 24px;
}
.mobile-menu ul li a:hover {
  color: var(--primary-colour);
  font-weight: 600;
  background: #d0d3eb;
}

/* Change navbar logo, and icons on scroll and hover */
.navbar.scrolled .logo img,
.navbar:hover .logo img {
  content: url("../assets/logo-dark.png");
}
.navbar.scrolled .hamburger-line,
.navbar:hover .hamburger-line {
  background: var(--secondary-colour);
}
.navbar.scrolled .header-icons .icon img,
.navbar:hover .header-icons .icon img {
  filter: invert(1);
}

/* Carousel Container - Full Screen */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* Carousel Wrapper */
.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
/* Make Images & Videos Cover Full Screen */
.carousel img,
.carousel video {
  width: 100%;
  height: 100vh;
  flex-shrink: 0;
  object-fit: cover;
}
/* Navigation Buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  height: 52px;
  width: 52px;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.carousel-prev {
  left: 15px;
}
.carousel-next {
  right: 15px;
}
.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(255, 255, 255, 0.8);
}
/* Dot indicators style */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.carousel-dot.active {
  background-color: rgb(255, 255, 255);
}
/* Lightbox style */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  transition: opacity 0.3s ease-in-out;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 100%;
  color: white;
  height: 52px;
  width: 52px;
  cursor: pointer;
  z-index: 30;
}
.lightbox-prev {
  left: 10px;
}
.lightbox-next {
  right: 10px;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 30;
}

/* Small Carousel Container */
.small-carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  height: auto;
  z-index: 1000;
  margin-bottom: 2rem;
  padding-left: 9px;
}
.small-carousel {
  display: flex;
  transition: transform 0.3s ease-in-out;
  gap: 10px;
}
.small-carousel img {
  width: calc((100% / var(--items-per-view)) - 10px);
  cursor: pointer;
  max-height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Navigation Buttons */
.small-carousel-prev,
.small-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  border-radius: 50%;
  height: 45px;
  width: 45px;
  align-items: center;
  justify-content: center;
}
.small-carousel-prev {
  left: 0;
}
.small-carousel-next {
  right: 0;
}
/* Dots Navigation */
.small-carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: gray;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: black;
}

/* Lightbox */
.small-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.small-lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.small-lightbox-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
}
.small-lightbox-close {
  position: fixed;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1100;
}
.small-lightbox-prev,
.small-lightbox-next {
  position: fixed;
  top: 50%;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  border: none;
  z-index: 1001;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
}
.small-lightbox-prev {
  left: 10px;
}
.small-lightbox-next {
  right: 10px;
}

/* Footer */
.footer {
  background-color: var(--secondary-colour);
  padding: 30px 14%;
  clear: both;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo img {
  width: 200px;
  height: 100%;
  margin-right: 200px;
  border-radius: 100px;
}
.footer-links {
  flex: 1;
  margin-bottom: 32px;
}
.footer-links h4 {
  margin-bottom: 24px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-colour-light);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  text-decoration: none;
  color: var(--text-colour-light);
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: var(--primary-colour);
  font-weight: 600;
}
.footer-links ul li a.active {
  color: var(--primary-colour);
  font-weight: 800;
}
.footer-contact {
  flex: 1;
  min-width: 200px;
}
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-colour-light);
}
.footer-contact address {
  margin: 0;
  font-style: normal;
  color: var(--text-colour-light);
  line-height: 44px;
}
.footer-contact a {
  color: var(--text-colour-light);
  text-decoration: none;
}
.footer-contact a:hover {
  color: #a7b0ff;
  font-weight: 600;
}
.footer-social {
  margin-top: 20px;
}
.footer-social a {
  margin: 0 10px;
  display: inline-block;
}
.footer-social img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}
.footer-social img:hover {
  transform: scale(1.1);
}
.footer-copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 0.875rem;
  color: #bbb;
}

/* Buttons */
.btn {
  color: var(--primary-colour);
  display: inline-block;
  padding: 13px 20px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: 0.5s;
}
.btn:hover {
  opacity: 0.8;
}
.btn-primary {
  background: var(--primary-colour);
  color: #fff;
  border-radius: 4px;
}
.btn-secondary {
  border: 2px solid var(--primary-colour);
  border-radius: 4px;
  background: transparent;
}
.btn-secondary:hover {
  background: #d0d3eb;
}

/* Utilities */
.custom-bullets {
  list-style-type: disc;
  padding-left: 20px;
}
.custom-bullets li {
  margin-bottom: 8px;
}
.caption {
  font-size: var(--caption-font-size);
  color: #acabab;
  justify-content: left;
  text-align: left;
  font-style: italic;
}
/* Breadcrumb */
.breadcrumb-container {
  margin-bottom: 15px;
}
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  display: inline;
  color: var(--secondary-colour);
}
.breadcrumb li a {
  text-decoration: none;
  color: var(--primary-colour);
}
.breadcrumb li a:hover {
  text-decoration: underline;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  margin-right: 8px;
  color: #999;
}
.current-page {
  font-weight: bold;
  color: var(--secondary-colour);
}
/* Back arrow */
.back-link {
  text-decoration: none;
  color: inherit;
  margin-right: 8px;
  font-size: 36px;
}
.back-link:hover {
  color: var(--primary-colour);
}

/* Media Queries */
@media (max-width: 1200px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .navbar {
    padding: 0 5%;
  }
  .navbar .main-menu ul {
    display: none;
  }
  .navbar .header-icons {
    flex: 0;
  }
  .header-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .header-icons .icon {
    display: flex;
    flex-direction: row;
    margin: 0 5px;
  }
  .navbar .hamburger-button {
    display: block;
  }
  .navbar .quote-button {
    display: none;
  }
  .footer-logo img {
    margin-right: 30px;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
  }
  /* .small-carousel img {
    width: 50%;
  } */
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .navbar .main-menu ul {
    display: none;
  }
  .navbar .logo img {
    width: 300px;
  }
  .header-icons {
    display: none;
  }
  .navbar .hamburger-button {
    display: block;
  }

  .navbar .quote-button {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    margin-right: 0;
  }
  .footer-links,
  .footer-contact {
    text-align: center;
  }
  /* .small-carousel img {
    width: 100%;
  } */
}

@media (max-width: 480px) {
  .navbar .main-menu ul {
    display: none;
  }
  .navbar .logo img {
    width: 250px;
  }
  .header-icons {
    display: none;
  }
  .navbar .hamburger-button {
    display: block;
  }
  .mobile-menu {
    width: 70%;
  }
  .btn {
    padding: 10px 15px;
    width: 100%;
  }
  .footer-logo img {
    margin-right: 0;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
  }
}
