/* ======================
   media.css (mobile animations)
   ====================== */

html {
  scroll-behavior: smooth;
}

/* ===== Fade In on Scroll ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

/* ===== Slide Up effect ===== */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1.2s ease forwards;
}

/* ===== Zoom In Image ===== */
.zoom-in {
  animation: zoomIn 1.3s ease-in-out forwards;
}

/* ===== Touch highlight ===== */
.btn, a.btn {
  transition: transform 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}

/* ===== Animations keyframes ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Image Pulse for Product ===== */
.mobile-product, .mobile-buy-image {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== Testimonials fade loop ===== */
.testimonial {
  animation: fadeLoop 6s infinite ease-in-out;
}

@keyframes fadeLoop {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== Page transitions ===== */
section, header, footer {
  animation: fadeIn 1.2s ease-in;
}

/* ===== Small screen touch enhancements ===== */
img, button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth button hover for touch simulation */
@media (hover: hover) {
  .btn:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: scale(1.05);
  }
}

@media (max-width:1199px) {
    /*Start block4*/
    .form-head {
        font-size: 20px;
    }
    .block4-p {
        font-size: 17px;
    }
    .form {
        margin: 15px auto 15px;
    } }

/* =============================
   MOBILE LAYOUT RULES
   ============================= */
@media (max-width: 767px) {

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-left: 40px;
    padding-right: 40px;
    text-align: justify; 
    text-align-last: center; 
  }
  .hero-text p {
    color:lightgray;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 10px 0 20px;
  }
  .hero-image img {
    width: 100%;
  }

  .content-grid,
  .content-grid.reverse {
    flex-direction: column !important;
    text-align: center;
    gap: 25px;
  }

  .benefits-grid,
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .benefit-card {
    width: 95%;
    padding: 20px;
  }

  .section {
    padding: 50px 20px;
  }
  .section h2 {
    font-size: 1.6rem;
  }

  .buy-box {
    width: 90%;
    max-width: 360px;
    padding: 30px 20px;
  }

  /* form block adjustments */
  .form-head {
    font-size: 16px;
    line-height: 1.7;
  }
  .form-control-input {
    font-size: 18px;
    min-height: 55px;
  }
  .form-call {
    font-size: 24px;
  }

  footer {
    font-size: 0.9rem;
    padding: 15px;
  }
  /* Remove extra white space between form and footer */
.block4 {
  padding-bottom: 0;           /* kills the 50 px bottom padding */
  margin-bottom: 0;
}

#contact-form .container {
  margin-bottom: 0;            /* make sure container adds no gap */
  padding-bottom: 0;
}

footer {
  margin-top: 0;               /* ensure footer starts immediately after form */
}
}