html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* header */

@media (max-width: 900px) {
  .header-container {
    padding: 14px 20px;
  }

  .header-logo {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 12px 16px;
  }

  .header-logo {
    font-size: 14px;
  }

  .hamburger {
    font-size: 22px;
  }
}

/* nav-mobile */

@media (max-width: 480px) {
  .nav-mobile {
    width: 100%;
    max-width: 100%;
  }

  .nav-mobile-logo {
    font-size: 22px;
    padding: 24px 20px;
  }

  .nav-mobile a {
    padding: 16px 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

/* wallpaper */

@media (max-width: 768px) {
  .wallpaper-image {
  background-attachment: scroll;
  }
}

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

/* portfolio */

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

  .portfolio-header {
    margin-bottom: 30px;
    padding: 0 16px;
  }

  .portfolio-title2 {
    font-size: 28px;
  }

  .portfolio-title1 {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .portfolio-wrapper {
    padding: 0;
    position: relative;
  }

  .portfolio-container {
    gap: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-item {
    flex: 0 0 100vw;
    width: 100vw;
    min-height: unset;
    height: auto;
    aspect-ratio: unset;
    padding: 16px;
    border-radius: 0;
    background: #000;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
    max-height: 65vw;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
  }

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

  .portfolio-item:hover img {
    opacity: 1;
    transform: none;
  }

  .portfolio-item .overlay {
    display: none;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
    z-index: 20;
  }

  .nav-btn.prev { left: 8px; }
  .nav-btn.next { right: 8px; }
}

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

  .portfolio-item {
    padding: 10px;
  }

  .portfolio-item img {
    max-height: 72vw;
    border-radius: 8px;
  }

  .portfolio-title2 {
    font-size: 24px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* offerings */

@media (max-width: 768px) {
  .offerings {
    padding: 50px 0 60px;
  }

  .offerings-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

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

  .offerings-wrapper {
    width: 130px;
    height: 130px;
    margin-bottom: 16px;
  }

  .offerings-name {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .offerings-card {
    padding: 16px 10px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .offerings-title {
    font-size: 26px;
  }

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

  .offerings-wrapper {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }

  .offerings-name {
    font-size: 13px;
  }

  .offerings-card {
    padding: 12px 8px;
  }
}

@media (max-width: 360px) {
  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .offerings-wrapper {
    width: 90px;
    height: 90px;
  }

  .offerings-name {
    font-size: 11px;
    letter-spacing: 0;
  }
}

/* testimoni */

@media (max-width: 968px) {
  .testimoni {
    background-attachment: scroll; /* Fix iOS parallax */
    height: auto;
    padding: 60px 20px;
  }

  .testimoni-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testi-slider-1 {
    height: 260px;
  }
}

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

  .testimoni h2 {
    font-size: 20px;
  }

  .testimoni p {
    font-size: 13px;
  }

  .testi-slider-1 {
    height: 220px;
  }

  .testi-container-2 {
    padding: 20px 16px;
    min-height: 180px;
    border-radius: 14px;
  }

  .testi-label {
    font-size: 14px;
  }

  .testi-number {
    font-size: 36px;
  }

  .testi-desc {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 360px) {
  .testi-slider-1 {
    height: 190px;
  }

  .testi-number {
    font-size: 30px;
  }

  .testi-desc {
    font-size: 12px;
  }
}

/* price */

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

  .price h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .price h3 {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .price p {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .price p1 {
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
  }

  .btn-price {
    padding: 12px 28px;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
  }
}

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

  .price h2 {
    font-size: 18px;
  }

  .price h3 {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .price p {
    font-size: 16px;
  }

  .btn-price {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* promo */

@media (max-width: 768px) {
  .promo {
    height: auto;
    min-height: 55vh;
    padding: 80px 24px;
    background-attachment: scroll;
  }

  .promo-item h2 {
    font-size: 1.5rem;
    margin-bottom: 50px;
    line-height: 1.5;
  }

  .btn-wa {
    padding: 14px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .promo {
    min-height: 50vh;
    padding: 60px 20px;
  }

  .promo-item h2 {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }

  .btn-wa {
    padding: 13px 28px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .promo-item h2 {
    font-size: 1rem;
  }
}

/* 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;
    letter-spacing: 0.5px;
  }

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

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

  .footer-icon {
    font-size: 14px;
  }

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

/* modal */

@media (max-width: 768px) {

  .home-lightbox .lb-img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .home-lightbox .lb-arrow {
    font-size: 36px;
    padding: 0 8px;
  }

  .home-lightbox .lb-close {
    top: 12px;
    right: 14px;
    font-size: 20px;
  }

  .home-lightbox .lb-counter {
    font-size: 11px;
    bottom: 14px;
  }

  .offerings-modal {
    padding: 50px 12px 60px;
  }

  .offerings-modal-title {
    font-size: 11px;
    letter-spacing: 3px;
  }

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

  .offerings-gallery-grid img {
    height: 160px;
    border-radius: 6px;
  }

  .pricing-modal-box {
    padding: 30px 20px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .pricing-modal-title {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .pricing-modal-desc {
    font-size: 12px;
  }

  .pricing-modal-list li {
    font-size: 12px;
    padding: 9px 0;
  }

  .pricing-modal-btn {
    padding: 13px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .offerings-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .offerings-gallery-grid img {
    height: 130px;
  }

  .offerings-modal {
    padding: 44px 10px 50px;
  }

  .pricing-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .pricing-modal-box {
    padding: 24px 16px;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
  }

  @keyframes pricingFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 360px) {
  .offerings-gallery-grid img {
    height: 110px;
  }

  .pricing-modal-title {
    font-size: 13px;
  }
}

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

  .portfolio-item:hover img {
    opacity: 1;
    transform: none;
  }

  .offerings-card:hover {
    transform: none;
    box-shadow: none;
  }

  .offerings-card:hover .offerings-wrapper img {
    transform: none;
  }

  .offerings-card:hover .offerings-name {
    color: #ffffff;
  }

  .nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-50%);
  }

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

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

@supports (padding: max(0px)) {
  .header-container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

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

  .nav-mobile {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media print {
    .navbar,
    .scroll-top,
    .whatsapp-float,
    .slider-btn,
    .slider-dots {
        display: none;
    }
}

@media print {
    .navbar,
    .scroll-top,
    .instagram-float,
    .slider-btn,
    .slider-dots {
        display: none;
    }
}