/* style.css responsive */

/* Tablets */
@media (max-width: 992px) {
  .nav-menu {
    gap: var(--spacing-md);
  }

  .hero h1 {
    font-size: calc(var(--fs-h1) * 0.85);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Mobile */
@media (max-width: 769px) {

  .nav-menu {
    position: static;
    right: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
  }

  .overlay {
    display: none !important;
  }


  /* HEADER */
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1100;
  }

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

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-links li a {
    font-size: 1.1rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }

  /* HERO */
  .hero {
    padding: var(--spacing-xl) var(--spacing-sm);
  }

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

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* STORY */
  .story-grid {
    grid-template-columns: 1fr;
  }

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

/* Small phones */
@media (max-width: 480px) {

  .brand-text {
    font-size: 1rem;
  }

  #logo {
    height: 45px;
  }

  header {
    padding: 0.6rem 1rem;
  }

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

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

  .btn-solid,
  .btn-outline-light {
    width: 100%;
    justify-content: center;
  }
}

/* pages.css responsive */

/* Tablets */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-primary);
    transition: right 0.3s ease;
  }

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

  .service-hero {
    height: 50vh;
  }

  .slide-caption {
    left: 5%;
    right: 5%;
  }

  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .service-hero {
    height: 40vh;
  }

  .slide-caption h2 {
    font-size: 1.3rem;
  }

  .slide-caption p {
    font-size: 0.85rem;
  }

  .slide-nav {
    width: 35px;
    height: 35px;
  }

  .offering-card {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
