/* Responsive Styles */

/* Tablet Styles (768px - 991px) */
@media screen and (max-width: 991px) {
  /* Header & Navigation */
  .menu-icon {
    display: block;
  }

  #menu-toggle:checked ~ .menu {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--background-light);
    box-shadow: var(--shadow-medium);
    z-index: 999;
  }

  .menu li {
    margin: 0;
    text-align: center;
  }

  .menu a {
    display: block;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-light);
  }

  /* Hero Section */
  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
    margin-bottom: var(--spacing-md);
  }

  /* Services Preview */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonial-slider {
    flex-direction: column;
    align-items: center;
  }

  .testimonial {
    width: 100%;
    max-width: 500px;
    margin-bottom: var(--spacing-md);
  }

  /* Loyalty Preview */
  .loyalty-content {
    flex-direction: column;
  }

  .loyalty-text {
    order: 2;
  }

  .loyalty-image {
    order: 1;
    margin-bottom: var(--spacing-md);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services Detail Page */
  .services-list {
    grid-template-columns: 1fr;
  }

  /* Loyalty Program Page */
  .loyalty-intro {
    flex-direction: column;
  }

  .loyalty-image {
    margin-bottom: var(--spacing-md);
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-cards {
    flex-direction: column;
  }

  /* Contact Page */
  .contact-info-wrapper {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: var(--spacing-md);
  }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {
  /* General */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  /* Hero Section */
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Services Preview */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Buttons */
  .contact-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Service Item */
  .service-item {
    flex-direction: column;
  }

  .service-item img {
    width: 100%;
    height: 200px;
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Table */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid var(--gray-medium);
    margin-bottom: var(--spacing-sm);
  }

  td {
    border: none;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 50%;
  }

  td:before {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 700;
  }

  td:nth-of-type(1):before { content: "Serviço"; }
  td:nth-of-type(2):before { content: "Pontos"; }
  td:nth-of-type(3):before { content: "Benefícios"; }
}

/* Very Small Devices (up to 480px) */
@media screen and (max-width: 480px) {
  /* Header */
  .logo-img {
    height: 40px;
  }

  /* Hero Section */
  .hero {
    height: 350px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  /* Page Header */
  .page-header {
    height: 200px;
  }
}