:root {
  --primary-font: 'Italianno', serif;
  --secondary-font: 'Lexend', sans-serif;
  --nav-color: #3E4041;
  --background-image: url("../images/forest.jpg");
  --accent-color: #e84610;
  --accent-ring: rgba(232,70,16,0.12);
  --text-color: #FFFFFF;
  --text-hover-color: var(--accent-color);
  --button-bg-color: #93402a;
  --button-text-color: #fff;
  --button-hover-color: var(--accent-color);
  --navbar-height: 110px;
  --dropdown-z: 3000; /* dropdowns above normal content */
  --footer-z: 4000;   /* keep social footer visible above page dropdowns */
  --social-size: 45px;
  --social-size-sm: 52px;
  --social-bg: #313131;
  --social-color: #fafafa;
}

/* --------------------
   Animations
   -------------------- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes logo-bounce-rotate {
  0%,
  100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(0deg); }
  75% { transform: translateY(-2px) rotate(2deg); }
}

.animate-spin {
  animation: spin 3s linear infinite;
}

.animate-bounce {
  animation: bounce 1.5s ease-in-out infinite;
}

/* --------------------
   Base / layout
   -------------------- */
html, body { height: 100%; }

body {
  font-family: var(--secondary-font);
  color: var(--text-color);
  padding-top: var(--navbar-height);
  padding-bottom: 90px; /* prevent content hiding behind fixed footer */
  margin: 0;
  background: none; /* background moved to pseudo-element below */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-page {
  padding-bottom: 78px;
  overflow: hidden;
}

.home-page main {
  height: calc(100dvh - var(--navbar-height) - 78px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Background placed behind everything to avoid stacking/context issues */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--background-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;            /* sits behind page content */
  pointer-events: none;   /* doesn't intercept clicks */
}

/* Headings */
h1 { font-weight: 500; }

/* --------------------
   Buttons
   -------------------- */
.btn-css {
  border: none;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  text-transform: uppercase;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-css:hover,
.btn-css:focus {
  background-color: var(--button-hover-color);
  outline: none;
}

/* --------------------
   Sections & utility
   -------------------- */
.section { margin: 1.5rem 0 2rem; }

/* --------------------
   Navbar
   -------------------- */
.navbar {
  background-color: var(--nav-color);
  text-align: center;
  min-height: var(--navbar-height);
  padding: 0.5rem 0;
}

#navbar .nav-link {
  color: var(--text-color);
  transition: color 0.25s ease;
}

#navbar .nav-link:hover,
#navbar .nav-link:focus,
#navbar .nav-link.active {
  color: var(--text-hover-color);
}

#navbar .navbar-brand img,
#navbar img {
  display: block;
  width: calc(var(--navbar-height) - 20px);
  height: calc(var(--navbar-height) - 20px);
  max-width: calc(var(--navbar-height) - 20px);
  max-height: calc(var(--navbar-height) - 20px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  transform-origin: center;
  animation: none;
  box-shadow: 0 0 0 rgba(232, 70, 16, 0);
  transition: box-shadow 0.25s ease;
}

#navbar .navbar-brand img:hover,
#navbar .navbar-brand img:focus {
  animation: logo-bounce-rotate 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(232, 70, 16, 0.14), 0 0 10px rgba(232, 70, 16, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  #navbar .navbar-brand img,
  #navbar .navbar-brand img:hover,
  #navbar .navbar-brand img:focus {
    animation: none;
  }
}

/* --------------------
   Reasons / hero
   -------------------- */
.reasons-container {
  background: transparent;
  text-align: center;
  min-height: 100vh;
  color: whitesmoke;
  margin-top: 0;
}

.home-page .reasons-container {
  min-height: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0;
}

.home-page .signup-form {
  margin: 10px auto 12px;
}

.home-page .reasons-container .signup-form {
  margin: 4px auto 6px;
  padding: clamp(10px, 1.8vh, 16px) clamp(14px, 2.1vw, 20px) clamp(8px, 1.4vh, 14px);
}

.home-page .reasons-container .jumbotron-header {
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 1.8vh + 0.35rem, 1.5rem);
  line-height: 1.2;
}

.home-page .reasons-container .signup-form p {
  margin-bottom: 0.25rem;
  line-height: 1.2;
  font-size: clamp(0.82rem, 0.95vh + 0.35rem, 0.92rem);
}

.home-page .reasons-container .signup-form p:last-of-type {
  margin-bottom: 0;
}

