/* Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  /* Hero Section */
  #hero {
    padding-top: calc(70px + var(--spacing-xl));
  }
  
  #hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  /* Ingredients Section */
  .ingredients-content {
    flex-direction: column;
  }
  
  .ingredients-text, .ingredients-image {
    flex: none;
    width: 100%;
  }
  
  .ingredients-image {
    order: -1;
    margin-bottom: var(--spacing-lg);
  }
  
  /* Results Section */
  .result-item {
    flex-direction: column;
  }
  
  .result-before-after, .result-description {
    flex: none;
    width: 100%;
  }
  
  .result-description {
    text-align: center;
    margin-top: var(--spacing-md);
  }
  
  /* Offer Section */
  .offer-box {
    flex-direction: column;
  }
  
  .offer-product, .offer-details {
    flex: none;
    width: 100%;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-logo {
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header */
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Typography */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  /* Hero Section */
  #hero .container h1 {
    font-size: 1.5rem;
    width: 385px;
    text-align: center;
    
  }

  #hero .container p{
    font-size: 0.8rem;
    width: 400px;
     text-align: center;
  }

  #hero .container .btn {
    width: 250px;
    padding: 5px;
    text-align: center;
    margin-left: var(--spacing-xxl);
  }
  #hero .container img{
    width: 350px;
  }
  #hero .section-hero {
    transform: translateX(5%);
  }
  /* Ingredients Section */
  #ingredients img{
    width: 340px;
  }

  #ingredients .highlight-text {
    font-size: 0.8rem;
    width: 400px;
  }

  #ingredients .cta-group-fade-in-delay-2{
    width: 340px;
    transform: translateX(-2px);
    padding: 5px;
    text-align: center;
  }
  /*Flexbox Section*/

  .flexbox .item .h4 {
  font-size: 0.2rem;
  display: flex;
  padding:2%;
  gap: 6%;
  justify-content: center;
  align-items: start;
  align-content: stretch;
  transform: translateX(-10%);
  } 

  .flexbox .space{
    width: 100px;
    font-size: 1rem;
    text-align: center;
    margin-left: 7px;
  }

  .item li { 
    padding: 18px;
    font-size: 13px;
    text-align: left;
    width: 170px;
    transform: translateX(-15%);
    margin-right: 50px;
  }


  /* Results Section */
  #results .result-after img {
    width: 350px;
    margin-top: 40px;
  }

  #results .label {
    width:375px;
     
  }

  /*Package Section*/
  #package img{
    width: 800px;
    transform: translateX(-0%);
  }

  /*test Section*/
  #results .result-after-test {
    width: 270px;
    transform: translateX(29%);
  }
  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  #benefits img{
    width: 350px;
  }

  /* Testimonials */
  .testimonial-card.active {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-image {
    margin-bottom: var(--spacing-md);
  }
  
  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input, .newsletter-form button {
    width: 100%;
  }
  
  /* CTA Group */
  .cta-group {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .cta-group .btn {
    width: 100%;
  }
  
  /* Countdown Timer */
  .countdown-timer {
    justify-content: center;
  }
  
  .timer-segment {
    min-width: 60px;
  }
  
  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .link-group {
    text-align: center;
  }
  
  .link-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}