:root {
  --primary-color: #3c8c42;
}

.holiday-banner {
  background: linear-gradient(45deg, #2c3e50 10%, var(--primary-color) 90%);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.holiday-banner::before,
.holiday-banner::after {
  content: '🎉';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: white;
}

.holiday-banner::before {
  left: 20px;
}

.holiday-banner::after {
  right: 20px;
}

.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.snow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: fall 2s linear forwards; /* Changed animation duration and removed infinite */
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(10px);
    opacity: 0.3;
  }
}

body {
  font-family: "Gill Sans Nova", sans-serif;
  /*background: url('../images/hero-bg.jpg') no-repeat center center fixed;*/
  background-size: cover;
  min-height: 100vh;
}

@media (max-width: 768px) {
  
}

.bg-gradient {
  background: linear-gradient(var(--primary-color), white);
}

.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  position: relative;
  font-size: 1.1rem;
  padding: 0.8rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(60, 140, 66, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(60, 140, 66, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(60, 140, 66, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(60, 140, 66, 0);
  }
}

.btn-success:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-success:hover {
  background-color: #68bd6e;
  border-color: #68bd6e;
}

.bg-success {
  background: linear-gradient(to right, #4a9c50, #3c8c42) !important;
  box-shadow: 0 2px 15px rgba(60, 140, 66, 0.15);
}

.navbar {
  background: linear-gradient(to right, #2c682f, #245428) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  max-height: 50px;
}

.nav-logo.show {
  display: block !important;
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-collapse {
  margin-left: 200px; /* Space for logo */
}

@media (max-width: 991px) {
  .navbar {
    min-height: 60px;
  }

  .navbar-collapse {
    margin-left: 0;
    padding-top: 1rem;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .nav-logo {
    display: none !important;
  }
  
  .navbar-toggler {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  #main-logo {
    padding: 10px 0;
  }

  #main-logo img {
    max-height: 50px;
    width: auto;
  }
}

.navbar-nav .nav-link {
  font-weight: 600;
  position: relative;
  padding: 0.7rem 1.5rem;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-align: center;
}

.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #e9ecef !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover:before {
  transform: translateY(0);
}

.btn-light {
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-section {
  position: relative;
  background: url('../images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  font-family: "Gill Sans Nova", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .special-link {
  color: #FFD700 !important;
  font-weight: bold;
}

.navbar-nav .special-link:hover {
  color: #FFF !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: #e9ecef !important;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  width: 80%;
  opacity: 1;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 1.5s ease;
}

.slide.active img {
  filter: brightness(1);
}

.fade {
  animation: fadeAndScale 1.5s ease-in-out;
}

@keyframes fadeAndScale {
  0% {
    opacity: 0.4;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

#rotating-text {
  transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 2000px;
  }
  
  .hero-section {
    height: 800px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content .lead {
    font-size: 2rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  .card-title {
    font-size: 2rem;
  }
  
  .card-text {
    font-size: 1.5rem;
  }
  
  h2, h3 {
    font-size: 3.5rem;
  }
}
html {
  scroll-behavior: smooth;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  padding: 2rem;
}

.mobile-menu.active {
  right: 0;
}

@media (max-width: 768px) {
  body {
    position: relative;
    overflow-x: hidden;
    width: 100%;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-collapse.show {
    right: 0;
  }

  .navbar-nav {
    margin-top: 2rem;
  }
}
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1050;
  text-align: center;
  max-width: 90%;
  width: 400px;
}

.popup.show {
  display: block;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
}

.popup-overlay.show {
  display: block;
}

.experience-burst {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700, #FDB931, #FFD700);
  background-size: 200% 200%;
  color: #2C1810;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  width: 130px;
  height: 130px;
  text-align: center;
  font-weight: bold;
  z-index: 10;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    50% 0%, 63% 18%, 85% 2%, 89% 30%,
    100% 35%, 92% 57%, 100% 76%, 79% 80%,
    75% 100%, 50% 89%, 25% 100%, 21% 80%,
    0% 76%, 8% 57%, 0% 35%, 11% 30%,
    15% 2%, 37% 18%
  );
  transform: rotate(15deg);
  animation: float-burst 3s ease-in-out infinite;
  cursor: pointer;
}

.card-img-top {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}


  transform: rotate(15deg);
  animation: float-burst 3s ease-in-out infinite;
  cursor: pointer;
}

.experience-burst.hidden {
  display: none !important;
}

@keyframes float-burst {
  0% { transform: rotate(15deg) translateY(0px); background-position: 0% 50%; }
  25% { transform: rotate(15deg) translateY(-5px); background-position: 50% 100%; }
  50% { transform: rotate(15deg) translateY(-10px); background-position: 100% 50%; }
  75% { transform: rotate(15deg) translateY(-5px); background-position: 50% 0%; }
  100% { transform: rotate(15deg) translateY(0px); background-position: 0% 50%; }
}

.guarantee-card-flip {
  perspective: 1000px;
  cursor: pointer;
  height: 300px;
  width: 100%;
}

.guarantee-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  position: relative;
  height: 100%;
  width: 100%;
}

/* Desktop: flip on hover */
@media (hover: hover) and (pointer: fine) {
  .guarantee-card-flip:hover .guarantee-card {
    transform: rotateY(180deg);
  }
}


.guarantee-card-back {
  transform: rotateY(180deg);
}

/* Mobile & touch: flip when .flipped class is added */
.guarantee-card-flip.flipped .guarantee-card {
  transform: rotateY(180deg);
}

/* Prevent hover‑only flip on touch devices */
@media (hover: none) and (pointer: coarse) {
  .guarantee-card-flip:hover .guarantee-card {
    transform: none;
  }
}

.guarantee-card-front, .guarantee-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
}

.guarantee-card-flip:focus {
  outline: none;
}


.guarantee-modal {
  display: none;
  position: fixed;
  z-index: 1060;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guarantee-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .guarantee-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    width: calc(100% - 2rem);
  }
}

.guarantee-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  width: 90%;
  max-width: 600px;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.guarantee-modal.active .guarantee-modal-content {
  transform: scale(1);
}

.guarantee-modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.guarantee-modal-close:hover {
  color: #666;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-placeholder {
  background-color: #6c757d;
  transition: opacity 0.3s ease;
}

.gallery-placeholder:hover {
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top.show {
  display: flex;
}

.mobile-book-now {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

@media (min-width: 768px) {
  .mobile-book-now {
    left: auto;
    right: 20px;
    bottom: 20px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  
  .mobile-book-now .btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
}

@media (max-width: 768px) {
  .mobile-book-now .btn {
    border-radius: 50px;
    padding: 12px;
  }
}

#main-logo {
  width: 100%;
  overflow: hidden;
}

#main-logo img {
  max-width: 400px;
  width: 100%;
  height: auto;
  padding: 0 15px;
}

/* ===== Safari/iOS tap-target & flip-card robustness fixes ===== */
.guarantee-card-flip {
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.guarantee-card {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.guarantee-card-front,
.guarantee-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Back face rotated */
.guarantee-card-back {
  transform: rotateY(180deg);
}

/* Flipped state */
.guarantee-card-flip.flipped .guarantee-card {
  transform: rotateY(180deg);
}

/* On touch devices, neutralize AOS transforms in the Why Choose Us section
   so Safari doesn't offset the hitbox. */
@media (hover: none) and (pointer: coarse) {
  #why-choose-us [data-aos] { transform: none !important; }
}

/* === Founder card overflow fix (surgical, won't affect other cards) === */
#about .guarantee-card-flip.founder-card .guarantee-card-front,
#about .guarantee-card-flip.founder-card .guarantee-card-back {
  overflow: hidden; /* clip within card height */
}
#about .guarantee-card-flip.founder-card .guarantee-card-back {
  overflow-y: auto;                 /* scroll only the back face if content is tall */
  -webkit-overflow-scrolling: touch;
}
#about .guarantee-card-flip.founder-card .more-info {
  margin-top: auto;                 /* keep the button at the bottom */
}
#about .guarantee-card-flip.founder-card .guarantee-card-back h3 { margin-bottom: 0.5rem; }
#about .guarantee-card-flip.founder-card .guarantee-card-back p.small { margin-bottom: 0.5rem; }
#about .guarantee-card-flip.founder-card .guarantee-card-back ul { margin-bottom: 0.5rem; }