.home-page .testimonial-section {
  margin-top: 0;
  padding-top: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.home-page .testimonial-section h2,
.home-page .testimonial-title {
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
  font-size: clamp(0.98rem, 1.2vh + 0.35rem, 1.25rem);
  line-height: 1.2;
}

.home-page .testimonial-stars {
  margin-bottom: 0.1rem;
  font-size: clamp(0.75rem, 0.9vh + 0.3rem, 0.9rem);
}

/* --------------------
   Quotes / testimonials
   -------------------- */
.quotes-container {
  color: whitesmoke;
  background-color: rgba(60,60,60,0.6);
  font-weight: 400;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.quotes-container:hover,
.quotes-container:focus {
  background-color: rgba(45,45,45,0.72);
  color: var(--text-hover-color);
}
/* Ensure Bootstrap's muted figcaption is readable on dark cards */
.quotes-container .blockquote-footer {
  color: #bbb;
}
.quotes-container .blockquote-footer:hover {
  color: var(--text-hover-color);
}

/* Circular review images */
.img-reviews {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--accent-color);
}

/* Testimonial section heading visible over background */
.testimonial-section h2,
.testimonial-section .h5 {
  color: whitesmoke;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.testimonial-section .fa-star {
  color: #f5a623;
}

.testimonial-row {
  margin-top: 0.1rem;
  --bs-gutter-y: 0.25rem;
}

.testimonial-item {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .testimonial-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.testimonial-card {
  padding: clamp(0.45rem, 0.85vh, 0.75rem);
  margin-bottom: 0;
  min-height: 100%;
}

.testimonial-card .blockquote {
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  font-size: clamp(0.72rem, 0.85vh + 0.28rem, 0.88rem);
  line-height: 1.22;
  margin-bottom: 0;
}

/* --------------------
   Signup / form block
   -------------------- */
.signup-form {
  margin: 20px auto;
  color: #fff;
  background-color: rgba(60,60,60,0.6);
  max-width: 520px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  box-sizing: border-box;
}
.signup-form h2 { color: #fafafa; margin-bottom: 20px; }

.text-input {
  background: transparent;
  color: #fafafa;
  width: 100%;
  height: 40px;
  margin: 5px 0 20px 0;
  border: 1px solid #fafafa;
  border-radius: 4px;
  padding: 6px 8px;
  box-sizing: border-box;
}
.text-input:focus { border-color: var(--accent-color); outline: 3px solid var(--accent-ring); }

.join-button {
  margin-top: 20px;
  border-radius: 4px;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: #fafafa;
  border: none;
  cursor: pointer;
}
.join-button:hover,
.join-button:focus {
  background-color: #fafafa;
  color: var(--text-hover-color);
  outline: 3px solid var(--accent-ring);
}

.signup-form .btn-group {
  width: 100%;
  display: block;
}

.signup-form .btn-group .btn {
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: left;
}

.signup-form .dropdown-menu {
  width: 100%;
  max-width: 100%;
}

.signup-form .dropdown-item {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* --------------------
   Social links (consolidated)
   -------------------- */
footer {
  background-color: transparent;
  padding: 0.75rem 0;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--footer-z);
}

footer#contact,
.social-media-container {
  position: relative;
  z-index: var(--footer-z);
  overflow: visible;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-left: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.social-links li {
  margin: 0.25rem;
  list-style: none;
}

.social-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-size);
  height: var(--social-size);
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--social-bg);
  color: var(--social-color);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}
.social-links li a:hover,
.social-links li a:focus {
  background: var(--accent-color);
  transform: translateY(-2px);
  outline: none;
}

/* Icon sizing: let icons scale inside the circular anchor */
.social-links li a i,
.social-links li a svg {
 width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: inherit;
  background: transparent;
  transition: color 0.25s ease, transform 0.2s;
}

/* Small screens: enlarge touch targets */
@media (max-width: 576px) {
  .home-page {
    padding-bottom: 74px;
  }

  .home-page main {
    height: calc(100dvh - var(--navbar-height) - 74px);
  }

  .home-page .reasons-container {
    min-height: auto;
    padding-bottom: 0.15rem;
  }

  .home-page .signup-form {
    margin: 10px auto 12px;
    padding: 18px;
  }

  .home-page .reasons-container .signup-form {
    margin: 4px auto;
    padding: 10px 12px 9px;
  }

  .home-page .signup-form h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .home-page .reasons-container .jumbotron-header {
    margin-bottom: 0.22rem;
    font-size: 0.92rem;
  }

  .home-page .signup-form p {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .home-page .reasons-container .signup-form p {
    margin-bottom: 0.18rem;
    font-size: 0.74rem;
    line-height: 1.12;
  }

  .home-page .testimonial-section {
    margin-top: 0;
    padding-top: 0;
    width: calc(100% - 1rem);
  }

  .home-page .testimonial-section h2,
  .home-page .testimonial-title {
    margin-top: 0.05rem !important;
    margin-bottom: 0.18rem !important;
    font-size: 0.88rem;
  }

  .home-page .testimonial-stars {
    margin-bottom: 0.14rem;
    font-size: 0.72rem;
  }

  .testimonial-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    --bs-gutter-x: 0.28rem;
    --bs-gutter-y: 0.2rem;
  }

  .testimonial-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .signup-form {
    padding: 20px;
  }

  .signup-form .btn-group .btn {
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
  }

  .signup-form .dropdown-menu {
    font-size: 0.88rem;
  }

  .social-links {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  .social-links li {
    margin: 0.1rem;
  }

  .social-links li a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .social-links li a i,
  .social-links li a svg {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 0.35rem;
    border-radius: 10px;
  }

  .testimonial-card .img-reviews {
    display: none;
  }

  .testimonial-card p {
    font-size: 0.62rem;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .testimonial-card .blockquote-footer {
    font-size: 0.56rem;
  }
}

/* --------------------
   Dropdowns / stacking / clipping fixes (targeted)
   -------------------- */
/* Keep dropdowns above footer/content */
.dropdown-menu { z-index: var(--dropdown-z); }

/* Only remove clipping on the specific containers that caused issues.
   Avoid !important and broad selectors. If other specific ancestors
   are known to clip, target them here (e.g. .my-hero-overlay). */
@media (max-width: 1024px) {
  .reasons-container,
  .signup-form,
  .jumbotron {
    overflow: visible;
  }
  .dropdown-menu { position: absolute; }
}

/* --------------------
   Responsive breakpoints (grouped)
   -------------------- */
@media screen and (min-width: 576px) {
  #contact .welcome { font-size: 2.5rem; }
}

@media screen and (min-width: 768px) {
  .btn-css { padding: 0 20px; font-size: 1rem; }
  .all-spa { font-size: 26px; }
  .section { margin-top: 2rem; margin-bottom: 1rem; }
}

@media screen and (min-width: 992px) {
  #contact { text-align: left; }
  #contact .welcome { font-size: 4rem; margin-top: 20px; }
}

