/* title */

@media (max-width: 768px) {
  .title {
    height: 40vh;
    background-attachment: scroll;
  }

  .title::before {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .title {
    height: 35vh;
  }
}

/* story */

@media (max-width: 1024px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 40px;
  }

  .story-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .story {
    padding: 50px 24px;
    gap: 30px;
  }

  .story-title {
    font-size: 32px;
  }

  .story-desc p {
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .story {
    padding: 40px 16px;
    gap: 24px;
  }

  .story-title {
    font-size: 26px;
    padding-bottom: 16px;
  }

  .story-desc p {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* founder */

@media (max-width: 768px) {
  .founder {
    padding: 50px 24px;
  }

  .founder-title h2 {
    font-size: 26px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .founder-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-info h3 {
    font-size: 22px;
  }

  .founder-info p,
  .founder-info .founder-role {
    text-align: center;
  }

  .btn-instagram {
    padding: 13px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .founder {
    padding: 40px 16px;
  }

  .founder-photo {
    max-width: 240px;
  }

  .founder-info h3 {
    font-size: 20px;
  }

  .founder-info p {
    font-size: 14px;
  }

  .founder-info .founder-role {
    font-size: 12px;
  }

  .btn-instagram {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* experience */

@media (max-width: 768px) {
  .experience {
    padding: 50px 24px;
  }

  .experience-container h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .experience-item h3 {
    font-size: 17px;
  }

  .experience-item p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .experience {
    padding: 40px 16px;
  }

  .experience-container h2 {
    font-size: 22px;
  }

  .experience-item {
    padding: 20px 0;
  }

  .experience-item h3 {
    font-size: 15px;
  }

  .experience-item p {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 200px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 160px;
    height: 120px;
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .carousel-item {
    flex: 0 0 140px;
    height: 105px;
  }
}

/* photo */

@media (max-width: 768px) {
  .photo-grid-section {
    padding: 30px 16px 60px;
  }

  .photo-grid-section h2 {
    font-size: 18px;
  }

  .photo-grid-section p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .photo-grid-section {
    padding: 24px 12px 50px;
  }

  .photo-grid {
    gap: 6px;
  }

  .photo-grid-item {
    border-radius: 8px;
  }
}

/* flot button */

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .instagram-float {
    bottom: 20px;
    right: 76px;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .instagram-float {
    bottom: 16px;
    right: 66px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

/* footer */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 20px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer h3 {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .footer p,
  .footer a {
    font-size: 13px;
  }

  .footer-bottom {
    margin-top: 40px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 50px 16px 20px;
  }

  .footer h3 {
    font-size: 12px;
  }

  .footer p,
  .footer a {
    font-size: 12px;
  }

  .footer-item {
    font-size: 12px;
    gap: 8px;
  }

  .footer-bottom {
    margin-top: 32px;
    font-size: 11px;
  }
}

@supports (padding: max(0px)) {
  .whatsapp-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }

  .instagram-float {
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@media (hover: none) and (pointer: coarse) {
  .photo-grid-item:hover img {
    transform: none;
  }

  .carousel-item:hover {
    transform: none;
  }

  .btn-instagram:hover {
    transform: none;
    box-shadow: none;
  }

  .whatsapp-float:hover {
    transform: none;
    background: #25D366;
  }

  .instagram-float:hover {
    transform: none;
  }
}