/* ============================================================
   UNWIND SANUR SPA — Mobile Premium Stylesheet
   Device: ≤ 768px
   Philosophy: Touch-first luxury. Every pixel intentional.
   ============================================================ */

/* ============================================================
   1. MOBILE FOUNDATIONS
   ============================================================ */
@media (max-width: 768px) {

  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.4rem;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  /* ============================================================
     2. NAVIGATION — Glassmorphism float bar
     ============================================================ */
  nav {
    padding: 1.1rem 0;
    /* Starts transparent over hero */
  }

  nav.scrolled {
    padding: 0.85rem 0;
    background: var(--cream);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(10, 61, 64, 0.1), 0 4px 20px rgba(0,0,0,0.06);
  }

  .nav-container {
    padding: 0 1.4rem;
  }

  .logo-img {
    height: 30px;
  }

  nav.scrolled .logo-img {
    height: 28px;
  }

  /* Hide desktop nav */
  .nav-links {
    display: none;
  }

  nav .btn-primary {
    display: none;
  }

  nav.scrolled .btn-primary {
    display: none;
  }

  /* Hamburger — always visible on mobile */
  .hamburger {
    display: flex;
    gap: 5px;
    padding: 8px;
    margin-right: -8px; /* optical alignment */
  }

  .hamburger span {
    width: 22px;
    height: 1.2px;
    background: var(--white);
    transition: var(--transition);
  }

  nav.scrolled .hamburger span {
    background: var(--deep-teal);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(6.2px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6.2px) rotate(-45deg);
  }

  /* ============================================================
     3. MOBILE NAV OVERLAY — Full-screen luxury drawer
     ============================================================ */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    /* Subtle texture */
    background-image:
      radial-gradient(ellipse at 10% 20%, rgba(15, 139, 149, 0.25) 0%, transparent 55%),
      radial-gradient(ellipse at 90% 80%, rgba(201, 169, 110, 0.1) 0%, transparent 50%);
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(245, 237, 224, 0.9);
    letter-spacing: 5px;
    text-transform: uppercase;
    padding: 0.7rem 0;
    position: relative;
    transition: color 0.3s ease;
  }

  .mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
  }

  .mobile-nav a:hover {
    color: var(--sand);
  }

  .mobile-nav a:hover::after {
    width: 100%;
  }

  .mobile-nav .mobile-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sand);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1rem 2.8rem;
    margin-top: 2.5rem;
    /* Gold accent line at top */
    border-top-color: var(--gold);
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .mobile-nav .mobile-book .wa-icon,
  .mobile-nav .mobile-book .wa-icon svg,
  .mobile-nav .mobile-book svg {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    top: 0;
  }

  .mobile-nav .mobile-book::after {
    display: none;
  }

  .mobile-nav .mobile-book:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--gold);
  }

  /* Decorative element inside mobile nav */
  .mobile-nav::before {
    content: 'UNWIND';
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: 0.62rem;
    letter-spacing: 10px;
    color: rgba(245, 237, 224, 0.1);
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 300;
    pointer-events: none;
  }

  /* ============================================================
     4. HERO SECTION — Cinematic full-screen
     ============================================================ */
  .hero {
    height: 100svh; /* Use svh for mobile browser chrome */
    min-height: 620px;
    align-items: flex-end;
    padding-bottom: 0;
  }

  /* Deeper overlay gradient on mobile for legibility */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 61, 64, 0.2) 0%,
      rgba(10, 61, 64, 0.15) 40%,
      rgba(10, 61, 64, 0.75) 80%,
      rgba(10, 61, 64, 0.92) 100%
    );
  }

  .hero::after {
    height: 80px;
  }

  .hero-content {
    text-align: left;
    padding: 0 1.6rem 5rem;
    max-width: 100%;
    /* Disable desktop parallax on mobile — too jarring */
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 3.5px;
    margin-bottom: 1rem;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  .hero-eyebrow::before {
    width: 25px;
    background: rgba(255, 255, 255, 0.7);
  }
  .hero-eyebrow::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.08;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 1rem;
    letter-spacing: 0.8px;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
    max-width: 320px;
    text-align: left;
  }

  .hero-cta {
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.8rem;
  }

  .hero-cta .btn-primary {
    font-size: 0.72rem;
    padding: 0.9rem 1.8rem;
    letter-spacing: 2px;
    /* Make it feel more tap-friendly */
    min-height: 48px;
  }

  /* Scroll indicator — hide on short screens */
  .scroll-indicator {
    bottom: 1.5rem;
    opacity: 0.7;
  }

  .scroll-indicator span {
    font-size: 0.62rem;
    letter-spacing: 2px;
  }

  .scroll-line {
    height: 28px;
  }

  /* Mobile parallax: will-change auto untuk performa,
     transform dikendalikan JS dengan efek lebih ringan (0.25x) */
  .layer-bg {
    will-change: transform;
  }

  /* ============================================================
     5. ABOUT SECTION — Stacked, image first
     ============================================================ */
  .about {
    overflow: hidden;
  }

  .about::before {
    display: none; /* Remove decorative circle — too heavy */
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Image sits on top, text below */
  .about-image {
    order: 1;
    min-height: 300px;
    max-height: 380px;
  }

  .about-image img {
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  .about-image-badge {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
    max-width: calc(100% - 2rem);
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    /* Fade in nicely from the left edge */
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  .about-text {
    order: 2;
    padding: 3rem 1.4rem 3.5rem;
  }

  .about-quote {
    font-size: 1.15rem;
    padding-left: 1.1rem;
    margin-bottom: 1.4rem;
  }

  .about p {
    line-height: 1.85;
	text-align: justify;
  }

  .about-stats {
    gap: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 1.8rem 0;
    padding: 1.2rem 0;
  }

  .stat-item {
    flex: 1;
    text-align: center;
    /* Subtle divider between stats */
    border-right: 1px solid rgba(10,61,64,0.1);
  }

  .stat-item:last-child {
    border-right: none;
  }

  .stat-num {
    font-size: 1.9rem;
    margin-bottom: 0.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .about .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    margin-top: 1.5rem;
    min-height: 48px; /* touch target */
  }

  /* ============================================================
     6. TREATMENTS SECTION — Rich teal card
     ============================================================ */
  .treatments-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .treatments-image {
    order: 1;
    min-height: 280px;
    max-height: 340px;
  }

  .treatments-image img {
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
  }

  .treatments-text {
    order: 2;
    padding: 3rem 1.4rem 3.5rem;
  }

  .treatment-features {
    gap: 1rem;
    margin: 1.2rem 0 1.5rem;
  }

  .feature-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .treatments-text .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    margin-top: 1rem;
    min-height: 48px;
  }

  /* ============================================================
     7. TREATMENT MENU — Clean mobile reading experience
     ============================================================ */
  .menu-section {
    padding: 4.5rem 0 3rem;
  }

  .menu-header {
    margin-bottom: 3rem;
    padding: 0 1.4rem;
  }

  .menu-header-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 3.5px;
    gap: 1rem;
  }

  .menu-header-eyebrow::before,
  .menu-header-eyebrow::after {
    width: 30px;
  }

  .menu-header h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
  }

  .menu-header p {
    font-size: 1rem;
  }

  .menu-wrapper {
    padding: 0 1.4rem;
  }

  .menu-category-block {
    margin-bottom: 3rem;
  }

  .menu-category-header {
    gap: 1rem;
    margin-bottom: 0.3rem;
  }

  .menu-category {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  /* Each menu item — generous touch targets */
  .menu-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.4rem 0;
    cursor: default;
  }

  /* Disable desktop hover-translate on mobile */
  .menu-item:hover .menu-item-top {
    transform: none;
  }

  .menu-item-top {
    gap: 0.3rem;
  }

  .menu-name {
    font-size: 1.05rem;
    letter-spacing: 0.2px;
  }

  .menu-intensity {
    font-size: 1.05rem;
  }

  .menu-desc {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
    margin-top: 0.2rem;
	text-align: justify;
  }

  /* Hide pricing on mobile */
  /* On mobile: pricing as clean vertical list — 60 min / Rp xxx per row */
  .menu-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: unset;
    width: 100%;
    padding-top: 0.5rem;
    margin-top: 0.2rem;
  }

  .menu-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }

  .menu-dur {
    font-size: 0.72rem;
    letter-spacing: 1px;
    flex-shrink: 0;
  }

  .menu-combo-price {
    font-size: 1.05rem;
    margin-left: auto;
    text-align: right;
  }

  .menu-strike {
    font-size: 0.76rem;
    margin-right: 0.25rem;
  }

  .menu-footer {
    padding-top: 2rem;
    margin-top: 1.5rem;
  }

  .menu-footer p {
    font-size: 0.54rem;
    letter-spacing: 1.8px;
  }

  /* ============================================================
     8. CONTACT SECTION — Dark teal with warm accents
     ============================================================ */
  .contact {
    padding: 4.5rem 0 4rem; /* sama dengan .section-padding mobile agar konsisten dengan Gallery */
  }

  .contact-header {
    padding: 0 1.4rem 2.5rem; /* padding-top sengaja 0 — sudah ditangani oleh .contact */
    padding-top: 0 !important; /* override padding-top: 5rem dari style.css */
    margin-bottom: 0;
    text-align: left;
  }

  .contact-header .section-label {
    justify-content: flex-start;
  }

  .contact-header .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .contact-header p {
    margin: 0;
    font-size: 1rem;
    max-width: 100%;
    text-align: left;
	text-align: justify;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    margin: 2rem 1.4rem 0;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }

  .contact-info {
    padding: 2.2rem;
    gap: 1.8rem;
    border-right: none;
    border-bottom: 1px solid rgba(10,61,64,0.08);
  }

  .contact-item h3 {
    font-size: 0.66rem;
    letter-spacing: 2.5px;
  }

  .contact-item p {
    font-size: 0.95rem;
  }

  .social-icons {
    gap: 0.6rem;
  }

  .social-icons a {
    width: 42px;
    height: 42px; /* Bigger tap targets on mobile */
  }

  .contact-info .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
    padding: 1rem 0;
    min-height: 52px;
    letter-spacing: 2px;
  }

  .contact-map {
    min-height: 280px;
  }

  .contact-map iframe {
    min-height: 280px;
  }

  /* ============================================================
     9. FOOTER
     ============================================================ */
  .footer {
    padding: 2rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    padding: 0 1.4rem;
  }

  .footer-logo-img {
    display: block;
    height: 26px;
    opacity: 0.7;
  }

  .footer-copy {
    font-size: 0.72rem;
    text-align: center;
    letter-spacing: 0.5px;
  }

  /* ============================================================
     10. SCROLL TO TOP BUTTON
     ============================================================ */
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    /* More tactile on mobile */
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  }

  .scroll-to-top:hover {
    transform: none; /* No hover lift on touch */
  }

  .scroll-to-top:active {
    transform: scale(0.95);
    background: var(--teal);
  }

  /* ============================================================
     11. TYPOGRAPHY ADJUSTMENTS
     ============================================================ */
  .section-label {
    font-size: 0.68rem;
    letter-spacing: 3px;
    margin-bottom: 0.9rem;
  }

  .section-label::before {
    width: 20px;
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    margin-bottom: 1.2rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.85;
  }

  /* ============================================================
     12. BUTTONS — Full-width & touch-optimized where needed
     ============================================================ */
  .btn-primary,
  .btn-outline,
  .btn-secondary {
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 0.9rem 1.8rem;
    min-height: 48px; /* WCAG AA tap target */
  }

  /* ============================================================
     13. ANIMATIONS — Lighter on mobile
     ============================================================ */

  /* Reduce fade distance — smoother on lower-powered devices */
  .fade-in-up {
    transform: translateY(20px);
    transition-duration: 0.7s;
  }

  .fade-in-left {
    transform: translateX(-20px);
    transition-duration: 0.7s;
  }

  .fade-in-right {
    transform: translateX(20px);
    transition-duration: 0.7s;
  }

  /* Gallery filter — diatur oleh <style> di index.html */

  /* Override gallery-section padding dari inline style di index.html */
  .gallery-section {
    padding: 0;
  }

} /* END @media (max-width: 768px) */

