/* =====================================================
   GLOBAL MOBILE RESPONSIVE STYLES
   Applies to entire website
   ===================================================== */

/* -------- BASE FIXES -------- */
* {
  box-sizing: border-box;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  overflow-x: hidden;
}

/* -------- CONTAINERS -------- */
.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* -------- TYPOGRAPHY -------- */
@media (max-width: 768px) {

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 19px;
  }

  h4 {
    font-size: 17px;
  }

  p {
    font-size: 15px;
  }
}

/* -------- HEADER & NAV -------- */
@media (max-width: 768px) {

  .header .bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }

  .nav-links li a {
    padding: 10px 0;
    display: block;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* -------- HERO SECTIONS -------- */
@media (max-width: 768px) {

  .hero {
    padding: 40px 16px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-card {
    width: 100%;
  }
}

/* -------- GRIDS -------- */
@media (max-width: 768px) {

  .grid,
  .benefit-grid,
  .signs-grid,
  .steps,
  .ba-grid,
  .appointment-grid,
  .resto-img-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -------- FORMS -------- */
@media (max-width: 768px) {

  form label {
    font-size: 14px;
  }

  input,
  select,
  textarea,
  button {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
}

/* -------- BUTTONS -------- */
@media (max-width: 768px) {

  button,
  .btn,
  .btn-primary,
  .cta-btn {
    min-height: 44px;
    border-radius: 8px;
  }
}

/* -------- MEDIA / VIDEO -------- */
@media (max-width: 768px) {

  iframe {
    border-radius: 12px;
  }

  .video-frame {
    border-radius: 12px;
  }
}

/* -------- FLOATING BUTTONS -------- */
@media (max-width: 768px) {

  .float-whatsapp,
  .float-appointment {
    bottom: 16px;
    right: 16px;
    font-size: 18px;
    padding: 14px;
  }
}

/* -------- FOOTER -------- */
@media (max-width: 768px) {

  .footer .fgrid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .footer a {
    display: block;
    margin-bottom: 6px;
  }
}

/* -------- MODALS -------- */
@media (max-width: 768px) {

  .modal-box {
    width: 92%;
    padding: 24px;
  }
}
