/* =================================== */
/* ========== NAVBAR STYLES ========== */
/* =================================== */

/* Base navbar styling */
.navbar-custom {
  background-color: var(--color-background);
  color: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Thin separator lines between navbar rows */
.navbar-custom .navbar-row-1 {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
}

.navbar-custom .navbar-row-2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* subtle grey divider between navbar rows */
.navbar-custom .navbar-row-2 {
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
}

/* Brand: stacked wordmark + astronaut */
.navbar-custom .navbar-brand {
  color: var(--color-text);
  font-weight: bold;
}

.navbar-custom .navbar-brand .fa-user-astronaut {
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.353);
}

/* Navigation links */
.navbar-custom .nav-link {
  color: var(--color-text);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* Row separator styling */
.navbar-custom .border-top {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile toggler */
.navbar-custom.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 1.125rem;
  line-height: 1;
  background-color: transparent;
}

.navbar-custom.navbar-dark .navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Search input styling */
.navbar-custom .form-control {
  background-color: var(--color-background);
  border: 2px solid rgba(255, 255, 255, 0.492);
  color: var(--color-text);
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.navbar-custom .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(83, 159, 210, 0.25);
  outline: 0;
}

.navbar-custom .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Search button styling */
.navbar-custom .btn {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.navbar-custom .btn:hover {
  color: var(--color-accent);
}

/* Remove focus outline on search input & button */
.navbar-custom .btn:focus,
.navbar-custom .form-control:focus {
  outline: none;
}

/* Ensure navbar has proper z-index stacking */
.navbar-custom {
  z-index: 1030;
}

/* ======================================= */
/* ============== HERO IMAGE  ============ */
/* ======================================= */

/* Hero image container */
.hero-img {
  width: 100%;
  height: 60vh;
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Hero overlay (top-left text, bottom-right buttons) */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay .container-fluid {
  position: relative;
  height: 100%;
  padding: 0;
  pointer-events: auto;
}

/* Text positioned top-left */
.hero-text {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column-reverse;
  text-align: left;
  color: var(--color-text);
  text-shadow: 2px 2px 6px rgb(0, 0, 0);
}

/* Buttons positioned bottom-right */
.hero-actions {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/clamp */
  /* clamp generator = https://clamp.font-size.app/ */
  /* alternative to media queries */
  font-size: clamp(1rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0;
}

.hero-tagline {
  opacity: 0.95;
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.5rem);
  line-height: 1.3;
  margin: 0;
}

.privacy-policy-content {
  line-height: 1.6;
  font-size: 0.95rem;
}

.privacy-policy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent, #ffffff);
}

.privacy-policy-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-policy-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.privacy-policy-content ul {
  margin-bottom: 1.5rem;
}

.privacy-policy-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ======================================= */
/* =========== ABOUT PAGE STYLES ========= */
/* ======================================= */

/* Main hero section for the about page. Contains the fixed background image and overlaid title. */
.about-hero-section {
  position: relative;
  /* Height of hero section (reduced for faster content reveal) */
  height: 80vh;
  overflow: hidden;
}

/* Fixed background image for parallax and zoom effects. */
.about-hero-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  transition: filter 0.3s ease;
}

/* Gradient overlay for darkening the image on scroll (improves text readability). */
.about-hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Activate dark overlay when scrolling. */
.about-hero-image.darkened::after {
  opacity: 1;
}

/* Hero image: larger than viewport for parallax, starts with top hidden above viewport. */
.about-hero-image img {
  width: 100%;
  /* Larger than viewport for parallax effect */
  height: 120%;
  object-fit: cover;
  object-position: center top;
  /* Focus on top portion of image */
  transform: translateY(-25vh) scale(1.1);
  /* Start with top hidden above viewport */
  transition: transform 0.3s ease;
}

/* Parallax and zoom effect on scroll, controlled by JS variables (used in utilities.js). */
.about-hero-image.parallax img {
  transform: translateY(calc(-25vh + var(--parallax-offset, 0px))) scale(var(--zoom-scale, 0.9));
}

/* Title overlayed on the hero image. */
.about-hero-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Main heading in hero section. */
.about-hero-title h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Subheading in hero section. */
.about-hero-title h2 {
  font-size: clamp(1.1rem, 3vw, 3rem);
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 18px rgb(0, 0, 0);
  margin: 0;
}

/* Fade out title on scroll (JS toggles this class). */
.about-hero-title.fade-out {
  opacity: 0;
  transform: translate(-50%, -40%);
  /* upward movement */
}

/* Wrapper for about page content. Sits above the hero image. */
.about-content-wrapper {
  position: relative;
  z-index: 3;
  margin-top: 60vh;
  /* Controls when content starts (smaller = sooner) */
  min-height: 100vh;
  padding: 2rem 0;
  border-radius: 1rem 1rem 0 0;

}

/* Main about page content area. Opaque background for readability. */
.about-content {
  background-color: rgba(0, 0, 0, 0.705);
  padding: 2rem;
  border-radius: 0.5rem;
  /* Increase shadow for more contrast/legibility */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hide h1 in content area (already shown in hero). */
.about-content h1 {
  display: none;
  /* Hide titles after scroll */
}

/* Paragraph styling for about content. */
.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* =============================== */
/* =========== FOOTER ============ */
/* =============================== */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-background);
  position: relative;
  /* ensure footer background is above any block content */
  z-index: 4;
}

