@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/*CSS Variables*/
:root {
  --primary-font: "Inter", sans-serif;
  --secondary-font: "Nunito", sans-serif;
  --primary-color: #2e2e2e; /* graphite */
  --secondary-color: #f6b8a8; /* powder blush */
  --highlight-color-light: #faf9f7; /* bright snow */
  --highlight-color: #dde7e2; /* mint cream */
  --button-color: #4f6a5a; /* granite*/
  --secondary-button-color: #51b199; /* sea foam */
  --section-gap: 6rem;
  --navbar-height: 70px; /* fallback; updated dynamically by JS */
}

/* Global styles */
body {
  font-family: var(--primary-font);
}

h1,
h2,
h3 {
  font-family: var(--secondary-font);
  color: var(--button-color);
}

/* Section spacing utilities */
section {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

/* Navbar styles */
#navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#navbar a,
#navbar .nav-link {
  color: var(--highlight-color-light);
}

#navbar a:hover,
#navbar .nav-link:hover {
  color: var(--secondary-button-color);
}

/* Navbar logo sizing and alignment */
#navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#navbar .navbar-brand img {
  height: 40px; /* desired visual height */
  width: auto; /* keep aspect ratio */
  max-height: 48px; /* prevent oversized images */
  display: block;
}

/* Ensure fragment jumps land below the fixed navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

/* Make sections/headings avoid being covered by fixed navbar */
section h1,
h2,
h3 {
  scroll-margin-top: calc(var(--navbar-height) + 0.5rem);
}

/*Header styles */
#hero {
  background-image: url("../images/hero-image.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  margin-top: 4rem; /* create space below the fixed navbar */
  margin-bottom: 0rem;

  /* add a subtle semi-transparent overlay to soften the hero background */
  background-color: rgba(255, 255, 255, 0.65);
  background-blend-mode: overlay;
}

/* Button styles */
.custom-button-filled {
  background-color: var(--button-color);
  color: var(--highlight-color-light);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.custom-button-outlined {
  color: var(--button-color);
  border: 2px solid var(--button-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.custom-button-outlined:hover {
  background-color: var(--secondary-button-color);
  color: var(--highlight-color-light);
}

.custom-button-filled:hover {
  background-color: var(--secondary-button-color);
}

/*Emotions section styles*/
#emotions .emotion-card {
  background-color: var(--highlight-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#emotions .card .card-header {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/*Welllbeing tips section styles*/
#tips .img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
#tips .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Affirmations carousel styles */
#carousel-affirmations {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#carousel-affirmations .carousel-item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#carousel-affirmations .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Partners section styles */
#partners .fa-solid {
  margin-right: 0.5rem;
}

#resources .card {
  background-color: var(--highlight-color);
}

/* Footer styles */
footer {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--highlight-color-light);
  padding: 1.5rem 1rem;
  text-align: center;
}

#social-networks i {
  font-size: 1.5rem;
  padding: 1rem;
  color: var(--highlight-color-light);
}

#disclaimer {
  opacity: 0.5;
  line-height: 1.4;
}

/* Smaller screens: slightly smaller logo */
@media (max-width: 600px) {
  #navbar .navbar-brand img {
    height: 34px;
  }
}
/* Responsive adjustments for smaller screens */
/* Affirmations carousel margin adjustment */
@media (max-width: 768px) {
  #carousel-affirmations {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}