/* ============================================================
   15. EXTRA SMALL — 375px and below (iPhone SE, older Android)
   ============================================================ */
@media (max-width: 390px) {

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

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-cta .btn-primary {
    font-size: 0.68rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1.8px;
  }

  .mobile-nav a {
    font-size: 2.1rem;
    letter-spacing: 4px;
  }

  .about-image {
    max-height: 300px;
  }

  .treatments-image {
    max-height: 280px;
  }

  .stat-num {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .contact-header {
    padding: 0 1.4rem 2rem; /* hapus padding-top, sudah ada di .contact */
    padding-top: 0 !important;
  }

  .contact-info {
    padding: 1.8rem 1.4rem;
  }

  .container {
    padding: 0 1.1rem;
  }

  .menu-wrapper {
    padding: 0 1.1rem;
  }

  .menu-header {
    padding: 0 1.1rem;
  }

  .contact-wrapper {
    margin: 1.5rem 1.1rem 0;
  }

  .menu-combo-price {
    font-size: 0.95rem;
  }

  /* Gallery filter — layar sangat kecil */
  .gallery-filters {
    gap: 0.4rem;
    padding: 0 0.8rem 0.5rem;
  }

  .gf-btn {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.9rem;
  }

}

/* ============================================================
   16. LANDSCAPE MOBILE — Compact hero
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {

  .hero {
    min-height: 100vw;
    height: 100svh;
    align-items: center;
  }

  .hero-content {
    padding: 0 2rem 2rem;
    text-align: center;
  }

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

  .hero-sub {
    max-width: 440px;
    margin: 0 auto 1.5rem;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .about-image,
  .treatments-image {
    max-height: 240px;
  }

}

/* ============================================================
   17. PREFERS REDUCED MOTION — Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    transition-duration: 0.15s;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-cta {
    animation-duration: 0.01ms !important;
  }

  @keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } }
  @keyframes wa-pulse-contact { 0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35); } }
}

/* Konsistenkan scroll anchor offset untuk semua section di mobile */
@media (max-width: 768px) {
  /* Tinggi navbar mobile: padding 1.1rem atas-bawah + logo 30px ≈ 52px
     Tambah 8px napas visual = 60px. Berlaku untuk semua section. */
  #about,
  #treatments,
  #menu,
  #contact {
    scroll-margin-top: 60px;
  }

  /* Gallery: section padding sudah 0 di mobile,
     scroll-margin = tinggi navbar agar teks tidak mepet navbar */
  #gallery {
    scroll-margin-top: 60px;
  }

  /* Beri napas di bawah navbar untuk gallery header */
  .gallery-header {
    padding-top: 4.5rem; /* selaraskan dengan padding-top .contact di mobile */
  }
}