/* Footer brand alignment */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  --brand-font-size: 1rem;
  --brand-line-height: 1.1;
  --brand-total-height: calc(2 * var(--brand-font-size) * var(--brand-line-height));
}

.footer-brand .footer-wordmark {
  display: flex;
  flex-direction: column;
  line-height: var(--brand-line-height);
  font-size: var(--brand-font-size);
}

.footer-brand .fa-user-astronaut {
  font-size: 2.08rem;
}

/* Footer links */
.footer-links .footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links .footer-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

footer .fa-brands {
  margin: 0 1rem;
  font-size: 1.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

footer .fa-brands:hover {
  transform: scale(1.08);
  color: var(--color-accent);
}

/* =================================== */
/* ========== MEDIA QUERIES ========== */
/* =================================== */


/* Tablet landscape */
@media (min-width: 768px) and (max-width: 992px) {

  /* smaller navbar brand on tablet */
  .navbar-custom .navbar-brand {
    font-size: 1rem;
  }

  .navbar-custom .navbar-brand .fa-user-astronaut {
    font-size: 1.8rem;
  }

  .navbar-custom .navbar-brand .d-flex.flex-column span {
    font-size: 0.85rem;
  }

  /* override Bootstrap's flex-lg-row */
  .navbar-custom .navbar-row-2 .flex-lg-row {
    flex-direction: row !important;
  }

  .navbar-custom .navbar-row-2 .d-flex {
    align-items: center;
    gap: 0.25rem;
    justify-content: space-between;
  }

  /* Ensure nav links are centered vertically */
  .navbar-custom .navbar-row-2 .nav {
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }

  .navbar-custom .navbar-row-2 .nav.flex-row.flex-wrap {
    margin-right: 0;
    flex-shrink: 0;
  }

  .navbar-custom .navbar-row-2 .d-flex:last-child {
    margin-left: auto;
    gap: 0.25rem;
    flex-shrink: 0;
    align-items: center;
  }

  /* Compact top row links */
  .navbar-custom .navbar-row-1 .nav-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  /* Compact second row links */
  .navbar-custom .navbar-row-2 .nav .nav-link {
    padding: 0.4rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  /* Smaller search input */
  .navbar-custom .navbar-row-2 form {
    max-width: 120px;
    min-width: 120px;
  }

  .navbar-custom .navbar-row-2 .form-control {
    font-size: 0.75rem;
    padding: 0.4rem 0.4rem;
    padding-right: 1.8rem;
  }

  .navbar-custom .navbar-row-2 .form-control::placeholder {
    font-size: 0.75rem;
  }

  /* Compact search button */
  .navbar-custom .navbar-row-2 .btn {
    font-size: 0.7rem;
    padding-right: 0.4rem;
  }

  .navbar-custom .navbar-row-2 .btn .fa-search {
    font-size: 0.7rem;
  }

  /* Hide wishlist/basket text, show icons only */
  .navbar-custom .navbar-row-2 .nav-link .fa-heart~*,
  .navbar-custom .navbar-row-2 .nav-link .fa-shopping-basket~* {
    display: none;
  }

  /* Icon links with consistent height */
  .navbar-custom .navbar-row-2 .nav-link {
    padding: 0.4rem 0.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  .navbar-custom .navbar-row-2 .nav-link .fa-heart,
  .navbar-custom .navbar-row-2 .nav-link .fa-shopping-basket {
    font-size: 0.8rem;
  }

  /* Tighter vertical spacing */
  .navbar-custom .navbar-row-1 .py-2,
  .navbar-custom .navbar-row-2 .py-2 {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .navbar-custom .navbar-row-2 .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

/* Mobile/tablet (up to 768px) */
@media (max-width: 768px) {

  /* Smaller mobile navbar brand */
  .navbar-custom .navbar-brand {
    font-size: 0.9rem;
  }

  .navbar-custom .navbar-brand .fa-user-astronaut {
    font-size: 1.5rem;
  }

  .navbar-custom .navbar-brand .d-flex.flex-column span {
    font-size: 0.75rem;
  }

  .navbar-custom .form-control {
    font-size: 1rem;
    padding: 0.55rem 0.7rem;
    padding-right: 2rem;
  }

  .navbar-custom .form-control::placeholder {
    font-size: 1rem;
  }

  /* Icon search button */
  .navbar-custom .btn {
    font-size: 0.8rem;
    padding-right: 0.5rem;
  }

  .navbar-custom .btn .fa-search {
    font-size: 1rem;
  }

  /* Icon-only wishlist and basket */
  .navbar-custom .nav-link .fa-heart,
  .navbar-custom .nav-link .fa-shopping-basket {
    font-size: 1.2rem;
  }

  /* Toggler adjustments */
  .navbar-custom.navbar-dark .navbar-toggler {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }

  /* Hero image adjustments */
  .hero-img {
    height: 40vh;
    min-height: 250px;
  }

  .hero-text {
    top: 0.75rem;
    left: 0.75rem;
  }

  .hero-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .footer-links {
    gap: 0.75rem 1rem;
  }

  .footer-social {
    margin-top: 1rem;
  }

  /* About page mobile adjustments */
  .about-hero-section {
    height: 70vh;
  }

  .about-hero-image img {
    /* Adjust starting position for smaller hero */
    transform: translateY(-15vh) scale(1.1);
  }

  .about-hero-image.parallax img {
    transform: translateY(calc(-15vh + var(--parallax-offset, 0px))) scale(1.1);
  }

  .about-hero-title h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .about-content-wrapper {
    margin-top: 70vh;
    padding: 1.5rem 0;
    border-radius: 0.75rem 0.75rem 0 0;
  }

  .about-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* Small mobile (up to 576px) */
@media (max-width: 576px) {

  /* Navbar search bar adjustments */
  .d-md-none .d-flex.align-items-center.justify-content-between {
    gap: 0.1rem;
  }

  .d-md-none form.d-flex.position-relative.flex-grow-1.me-3 {
    flex: 1 1 0%;
    min-width: 0;
    margin-right: 0 !important;
  }

  .d-md-none .d-flex.gap-2 {
    flex: 0 0 auto;
    min-width: 80px;
  }

  .navbar-custom .d-md-none .nav-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-custom .nav-link .fa-heart,
  .navbar-custom .nav-link .fa-shopping-basket {
    font-size: 1.2rem;
  }

  .hero-img {
    height: 30vh;
    min-height: 200px;
  }

  .hero-actions {
    bottom: 0.6rem;
    right: 1rem;
  }
}

/* =============================== */
/* ========== UTILITIES ========== */
/* =============================== */

:root {
  --navbar-height: 140px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}